All indicators

Three Moving Averages

Jul 12, 2018

Static chart image
Support and ResistanceVolume BasedSignalsMoving Averages

The Three Moving Averages indicator provides a consolidated technical analysis tool that plots three customizable moving average lines simultaneously to help traders identify trend direction, potential reversals, and support/resistance levels.

Usage

The Usage section focuses on how these three lines interact to form a cohesive trading strategy. Traders typically use this tool to identify trend strength and momentum shifts.

  • Trend Identification: When the shorter-term moving average (e.g., MA 1) is above the medium (MA 2) and long-term (MA 3) averages, it indicates a bullish trend. Conversely, if the short-term average is below the others, a bearish trend is suggested.
  • Crossovers: The indicator includes built-in alert logic for crossovers. A "Golden Cross" (shorter MA crossing above a longer MA) can signal a potential long entry, while a "Death Cross" (shorter MA crossing below a longer MA) can signal a potential short entry.
  • Dynamic Support and Resistance: Moving averages often act as floors or ceilings for price action. By utilizing three different lengths, traders can identify multiple layers of historical price support or resistance.

To disable any specific moving average, users can uncheck the visibility box for that specific plot within the "Style" tab of the indicator settings.

Details

The script allows for high flexibility by offering multiple calculation methods for each of the three lines. These include:

  • SMA (Simple Moving Average): Calculates the average price over a specific period.
  • EMA (Exponential Moving Average): Places more weight on recent price data to reduce lag.
  • WMA (Weighted Moving Average): Assigns a linear weighting to price points.
  • VWMA (Volume-Weighted Moving Average): Weights price based on the volume traded at each level.
  • RMA (Relative Moving Average): The moving average used within the RSI calculation.
  • TEMA (Triple Exponential Moving Average): A triple-smoothed average designed to track price movements with significantly less lag than traditional EMAs.

The script also implements an offset feature, allowing the moving average plots to be shifted forward on the horizontal axis.

Settings

The settings are categorized by each individual moving average (1, 2, and 3):

  • Moving Average Type: Selects the calculation method (EMA, SMA, RMA, VWMA, WMA, TEMA).
  • Moving Average Length: Determines the lookback period used for the calculation.
  • Moving Average Source: Specifies the price data point used for calculation (e.g., Close, Open, High, Low, HL2, etc.).
  • Moving Average Offset: Shifts the moving average line forward on the chart by a specified number of bars.

FAQ

How do I change the colors of the moving averages? You can modify the color, thickness, and visibility of each moving average line by navigating to the "Style" tab in the indicator settings menu.

Can I set alerts for specific crossovers? Yes, the script is optimized for alerts and will trigger notifications when any of the three moving averages cross over or under each other.

How do I get access to the Three 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.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

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