Is it possible to check the price to the EMA distance in pips?
-
(I'm not a master of English, I use a translator, it's hard to find if there was such a topic, sorry in advance if there was)
I need to check if the price is above or below the EMA, then I got it done. And at this point I would like to check if the price is at a distance of e.g. 100pips above it?
example: if the price is above the EMA 200 check if it is within 100pips, if yes continue if not stop
thank you in advance for your answer
-
@barsa1211 In the picture you will see how to check if price is above MA but below MA + 100.

-
Thank you very much, everything works as it should, I did not think it would be so simple

-
@barsa1211 Most things on FX are simple as long as logic is correct.