Distance between two objects
-
how can i calculate the distance between two lines?
i am trying to place two horizontal lines on chart and then calculate the distance between the two in pips and save it in a variable -
By using "Check distance" block maybe?
-
@padletut it can compare the distance with some value but cant save the distance in a variable
-
You can catch its price this way:

But be aware of using the right name of the object.
-
thanks bro