×

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

1,327 bytes added, 31 January
== Parameters ==
:'''aiBarSpacingaiApplicationType''' - returns a value indicating — identifies the bar spacing of a chart (i.e. the value found in the ''Format Window'' -calling application:<br> ''X-Time scale screen''). :*Unknown = 0:*Chart = 1:*Scanner = 2:*Portfolio Trader = 10
:'''aiCalcReasonaiBarSpacing''' - returns a value indicating the reason for the calculation bar spacing of a chart (i.e. returns CalcReason_Default when calculation was triggered by a new bar/tick). GetAppInfo will return the value, indicating found in the reason of calculation initialization''Format Window'' -> ''X-Time scale screen'').
:: '''CalcReason_DefaultaiCalcReason''' - — returns a numerical value, indicating the reason of calculation is to be initialized initialization (i.e. returns 0 when the calculation was triggered by a new bar/tick appeared.:(CalcReason_Default)): '''CalcReason_MouseLClick''' – calculation is to be initialized after left-click on the chart.:: '''CalcReason_MouseRClick''' - calculation is to be initialized after right-click on the chart. :: '''CalcReason_Timer''' – the calculation is to be initialized after expiration of RecalcLastBarAfter timeout.
:: '''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.
:'''aiLowestDispValue''' - returns the lowest price value that could be displayed on a chart.
:'''aiLeftDispDateTime''' - returns the DateTime value 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.
:'''aiRightDispDateTime''' - returns the DateTime value of the 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.
:'''aiSpaceToRightaiRow''' - returns Identifies the right margin, symbol's row number in number of bars, of Scanner. Returns a positive non-zero value from a chartScanner application else returns 0.
:'''aiOptimizingaiSpaceToRight''' - returns a value the right margin, in number of 1 if the calling application is currently performing an optimizationbars, and of a value of 0 in all other caseschart.
:'''aiStrategyAutoaiOptimizing''' - returns a value of 1 if the calling application is using [[Understanding_Automated_Trade_Execution|Automated Trade Execution]]currently performing an optimization, and a value of 0 in all other cases.
:'''aiStrategyAutoConfaiStrategyAuto''' - 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 1 value of 0 in all other cases.
:'''aiIntrabarOrderaiStrategyAutoConf''' - returns a value of 1 if the calling application is running the signal with using [[IntraBarOrderGenerationUnderstanding_Automated_Trade_Execution|intra-bar order generationAutomated Trade Execution]] '''with''' Order Confirmation turned onoff, and a value of 0 1 in all other cases.
:'''aiAppIdaiIntrabarOrder''' - returns an unique non-zero integer identifying a value of 1 if the calling applicationis running the signal with [[IntraBarOrderGeneration|intra-bar order generation]] turned on, and a value of 0 in all other cases.
:'''aiAppId''' — returns a unique non-zero integer identifying the calling application.  :'''aiRealTimeCalc''' - returns a value of 1 if the calling application is performing calculation based on real-time data. Will return a value of 0 in all other cases. :'''aiChartShiftPercent''' — returns the ChartShift value in percents from Format Window -> X - Time Scale. The value is updated on the fly. :<div style="background-color: #E5F6FF;">aiSimulatedTradingMode is available in MultiCharts 15 Open Beta.</div>:'''aiSimulatedTradingMode''' — returns a numerical value, 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 ==