All indicators

Magic Moving Averages!

May 30, 2017

Static chart image
Support and ResistanceSignalsMoving Averages

The Magic Moving Averages indicator provides a visualization of trend momentum and price structure through six simple moving averages with incremental periods.

Usage

The Magic Moving Averages (MMA) tool is used primarily to identify trend direction and potential entry points based on the expansion or contraction of the moving average ribbon. When the moving averages are fanned out in a specific order (fastest on top for bullish, slowest on top for bearish), it signifies a strong established trend.

Traders often use this tool to:

  • Identify Trend Strength: A wider spread between the lines suggests high volatility and strong momentum, while a tightening of the lines indicates consolidation or a potential trend reversal.
  • Execute Crossovers: Signals are often derived from the fastest moving average (SMA 1) crossing over or under the slowest moving average (SMA 6).
  • Support and Resistance: The ribbon of averages acts as a dynamic zone where price may find support during retracements in a trending market.

This tool is most effective on timeframes of 15 minutes or higher. Users can adjust the "MA Separation" input to expand or contract the period gap between each average to suit different market conditions or asset classes.

Details

The script is constructed using six Simple Moving Averages (SMA). The period for each average is determined by a multiplier applied to the user-defined "MA Separation" value.

The periods are calculated as follows:

  • SMA 1: 1 × Separation
  • SMA 2: 2 × Separation
  • SMA 3: 3 × Separation
  • SMA 4: 4 × Separation
  • SMA 5: 5 × Separation
  • SMA 6: 6 × Separation

This methodology ensures a uniform distribution of the averages across the price action. The visual component includes color-coded fills between the lines to enhance readability. The concept is based on methods popularized by Alex du Plooy, utilizing standard default values often found in professional forex trading environments.

Settings

  • MA Separation: This integer value determines the distance between the periods of the six SMAs. For example, a value of 4 creates SMAs with periods of 4, 8, 12, 16, 20, and 24. Increasing this value creates a wider ribbon that responds more slowly to price changes.

FAQ

How do I interpret the colors of the ribbon? The ribbon uses a gradient from green (fastest) to red (slowest). When the green lines are above the red lines, the market is in a bullish configuration. When the red lines are above the green lines, the market is in a bearish configuration.

What are the built-in alerts for this indicator? The script includes automated alerts for "Bullish Magic MA Crossovers" and "Bearish Magic MA Crossunders," which trigger when the fastest moving average crosses the slowest moving average on a bar close.

How can I access Magic Moving Averages? 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.