PROTECTED SOURCE SCRIPT
LBR Medallion Jim Simmons Mean Reversion Regime Filtered

Linda Bradford Raschke's Mean Reversion Strategy Inspired by Quantitative Approaches
This is a short-term mean reversion strategy that attempts to capture small inefficiencies when price deviates from a dynamic mean (EMA), confirmed by volatility bands (ATR-based), RSI extremes, and an ADX filter to avoid strong trends.
Core Logic:
- Entry Long: Price below lower band (EMA - mult * ATR), RSI oversold, ADX below threshold (ranging market)
- Entry Short: Price above upper band, RSI overbought, ADX low
- Optional filters:
- Regime: Aligns with higher-timeframe trend (price >/< Daily EMA200)
- Volume: Requires above-average volume for confirmation
- Exits: Either fixed ATR-based TP/SL or reversion to EMA
Designed primarily for ranging or mildly trending markets on liquid assets (e.g., XAUUSD 4H tested). It performs best in non-trending conditions; strong trends can lead to drawdowns.
Features:
- Market-neutral long/short capability
- Volatility-adjusted bands for adaptive deviation
- Toggleable regime and volume filters
- Visual plots for EMA, bands, and daily regime line
Usage Recommendations:
- Timeframe: 1H to 4H (tested on 4H XAUUSD)
- Assets: High-liquidity instruments (forex pairs, indices, commodities)
- Risk: Use proper position sizing (1-2% risk per trade recommended). Backtest on your symbol/timeframe.
- This is not financial advice. Past performance does not guarantee future results. Trading involves substantial risk of loss.
No external dependencies or repainting issues. Educational/experimental script.
Feedback welcome — happy to discuss improvements!
This is a short-term mean reversion strategy that attempts to capture small inefficiencies when price deviates from a dynamic mean (EMA), confirmed by volatility bands (ATR-based), RSI extremes, and an ADX filter to avoid strong trends.
Core Logic:
- Entry Long: Price below lower band (EMA - mult * ATR), RSI oversold, ADX below threshold (ranging market)
- Entry Short: Price above upper band, RSI overbought, ADX low
- Optional filters:
- Regime: Aligns with higher-timeframe trend (price >/< Daily EMA200)
- Volume: Requires above-average volume for confirmation
- Exits: Either fixed ATR-based TP/SL or reversion to EMA
Designed primarily for ranging or mildly trending markets on liquid assets (e.g., XAUUSD 4H tested). It performs best in non-trending conditions; strong trends can lead to drawdowns.
Features:
- Market-neutral long/short capability
- Volatility-adjusted bands for adaptive deviation
- Toggleable regime and volume filters
- Visual plots for EMA, bands, and daily regime line
Usage Recommendations:
- Timeframe: 1H to 4H (tested on 4H XAUUSD)
- Assets: High-liquidity instruments (forex pairs, indices, commodities)
- Risk: Use proper position sizing (1-2% risk per trade recommended). Backtest on your symbol/timeframe.
- This is not financial advice. Past performance does not guarantee future results. Trading involves substantial risk of loss.
No external dependencies or repainting issues. Educational/experimental script.
Feedback welcome — happy to discuss improvements!
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarle liberamente e senza alcuna limitazione – ulteriori informazioni qui.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarle liberamente e senza alcuna limitazione – ulteriori informazioni qui.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.