RSI-2
By LuxAlgoJun 17, 2026
RSI-2 is an indicator on Vela, our next-generation charting platform, written in Pine Script®.
RSI-2 runs Wilder's RSI at a two-bar lookback, turning the oscillator into a fast gauge of short-term stretch, and builds the published mean-reversion workflow around it. The definitive clean build of RSI-2 adds the two price-chart averages the rules call for: a 200-bar trend filter deciding tradable direction, and a 5-bar exit average tracking the resolving close. Setups print as triangles on the price chart; the pane carries 90/10 bands and a gradient fill around the 50 midline.
How to Trade the RSI-2?
- Long setup: RSI-2 stretched below the oversold band with price above the trend filter, buying a routine pullback inside an uptrend.
- Short setup: the mirror image, a stretch above the overbought band with price below the filter.
- Exit: a long resolves on the first close back above the exit average, a short on the first close back below it.
- Raw stretches: the band-crossing alerts fire regardless of regime, usable for scaling out into a spike rather than initiating.
A new setup is only marked once the previous one has resolved through the exit average.
RSI-2 Settings
- RSI Length (default 2) and Source (default close): the oscillator itself.
- Overbought Level (default 90) and Oversold Level (default 10): at a two-bar length the classic 70/30 bands trigger constantly, so the meaningful levels sit further out.
- Consecutive Readings (default 1): closes beyond a band required to qualify a setup; 2 reproduces the stricter two-reading variant.
- Trend Filter Length (default 200): the regime moving average drawn on the price chart.
- Exit Average Length (default 5): the short average the resolution is read against.
- Style toggles draw the trend filter, exit average and setup markers (default enabled) plus exit markers (default disabled), with the Gradient Fill (default enabled).
Frequently Asked Questions
Free to use
Run it on Vela. Go further with a paid plan.
- Up to 500 Custom Alerts, with webhook automation
- Up to 10× the chart history of Free
- Orderflow lookback up to full history
- More Quant usage to customize it, plus extra usage when you need it
- Futures data alongside crypto, stocks, forex and commodities
Related indicators
Run it on Vela. Make it yours with Quant.
Open this indicator free on Vela, our next-generation charting platform. Then ask Quant, our coding agent built into Vela, to retune it or turn it into a backtested strategy of your own.





