TASC 2021.11 MADH Moving Average Difference, Hann
Oct 14, 2021

The TASC 2021.11 MADH Moving Average Difference, Hann indicator provides a smoothed oscillator designed to identify market cycles and trends by applying Hann windowed finite impulse response (FIR) filters to price data.
Usage
The Usage section describes how the script can be used to analyze market momentum and trends. The indicator functions as an oscillator that fluctuates around a center zero line, providing visual cues for potential entry and exit points.
- Trend Identification: When the MADH line is above zero, it indicates a bullish posture, while values below zero suggest a bearish trend. Users can select the "ZeroCross" color scheme to highlight these transitions.
- Momentum Shifts: By observing the slope of the oscillator, traders can identify shifts in momentum before a zero-line crossover occurs. The "Momentum" color scheme highlights when the line is rising or falling.
- Cycle Tuning: The sensitivity of the indicator can be adjusted via the Short Length and Dominant Cycle settings. A shorter length increases responsiveness to price fluctuations, while a higher dominant cycle value smooths the output to focus on broader market movements.
Details
The MADH indicator is an evolution of the Moving Average Difference (MAD) concept developed by John Ehlers and featured in the November 2021 issue of Technical Analysis of Stocks & Commodities (TASC) magazine.
The core mechanism involves two independent Hann windowed FIR filters. These filters use different observation periods: a "Short Length" and a length derived from the "Dominant Cycle." Unlike a standard Simple Moving Average (SMA), the Hann windowed FIR filter applies a specific weighting to the data points, which results in a smoother output with reduced lag and less noise. The final value is calculated as the percentage difference between these two filters, creating a rate-of-change oscillator. This specific implementation is optimized for computational efficiency while maintaining the mathematical integrity of Ehlers' original formula.
Settings
- Source: The price data used for the calculations, typically set to "Close."
- Short Length: Manages the lower band edge of the oscillator, determining the sensitivity of the faster filter.
- Dominant Cycle: A parameter used to define the longer filter period, often adjusted to match the underlying market cycle.
- Line Width: Adjusts the thickness of the MADH plot on the chart.
- Color Scheme: Switches the visual logic between "ZeroCross" (color based on the line's relation to zero) and "Momentum" (color based on the direction of the line's slope).
FAQ
How does MADH differ from a standard MAD indicator? MADH utilizes Hann windowed FIR filters instead of standard moving averages, providing a smoother wave form that is more resistant to market noise.
What are the primary signals provided by this indicator? The primary signals include zero-line crossovers for trend changes and slope reversals for momentum shifts.
How can I access the TASC 2021.11 (MADH) Moving Average Difference, Hann indicator? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.