namiko_ara wrote >>
Three positions cannot be closed at a time.
Please teach the way that closes three positions.
Three positions cannot be closed at a time.
Please teach the way that closes three positions.
for example to close all open orders:
void CloseAllCommon() { for (int cnt = OrdersTotal()-1 ; cnt >= 0; cnt--) { OrderSelect(cnt,SELECT_BY_POS,MODE_TRADES); OrderClose(OrderTicket(),OrderLots(),OrderClosePrice(),10,CLR_NONE); Sleep(100); } }if you want to close only three orders - you will have your reason - look for magic number, look for symbol, insert your own counter
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
Please teach the way that closes three positions.