Average True Range (ATR)

As I am in the middle of changing my charting platform from Alpari MT4 to FXCM MT4, due to FXCM MT4 got weekend data (time zone: GMT), I have created one ATR indicator which exclude weekend data from calculation.

I am not sure whether the code is optimized enough, but it works.

Here you are: HPT-ATR.mq4


great explanation




2 thumbs up dude keep up the good work and thanks a lot, learned many interpretations of indicators from you, you rock! :)


Bravo. Keep it up


Had to do 3 google searches and went through about 2 dozen sites with a bunch of long-winded theory. Found yours and....BINGO!!! Got it! Kudo's, Kudo's, Kudo's; Thanks


Thank you very much


i want easy reading purfect buy ,sell indicator


thank you very much for your explain.


nice indicator thanks lot




After reading this article, my concept of ATR is so clear to me. Ihenever I need some trading clarity, I visit this site again and again. Great site for great articles. Thanks.


Cristal clear explanation.



What confuses me are the pictures you used to show your 200 pips stop on EUR/USD below the headline: How to set stops with Average True Range (ATR) indicator. On that example you are actually setting a 2000 pips stop, not 200 pips stop. What I know from metatrader is that a pip is one value price move of the fifth digit after the dot. Right?