| 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 (11) | Thread Tools | Display Modes |
|
||||
|
Quote:
Thanks for the help, Michel. Please let me know if I can help you with anything in return. MM |
|
||||
|
Did you enable checkbox "Allow live trading" in the expert properties?
__________________
|
|
|||
|
Now I can't post at all?
I just submitted a new post and it didn't even show up?! What gives?
Here was the post (I hope): I've coded the following, (profit is defined in another part of the script) but the orders only close when I have "Ask Manual Confirmation" checked in the EA options. Otherwise, sometimes no orders close, sometimes 1 out of 4-6 open orders. What am I missing? HTML Code:
if((profit>=1.5)||(profit<-1.5))
{
Alert("Profit is ",profit);
for(x=totOrders-1;x>=0;x--)
{
if(OrderSelect(x,SELECT_BY_POS)==true)
{
switch(type)
{
case OP_BUY : OrderClose(OrderTicket(),OrderLots(),MarketInfo(OrderSymbol(),MODE_BID),0,0);
break;
case OP_SELL : OrderClose( OrderTicket(),OrderLots(),MarketInfo(OrderSymbol(),MODE_ASK),0,0);
}
Alert("Closing order # ",OrderTicket()," which is in position ",x);
}
else
{
Alert("Error # ",GetLastError());
}
}
}
Last edited by bkr1969; 10-15-2008 at 08:35 PM. |
|
||||
|
Quote:
You windows looks like this one? noone.JPG
__________________
|
|
|||
|
Exactly
Yes...that's how I'm set up. If I check the manual confirmation box, I get a pop up every time an order is supposed to close, I confirm it, and it closes. But without confirmation, the EA's and scripts will not close the orders.
|
![]() |
| Bookmarks |
| Tags |
| close, close all, close all positions, close all positions in MT4, close all trades, open close, profit, stop, trades, trailing, script, Stomper, mt4 close all script |
| 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 | |
| Simple Trading Method with trader101 - Page 58 | This thread | Refback | 09-29-2008 11:03 AM | |
| Simple Trading Method with trader101 - Page 58 | This thread | Refback | 09-29-2008 10:42 AM | |
| Ind close sume post with one click? - Nogold.com | This thread | Refback | 08-08-2008 12:34 PM | |
| Close all trades with a push of a button? | This thread | Refback | 07-21-2008 04:38 PM | |
| Close all trades with a push of a button? | This thread | Refback | 07-21-2008 04:28 PM | |
| Close all trades !!! | This thread | Refback | 06-24-2008 04:13 AM | |
| Close all trades !!! | This thread | Refback | 06-19-2008 11:53 AM | |
| Close all trades !!! | This thread | Refback | 06-19-2008 10:33 AM | |
| Antara EA yang telah diLIVE test oleh MyMEFx Grup - Page 50 - Nogold.com | This thread | Refback | 12-05-2007 04:58 PM | |
| skrypty close i modify | This thread | Refback | 08-07-2007 05:11 AM | |
| Ind close sume post with one click? - Nogold.com | This thread | Refback | 06-30-2007 04: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 06:37 AM |
| close all open trades ea | G-Riper | General Discussion | 2 | 08-02-2006 10:41 PM |
| Close all open positions | jonjonau | Expert Advisors - Metatrader 4 | 6 | 07-12-2006 06:01 AM |
| Close All Open Positions? | lonespruce | Metatrader 4 | 9 | 06-22-2006 08:20 AM |