Having Issue with VPS Performance While MT4 Terminal is Closed

 

Hello,


I am currently having an issue with my VPS that I have connected to my trading account. I have used a VPS previously with the same charts and EA's and did not have an issue before. I am able to successfully sync my charts and EA's to the VPS, and it's journal log shows that everything has synced properly. Im leaving AutoTrading disabled on my terminal so the auto trading will run strictly through my VPS. While the VPS is active and I sync my charts and EA's, any pending trade execution that is available at the time of sync successfully auto trades. But once i close the terminal and my computer is off, There seems to be no activity of trades being executed. If I open my terminal back up, i can see in the terminal log that there are EA's trying to execute, but cannot, because I have the auto trade disabled in the terminal. My VPS still shows as active, and there are no errors in the journal log of the VPS regarding a failed trade execution. If i re-sync my VPS though, then it proceeds to execute the trades that the terminal log was showing as failed to execute. It seems to me like even though the VPS shows connected to my account and active, the only time it is performing is at the moment of synchronization. After that, it seems as though my account is still strictly relying on the terminal as its source of trading. I have attempted multiple times at stopping the VPS server and restarting it, re-syncing my charts and EA's, and validating that the indicators used in the EA are the same being placed in the charts. I have even cancelled the hosting and purchased another VPS to see if that could have been the cause. I honestly don't know what else to do to rectify the situation. I know that the EA's do not require a DLL import because these are self made EA's and do not call on such, and like stated before, I had previously used these same EA's without any issue. If there are anything other suggestions that could help with having my VPS remaining active 24/7 like it is intended to do, I would greatly appreciate the help.

 

MQL5 VPS is per trading account, and it is the "Metatrader in cloud".
Yes, it is the other your Metatrader but located in the "cloud".

And both your Metatrader instances (your home Metatrader and "Metatrader in cloud") are connected to same trading account, right?
If yes so your home Metatrader has nothing to do with any trades - because all trades are made by other "Metatrader in cloud".
You only can check the synchronization, check the journal about possible errore or no errors, and after that - look at MQL5 VPS journals (two journals - general journal and EA's journal).

Some general details:

Forum on trading, automated trading systems and testing trading strategies

vps not working

Sergey Golubev, 2018.11.24 18:01

VPS is the copy of your Metatrader in the cloud.
To make this copy of your Metatrader in cloud so you need to open chart (or charts) and attach your EA to the chart (or to the charts) to ready to trade.
After that - you make the migration: you are synchronizing your Metatrader with open charts with EA attached to the charts - with the copy of your Metatrader in the cloud.

Once you synchronized (once you sent everything to VPS) so you can close your pc (in you want): your EA will work on VPS (means: your EA will work on the copy of your Metatrader in cloud).

And all those actions (with possibe errors) are written in your VPS log files (you can check it inside your home Metatrader).

---------------

To make it shorter:

  • Your MQL5 VPS = your "2nd Metatrader in cloud". I mean: there is the cloud (somewhere). And there is "your second Metatrader" there ... this "second Metatrader in cloud" is empty ... you will need to provide migration/synchronize.
  • Migration = sending your EAs/indicators/open charts from your home Metatrader to MQL5 VPS (to "your Metatrader in cloud").
  • You can synchronize the settings/open charts/EAs/settings of your EAs/changing the settings of your EA/opened charts - from your home Metatrader with MQL5 VPS (with "your Metatrader in cloud"). You can synchronize many time (as many as you want).
  • Only open chart(s) with attached EA(s) can be migrated (can be synchronized) from your home Metatrader to MQL5 VPS (to "your Metatrader in cloud").
  • Your EA(s) will work on MQL5 VPS (on "your 2nd Metatrader in cloud"), and you can close your home Metatrader, or use your home Metatrader with the other trading account, or any.
  • Autotrading is always On in MQL5 VPS ("your second Metatrader in cloud" is having autotrading to be always ON irrespective of the settings of your home Metatrader).
  • (limitation) Your EA will not work on MQL5 VPS (on "your 2nd Metatrader in cloud") if EA is using dll irrespective off -  you allowed dll or not in your home Metatrader (irrespective of the settings of your home Metatrader). It is necessary to see the code or to be a coder to know: your EA is using/calling dll or not).
  • (limitation) It must be 64-bit client terminal (MT5) to use virtual hosting - means: your home Metatrader 5 should be 64-bit.
    MT4 does not have this limitation (because MT4 is always on 32-bit).

---------------


===================

About indicators which your EA is using (you told about some indicators on the chart ...).
Those indicators should be used as resources in the EA (in case this EA will be going to be used on MQL5 VPS).

Example with posts and some information:

Forum on trading, automated trading systems and testing trading strategies

Using #resource

Eduardo Linares, 2021.06.27 18:06

Anybody having trouble with custom indicators? Now custom indicators are left out of compilation.  EA with custom indicator works fine in terminal but when migration to VPS do not work.

Any help here?


More in details:

  • The thread as an example about #resource coding: My EA don't work on VPS 
  • Custom Moving Average as a resource: example on post 
My EA doesn't work on VPS - The Implementation of a Multi-currency Mode in MetaTrader 5 and the MQ5 programming language (Part 2)
My EA doesn't work on VPS - The Implementation of a Multi-currency Mode in MetaTrader 5 and the MQ5 programming language (Part 2)
  • 2021.08.26
  • www.mql5.com
The implementation of a multi-currency mode in metatrader 5. The opportunity to implement a full fledged multi-currency regime became possible only with the public release of metatrader 5 and the mql5 programming language