...Was hit by SL or TP? I used to select last order with this code to change the boolean sell or buy to false if the order is closed and allow to open another same order...:
if(sell==true)
if(OrderSelect(OrdersHistoryTotal()-1,SELECT_BY_POS,MODE_HISTORY)==true)
if(OrderTicket()==ticket_sell)
sell=false;
Any suggestions?
if(sell==true)
if(OrderSelect(OrdersHistoryTotal()-1,SELECT_BY_POS,MODE_HISTORY)==true)
if(OrderTicket()==ticket_sell)
sell=false;
Any suggestions?