Recently I was looking for a good solution to get always the ATR value in Pips without currency problem.
So here is a useful tutorial for you:
-
The first step is to create a new double Variable where we are going to store the result of our calculation.
In my case, I used "ATRvalue"

-
Let's create the formula using 2 different formula blocks
The formula to convert ATR value in Pips is really simple:
ATRpips = ATR * 10000 ----> For any currency
ATRpips = ATR * 100 ----> For JPY
Just copy the image and use the double Variable to store our results.

- Now we need a block that helps the EA to chose which one formula to use, so the only thing I need to know is if we are trading a JPY pair.
Since JPY is always the quote currency we need just one block:

The final results will be like this:
On Tick

Upvote if you found helpful this tutorial and have a nice day.










