welcome to the MQL4.COMmunity (www.mql4.com)
Try to search your question http://forum.mql4.com/search/close%20all%20orders
Try to search your question http://forum.mql4.com/search/close%20all%20orders
welcome to the MQL4.COMmunity (www.mql4.com)
Try to search your question http://forum.mql4.com/search/close%20all%20orders
Try to search your question http://forum.mql4.com/search/close%20all%20orders
Thanks. This is helpfull. I guess I am used to seeing trade applications that have stuff like
that built in.
I guess that begs another question. If people are using EA's to trade their accounts, then what
do they do when they want/need to get out, when there could be multiple orders? This seems like
a question that should have long had an answer in the past.
"then what do they do when they want/need to get out, when there could be multiple orders?"
They close multiple orders...
Here is a simple case:
They close multiple orders...
Here is a simple case:
for( int i = OrdersTotal() -1; i--){ OrderSelect(i, SELECT_BY_POS, MODE_TRADES); if(OrderType() == OP_BUY){ OrderClose(OrderTicket(), OrderLots(), Ask, slippage, acolor); } if(OrderType() == OP_SELL){ OrderClose(OrderTicket(), OrderLots(), Bid, slippage, acolor); } if(OrderType() > 1){ OrderDelete(OrderTicket, acolor); } }
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I just downloaded metatrader and am working through some of the kinks. There was a
US phone number that I called about 3 weeks ago and that was great, but I don't see it
anywhere. (Don't want to be paranoid, but did they remove it when I called?)
Aside of that, I am trying to close ALL ORDERS that were opened by an expert advisor.
Under "position close" it says to get "Multiple close" under the "type" window. I do not see
that option under type.
Is there a "close all" option in this application?
thanks
Alan