MT5 standard indicators EMA and ATR strange calculations?

 

These great pages describe how well-known standard indicators are calculated. (With calculation examples)

https://www.earnforex.com/guides/average-true-range/
https://www.earnforex.com/guides/what-is-moving-average/


However, when compared, these do not match those of MT5. 

The help at https://www.metatrader5.com/en/terminal/help/indicators is useless for exact calculation.

Does anyone know what questionable methods (roundings?) MT5 uses?


Peter

Average True Range (ATR)
  • www.earnforex.com
Read a Forex article on the following topic: Average True Range (ATR)
 
A5005: These great pages describe how well-known standard indicators are calculated. (With calculation examples). However, when compared, these do not match those of MT5. Does anyone know what questionable methods (roundings?) MT5 uses?

Look under the "<data folder>/MQL5/Indicator/Examples" folder for the example code:

  • ATR.mq5
  • Custom Moving Average.mq5