KNN-VR Volume Expansion Strategy
Family: trend_following · Regime: trending · Complexity: high · Asset classes: FX, Indices, Commodities · Timeframes: M15, H1
Thesis
Market trends are most tradable when a volume-weighted direction (Direction) is confirmed by a multi-layered MA envelope (Confirmation) and triggered by a sudden volatility expansion (Entry). By using KNN to classify trend strength, we can avoid standard 'lagging' indicators, while the Volatility Ratio ensures we only enter when momentum is accelerating. The 'market_structure' diagnostic acts as a synthetic metadata check to ensure data integrity before execution.
Components
- For in string test fixture (regime) — Acts as a 'heartbeat' regime filter; the strategy only executes when the computational diagnostic score reaches 111 (a+bb+ccc), ensuring the data-stream processing is at peak resolution.
- Volume SuperTrend AI (Expo) (direction) — Determines the core trend direction using volume-weighted baselines and KNN classification to filter out noise found in standard SuperTrends.
- Volatility Ratio (VR) (entry) — Acts as the mechanical entry trigger by identifying bars where price expansion (True Range) significantly exceeds the historical average (ATR).
- TopTrend (BBands Stop) (exit) — Provides a volatility-adjusted trailing stop-loss that locks in profits based on Bollinger Band contractions.
- Spread Display and Alert (risk) — Calculates the transaction friction; trades are inhibited if the bid-ask spread exceeds the volatility-adjusted threshold.
- XARD Channel (confirmation) — Provides high-timeframe trend alignment; used to confirm that the short-term KNN signal is supported by the 144-period EMA envelope.
- TimeBlocks (Multifunctional Period Separator) (volatility_filter) — Filters entries based on VWAP balance; prevents 'buying the high' by ensuring price is within the predicted range extensions of the current hourly block.
Known failure conditions
- XARD Channel MA 144 remains flat for > 50 bars while price oscillates through it.
- Volatility Ratio (VR) consistently prints < 1.0 during directionally strong moves (indicating a 'slow bleed' trend).
- SuperTrend AI KNN classification oscillates between Bullish/Bearish labels on consecutive bars (low-confidence regime).
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).