Measure pips between two points
-
Let's try this. How can I measure a distance between 2 points? Let's say on some candle close, I would like to get the amount of pips from that candle close to the lowest point over the last 8 candles? Then, I would like to take that calculation in pips and compare it to a number of pips like 50. For example, is that number calculated from the above example less than or equal to 50 pips? Please..... Need some help on this. Thank you.
If this has to do with variables, please show me an example on how to use those. I have no idea at this point.
-
Check this out with your modifications

-
@josecortesllobat
Lmao.... I didn't even see that there was a Check Distance function on here.... I must have looked right over it as I scanned through everything. Thanks for pointing it out! -
HI,
i know the check distance block but i need to calculate the difference between 2 indicator values. That indicator value may not have the same point format as the chart the EA is attatched to. And i need to put that disatance into a variable for furthere calculations. How would i do that? -
It depends on the indicator. Is it a custom indicator?
-
It´s just a Moving Average.
-
For two MA you can try this:

-
Well, thanks, but what i need is to put the actual distance in pips into a variable. Lets say if the absolute distance in 3.8 pips i need that value in a variable. To tell if the distance is above or below x is not enought.
-
@hugoportisch Just use the formula-block to make the subtraction?
-
Well, ill take a look. Thanks.