Skip to content
All library documents

Confirming Moving-Average Trends with Slope Direction Line Signals

Article MQL5 code base

Summary

This indicator compares the direction of a Moving Average with that of a Slope Direction Line and displays a color-coded pointer in a separate window. A green pointer indicates that both lines point upward, while a red pointer indicates that both point downward. When their directions do not match, the pointer is gray. The indicator calculates the Slope Direction Line internally, so users do not need to add that indicator separately.

Its settings allow users to choose the period, calculation method, and applied price for each of the two lines. The description frames the display as a trend-following confirmation tool and says it is equivalent to a related candle-based indicator. It does not specify entry or exit rules, parameter recommendations, or testing results. Matching line directions may help organize trend information, but the description alone does not establish that the signals predict price movements or account for lag, changing market conditions, or trading costs.

Key ideas

  • The indicator compares the directions of a moving average and a Slope Direction Line.
  • Green marks agreement on an upward direction, and red marks agreement on a downward direction.
  • Gray marks cases where the two line directions do not match.
  • Users can configure each line's period, calculation method, and applied price.
  • The description provides no standalone entry 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.