Run MetaTrader as a Windows Service with AlwaysUp

How to Run MetaTrader 4 (MT4) as a Windows Service with AlwaysUp

Ensure that all your MetaTrader 4 instances start after a reboot and run 24/7!

MetaTrader 4 is a leading automated trading system developed by MetaQuotes Software Corp.

To set up MetaTrader 4 with AlwaysUp:

  1. Download and install AlwaysUp, if necessary.

  2. Download and install MT4, if necessary.

    Note that MetaTrader version 4 is no longer available from the MetaQuotes website. You have to get it from a broker, or from another source.

  3. Start AlwaysUp.

  4. From the menu, select Application > Add to open the Add Application window:

    Add Application

  5. On the General tab:

    • In the Application field, enter the full path to the MetaTrader .exe file. If you installed MetaTrader in the default location, this is:

      C:\Program Files\MetaTrader 4\terminal.exe
    • In the Name field, enter the name that you will call this application in AlwaysUp. We suggest MetaTrader but you can specify almost anything you like.

    MetaTrader 4 Windows Service: General Tab

  6. Move to the Logon tab and enter the user name and password of the Windows account in which you installed and use MetaTrader. AlwaysUp will run MetaTrader in this account so that it can find its settings.

    MetaTrader 4 Windows Service: Logon Tab

  7. Click over to the Restart tab and check the Whenever it "hangs" for longer than box and leave the default value at 1 minute. Unfortunately MetaTrader 4 can occasionally hang and this will instruct AlwaysUp to restart it if that happens.

    MetaTrader 4 Windows Service: Monitor Tab

  8. Move to the Startup tab and check the Ensure that the Windows Networking components have started box. This informs AlwaysUp that MetaTrader needs the TCP/IP networking stack to work.

    MetaTrader 4 Windows Service: Startup Tab

  9. Click the Save button. In a couple of seconds, an application called MetaTrader will show up in the AlwaysUp window. It is not yet running though:

    MetaTrader 4 Windows Service: Created

  10. To start MetaTrader, choose Application > Start "MetaTrader". The green "running" icon should appear after a few seconds.

    Note that MT4 will be running in the background, in the isolated Session 0. You won't see it on your desktop.

    To see MT4, choose Application > Restart "MetaTrader" in this session. That will temporarily stop MetaTrader and restart it visibly on your desktop:

    MetaTrader 4 Windows Service: Running

  11. That's it! Next time your computer boots, MT4 will start up immediately, before anyone logs on. We encourage you to edit your MetaTrader application in AlwaysUp and check out the other settings that may be appropriate for your environment. For example, you may want to restart MT4 in the midnight hours, just to clear out any memory leaks.

    Repeat the process to set up as many MetaTrader instances as you need — each in its own directory. There is no limit with AlwaysUp!



MetaTrader 4 not working properly as a Windows Service?

  • From AlwaysUp, select Application > Report Activity > Today... to bring up a HTML report detailing the interaction between AlwaysUp and your MT4. The AlwaysUp Event Log Messages page explains the more obscure messages.

  • Now that AlwaysUp is managing MT4, please make sure to avoid running multiple instances of the same terminal. Don't start MT4 manually or place a shortcut in the Startup folder.

  • Consult the AlwaysUp FAQ for answers to commonly asked questions and troubleshooting tips.

  • Contact us and we will be happy to help!

Download & Try it Free!

Download AlwaysUp and Run as a Service Today! Version 15.1 New!

7.9 MB Installer
Our 12,000+ customers include...
Compatible with Windows 11 Compatible with Windows Server 2022 Compatible with Windows 10
Over 94,000 installations, and counting!
 
AlwaysUp is number 1! Run as a Service with AlwaysUp

Rock-solid for the past 19+ years!