Please edit your post and use the code button (Alt+S) when pasting code.
EDIT your original post, please do not just post the code correctly in a new post.
You should also learn to use the styler so that your code is easier for others to read. Also remove excessive empty lines.
Topics concerning MT4 and MQL4 have their own section.
In future please post in the correct section.
I have moved your topic to the MQL4 and Metatrader 4 section.
- Use code button.
- Post in the correct place.
-
Sell = OrderClose(OrderTicket(),0.1,Ask,10,clrBlue);
You can not use any Trade Functions until you first select an order.
William Roeder:
- Use code button.
- Post in the correct place.
-
You can not use any Trade Functions until you first select an order.
Thank you, that fixed it!!
And a ticket is not a double.
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
Hello, I am trying to get my open orders to close based on the ticket number but my positions do not close in the strategy tester. I have attached my code below. Any help will be greatly appreciated. Thank you.
<removed>