MA Crossover vs Touch
1 replies
Adil Aijaz
6 years ago #200778
Hi, I’ve made an EA strategy having MA crossovers as the main order action. But the problem is that it opens order even on touch and when the market is variable sometimes, faster MA touches the slower MA but then the candle goes on the opposite direction so the crossover doesn’t happen. I want to place the order on successful crossover, means when the same candle closes after having crossover.
Thanks
tomas262
6 years ago #200782
Hello,
you need to add “IsBarOpen is TRUE” condition into your EA. This will force EA to evaluate crossover only once per bar when bar closes. You also have to set Shift = 1 for both moving averages (not 0). Let me know if you need any help with this
Viewing 1 replies (of 1 total)