RSI — Relative Strength Index
What it measures: Momentum / overbought-oversold zone (0-100)
When to use it: Mean-reversion: RSI < 30 = oversold (look for a long), > 70 = overbought. In trend-following, use it as a range filter to avoid entering at momentum extremes (e.g. strategy "007" uses 50-75)
Typical period: 14
Caution: Uses Wilder RMA — reproducing it yourself with SMA gives a different value. In strong trends RSI can sit in the OB/OS zone for a long time, don't fade the trend with RSI alone
Formula the engine actually uses
RS = RMA(gain, period) / RMA(loss, period); RSI = 100 − 100/(1+RS)
smoothing: Wilder RMA — ewm(alpha=1/period), not SMA (the values differ noticeably) · warmup: ~3×period