Gonçalo Marques / Publications
Forum
Open pending orders!
for ( int i= OrdersTotal ()- 1 ; i>= 0 ; i--) { if ( OrderSelect ( 2 ,SELECT_BY_POS,MODE_TRADES)) { if (OrderType() ==OP_SELL){ OrderSend ( _Symbol ,OP_BUYSTOP, 0.02 ,Bid+ 50 * _Point , 1 , 0 , 0 , NULL , 0 , 0 ,Green); } if (OrderType()==OP_BUY){