Linear Regression Stability & Money Flow Exhaustion
Family: trend_following · Regime: trending · Complexity: medium · Asset classes: Forex, Equities, Indices · Timeframes: H1, H4, D1
Thesis
Market trends are most exploitable when price dispersion (Standard Error) is low, indicating a high degree of consensus among participants. This 'linear' behavior persists until volume-weighted momentum (MFI) reaches an exhaustion point, at which the trend's probability of continuation drops significantly. This strategy enters only during 'clean' trends and exits when the inflow of capital (Money Flow) reaches statistical extremes.
Components
- Indicator Sample (Template) (regime) — Ensures symbol maturity and data integrity by requiring a minimum threshold of historical bars before allowing trade logic to initialize.
- PineForge demo (direction) — Uses the current closing price relative to its historical position to define the immediate directional bias.
- Arrows Indicator Template (entry) — Acts as the execution trigger when price breaks the recent range during periods of linear trend stability.
- Money Flow Index (MFI) (exit) — Identifies exhaustion points where volume-weighted momentum suggests a trend reversal or cooling period, signaling the exit.
- TMA Risk Panel (risk) — Calculates dynamic position sizing and stop loss based on ATR to normalize risk across varying volatility regimes.
- Standard Error of Regression (STDERR) (volatility_filter) — Filters for 'high-quality' trends by measuring price dispersion around a linear regression; lower values indicate a stable, predictable trend.
Known failure conditions
- The symbol remains in a permanent high-STDERR state (persistent erratic volatility).
- MFI fails to reach exhaustion levels during extended parabolic moves, leading to uncapped losses on the exit side.
- The strategy's dependency on linear regression fails in highly non-linear, news-driven environments.
Explore the full interactive blueprint, parameter ranges and evidence on WOBR StrategyVerse, or generate this strategy as an MT4/MT5 Expert Advisor with QuantMogul AI Engine.