Skip to content
All library documents

MACD Divergence Signals and Line Styles

Article MQL5 code base

Summary

This document describes an indicator that identifies divergence between price and the MACD, draws divergence lines, and marks signals with colored arrows. Bullish divergence appears in green and bearish divergence in red. The indicator also includes alerts, though the document does not explain how to configure them or how the signals are calculated.

Classic divergence is shown with a solid line, while reversed divergence uses a dotted line. The text says this version was rewritten from an earlier indicator to improve performance and fix a bug. It provides no testing results, examples, or rules for entering or exiting trades, so the indicator’s predictive value and practical limitations cannot be assessed from the description alone.

Key ideas

  • The indicator marks MACD divergence with lines and colored arrows.
  • Bullish and bearish divergence use green and red lines, respectively.
  • Solid and dotted lines distinguish classic from reversed divergence.
  • Alerts are included, but their settings and signal performance are not described.

Tags

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