Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Indicator | ATR

This one is for the "purists"

The way how the code example provided with metatrader 5 calculates ATR (Average True Range) is, for the sake of speed of execution, using the approximation of what should be a simple moving average (SMA) of TR (True Range). While it produces results very, very similar to simple moving averages, it is still not it. This version is doing that (calculating without an approximation) and it is doing it without slowing down either - the speed of execution will be the same for any period calculated. And it does not require any additional buffer allocation

MetaTrader Experts, Indicators, Scripts and Libraries

MetaTrader Experts, Indicators, Scripts and Libraries

25402