Hello,
I have an expert advisor I have written and it seems to work great. I've switched it to run on a rented virtual hosting server (from mt5) and it entered the position fine. However, when it came to close the position, the EA on the virtual hosting did not close it. The experts tab on the terminal was trying to close the position (but autotrading was disabled as it was enabled on the virtual machine). Has anyone else experienced this problem?
I use the CTrade Trade.PositionClose(Symbol) to close the trade. (Not sure if this is important information or not!)
Cheers, Will
If it is related to coding so I have no idea (someone will reply as I am not a coder).
As to MQL5 VPS for Metatrader 4/Metatrader 5 - so yes: autotrading on this VPS is always ON irrespective off - you enable it or not on your local PC.
And MQL5 VPS Metatrader is the copy of your Metatrader when synchronized (your metatrader in cloud).
So, if you synchronize it so it should work to be same with your PC for example.
That is why Im confused because it should work the same as an EA on the terminal, which is working fine.
That is why Im confused because it should work the same as an EA on the terminal, which is working fine.
If it is working fine on your local PC so you can make a synchronization once again (means: send everything "which is working fine" incl EA, settings, chart etc).
May be - you changed something on your PC and did not send those changes to the VPS ...
---------------
Synchronize -
https://www.mql5.com/en/forum/211508
- 2017.07.18
- www.mql5.com
I will try that. I will have to wait for another signal, hopefully there will be another today!
I still do not think this is the reason though, the position close has always worked fine on the terminal EA
If it is working fine on your local PC so you can make a synchronization once again (means: send everything "which is working fine" incl EA, settings, chart etc).
May be - you changed something on your PC and did not send those changes to the VPS ...
---------------
Synchronize -
https://www.mql5.com/en/forum/211508
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
I have an expert advisor I have written and it seems to work great. I've switched it to run on a rented virtual hosting server (from mt5) and it entered the position fine. However, when it came to close the position, the EA on the virtual hosting did not close it. The experts tab on the terminal was trying to close the position (but autotrading was disabled as it was enabled on the virtual machine). Has anyone else experienced this problem?
I use the CTrade Trade.PositionClose(Symbol) to close the trade. (Not sure if this is important information or not!)
Cheers, Will