Skip to content
All library documents

Classifying MACD Conditions with Zero-Line and Signal-Line Rules

Article MQL5 code base

Summary

This indicator classifies MACD conditions using the relationship between the MACD line, its signal line, and the zero line. It marks a bullish condition when the signal line is below MACD while MACD is above zero. It marks a bearish condition when the signal line is above MACD while MACD is below zero. All other combinations receive a neutral label. The calculation uses configurable fast EMA, slow EMA, signal-line periods, and applied price.

The description explains the classification logic but provides no market examples, backtest, or evidence about predictive value. The labels summarize indicator state rather than define a complete trading system: entry timing, exits, position sizing, and risk management are unspecified. Users would need to evaluate the rules on their chosen markets and timeframes before relying on them.

Key ideas

  • The indicator compares the MACD line with its signal line and checks MACD’s position relative to zero.
  • It labels MACD above zero with the signal line below it as bullish.
  • It labels MACD below zero with the signal line above it as bearish.
  • Every other configuration is assigned a neutral label.
  • The description supplies no performance evidence or complete trade-management rules.

Tags

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