How to authorize only one trade

 

Hy,


I would like to know which code do we have to use in order to authorize only one trade in an EA ?


Thank you,

 

I'm not sure what you mean. But if your looking for one open trade at a time:


if(OrdersTotal() == 0){

//make trades

}

 

Thank you,


That's exactely what i want to mean.

Reason: