Huy Nguyen Quang / Publications
Forum
Close all sell orders, or buy orders from a currency pair.
Close all sell orders, or buy orders from a currency pair . It still closes all orders. Please help me, my English is not good. Thank You! #include <Trade\Trade.mqh> CTrade trade; //--- Position properties void CloseAllPositions() { for ( int i= PositionsTotal ()- 1 ;i>= 0 ;i--) { if (