×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Changes - MultiCharts
Open main menu

Changes

GetAppInfo

700 bytes added, 31 January
== Parameters ==
:'''aiApplicationType''' - Identifies — identifies the calling application:<br>
:*Unknown = 0
:*Chart = 1
:*Scanner = 2
:*Portfolio Trader = 10
:'''aiBarSpacing''' - returns a value indicating the bar spacing of a chart (i.e. the value found in the ''Format Window'' -> ''X-Time scale screen'').
:'''aiCalcReason''' - returns a numerical value, indicating the reason of calculation initialization (i.e. returns 0 when calculation was triggered by a new bar/tick(CalcReason_Default)):
:: '''0 (CalcReason_Default)''' - calculation is to be initialized when the new bar/tick appeared.:: '''1 (CalcReason_MouseLClick)''' calculation is to be initialized after left-click on the chart.:: '''2 (CalcReason_MouseRClick)''' - calculation is to be initialized after right-click on the chart. :: '''3 (CalcReason_Timer)''' calculation is to be initialized after expiration of RecalcLastBarAfter timeout.:: '''4 (CalcReason_MPChange)''' calculation is to be initialized after market position for the instrument has been changed (for signals only). :: '''5 (CalcReason_OrderFilled)''' calculation is to be initialized after order filled event (for signals only).:: '''6 (CalcReason_OrderRejected)''' — calculation is to be initialized after order rejected event (for signals only). :: '''7 (CalcReason_UserClosePosition)''' — calculation is to be initialized after the user clicks the Close Position button in Portfolio Trader. :'''aiHighestDispValue''' — returns the highest price value that could be displayed on a chart.
:'''aiHighestDispValueaiLowestDispValue''' - returns the highest lowest price value that could be displayed on a chart.
:'''aiLowestDispValueaiLeftDispDateTime''' - returns the lowest price DateTime value that could be of the leftmost bar displayed on a chart. The integer portion of the DateTime value specifies the number of days since January 1st, 1900, and the fractional portion of the DateTime value specifies the fraction of the day since midnight. See the category [[:Category:Date_and_Time_Routines|Date & Time Routines]] for the reserved words for working with DateTime values.
:'''aiLeftDispDateTimeaiRightDispDateTime''' - returns the DateTime value of the leftmost rightmost bar displayed on a chart. The integer portion of the DateTime value specifies the number of days since January 1st, 1900, and the fractional portion of the DateTime value specifies the fraction of the day since midnight. See the category [[:Category:Date_and_Time_Routines|Date & Time Routines]] for the reserved words for working with DateTime values.
:'''aiRightDispDateTimeaiRow''' - returns Identifies the DateTime symbol's row number in Scanner. Returns a positive non-zero value of the rightmost bar displayed on from a chart. The integer portion of the DateTime value specifies the number of days since January 1st, 1900, and the fractional portion of the DateTime value specifies the fraction of the day since midnight. See the category [[:Category:Date_and_Time_Routines|Date & Time Routines]] for the reserved words for working with DateTime valuesScanner application else returns 0.
:'''aiSpaceToRight''' - returns the right margin, in number of bars, of a chart.
:'''aiChartShiftPercentaiOptimizing''' - returns a value of 1 if the ChartShift calling application is currently performing an optimization, and a value of 0 in percents from Format Window -> X - Time Scale. The value is updated on the flyall other cases.
:'''aiOptimizingaiStrategyAuto''' - returns a value of 1 if the calling application is currently performing an optimizationusing [[Understanding_Automated_Trade_Execution|Automated Trade Execution]], and a value of 0 in all other cases.
:'''aiStrategyAutoaiStrategyAutoConf''' - returns a value of 1 if the calling application is using [[Understanding_Automated_Trade_Execution|Automated Trade Execution]]'''with''' Order Confirmation turned off, and a value of 0 1 in all other cases.
:'''aiStrategyAutoConfaiIntrabarOrder''' - returns a value of 1 if the calling application is using running the signal with [[Understanding_Automated_Trade_ExecutionIntraBarOrderGeneration|Automated Trade Executionintra-bar order generation]] '''with''' Order Confirmation turned offon, and a 1 value of 0 in all other cases.
:'''aiIntrabarOrderaiAppId''' - returns a value of 1 if unique non-zero integer identifying the calling application is running the signal with [[IntraBarOrderGeneration|intra-bar order generation]] turned on, and a value of 0 in all other cases.
:'''aiAppIdaiRealTimeCalc''' - returns an unique non-zero integer identifying a value of 1 if the calling applicationis performing calculation based on real-time data. Will return a value of 0 in all other cases.
:'''aiRealTimeCalcaiChartShiftPercent''' - returns a the ChartShift value of 1 if the calling application is performing calculation based on realin percents from Format Window -> X -time dataTime Scale. Will return a The value of 0 in all other casesis updated on the fly.
:<div style="background-color: #E5F6FF;">aiSimulatedTradingMode is available in MultiCharts 15 Open Beta.</div>:'''aiRowaiSimulatedTradingMode''' - Identifies the symbol's row number in Scanner. Returns — returns a positive non-zero numerical value from a Scanner application else returns , indicating Simulated trading mode:::'''0''' – No Simulated Trading is running.::'''1''' – Standard Simulated Trading mode is enabled.::'''2''' – Advanced Simulated Trading mode is enabled.
== Notes ==