Skip to content
All library documents

Using MACD Signal-Line Direction and Zero Level as a Momentum Filter

Article MQL5 code base

Summary

The document describes a directional filter for automated trading based on the MACD signal line. Long conditions are enabled when the signal line is above zero and its latest completed bar is higher than the prior bar. Short conditions are enabled when the line is below zero and its latest bar is lower than the prior bar. The combined level and direction checks are intended to keep trades aligned with momentum.

An indicator named MACD Signal Line color-codes qualifying long conditions green and short conditions red. The description does not specify MACD settings, how signals interact with entries or exits, or whether decisions use completed bars in a way that avoids intrabar changes. It provides no backtest or performance evidence, so the filter’s effectiveness and suitability across instruments or timeframes remain unestablished.

Key ideas

  • The filter allows long signals when the MACD signal line is positive and rising.
  • It allows short signals when the signal line is negative and falling.
  • The zero level sets directional bias, while the line’s recent change confirms direction.
  • The indicator colors qualifying long and short conditions differently for visual filtering.
  • No parameter settings or performance tests are provided.

Tags

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