Step 1
How it works
The script scores RSI lengths by historical RSI/MA cross performance, selects an Optimal RSI, and can average or KNN-filter recent optimal values. It is intended for adaptive RSI exploration rather than guaranteed parameter selection.
- RSI length scoring
- Optimal RSI selection
- Simple-average and KNN modes
- Optional bullish/bearish filtering
- Adaptive overbought and oversold context


