AdvanceDeclineDiff (Function)
The AdvanceDeclineDiff series function calculates the cumulative difference between advancing versus declining data sets; both data sets must be present in the same chart.
Syntax
AdvanceDeclineDiff(AdvIssues,DecIssues)
Returns (Integer)
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.
Difference = x - y
You will need to create a multidata chart with both advancing issues and declining issues in the chart to use this function.
This is a cumulative calculation type function, meaning that the current bar’s value for this function is based on the values of all previous bars.
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 difference between the Close of Data1 (Advancing Issues symbol) and the Close of Data2 (Declining Issues symbol) to Value1; then plots Value1:
Value1 = AdvanceDeclineDiff(Close of Data1, Close of Data2);
Plot1(Value1, "AdvDecDiff");