All indicators

6 Moving Averages with MTF v1.0

Mar 30, 2020

Static chart image
SignalsMoving Averages

The 6 Moving Averages with MTF v1.0 indicator provides a versatile multi-timeframe suite featuring six independent moving averages with eleven selectable calculation methods to enhance trend analysis and crossover detection.

Usage

The Usage section describes how the script can be used, examples should be provided in this section. This tool allows traders to plot up to six different moving averages simultaneously on a single chart, reducing the need for multiple indicator slots.

Traders can utilize this script for:

  • Trend Identification: By using different periods (e.g., a 50-period and 200-period MA), users can identify long-term vs. short-term market sentiment.
  • Multi-Timeframe (MTF) Analysis: Each of the six averages can be set to a different timeframe resolution. For example, you can plot the Daily SMA 200 on a 1-hour chart to maintain perspective on higher-timeframe resistance levels.
  • Crossover Strategies: The script includes built-in alert conditions for price crossing an MA or for MA0 crossing MA1, facilitating the execution of momentum-based strategies.

Details

The script integrates several calculation methods adapted from common technical analysis libraries, including contributions from @JustUncleL. The following 11 moving average types are supported:

  1. Simple Moving Average (SMA): The arithmetic mean of the price.
  2. Exponential Moving Average (EMA): Reduces lag by applying more weight to recent prices.
  3. Weighted Moving Average (WMA): Assigns a linear weighting to the data points.
  4. Volume Weighted Moving Average (VWMA): Weights the average based on volume activity.
  5. Smoothed Moving Average (SMMA): A longer-term moving average that provides a very smooth line.
  6. Double Exponential Moving Average (DEMA): Reduces lag further than a standard EMA.
  7. Triple Exponential Moving Average (TEMA): Uses multiple EMA calculations to eliminate even more lag.
  8. Hull Moving Average (HullMA): A fast and smooth average designed to reduce lag while improving smoothing.
  9. Triangular Moving Average (TMA): An average that is smoothed twice, emphasizing the middle portion of the data series.
  10. Super Smoother Moving Average (SSMA): A digital filter-based average used to remove noise without adding significant lag.
  11. Zero Lag Exponential Moving Average (ZEMA): An EMA variation designed to track price closely by neutralizing lag.

Settings

  • MAs Source: Determines the price data used for all calculations (e.g., Close, Open, High, Low).
  • Show MA (0-5): A toggle to enable or disable the visibility of each specific moving average on the chart.
  • MA Type: A dropdown menu to select one of the 11 calculation methods (SMA, EMA, SSMA, etc.) for that specific line.
  • MA Length: Sets the lookback period for the moving average calculation.
  • TF (Timeframe): Defines the resolution for the calculation. If left empty, it defaults to the current chart timeframe.

FAQ

How do I use higher timeframe moving averages on my current chart? In the settings for any of the six MAs, locate the "TF" field and select your desired higher timeframe (e.g., "Daily" or "4H"). The script will fetch that data and plot it alongside your current chart timeframe.

Can I set different calculation types for each of the six lines? Yes, each of the six moving averages is fully independent. You can have MA0 set as a 10-period SSMA and MA5 set as a 200-period SMA simultaneously.

How can I access 6 Moving Averages with MTF v1.0? 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.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.