How to know the distance on chart?
-
I would like to know the distance between the current price and an indicator on the chart.
e.g. the current price is now 100pips from the 100SMA, do something.Do you know how to do so?
Thank you in advance,
s -
using formula block you can calculate .. but note, your output can be negative value ...
-
There is also one very underrated block called "Check distance". Even I don't use it very often

-
@miro1360 with the scarce knowledge of mq4 coding for me, is a lost try. I am on fxdreema to avoid coding heheh. Thank you though
-
you dont need coding in fxdreema ... as admin said, try Check distance block ....
-
@fxDreema said in How to know the distance on chart?:
There is also one very underrated block called "Check distance". Even I don't use it very often

I had a go at it but I don't seem to grasp the upper and lower levels and how relate to the distance in the "Check distance" block.
Can I use your help? I would need to check the distance from current price and 50SMA. If bigger than 50 pips, draw an arrow. -
-
@miro1360 thank you, miro
much apreciated