why orderselect cannot auto close trade ???
OrderClose(BuyTicket, LotSize, Ask, Slippage, CLR_NONE);why cannot close the trade ???
if(SellTicket > 0) { OrderSelect(SellTicket, SELECT_BY_TICKET); OrderClose(SellTicket, LotSize, Bid, Slippage, CLR_NONE); }
albert_lim83:
was given a CloseOrder() routine and repeatedly told to check his return codes, and here he is posting a snippet again.
WHRoeder:
hahahahaha.....
albert_lim83: was given a CloseOrder() routine and repeatedly told to check his return codes, and here he is posting a snippet again.
hahahahahahaha....
how to orderclose for flexible lotsize ??
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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