| New signals service! | |
|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
close all orders
hi
I need the code in expirt to close all orders I wrote this cood but its not working ... any one help me in this plzzzzzzzzz. ??? ------------- for (int j=0; j<OrdersTotal(); j++) { OrderSelect(j, SELECT_BY_POS, MODE_TRADES); OrderPrint(); if ( OrderType() == OP_BUY ) { OrderClose(OrderTicket(),OrderLots(),Bid,3,Violet) ; { else OrderClose(OrderTicket(),OrderLots(),Ask,3,Violet) ; } --------------- |
|
|||
|
Quote:
You may use it as a sample. |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Close and Reverse orders | elihayun | Tools and utilities | 20 | 09-16-2008 04:56 AM |
| modify orders and close pending orders | bkgridley | Questions | 8 | 05-23-2007 10:49 PM |
| Script to close open orders... | babarmughal | Expert Advisors - Metatrader 4 | 1 | 12-13-2006 05:50 PM |
| SHI Silvertrend close orders EA?? | fxbrandon | Expert Advisors - Metatrader 4 | 1 | 11-29-2006 09:17 PM |
| Script close all orders | paulosilva555 | Metatrader 4 | 1 | 02-17-2006 05:19 PM |