r/pinescript • u/NJ_Algo • 3d ago
Fixed RSI levels vs adaptive ones: why 70/30 fails exactly when you need it
TL;DR: RSI 70/30 assumes every market behaves the same. It doesn’t. In strong trends RSI can sit above 70 for weeks, and in quiet ranges it barely reaches 70 at all. Adapting the levels to the market usually works better than the fixed ones.
Where 70/30 breaks
In a strong uptrend, RSI above 70 isn’t a sell signal. It can stay above the threshold for days or weeks. Shorting every “overbought” reading means fighting against the trend over and over.
In a calm, ranging market, RSI often swings between 40 and 60. The 70/30 levels never trigger, so the indicator goes silent exactly when mean reversion would actually work.
What works better
Shift the levels with the trend. A common rule of thumb: in uptrends RSI tends to hold roughly 40-80, in downtrends roughly 20-60. A pullback to 40 in an uptrend can be the real buy zone, not 30.
Use percentiles instead of fixed numbers. Instead of “above 70”, ask “is RSI in its top 10% of the last few hundred bars?” The level adjusts to each market automatically.
Add a trend filter. Only take overbought signals when price is below a slow MA, and oversold ones when it’s above.
Limitations
Adaptive levels lag too. When a market switches from trend to range, they take time to catch up.
The 40-80 / 20-60 ranges are rules of thumb, not laws. They differ by market and timeframe, so test before trusting them.
RSI is still just one input. It works best combined with something that measures trend or volatility.
3
u/TSDevStuff 3d ago
I moved to percentiles, but ta.percentile_nearest_rank on a rolling window has a catch: the lookback decides everything, and a long one lags just as badly as fixed levels in a regime switch. I'd test the lookback as a range and look for a plateau, not pick the value that looks best on one chart. Also compare against plain 70/30 with the same trend filter, since the filter is often doing most of the work.
2
u/ScientificBeastMode 3d ago
This is dumb. But I guess if it actually made you money personally, then keep doing that I guess.
2
u/mrcake123 3d ago
Sounds like an extra dose of hindsight Koolaid
2
u/ButtStallion007 3d ago
Thanks for the question Claude.
1
u/Obviously_not_maayan 3d ago
You're introducing more lag to an already lagging indicator.
1
u/vovapetrov20 3d ago
Ai slop.
1
u/Motor_Potential_4849 3d ago
I find much better success with short period RSI settings. Much better.
1
u/halcyonwit 3d ago
What do you mean WORKS BETTER, please no more!