So I have the following setup:
- Microsoft Windows 2012 R2 Virtual Private Server (from Microsoft Azure - Standard 1Bs 1 vcpu, 1 GB memory),
- Metaquotes MetaTrader 4 Platform - which are running in VPS,
- Expert Advisors in MQL4 Language - which are running in VPS,
So, I have my MT4 set up in my Virtual Private Server for latency reduction on my trades. However, my algorithms do not execute any trades whenever my VPS RDP is disconnected, despite that any programme that was running, should remain so unless I de-allocate the Virtual Machine via my Azure dashboard.
I only disconnect the RDP (this is purely clicking the "x" at the top of the screen), so my MT4 should (in theory) still run as normal (as is the point of a VPS in the first place).
I've looked at the journals on my MT4 platform and there are no errors relating to the failure to execute any trades, plus all the standard checks (allow automated trading, "Auto Trading" is turned on in MT4 Platform, allow "Live Trading" etc) are in accordance to the platforms requirements to execute automated trades.
My question is: it's obvious that disconnecting the RDP closes down the entire VPS system and therefore closes MT4 - preventing this from executing any trades. Is there a way in which I simply disconnect the RDP which results in my MT4 platform running as normal? Please feel free to ask for any clarification on anything mention in this post.