Attachments forums

List of attachments posted on this forum.


All files on forums: 163115

Re: Moving Average indicators for MT4

mrtools, Tue May 25, 2021 1:08 am

Chintzki wrote: Mon May 24, 2021 3:08 pm Would it be easy to easy to explain the difference please? Maybe I have been using ATR wrong this whole time =X
Best explanation I can give is a quote and example from Mladen: 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
All files in topic