+1 888 340 6572

GetAppInfo: Difference between revisions

From MultiCharts
Line 13: Line 13:
:'''aiBarSpacing''' - returns a value indicating the bar spacing of a chart (i.e. the value found in the ''Format Window'' -> ''X-Time scale screen'').  
:'''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 the reason for the calculation (i.e. returns CalcReason_Default when calculation was triggered by a new bar/tick). GetAppInfo will return the value, indicating the reason of calculation initialization.
:'''aiCalcReason''' - returns a numerical value, indicating the reason of calculation initialization (i.e. returns 0 (CalcReason_Default) when calculation was triggered by a new bar/tick):


:: '''CalcReason_Default''' - calculation is to be initialized when the new bar/tick appeared.
:: '''0 (CalcReason_Default)''' - calculation is to be initialized when the new bar/tick appeared.
:: '''CalcReason_MouseLClick''' – calculation is to be initialized after left-click on the chart.
:: '''1 (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.  
:: '''2 (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.
:: '''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). 


:'''aiHighestDispValue''' - returns the highest price value that could be displayed on a chart.  
:'''aiHighestDispValue''' - returns the highest price value that could be displayed on a chart.