Run MetaTrader 5 (MT5) as a Windows Service with AlwaysUp

How to Run MetaTrader 5 (MT5) as a Windows Service with AlwaysUp

Automatically start your MetaTrader 5 (MT5) trading platform in the background whenever your computer starts. No need to log on first. Never miss a trade because of an unexpected reboot!

MetaTrader 5 (MT5) is a popular automated trading platform that supports forex, stocks, futures, and more.

With markets operating all the time these days, many folks want to trade at any hour. And that's where AlwaysUp can help — making sure that your trading software is always ready and primed for action.


To install an instance of MetaTrader 5 as a Windows Service with AlwaysUp:

  1. Download and install MT5, if necessary:

    Install MT5

    Set it up and ensure that it's operating exactly as you expect.

  2. Next, download and install AlwaysUp, if necessary.

  3. Start AlwaysUp.

  4. 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 MT5 executable, terminal64.exe. You'll probably find it in:

      C:\Program Files\MetaTrader 5

    • In the Start the application field, choose Automatically, but shortly after the computer boots. With this setting, the terminal will start a couple of minutes after boot — once all the machine's critical services are completely up and running.

    • And in the Name field, enter the name that you will call the application in AlwaysUp. We suggest MetaTrader 5 but you can specify another name if you like.

    MetaTrader 5 Windows Service: General Tab

  6. Next, move to the Logon tab and enter the user name and password of the Windows account where you're logged in and run MetaTrader.

    If you don't provide your account, MT5 won't be able to find your settings and it will come up "blank".

    MetaTrader 5 Windows Service: Logon Tab

  7. Click over 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 do its work.

    MetaTrader 5 Windows Service: Startup Tab

  8. Finally, move to the Extras tab. We recommend checking the Prevent the computer from automatically going to sleep box.

    With that setting in place, AlwaysUp will ensure that your PC never decides to go into a dormant state (causing you to miss trades).

    MetaTrader 5 Windows Service: Extras Tab

  9. We're done configuring MetaTrader 5 as a Windows Service so click the Save button to record your settings.

    In a couple of seconds, an application called MetaTrader 5 (or whatever you called it) will show up in the AlwaysUp window. It is not yet running though and the state will be "Stopped":

    MetaTrader 5 Windows Service: Installed

  10. To start MT5, choose Application > Start "MetaTrader 5". The state should transition to "Running" after a few seconds and MetaTrader will be working in the background:

    MetaTrader 5 Windows Service: Running

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

    To see MT5 on your desktop alongside your other applications, choose Application > Restart "MetaTrader 5" in this session:

    Restart MT5 on your desktop

    That will temporarily stop terminal64.exe and restart it visibly on your screen:

    MT5 running on the desktop

    If you always need to see MT5 whenever you log on, you have a couple of options:

    1. Install a scheduled task that automatically restarts MetaTrader on your desktop at logon; or

    2. Configure automatic logon at boot and have AlwaysUp launch MT5 after the autologon completes.

  11. That's it! Next time your computer boots, the MetaTrader 5 terminal will start up immediately, in the background, without anyone needing to log on. Please restart your PC now and test that everything works as expected after Windows comes back to life.

    And please feel free to edit your MT5 entry in AlwaysUp and explore the many other settings that may be appropriate for your environment. For example, send an email if MetaTrader stops, boost priority to increase responsiveness, and much more.



MetaTrader 5 not working properly as a Windows Service?

  • Consult the AlwaysUp Troubleshooter — our online tool that can help you resolve the most common problems encountered when running an application as a windows service.

  • From AlwaysUp, select Application > Report Activity > Today to bring up an HTML report detailing the interaction between AlwaysUp and MetaTrader. The AlwaysUp Event Log Messages page explains the messages that may appear.

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

  • Contact us and we'll 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!