Skip to content
All library documents

Calculating ATR with Wilder Smoothing in MQL5

Article MQL5 code base

Summary

The document introduces an MQL5 implementation of Average True Range that calculates the indicator without calling the platform’s built-in ATR function. It explains ATR as a volatility measure derived from true range values and describes Wilder smoothing as a way to smooth changes in the resulting series.

The post presents the code as a practical implementation, but the supplied text does not include the code body, calculation steps, comparison against the built-in indicator, or test results. It also makes a historical distinction between the original ATR and later use of Wilder smoothing, without detailing that distinction. The implementation’s accuracy and behavior therefore cannot be assessed from the document alone; it is most useful as an introduction to the indicator’s purpose and smoothing concept.

Key ideas

  • ATR uses true range to describe price volatility.
  • Wilder smoothing reduces fluctuations in the ATR series.
  • The post presents an implementation that avoids the built-in MQL5 ATR function.
  • No implementation details, validation results, or trading rules are provided in the text.

Tags

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