Skip to content
All library documents

A Trend Indicator Based on the Difference Between Two Moving Averages

Article MQL5 code base

Summary

TrendManager is described as an indicator that compares two moving averages and treats the market as trending when their difference exceeds a trigger threshold. The document gives a configurable threshold expressed in chart points, but does not explain how the two averages are calculated, how their periods are selected, or whether direction is inferred from the sign of their difference. It therefore outlines a basic trend-detection rule rather than a complete trading system.

The page notes that the implementation depends on a separate smoothing-algorithm library for MetaTrader 5. It references a related technical explanation of the library and identifies the indicator as translated from Russian. There are no charts available in the supplied text, trading rules for entries or exits, tests, or performance results. Users would need the referenced library and implementation details to reproduce the indicator, and would need to evaluate its threshold and behavior for their own instruments and timeframes.

Key ideas

  • The indicator identifies a trend when the difference between two moving averages exceeds a configurable threshold.
  • The threshold is specified in price chart points.
  • The document does not state the moving-average periods or fully describe how trend direction is determined.
  • The MetaTrader implementation relies on a separate smoothing-algorithm library.
  • No trading performance evidence or complete entry and exit method is provided.

Tags

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