Part 2 – How To Set Up Your New Google Cloud VPS To Run MT4 Robustly

#

Welcome back to part 2 of our guide on setting up a VPS on Google Cloud to run MT4. If you have missed out on our earlier article, you can find that here:
How To Create a Free VPS on Google Cloud for MT4 EAs

In our previous article, we have successfully set up a new VPS on Google Cloud. Now, we will proceed to set up our new VPS such that it will

  • Prevent Windows Update from running without our explicit action
  • Automatically log in and keep MT4 running if/when our VPS reboots due to a crash or other reasons

This is extremely important so as to ensure an almost 24/7 uptime, which is mandatory for automated algorithmic trading.

Step 1 – Setting up Taskbar Preference:
Firstly, let’s tidy up the taskbar buttons. Right-click on Taskbar (the grey bar at the bottom-most), then check and select the following:

This allows you to see all the programs running at the bottom without the taskbar buttons combining, especially useful when you are running multiple MT4 instances.

 

Step 2 – Turning off Windows Update:
Next, we want to turn off Automatic Windows Updates, as we definitely do not want our VPS to be rebooted after a Windows update at some arbitrary time. All commercial VPS providers for forex trading turn off automatic Windows updates by default. Do make sure to update it on your own once in a while when the markets are closed (e.g. weekends).

To do that, click on Start, type in “Run” in the search box and press ENTER. Then type in “gpedit.msc” in the Open field, and press ENTER:

In the Group Policy Object Editor:
– expand Computer Configuration
– expand Administrative Templates
– expand System
– expand Internet Communication Management
– double-click Internet Communication settings

Then look for “Turn off access to all Windows Update features”, double-click it, select “Enable” and click OK. You should then see this:

This effectively turns off all attempts by Windows Update to update your VPS, hence do make sure to perform updates on your own when the situation allows!

 

Step 3 – Turning on AutoLogon:
Download Autologon for Windows v3.10 (link here). This is a free software that is written by Sysinternals, a wholly owned subsidiary of Microsoft and is now a part of Microsoft Technet.

Unzip and copy the files into your VPS, then execute the “Autologon” application. You should be asked whether to allow the program to make changes to your computer, click Yes to that, and agree to the Terms and Conditions on the next prompt.

Next, key in the VPS password in the password field, the Username and Domain fields should be automatically be filled in:

Click Enable, and you should get the following confirmation. Notice that your password is encrypted when stored in:

 

Step 4 – Install MT4:
Get the MT4 installation file from your broker, copy it to your VPS and install it.

 

Step 5 – Adding MT4 shortcut to the Startup folder:
Click the Start button, then type “shell:common startup” in the search box. You should get only one result which is the Startup folder. Click on it:

Assuming that the MT4 icon is found on your desktop after the MT4 installation above, simply drag that icon into the startup folder.
You are done! The next steps will be to install your EAs accordingly. You can find our EA installation guide here:
Support & FAQ

Now, in the event that your VPS reboots itself, it will now automatically log in, and fire up the MT4 platform. If you have any EA that is already installed and running, they will then continue to run. One point to note is to make sure that your MT4 account’s Master password has not been changed recently. If yes, make sure to log in to MT4 using your new password, and let MT4 remember the password.

Alright hope that helps! Do also check out our preferred broker IG (click here). Listed on London Exchange, they are among the largest forex and CFD broker worldwide. We are currently running our algorithmic trading systems on IG live accounts, performance can be seen here: myfxbook – GS Alpha Bundle Portfolio

Leave a comment