PROTECTED SOURCE SCRIPT
MRL Slim — SuperBuy/Sell + Bands (v6.4)

MRL — Mean Reversion Bands + Super Buy/Sell (RSI-10)
What it does
This overlay plots a mean-reversion line (linear regression of price) with k·σ bands and adds clean RSI-10 signals on the chart.
Signals (tags on price):
SB = Super Buy: fires when RSI(10) (on close) crosses down through your oversold threshold (default 29).
– Capped to 2 touches per cycle; the cycle resets when RSI crosses above 50 (configurable).
SS = Super Sell (71): fires when RSI(10) crosses up through your overbought threshold (default 71).
SS80 = Super Sell (Hard):
– Fires on cross above 80, and (optionally) again while RSI ≥ 80 using a cooldown to prevent spam.
– Per-cycle cap = 2 by default; you can let hard sells bypass the cap.
Bands & Source
Bands are built around a linreg mean of your chosen Source (default hlc3).
Toggle Log Space to make bands act percent-like on long histories/trending assets.
Filters (optional)
Price ≥ Upper Band required for sells.
Mean slope down required for sells.
(Disable if you want every RSI event, even in strong trends.)
Debug (optional)
Turn on Debug to see raw RSI crosses/touches and why a signal was blocked (e.g., cap, band, slope, cooldown).
Separate toggle to show/hide CAP dots.
Tips
For fast charts or very strong momentum, consider loosening the sell filters or shortening the HARD cooldown.
If your panel RSI shows signals you don’t see on price: ensure you’re comparing RSI(10, close) on the same timeframe.
Disclaimer
For research/education only. Not financial advice; always manage risk.
What it does
This overlay plots a mean-reversion line (linear regression of price) with k·σ bands and adds clean RSI-10 signals on the chart.
Signals (tags on price):
SB = Super Buy: fires when RSI(10) (on close) crosses down through your oversold threshold (default 29).
– Capped to 2 touches per cycle; the cycle resets when RSI crosses above 50 (configurable).
SS = Super Sell (71): fires when RSI(10) crosses up through your overbought threshold (default 71).
SS80 = Super Sell (Hard):
– Fires on cross above 80, and (optionally) again while RSI ≥ 80 using a cooldown to prevent spam.
– Per-cycle cap = 2 by default; you can let hard sells bypass the cap.
Bands & Source
Bands are built around a linreg mean of your chosen Source (default hlc3).
Toggle Log Space to make bands act percent-like on long histories/trending assets.
Filters (optional)
Price ≥ Upper Band required for sells.
Mean slope down required for sells.
(Disable if you want every RSI event, even in strong trends.)
Debug (optional)
Turn on Debug to see raw RSI crosses/touches and why a signal was blocked (e.g., cap, band, slope, cooldown).
Separate toggle to show/hide CAP dots.
Tips
For fast charts or very strong momentum, consider loosening the sell filters or shortening the HARD cooldown.
If your panel RSI shows signals you don’t see on price: ensure you’re comparing RSI(10, close) on the same timeframe.
Disclaimer
For research/education only. Not financial advice; always manage risk.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.