One entry per cross of MA..

 

Hi Guys,

I wonder if someone can help me....I am in the middle of making an EA..but got stuck...i dont know where and how to describe in the EA that it should only place one trade per cross of MA....at the moment when the price hits the TP it opens another trade in the same direction....I want it to wait for the next cross and then open another trade,...

Thanks

 
babarmughal:
Hi Guys,

I wonder if someone can help me....I am in the middle of making an EA..but got stuck...i dont know where and how to describe in the EA that it should only place one trade per cross of MA....at the moment when the price hits the TP it opens another trade in the same direction....I want it to wait for the next cross and then open another trade,...

Thanks

Hi Bab

It depends on exactly how you want it to work. There are quite a few different ways to do it.

ie. Do you want it to trade on the first tick that causes a cross, or only at the close of a candle that confirms a cross??

Cheers