AdvanceDeclineRatio (Function)
The AdvanceDeclineRatio function calculates the ratio between advancing versus declining data sets, both data sets must be present in the same chart.
Syntax
AdvanceDeclineRatio(AdvIssues,DecIssues)
Returns (Double)
A positive or negative number for the current bar.
Parameters
| Name | Type | Description |
| AdvIssues | Numeric | Specifies a the advancing issues price data series. Normally the Close of Data1 referencing the close of an advancing issues symbol. |
| DecIssues | Numeric | Specifies a the declining issues price data series. Normally the Close of Data2 referencing the close of a declining symbol. |
Remarks
Traditionally, this calculation has been used with NYSE advancing issues and declining issues data to provide a gauge of market activity and volatility without regard to price direction, but both the NASDAQ and AMEX stock exchanges also provide this information.
Ratio = x / y
You will need to create a multidata chart with both advancing issues and declining issues in the chart to use this function.
Advancing issues and Declining issues symbols for the three major stock exchanges can be found using the symbol lookup feature. For more information, see Using the Symbol Lookup Feature.
The TradeStation Data Network symbols for NYSE advancing and declining issues are $ADV and $DECL.
Example
Assigns the cumulative ratio between the Close of Data1 (Advancing Issues symbol) and the Close of Data2 (DecIining issues symbol) to Value1; then plots Value1:
Value1 = AdvanceDeclineRatio (Close of Data1, Close of Data2);
Plot1(Value1, "AdvDecR");