Skip to content
All library documents

On-Chart MACD with the Slow EMA as Its Baseline

Article MQL5 code base

Summary

The document explains an on-chart variant of MACD in which the slow exponential moving average serves as the zero baseline on the main price chart. Users can adjust the fast EMA period, slow EMA period, signal period, and applied price. The raw difference is formed by subtracting the slow EMA baseline from the fast EMA; the signal line adds a simple moving average of that difference to the baseline, and the histogram displays the difference between the fast EMA and signal line.

This is a description of indicator construction rather than a trading strategy. It provides formulas but no guidance on interpreting crosses, selecting parameter values, or entering and exiting positions, and it includes no tests or performance evidence. The calculation may help readers understand how the plotted lines relate to moving averages, but traders would need to verify the implementation and evaluate it on their own market and timeframe before relying on it.

Key ideas

  • The indicator plots MACD components on the main price chart.
  • The slow EMA acts as the baseline for the signal line and histogram.
  • The fast EMA, slow EMA, signal period, and applied price are configurable.
  • The document defines the indicator formulas but gives no trade rules or performance evidence.

Tags

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