wemersonrv

Exemplo de remoção de Ordens MQL4

Dec 15th, 2015
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. for(int i=0; i<OrdersTotal(); i++){
  2.  
  3.     if( OrderSelect(i, SELECT_BY_POS) ){
  4.         if( OrderType()==OP_SELLSTOP || OrderType()==OP_SELLLIMIT || OrderType()==OP_BUYSTOP || OrderType()==OP_BUYLIMIT ){
  5.             OrderClose( OrderTicket(), OrderLots(), OrderOpenPrice(), 0 );
  6.         }
  7.     }
  8.  
  9. }
Advertisement
Add Comment
Please, Sign In to add comment