gap of certain pips after EMAs crosses
-
Hi i am trying to add condition which will let the trade open after certain pips once 15 and 30 ema crosses each other, not as soon as they crossed. many thanks
-
You will never know the exact crossing point. Remember that both are lines drawn on a chart. I recommend you to find an alternative way to identify that price level.
-
Thanks for your reply, i think in order to get it done, one has to be expert in coding coz there will be condition one which will look when emas are crossed and quickly calculate the pips (given on instruction) and open instant order at specific distance from the point of crossing. really couldn't find here almost blank.
-
@gharti Maybe using the adjust field?

-
Just use envelopes indicator. You won't get pips, instead a deviation factor, but its the same thing and the simplest solution.
-
@roar could you explain, really couldn't understand exactly how envelop can solve the concern
-
@ambrogio it did not work, thanks btw
-
There is a effective but inneficient way to do it. You can know the values of both MA before and after the crossing. That will confirm there was a crossing. Then you can decide which of those values should be considered to your final addition.
-
@l-andorrà I am sorry but couldn't get that exactly, which both values you talking about?
-
You could maybe try and make the crossing area wider?

-
I mean this for a crossing up, for example:

Ifo both conditions are true, you know there was a crossing somewhere betwee candles 1 and 2.
-
@l-andorrà Very simple... good job.... So what will happen if you set the crossing gap wider like I mentioned??