Returns a numeric value that refers to an attribute of the calling application based on a specified keyword.
nInfoConstant is a keyword (reserved word starting with 'ai') used to request information about a specific application attribute (see nInfoConstant column in table below).
nInfoConstant |
Meaning |
Return |
aiAppId
|
A unique number used to identify the calling application. |
Returns a non-zero value. |
aiApplicationType
|
Identifies the calling application |
cUnknown = 0
cChart = 1
cRadarScreen = 2
cOptionStation = 3
cScanner = 4
cPortfolioMaestro = 5 cTradingApp = 6
|
aiBarSpacing
|
Identifies the number of spaces displayed between bars on a chart. |
Returns a positive non-zero value when called from a chart otherwise returns 0. |
aiBidAskModel
|
Retained for backward compatibility. |
|
aiHighestDispValue
|
Identifies highest possible value of the underlying data visible on the screen for which the analysis technique is plotted. Note that this value is only useful if the chart is visible in the active workspace and the value is only updated when a new trade or barclose occurs. |
Returns the highest displayed value when called from a chart otherwise returns 0. |
aiIntraBarOrder |
Identifies whether a strategy is set use intrabar order generation. |
Return 1 if intrabar orders are to be generated. |
aiLeftDispDateTime
|
Identifies date and time of the first (leftmost) bar displayed on the chart. |
Returns a DateTime(double) value when called from a chart otherwise returns 0. |
aiLowestDispValue
|
Identifies lowest possible value of the underlying data visible on the screen for which the analysis technique is plotted. Note that this value is only useful if the chart is visible in the active workspace and the value is only updated when a new trade or barclose occurs. |
Returns the lowest displayed value when called from a chart otherwise returns 0. |
aiMacroConf
|
Identifies whether the calling application will display the macro confirmation dialog. |
Returns 1 if macro confirmation is enabled otherwise returns 0. |
aiMacroEnabled
|
Identifies whether the calling application can execute a macro. |
Returns 1 if macros are enabled otherwise returns 0. Note that if the EasyLanguage code contains no macros 0 will be returned. |
aiOptimizing
|
Identifies whether the calling application is currently performing an optimization. |
Returns 1 if the calling application is currently performing an optimization otherwise returns 0. This will return 0 when called from RadarScreen or OptionStation since currently these applications do not allow strategy testing. |
aiOptionStationPane
|
Retained for backward compatibility. |
|
aiPercentChange
|
Identifies whether the chart is displayed as a percent change chart. |
Returns 1 if the chart is displayed using percent change else returns 0. If not called from a chart this will return 0. |
aiPlotAcctCurrency
|
Identifies the state of the strategy properties "Base Currency" setting. |
Returns 1 if the currency setting is Account and 0 if the currency setting is Symbol. |
aiPricingModel
|
Retained for backward compatibility. |
|
aiRealTimeCalc
|
Identifies whether the calling application is calculating as a result of a real-time trade. |
Returns 1 if the calculation results from a real-time trade otherwise 0 is returned. |
aiRightDispDateTime
|
Identifies date and time of the last (rightmost) bar displayed on the chart. |
Returns a DateTime(double) value when called from a chart otherwise returns 0. |
aiRow
|
Identifies the symbol’s row number in RadarScreen. |
Returns a positive non-zero value from a RadarScreen application else returns 0. |
aiSpaceToRight
|
Identifies the number of bar spaces inserted to the right of the last bar on a chart. |
Returns a non-zero value when called from a chart else returns 0. |
aiStrategyAuto
|
Identifies whether the calling application is automating a strategy. Intended for use within a strategy. |
Returns 1 if the calling application is currently automating a strategy otherwise returns 0. Note that this will always return 0 when called from any type of analysis technique. |
aiStrategyAutoConf
|
Identifies whether the calling application is automating a strategy using order confirmation. Intended for use within a strategy. |
Returns 0 if the calling application is currently automating a strategy with order confirmation turned off otherwise returns 1 (even if no strategy is applied). Note that this will always return 0 when called from any type of analysis technique. |
aiVolatilityModel
|
Retained for backward compatibility. |
|
The value returned by GetAppInfo depends on the keyword specified. GetAppInfo can be called multiple times to return different application values.
The following EasyLanguage instructions are used to check for RadarScreen as the calling application and then return the row of the calling symbol.: