×

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

Changes

Jump to navigation Jump to search

GetAppInfo

184 bytes added, 14:39, 25 October 2019
== Parameters ==
:'''aiApplicationType''' - Identifies — identifies the calling application:<br>
:*Unknown = 0
:*Chart = 1
:*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.
:'''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.
:'''aiRow''' - Identifies the symbol's row number in Scanner. Returns a positive non-zero value from a Scanner application else returns 0.
:'''aiSpaceToRight''' - returns the right margin, in number of bars, of a chart.
:'''aiOptimizing''' - returns a value of 1 if the calling application is currently performing an optimization, and a value of 0 in all other cases.
:'''aiStrategyAuto''' - returns a value of 1 if the calling application is using [[Understanding_Automated_Trade_Execution|Automated Trade Execution]], and a value of 0 in all other cases.
:'''aiStrategyAutoConf''' - 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 in all other cases.
:'''aiIntrabarOrder''' - returns a value of 1 if the calling application is running the signal with [[IntraBarOrderGeneration|intra-bar order generation]] turned on, and a value of 0 in all other cases.
:'''aiAppId''' - returns an 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.
== Notes ==

Navigation menu