Swing Index (Indicator)
Input Information
Name | Expression | Default | Description |
ColorNormLength | Numeric | 14 | Number of bars over which to normalize the indicator for gradient coloring. |
UpColor | Numeric | Yellow | Color to use for indicator values that are relatively high over ColorNormLength bars. Set to -1 to disable gradient color plotting. |
DnColor | Numeric | Cyan | Color to use for indicator values that are relatively low over ColorNormLength bars. Set to -1 to disable gradient color plotting. |
GridForegroundColor | Numeric | Black | Color to use for numbers in RadarScreen cells when gradient coloring is enabled, that is, when both UpColor and DnColor are set to non-negative values. |
Market Synopsis
The Swing Index indicator assigns a Swing Index value from 0 to 100 for an up bar and 0 to -100 for a down bar. This indicator uses the current bar's Open, High, Low, and Close as well as the previous bar's Open and Close to calculate the Swing Index values. If the Swing Index crosses over 0, a short-term price increase is likely. Conversely, a cross below 0 suggests a decline in market price. A larger or smaller swing index value indicates the severity of the market's increase or decline in price.
Plot Information
Number | Name | Default Color | Description |
Plot1 | SwingX | Yellow/Cyan | Plots the SwingIndex value. |
Plot2 | ZeroLine | Dark Green | Plots a reference line at zero. |
When applied to a chart, this indicator displays two plots in a separate subgraph from the price data.
Set either UpColor and/or DnColor to -1 to disable gradient plot coloring. When disabled, Plot1 color is determined by settings in indicator properties dialog box. Plot2 (ZeroLine) color always comes from indicator properties dialog box.