Multiple Time Frames Moving Averages (x3)
Dec 9, 2020

The Multiple Time Frames Moving Averages (x3) indicator provides a streamlined interface to plot three customizable moving averages from any time frame onto a single chart, facilitating multi-timeframe trend analysis.
Usage
The Usage section focuses on how to integrate these three moving averages into a cohesive technical analysis strategy. By plotting higher time frame (HTF) averages on a lower time frame chart, traders can identify the broader market trend without switching tabs.
- Trend Identification: Users can set a long-period moving average (e.g., 200 EMA) on a Daily time frame while trading on a 15-minute chart to ensure they are trading in the direction of the primary trend.
- Dynamic Support/Resistance: Multi-timeframe averages often act as significant levels where price action reacts. When multiple averages from different time frames cluster together, it signifies a high-confluence zone.
- Crossover Strategies: The script includes built-in logic for monitoring crossovers between the averages (e.g., MA1 crossing MA2), which can be used to signal potential momentum shifts.
The visual output is color-coded based on direction: a bullish slope (current value higher than previous) is represented by green, while a bearish slope (current value lower than previous) is represented by red.
Details
This tool utilizes the request.security function to fetch data from different periodicities. It supports nine different calculation methods:
- SMA/EMA/WMA: Standard simple, exponential, and weighted calculations.
- RMA: Used primarily in RSI calculations.
- HMA: Hull Moving Average, designed to reduce lag while maintaining smoothness.
- DEMA/TEMA: Double and Triple Exponential Moving Averages for even lower lag.
- VWMA: Volume Weighted Moving Average, which incorporates trading volume into the price average.
- ALMA: Arnaud Legoux Moving Average, which uses a Gaussian distribution to provide superior smoothness and responsiveness.
Settings
- MA Type (1, 2, 3): Select the mathematical calculation used for the average (e.g., SMA, EMA, HMA, etc.).
- Length (1, 2, 3): Defines the number of periods used in the calculation for each specific average.
- Time Frame (1, 2, 3): Specifies the data periodicity for the average. Leaving this blank will default to the current chart's time frame.
FAQ
How do I interpret the color changes on the lines? The lines change color based on their directional slope. If the moving average value is higher than its previous value, it turns green; if it is lower, it turns red.
Can I use this for alerts when moving averages cross? Yes, the script includes alert conditions for crossovers between MA1/MA2 and MA2/MA3, which can be configured through the platform's alert menu.
How do I get access to the Multiple Time Frames Moving Averages (x3)? 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.