cs0amc:
What's the reason of the removal ?
Hi,
I have been trying to close any open trades from the DeInit function but it is returning that trading is already stopped. I also tried to override ExpertRemove function but it says it is a system function. Anyone know how I can do this?
Thanks
cs
**EDIT ** This is for MT5
Alain Verleyen:
What's the reason of th
What's the reason of th
Alain Verleyen:
What's the reason of the removal ?
Simply to ensure no trades are left open when an expert advisor is removed from a chart. This is helpful for live testing and also if dealing with multiple EA's, it removes the chance of any trades being left open.What's the reason of the removal ?
cs0amc:
You have to use OrderSend() or OrderSendAsync(), not CTrade.
Hi,
I have been trying to close any open trades from the DeInit function but it is returning that trading is already stopped. I also tried to override ExpertRemove function but it says it is a system function. Anyone know how I can do this?
Thanks
cs
**EDIT ** This is for MT5

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
Hi,
I have been trying to close any open trades from the DeInit function but it is returning that trading is already stopped. I also tried to override ExpertRemove function but it says it is a system function. Anyone know how I can do this?
Thanks
cs
**EDIT ** This is for MT5