Skip to content
All library documents

Using ATR to Adapt Trend Envelope Thresholds Across Timeframes

Article MQL5 code base

Summary

The document describes a trend envelope indicator that uses average true range (ATR) to set the price movement threshold for identifying whether a trend has changed. This replaces a fixed percentage change threshold used by a classical version of the indicator.

Its rationale is that a percentage threshold may react too slowly or too quickly at different timeframes, while ATR offers a volatility based measure of price movement. The document points to a comparison on a daily chart, claiming a large difference between the ATR version and the classical calculation and suggesting that the classical trend definition needs adjustment. It provides no underlying settings, quantitative performance results, or broader testing across instruments and timeframes, so the claimed improvement is not established by the excerpt.

Key ideas

  • The indicator uses ATR to determine the price move needed to signal a trend change.
  • The classical version instead uses a percentage change threshold.
  • The document argues that a fixed percentage can behave inconsistently across timeframes.
  • A daily chart comparison is cited, but no performance data or testing details are supplied.

Tags

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