Skip to content
All library documents

MACD Variants, Crossover Signals, and Chart Overlays

Article TradingView scripts

Summary

This document explains MACD as a trend and momentum indicator, then presents an overlay that lets users choose among traditional MACD, a histogram-based variant, a reduced-lag leader calculation, or source-adaptive smoothing. Fast and slow moving averages form the core calculation; a signal average and histogram provide additional views of momentum. The overlay scales these values onto the price chart and can mark crossovers or shade the gap between the MACD and signal lines.

The script generates early alerts at a crossover and a second alert on the following bar, and the accompanying explanation discusses signal-line crosses, zero-line crosses, divergence, and the relationship between moving-average crosses and zero-line crosses. It describes common interpretations rather than presenting tested profitability or measured results. MACD uses lagging moving averages, and crossovers can produce false signals; divergence and trend context also require interpretation. The document provides no performance study or rules for validating signals across markets and timeframes.

Key ideas

  • MACD compares fast and slow moving averages to represent trend and momentum.
  • The overlay offers traditional, histogram-driven, reduced-lag, and source-adaptive calculation methods.
  • Signal-line crossovers, zero-line crossings, and divergence are described as distinct forms of information.
  • The indicator can issue an early crossover alert and a follow-up alert on the next bar.
  • MACD signals can fail, and the document provides no backtest evidence of their profitability.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.