how can i delay an EA

 
what is the code for an EA not to open order despite it sees the order correctly. can someone help me.
 

if(readytotrade)

{

//ordersend code here

readytotrade = false;

}


It all depends on what you are waiting for. How do you want to delay the trade?

 

Or Sleep(a number of milliseconds).

Its not really that clear what you're trying to achieve.

Explain yourself olufemi.


CB

 
Unmark "Allow llive trading" or mark "Ask manual confirmation" on Common Tab of your EA Properties.
Reason: