RWI Persistence Pullback System
Family: trend_following · Regime: trending · Complexity: medium · Asset classes: FX, Equities, Crypto · Timeframes: H1, H4, D1
Thesis
The strategy assumes that price movement is usually a random walk, but transitions into 'persistent' trends where displacement significantly exceeds the expected standard deviation of a random walk. By using the Random Walk Index to identify these 'non-random' windows, the strategy enters on momentum-confirmed pullbacks (Stochastic/MACD) and utilizes a zero-lag trend-following exit to capture the meat of the move while exiting quickly when the persistence fails.
Components
- Random Walk Index (RWI BTF) (regime) — Acts as a volatility/trend filter to ensure we are not trading in a mean-reverting 'random walk' state (RWI > 1.0).
- EMA Test Fixture (Unsupported For-In Reassignment) (direction) — Provides the primary trend bias. Despite the inert loop in the source code, the functional EMA calculation defines the directional filter.
- Stochastic Oscillator (entry) — Identifies local oversold/overbought conditions within the larger trend for high-probability pullback entries.
- Zero Lag Least Squares Moving Average (ZLSMA) (exit) — Used for trend-following exits. Its zero-lag properties allow for faster capture of trend exhaustion compared to standard MAs.
- Point Based Grid (risk) — Provides a structural 'point-based' framework for setting Stop Losses and calculating position size based on fixed volatility increments.
- MACD (confirmation) — Confirms that momentum has resumed in the direction of the trend following a Stochastic pullback.
Known failure conditions
- RWI stays below 1.0 for extended periods, indicating a permanent shift to low-volatility ranging price action.
- The 50-period EMA flattens, resulting in price 'whipsawing' across the EMA line.
- High correlation between MACD and Stochastic leads to redundant signals without sufficient lag reduction.
Explore the full interactive blueprint with parameter ranges and evidence on WOBR StrategyVerse, or generate this strategy as an MT4/MT5 Expert Advisor with QuantMogul AI Engine (free download).