Hello,
I'm with a problem that already tried to research but didn't find any actual solution.
So I want to say to fxdreema that, for a buy:
-If a cross up on the stochastic KD lines occurs bellow the 20 line, then;
-Look for a candle close above the EMA 10 and only enter the trade at this point.
Right now when I test this on mt4 what is happening is that the EA will only enter a trade when the two rules mentioned above occurs at the exact same time.
What I need is:
- The stochastic lines KD are below the 20 line (oversold) ->CHECK
- KD lines of the stochastic crossed up ->CHECK
- OK let's wait and see if we got a candle close above the ema10;
- At this point, the stochastic KD can go above the 20 line and I only stop looking for a buy wen the KD crosses down again (image bellow)
- We got a candle close above the ema10 ->CHECK
- Perfect let's enter the trade
I think I need to use Boolean variables but i'm not sure how to do it properly
This is what's happening:

This is what I want to do:

I'll link what I have:
https://fxdreema.com/shared/gKfWpy1Rc
If somebody can help me solve this please it would be very very appreciated as I've done hours of research and cant solve it
Thank you very much!!