MAPE-Filtered Matrix Momentum
Family: trend_following · Regime: trending · Complexity: medium · Asset classes: Forex, Equities · Timeframes: H1, H4
Thesis
Price momentum is only tradable when 'price noise' (measured by MAPE) is low and historical liquidity is established. By filtering for low-error trends and using session-start volatility as a target-setting mechanism, we capture stable trend extensions while avoiding whipsaws caused by spread spikes.
Components
- Indicator Sample (Bar Count Logger) (regime) — Used as a 'minimum maturity' filter to ensure the symbol has sufficient historical liquidity and data density before applying quantitative logic.
- Unsupported matrix.sort method in UDF (Diagnostic) (direction) — Acts as the primary trend direction filter by comparing the 'sorted' 1x1 matrix (current close) against its previous state to confirm a positive or negative price slope.
- MACD Demo Implementation (entry) — Provides the primary execution trigger based on the convergence/divergence of short and medium-term exponential moving averages.
- ATR Fib (exit) — Provides fixed price targets based on session-start volatility. Exit logic is dictated by Fibonacci extensions of a user-defined ATR range.
- Spread Display and Alert (risk) — Governs trade viability; if current spread exceeds a threshold, the trade is discarded. Used to calculate a minimum stop distance.
- Momentum (MOM) (confirmation) — Confirming signal to ensure the MACD cross is supported by an acceleration in price velocity over a 10-period lookback.
- Mean Absolute Percentage Error (MAPE) (volatility_filter) — Filters out 'high-noise' environments. If the error between price and its mean is too high, the trend is considered erratic and untradable.
Known failure conditions
- Price remains flat for extended periods causing the MAPE to approach zero while MACD produces horizontal whipsaws.
- Static ATR input in ATR Fib fails to adapt to sudden market regime shifts (e.g., central bank interventions).
- Total bar count is high but recent volume/liquidity has vanished.
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).