Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(int i=0; i<OrdersTotal(); i++){
- if( OrderSelect(i, SELECT_BY_POS) ){
- if( OrderType()==OP_SELLSTOP || OrderType()==OP_SELLLIMIT || OrderType()==OP_BUYSTOP || OrderType()==OP_BUYLIMIT ){
- OrderClose( OrderTicket(), OrderLots(), OrderOpenPrice(), 0 );
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment