MTF Multiple Moving Averages V0
Apr 28, 2015

The MTF Multiple Moving Averages indicator provides a comprehensive multi-timeframe visualization of various moving average types to help traders identify trend confluence across different degrees of resolution.
Usage
The MTF Multiple Moving Averages tool is used to identify trend direction and potential support or resistance levels across multiple timeframes simultaneously. By plotting averages from higher timeframes onto the current chart, traders can observe how short-term price action interacts with long-term trends.
Common usage scenarios include:
- Trend Confluence: Identifying when price is above or below moving averages across several timeframes (e.g., 15m, 1h, and 4h) to confirm a strong directional bias.
- Dynamic Support/Resistance: Using higher timeframe averages as potential areas where price may find floor or ceiling liquidity.
- Mean Reversion: Observing the distance between the current price and higher timeframe averages to gauge overextended market conditions.
The tool allows users to toggle between 0 and 8 additional timeframe layers. When multiple timeframes are enabled, the indicator highlights the relationship between the current price and each specific timeframe's average through color-coded plots (typically green for bullish positioning and red for bearish).
Details
The script utilizes the request.security function to fetch data from higher timeframes. It applies a uniform calculation method (length and type) across all selected resolutions to ensure consistency in the technical analysis.
The indicator supports several calculation methods:
- Standard Averages: Simple (SMA), Exponential (EMA), Weighted (WMA), and Relative (RMA).
- Hull Variations: The Hull Moving Average (HMA) and a specialized Weighted Hull Moving Average (WHMA).
- WHMA Logic: The WHMA implementation uses a threshold-based filter. It only updates the average value if the source price moves beyond a specific percentage (threshold) of the previous average value, effectively filtering out minor price fluctuations or "noise."
To maintain visual clarity, the indicator uses different plot styles (lines, circles, and crosses) to differentiate between the base timeframe and the various higher timeframe resolutions.
Settings
- Select number of visible TimeFrames: Determines how many multi-timeframe plots (from 0 to 8) are displayed on the chart.
- Timeframe 1-8: Sets the specific timeframe for each respective moving average layer (e.g., 15, 60, 240, 1D).
- MA Type: Selects the mathematical model for the averages (SMA, EMA, WMA, RMA, HMA, or WHMA).
- MA Source: The price data point used for the calculation (e.g., Close, Open, High, Low).
- MA Length: The lookback period used for the moving average calculation across all timeframes.
- WHMA Threshold: Sets the sensitivity for the Weighted Hull Moving Average; higher values require larger price movements to update the average.
FAQ
How do I interpret the colors of the moving averages? The plots are color-coded based on the price's position relative to the average. When the current price is above a specific timeframe's average, the plot turns green (bullish), and when the price is below, it turns red (bearish).
Can I use different lengths for different timeframes? No, this specific tool is designed to use a synchronized length across all selected timeframes to provide a consistent view of a specific "cycle" or "interval" across the market's hierarchy.
How can I access the MTF Multiple Moving Averages 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.