×

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

868 bytes removed, 11:12, 7 February 2012
no edit summary
Returns a numerical value, representing the specified attribute of the calling application.
==== Usage ====
<syntaxhighlight>GetAppInfo(Attribute)</syntaxhighlight>
==== Parameters ==== [[aiBarSpacing]] - specifies return of the number of spaces between the bars on a chart GetAppInfo will return a value, indicating the bar spacing of a chart.
[[aiHighestDispValue]] :'''aiBarSpacing''' - specifies return returns a value indicating the bar spacing of a chart (i.e. the highest price value that could be displayed found in the current chart window GetAppInfo will return the highest price value that could be displayed on a chart''Format Window'' -> ''X-Time scale screen'').
[[aiLowestDispValue]] :'''aiHighestDispValue''' - specifies return of returns the lowest price value that could be displayed in the current chart window GetAppInfo will return the lowest highest price value that could be displayed on a chart.
[[aiLeftDispDateTime]] :'''aiLowestDispValue''' - specifies return of returns the date and time of the leftmost bar displayed in the current chart window GetAppInfo will return the DateTime lowest price value of the leftmost bar that could be 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.
[[aiRightDispDateTime]] :'''aiLeftDispDateTime''' - specifies return of the date and time of the rightmost bar displayed in the current chart window GetAppInfo will return returns the DateTime value of the rightmost leftmost bar displayed on a chart; the . 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.
[[aiSpaceToRight]] :'''aiRightDispDateTime''' - returns the DateTime value of the rightmost bar displayed on a chart. The integer portion of the DateTime value specifies return the number of the right margindays since January 1st, in bars1900, and the fractional portion of the current chart window GetAppInfo will return DateTime value specifies the right margin, in bars, fraction of a chartthe day since midnight. See the category [[:Category:Date_and_Time_Routines|Date & Time Routines]] for the reserved words for working with DateTime values.
[[aiOptimizing]] :'''aiSpaceToRight''' - specifies return returns the right margin, in number of a numerical valuebars, indicating whether the calling application is currently performing an optimization GetAppInfo will return a value of 1 only if the calling application is currently performing an optimization, and a value of 0 in all other caseschart.
[[aiStrategyAuto]] :'''aiOptimizing''' - specifies return of a numerical value, indicating whether the calling application is using Automated Trade Execution GetAppInfo will return returns a value of 1 only if the calling application is using Automated Trade Executioncurrently performing an optimization, and a value of 0 in all other cases.
[[aiStrategyAutoConf]] :'''aiStrategyAuto''' - specifies return of a numerical value, indicating whether the calling application is using Automated Trade Execution with order confirmation turned off GetAppInfo will return returns a value of 0 only 1 if the calling application is using [[Understanding_Automated_Trade_Execution|Automated Trade Execution with order confirmation turned off]], and a value of 1 0 in all other cases.
[[aiIntrabarOrder]] :'''aiStrategyAutoConf''' - specifies return of a numerical value, indicating whether the calling application is running the signal with intra-bar order generation turned on GetAppInfo will return returns a value of 1 only if the calling application is running the signal using [[Understanding_Automated_Trade_Execution|Automated Trade Execution]] '''with intra-bar order generation ''' Order Confirmation turned onoff, and a value of 0 1 in all other cases.
[[aiAppId]] :'''aiIntrabarOrder''' - specifies return of returns a numerical value, used to identify of 1 if the calling application GetAppInfo will return is running the signal with [[IntraBarOrderGeneration|intra-bar order generation]] turned on, and a unique non-zero integer identifying the calling applicationvalue of 0 in all other cases.
[[aiRealTimeCalc]] :'''aiAppId''' - specifies return of a numerical value, indicating whether the calling application’s calculations are based on realreturns an unique non-time data GetAppInfo will return a value of 1 only if zero integer identifying the calling application’s calculations are based on real-time data, and a value of 0 in all other casesapplication. ==== Example ====<syntaxhighlight>GetAppInfo(aiBarSpacing) will return a value, indicating the bar spacing of a chart
GetAppInfo(aiStrategyAutoConf) will return :'''aiRealTimeCalc''' - returns a value of 0 1 if the calling application is using Automated Trade Execution with order confirmation turned off; otherwise, will performing calculation based on real-time data or on PlayBack data. Will return a value of 1 0 in all other cases.
== Examples ==<syntaxhighlight>GetAppInfo(aiRealTimeCalcaiBarSpacing) will </syntaxhighlight>Will return a value indicating the bar spacing of 1 if the calling application’s calculations are based on real-time data; otherwise, will return a value of 0</syntaxhighlight> chart.
<syntaxhighlight>GetAppInfo(aiStrategyAutoConf)</syntaxhighlight>
Will return a value of 0 if the calling application is using Automated Trade Execution with order confirmation turned off; otherwise aiStrategyAutoConf will return a value of 1.
 
<syntaxhighlight>GetAppInfo(aiRealTimeCalc)</syntaxhighlight>
Will return a value of 1 if the calling application’s calculations are based on real-time or PlayBack data; otherwise, will return a value of 0.
[[Category:Environment Information]]

Navigation menu