There are differences between the values returned by the ATR indicator and a function implementation of the algorithm. I also created ATR in Excel. Finally I created a version that implements wilder's smoothing, but this made the difference worse.
Written Function (below) = Excel but != ATR(14)
Open/High/Close and period were confirmed to be the same.
The delta is much larger than can be explained by precision (up to 10%). Is there a different average to be used than Sma?
Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.