Is there an easy way to find the hi/lo distance in pips?
-
I want to find out how many pips (or points) it is between the highest and lowest level from 20 candles back until now.
I know how to find the highest and lowest price, but then I want to turn these into points to see the range.
I made a formula to get the correct numbers by multiplying the result with 100000. But if I use the EA on a JPY pair I need to change that number to multiply by 100.
But is there an easier way to get this result without changing this number depending on the chart I put the EA on? -
This could be an approach

You do not need to take care of what pair are you trading by using PointSize because that value is got from MarketProperties or from what is set at Project settings (Customized)
It should work.
-
Great!!! Thank you. That one is working.