- Quantitative Qualitative Estimation applies a multi-stage smoothing pipeline to RSI and then constructs dynamic volatility-based trailing bands aro...
Quantitative Qualitative Estimation applies a multi-stage smoothing pipeline to RSI and then constructs dynamic volatility-based trailing bands around the smoothed result. The output is a dual-line system: the QQE line (smoothed RSI) and a trailing level that follows price directionally, similar to Parabolic SAR logic. Crossovers between the QQE line and its trailing level signal momentum shifts, while crossovers of the QQE line above and below 50 indicate trend direction. The trailing level adapts to volatility through a double-EMA of RSI absolute changes, making band width contract in quiet markets and expand during volatile conditions.
## Historical Context
QQE emerged from the forex trading community in the mid-2000s, attributed to an anonymous developer and popularized through MetaTrader forums. The indicator extends Wilder's RSI concept by addressing two of its primary limitations: noise in the RSI signal and fixed overbought/oversold thresholds. The first problem is solved by EMA smoothing of the RSI output; the second by replacing static thresholds with adaptive trailing bands derived from RSI volatility. The "Quantitative Qualitative" name reflects the dual nature of the system: the quantitative RSI measurement combined with qualitative trend-following logic in the trailing level. The trailing level mechanism borrows from Welles Wilder's Parabolic SAR: it follows the smoothed RSI directionally, only reversing when the RSI breaks through. The default QQE factor of 4.236 (the square of the golden ratio $\phi^2 = 2.618... \times 1.618...$) has no documented mathematical justification but has become canonical through widespread adoption.
## Architecture & Physics
### Four-Stage Pipeline
1.**Stage 1: Wilder RSI** via RMA ($\alpha = 1/\text{rsiPeriod}$) with warmup compensation. The exponential decay factor $e = \beta^n$ tracks convergence, applying correction $c = 1/(1-e)$ until $e < 10^{-10}$.
2.**Stage 2: EMA smoothing** of RSI ($\alpha = 2/(\text{SF}+1)$) with the same warmup compensation. Produces `rsiMA`, the primary QQE line.
3.**Stage 3: Dynamic Average Range (DAR).** Computes $|\Delta \text{rsiMA}|$ bar-to-bar, then applies two consecutive EMAs with period $2 \times \text{SF} - 1$. Both EMAs use warmup compensation. The double smoothing produces a stable volatility estimate analogous to ATR but operating on the RSI domain.
4.**Stage 4: Trailing level.** Constructs upper/lower bands at $\text{rsiMA} \pm \text{qqeFactor} \times \text{DAR}$. The trailing logic follows directionally:
- If rsiMA is above the trail and was above previously: trail = max(trail, lowerBand) (ratchets up)
- If rsiMA is below the trail and was below previously: trail = min(trail, upperBand) (ratchets down)