wait for 3 bar formation after placing the Order

 

Hi Guys,

I need help to create a code to make the EA wait for n number of bars before modifying the order. Sleep() not working in this situation.

Thanks in advance


Shijo

 
You want to monitor 3 bars back, so when the signal does come up it is the 3 bar gap that you require. I believe it is bar(2).
Reason: