Displaced Moving Average Channel (DMA)
Oct 12, 2020

The Displaced Moving Average Channel (DMA) indicator provides a visual channel constructed from moving averages of high and low prices shifted horizontally to help traders identify dynamic support and resistance zones and gauge market volatility.
Usage
The Usage section describes how the script can be used to interpret price action and market trends.
- Support and Resistance: The upper band (High DMA) and lower band (Low DMA) act as dynamic barriers. In an uptrend, price often stays above the High DMA or finds support at the Low DMA. In a downtrend, price tends to stay below the Low DMA or find resistance at the High DMA.
- Volatility Measurement: The width of the channel—the spread between the high and low moving averages—serves as a visual representation of recent price range volatility. A widening channel suggests increasing volatility, while a narrowing channel indicates consolidation.
- Trend Identification: Price closing above the upper band may signal a bullish breakout or trend continuation, while a close below the lower band may indicate a bearish breakdown.
Details
The DMA Channel is constructed using two Simple Moving Averages (SMA). One average is calculated based on the high prices of the specified length, and the other is calculated based on the low prices.
The "Displaced" element refers to the horizontal shift applied to these averages. By shifting the channel forward or backward on the x-axis, the indicator attempts to reduce noise and align moving average reactions with price cycles. This concept was inspired by the work of Philip Erlanger, who utilized displaced moving averages to better visualize the strength and underlying structure of a trend.
Settings
- Length of MA: Determines the lookback period used to calculate the Simple Moving Averages of the high and low prices. A higher value results in a smoother, slower-reacting channel.
- Bar Displacement: Controls the number of bars the channel is shifted forward (positive value) or backward (negative value) on the chart.
FAQ
How does displacement affect the indicator? Displacement shifts the calculated moving averages horizontally. This helps in aligning the indicator with specific market cycles and can reduce the frequency of "whipsaw" signals that occur with traditional moving averages.
What do crossovers of the DMA channel signify? A price crossover above the High DMA typically indicates bullish momentum, while a crossunder below the Low DMA indicates bearish momentum. The script includes built-in alert conditions for these specific events.
How can I access the Displaced Moving Average Channel? 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.