| 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 (9) | Thread Tools | Display Modes |
|
|||
|
Is there an EA that close all the orders when the equity increase or decrease certain $ ?
Thank you Quote:
|
|
|||
|
closing all open orders
Hello everyone
I'm trying to create my first EA using Meta Editor. I need in a certain point of execution to close all the open orders of a certain type. for example when my EA places a sell order it should close all the buy orders that are open. I wrote something like the following Code:
total=OrdersTotal();
for(int i=total-1; i>=0; i--) {
OrderSelect(i, SELECT_BY_POS, MODE_TRADES);
if(OrderType()== OP_BUY) {
OrderClose(OrderTicket(),OrderLots(),Bid,3,Violet);
}
}
can anyone help me please ? |
|
||||
|
Close and Reverse all Open Trades script
Here are 3 scripts: close all open trades;close all pendings; close both
My question:
This is sorely needed to enhance the standard MT4 trading platform to accommodate manual scalping techniques using 1 and 5 min charting. Thanks in advance for any help with this. ![]()
__________________
Vote Ron Paul 2008 ".....it's later than you think." www.ronpaulaudio.com www.ronpaulforums.com Last edited by goldenequity; 02-12-2008 at 01:46 PM. |
|
||||
|
Quote:
__________________
|
|
||||
|
Thanks
Thanks Linuxer
![]()
__________________
Vote Ron Paul 2008 ".....it's later than you think." www.ronpaulaudio.com www.ronpaulforums.com |
|
|||
|
Quote:
Just found it inside my computer ... may be difference as I did not check it. |
|
||||
|
Thanks
Thanks for the quick response NewDigital
![]()
__________________
Vote Ron Paul 2008 ".....it's later than you think." www.ronpaulaudio.com www.ronpaulforums.com |
|
|||
|
Hi,
i have a big problem, i try to code a script to "close a Part of a actuall Position", but my code skills are not so well, is there any chance to find this script? Many Thanks, Ram Last edited by Linuxser; 02-13-2008 at 01:40 PM. Reason: Duplicated Post |
|
|||
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/tools-utilities/174-close-all-open-tools.html
|
||||
| Posted By | For | Type | Date | |
| Ind close sume post with one click? - Nogold.com | This thread | Refback | 08-08-2008 11:34 AM | |
| Close all trades with a push of a button? | This thread | Refback | 07-21-2008 03:38 PM | |
| Close all trades with a push of a button? | This thread | Refback | 07-21-2008 03:28 PM | |
| Close all trades !!! | This thread | Refback | 06-24-2008 03:13 AM | |
| Close all trades !!! | This thread | Refback | 06-19-2008 10:53 AM | |
| Close all trades !!! | This thread | Refback | 06-19-2008 09:33 AM | |
| Antara EA yang telah diLIVE test oleh MyMEFx Grup - Page 50 - Nogold.com | This thread | Refback | 12-05-2007 03:58 PM | |
| skrypty close i modify | This thread | Refback | 08-07-2007 04:11 AM | |
| Ind close sume post with one click? - Nogold.com | This thread | Refback | 06-30-2007 03:02 PM | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Open/close trade on same bar's close? | WNW | Expert Advisors - Metatrader 4 | 2 | 03-29-2007 05:37 AM |
| close all open trades ea | G-Riper | General Discussion | 2 | 08-02-2006 09:41 PM |
| Close all open positions | jonjonau | Expert Advisors - Metatrader 4 | 6 | 07-12-2006 05:01 AM |
| Close All Open Positions? | lonespruce | Metatrader 4 | 9 | 06-22-2006 07:20 AM |