1. The Market Philosophy¶
This script’s investment thesis is rooted in Momentum Persistence. It operates on the principle that once a directional trend is established and filtered for noise, it is more likely to continue than to reverse. The strategy’s raison d’être is not to predict tops or bottoms but to quantify the “pressure” and “health” of an existing trend. It uses Heikin Ashi candles as its foundational input, subscribing to the theory that their averaging mechanism effectively smooths price action, revealing the underlying directional bias by filtering out the chaotic noise of investor indecision in choppy markets. This provides a cleaner signal from which to measure momentum.
2. The Trade Narrative¶
The script is engineered to engage when the market tells a story of emerging, confirmed directional strength. The ideal setup is not a sudden event but a developing regime shift. It begins with price action consolidating its direction enough to flip the Heikin Ashi trend. This initial shift is captured by the oscillator crossing its zero line. For a high-conviction signal, this nascent momentum must then be validated by a confluence of factors: the oscillator’s value must accelerate (evidenced by its own internal moving average crossovers), and this movement should ideally align with the broader trend context provided by the higher-timeframe oscillator plot. The narrative is one of a groundswell, not a flash flood.
3. Trigger Logic & Mechanics¶
The script’s brilliance lies in its layered, multi-stage analysis of a single, robust input.
Why these indicators? The core input is a signed, normalized value derived from the Heikin Ashi candle’s range and direction. This converts the visual HA trend into a quantifiable momentum series. This series is then fed into either a direct moving average (“Range Base”) or a complex, noise-reducing ladder of EMAs (“Blend Engine”). This creates a primary oscillator. Subsequent indicators like MA crossovers and a Volume-Weighted Average are applied to this oscillator, not to price, to measure the momentum’s own rate-of-change and conviction.
How do filters improve the signal-to-noise ratio? The Heikin Ashi base is the first filter. The “Blend Engine” provides a second, powerful smoothing filter by averaging multiple Fibonacci-based EMAs. Finally, the higher-timeframe (HTF) overlay acts as a strategic regime filter, preventing trades against a dominant, larger-degree trend.
What is the catalyst? The script flips from “observing” to signaling a high-probability setup when there is a confluence of confirmation. The initial catalyst is the oscillator crossing zero. However, the true trigger for strategic consideration is the alignment of this event with a bullish/bearish crossover of the oscillator’s own signal lines, indicating that momentum is not just positive/negative, but also accelerating.