Hi everybody, having a slight problem with an EA I'm working on. I need it to only have one trade open at any time. It works fine in strategy tester however on live trading it's opening multiple trades at the same time
Basically just have this code at the start of the start() function
"ticket" is a global variable.
Basically just have this code at the start of the start() function
Inserted Code
// check for open tickets if(OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES)){ if(OrderCloseTime()==0){ return(0); } }