All indicators

Multicolor MACD 12 & 26 period

Apr 15, 2018

Static chart image
SignalsOscillators

The Multicolor MACD 12 & 26 period indicator provides a visually enhanced momentum tracking experience by applying a dynamic color-coding system to the standard Moving Average Convergence Divergence histogram. This tool helps traders quickly identify the strength and direction of price momentum relative to signal line crossovers.

Usage

The Multicolor MACD 12 & 26 period can be used to identify trend changes and momentum shifts.

  • Histogram Momentum: The histogram changes color based on both its position relative to the zero line and its direction compared to the previous bar.
    • Bright Green: Histogram is above zero and rising (increasing bullish momentum).
    • Dull Green: Histogram is above zero but falling (fading bullish momentum).
    • Bright Red: Histogram is below zero and falling (increasing bearish momentum).
    • Dull Red: Histogram is below zero but rising (fading bearish momentum).
  • Crossovers: Traders typically look for the MACD Line (Blue) crossing the Signal Line (Orange). A bullish crossover occurs when the MACD line moves above the signal line, while a bearish cross occurs when it moves below.

Details

This script implements the classic MACD calculation using exponential moving averages (EMA) for the fast and slow components. The MACD line is the difference between these two EMAs, and the Signal Line is a simple moving average (SMA) of that difference. The histogram represents the distance between the MACD Line and the Signal Line. The primary modification in this version is the visual logic applied to the histColor variable, which provides four distinct states to better represent momentum exhaustion or acceleration.

Settings

Inputs

  • Fast Length: The period for the shorter-term exponential moving average (Default: 12).
  • Slow Length: The period for the longer-term exponential moving average (Default: 26).
  • Signal Length: The period for the signal line calculation (Default: 9).

FAQ

How do I use the Multicolor MACD 12 & 26 period?

Apply the indicator to your chart and observe the color transitions in the histogram to gauge momentum strength, alongside the standard blue and orange line crossovers for entry/exit signals.

What do the colors signify?

Bright colors indicate accelerating momentum in that direction, while faded/dull colors indicate that the momentum is slowing down or "pulling back" toward the signal line.

How can I get access?

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.