Let say I have 3 sell orders currently running. Which command should I use to close them all? OrderClose() ?
- Close all opening orders with EA
- Stop Loss in Close [1]
- Expert advisor automatically buy/sell mechanism
nguye235: Let say I have 3 sell orders currently running. Which command should I use to close them all? OrderClose() ?
Yes use OrderClose() x 3.
But for Order Close, it ask for specific number of the opened ticket. how can I get this number?
nguye235:
But for Order Close, it ask for specific number of the opened ticket. how can I get this number?
Loop through the Orders one by one, OrderSelect() each and then you can use OrderTicket() to get the ticket number.
But for Order Close, it ask for specific number of the opened ticket. how can I get this number?
nguye235:
Let say I have 3 sell orders currently running. Which command should I use to close them all? OrderClose() ?
Let say I have 3 sell orders currently running. Which command should I use to close them all? OrderClose() ?
Use the order 3 to close the sell and buy.
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