All Strategies
Mean Reversion

RSI Mean Reversion

Buy oversold, sell overbought — the simplest counter-trend strategy that still works in range-bound markets.

RSI mean reversion buys when RSI(14) drops below 30 and exits above 70. It fails badly in strong trends — a stock can stay overbought for weeks — so it only earns its keep on range-bound symbols or with an ADX/MA regime filter. Tighter thresholds (25/75) reduce trade count but improve win rate.

rsi-mean-reversion.pinePine Script v5
//@version=5
strategy("RSI Mean Reversion", overlay=true)

rsi_len = input.int(14, "RSI Length")
oversold = input.int(30, "Oversold Level")
overbought = input.int(70, "Overbought Level")

rsi_val = ta.rsi(close, rsi_len)

if rsi_val < oversold
    strategy.entry("Long", strategy.long)

if rsi_val > overbought
    strategy.close("Long")

Deploy RSI Mean Reversion as a Live Bot

Backtest on real data, then run it 24/7 on your MT5 account.

Get Started Free

We use cookies for analytics and ads measurement. See our privacy policy.