All indicators

Madrid Moving Average Ribbon by abhijeet

Aug 31, 2018

Static chart image
SignalsMoving Averages

The Madrid Moving Average Ribbon indicator provides a comprehensive visual representation of market momentum and trend direction by plotting a sequence of nineteen moving averages with dynamic color coding based on trend strength.

Usage

The Usage section describes how the script can be used to identify market conditions and potential trade entries.

  • Trend Identification: The ribbon's expansion and contraction visualize the strength of a trend. A widening ribbon suggests increasing momentum, while a narrowing ribbon indicates potential consolidation or reversal.
  • Color-Coded Momentum: The indicator uses four distinct color states to categorize market sentiment:
    • Strong Green: Bullish momentum where the MA is rising and the lead MA is above the 200-period reference.
    • Weak Red: Bullish exhaustion or retracement where the MA is falling despite being above the 200-period reference.
    • Strong Red: Bearish momentum where the MA is falling and the lead MA is below the 200-period reference.
    • Weak Green: Bearish exhaustion or recovery where the MA is rising despite being below the 200-period reference.
  • Trend Reversals: Traders can monitor the crossover between the 10-period lead MA (MMA05) and the 200-period reference MA (MMA100) to identify the start of new bullish or bearish cycles.

Details

The Madrid Moving Average Ribbon is an enhanced version of the classic ribbon concept, originally authored by @abhijeetshende. It calculates 19 different moving averages with periods ranging from 10 to 200 (10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180, and 200).

The script utilizes a specific logic to determine the color of each line, comparing the current slope of the MA against the relationship between the shortest (10-period) and longest (200-period) averages. This allows for a more nuanced view of price action than traditional single-line indicators. The script also includes built-in alert conditions for trend shifts, specifically when the lead MA crosses the reference MA.

Settings

  • Exponential MA: This toggle determines the calculation type for all 19 lines. When enabled, the script uses Exponential Moving Averages (EMA); when disabled, it uses Simple Moving Averages (SMA).

FAQ

What is the significance of the 200-period Moving Average in this script? The 200-period MA acts as the "Reference MA," serving as the primary baseline for determining the long-term trend direction and influencing the color logic of all other ribbon components.

Can I use this indicator for short-term scalping? While designed for trending markets, the ribbon can be applied to lower timeframes to visualize short-term momentum shifts, though it is generally most effective on timeframes where trends are more established.

How can I access the Madrid Moving Average Ribbon? 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.