Multiple Timeframe Moving Average System
Jun 5, 2018

The Multiple Timeframe Moving Average System indicator provides a comprehensive framework for plotting up to five independent moving averages from different timeframes and calculation methods on a single chart to identify multi-layered trend confluence.
Usage
The Multiple Timeframe Moving Average System is used to visualize institutional-grade support and resistance levels across various intervals without switching chart views. Traders can use this tool to:
- Identify Trend Confluence: When multiple moving averages from higher timeframes (e.g., Daily, Weekly) align with lower timeframe averages, it indicates a strong trend direction.
- Multi-Interval Support/Resistance: Use higher timeframe MAs as dynamic targets or stop-loss levels.
- Trend Filtering: Determine the primary market bias by observing price action relative to the custom-defined averages.
The tool supports nine different moving average types, including SMA, EMA, HullMA, and McGinley Dynamic, allowing for various sensitivity levels. For example, a trader could plot a 20-period SMA from a 1-hour timeframe alongside a 200-period EMA from a Daily timeframe to monitor short-term momentum against long-term structure.
Details
The script incorporates logic derived from ChrisMoody, RicardoSantos, and Ricardo M Arjona. It utilizes the request.security function to fetch data from different timeframes and applies specific calculation logic for various MA types:
- McGinley Dynamic: Adjusted to remain more reactive to price movements while filtering noise.
- HullMA: Designed to reduce lag while maintaining smoothness.
- LSMA (Least Squares Moving Average): Uses linear regression to project where price "should" be, including an offset parameter for further customization.
- TEMA (Triple EMA): Provides even less lag than standard EMAs by calculating a triple-smoothed average.
The indicator color-codes the plotted lines based on the relationship between the current price and the moving average: green when price is above the average and red when below.
Settings
- Source: Determines the price data used for all moving average calculations (e.g., Close, Open, High, Low).
- How many Moving Averages?: Sets the number of active moving averages displayed on the chart (1 to 5).
Individual MA Settings (MA 1 - 5)
- Enable MA: Toggles the visibility of the specific moving average.
- Type: Selects the calculation method (SMA, EMA, WMA, HullMA, VWMA, RMA, TEMA, McGinley, or LSMA).
- Timeframe: The specific chart interval the average is calculated from (e.g., 60m, 240m, Daily).
- Lookback: The period or length used for the calculation.
- LSMA Offset: Specifies the offset value used only when the LSMA type is selected.
FAQ
How do I use this for trend confirmation? You can look for "stacking" where the faster/lower timeframe averages are above the slower/higher timeframe averages, indicating a confirmed bullish trend across multiple horizons.
Can I set the timeframes to be lower than my current chart? While technically possible, the indicator is optimized for "MTF" (Multiple Timeframe) analysis where you view higher timeframe data on a lower timeframe chart to see the "big picture."
How do I access the Multiple Timeframe Moving Average System? 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.