Indicators: momentum (RSI, MACD, Stochastic, ADX)
The Momentum group holds twelve classic oscillators drawn in a pane: RSI, MACD, Stochastic, Stoch RSI, CCI, ROC, Williams %R, Momentum, MFI, TSI, ADX/DMI and Vortex. They run continuously across sessions and only read bar OHLC and volume.
Senzoukria · Documentation · Updated September 2026
Where to find it
- Where
- Chart toolbar → Indicators → group "Library · Momentum"
- Target
- Dedicated pane for every study
- Session reset
- None; oscillators keep their memory across the 17:00 CT anchor
- Data
- OHLC bars (MFI also uses bar volume); no tick-size dependency
What it does
RSI uses Wilder smoothing: the seed is the simple mean of the first N gains and losses, then avg = (avg·(N−1) + x)/N. A flat window (both averages zero) yields no value instead of 100; all gains gives 100, all losses gives 0. MACD is EMA(fast) − EMA(slow) with the signal EMA computed on the defined suffix of the MACD line and a histogram only where both exist. Stochastic is the slow variant: raw %K over N bars, %K = SMA(kSmooth), %D = SMA(dPeriod). Stoch RSI applies the same stochastic to the Wilder RSI series.
CCI uses Lambert's 0.015 constant and mean deviation. ROC is the percent change over N bars; Momentum is the raw difference. Williams %R mirrors the stochastic on a −100..0 scale. MFI is a rolling sum of positive and negative typical-price flows, not a Wilder average. TSI double-smooths the momentum with EMAs (SMA seed). ADX/DMI is Wilder's, with sums smoothed as S = S − S/N + x and DX not accumulated when the true-range sum is zero. Vortex uses rolling sums of N.
Settings
| Study | Setting | Default (range) | What it changes |
|---|---|---|---|
| RSI | Period | 14 (2–200) | Wilder smoothing length |
| MACD | Fast EMA / Slow EMA / Signal | 12 (1–200) / 26 (1–500) / 9 (1–200) | Two EMAs and the signal EMA; four color settings for line, signal, histogram + and − |
| Stochastic | %K period / %K smoothing / %D period | 14 (1–200) / 3 (1–50) / 3 (1–50) | Lookback, then two SMA stages |
| Stoch RSI | RSI period / Stoch period / %K smoothing / %D period | 14 (2–200) / 14 (1–200) / 3 / 3 | RSI length, stochastic window, smoothing |
| CCI | Period | 20 (2–200) | Typical-price SMA and mean-deviation window |
| ROC | Period | 12 (1–200) | Percent change reference distance |
| Williams %R | Period | 14 (1–200) | Highest-high / lowest-low window |
| Momentum | Period | 10 (1–200) | Raw close difference distance |
| MFI | Period | 14 (1–200) | Rolling flow window |
| TSI | Long smoothing / Short smoothing | 25 (1–200) / 13 (1–200) | Two EMA stages |
| ADX/DMI | Period | 14 (1–200) | Wilder sums; colors for +DI, −DI and ADX |
| Vortex | Period | 14 (1–200) | Rolling VM+/VM−/TR sums |
How to use it
Each study opens its own pane under the chart. Multi-line studies (MACD, Stochastic, Stoch RSI, ADX/DMI, Vortex) expose a color per line in the settings panel. Use the search field to reach a study by name; the Study guide card describes its measure and required data.
Because these oscillators never reset at the session boundary, they are comparable to the same study on another platform after the warm-up, provided the smoothing convention matches (Wilder for RSI and ADX, SMA-seeded EMA for MACD and TSI).
Limits and pitfalls
- Zero denominators produce a gap, never a zero: a flat stochastic window, a zero true-range sum, a flat RSI window or a zero MFI flow all leave the pen up.
- RSI on a flat market shows nothing where a Pine script would show 100; this deviation is deliberate.
- MACD histogram points only exist where both the MACD line and its signal are defined; the histogram cannot represent a gap.
- ADX/DMI needs N + 1 bars before the first DI value, and N DX values before the first ADX.
- Values describe past bars; they are not a forecast and are not tied to any order routing.
Related pages
- Oscillators (AO, TRIX, KST, Fisher)
- Volatility studies
- Volume studies
- RSI study
- MACD study
- ADX/DMI study
- Learn: footprint trading
This page in other languages
Frequently asked questions
- Which smoothing does the RSI use?
- Wilder's. The seed is a simple average over the first N changes, after which each new gain or loss is blended with weight 1/N. This matches TradingView's rsi() and ATAS.
- Why does the ADX start later than +DI and −DI?
- +DI and −DI appear at index N; the ADX needs N DX values first, so its first point arrives N bars later. When the true-range sum is zero, that bar's DX is not fed to the ADX.