ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel
  • »
  • Technology»
  • Computers & Software»
  • Computer How-Tos & Tutorials

How to Install Metatrader from Metaquotes on Ubuntu Linux using Wine

Updated on December 23, 2015
davetromp profile image

I code, trade and invest. Coding is my day job, I trade on the side and invest for the long run.

Metatrader Running on my Ubuntu Desktop

MT4 on Ubuntu

MT4 on Ubuntu
MT4 on Ubuntu

MT4 on Ubuntu

I love using Ubuntu linux software as much as I can. At the same time I am a retail trader. Now these are not at all mutually exclusive. However most retail trading applications are not developed to run on Linux. One of the most popular trading applications for trading mainly forex, but also cfds is Metatrader, also known as mt4 or mt5. This application is build to only run on the Windows platform, ... by default it is not software for linux. In this article I will guide you in installing MT4 on an Ubuntu linux desktop. I have used this method many times to trade with many different brokers like fxopen, forexyard, oanda, etc. All expert advisors run, but I was never able to compile my own EAs in the mql4 language. For this you really need a windows box. So if you do not program your own EAs, than this is no problem and if you do you should switch to a windows box or maybe consider learning Python for trading and investing. By the way, you can use the same steps to install this software on Mac OSX or on other Linux distros.



In order to install windows apps on Ubuntu linux (or Mac OSX), you need to install Wine, which is a windows emulator software for linux and other unix based systems. Wine will allow you to install many windows based applications on your Ubuntu Linux box. Most applications that install will have some to full functionality. It all depends on how you install and run them through wine. There are several applications that will help you manage your wine installation and the apps that run within it. I will just mention the two that I know of and that I have used:

  • Winetricks
  • Play on linux / Play on Mac

Winetricks Screenshots

Wine and winetricks 1
Wine and winetricks 1
Wine and winetricks 2
Wine and winetricks 2
Wine and winetricks 3
Wine and winetricks 3
Wine running exe file
Wine running exe file

Let's get Started with Winetricks

First we will install wine. On Ubuntu this is as simple as typing this command:

sudo apt-get install wine

If you are currently running ubuntu 15.04 like I am, then winetricks will be installed as a dependency. If it is not installed because you are running a different Linux Distro, then you can get it from here:

Winetricks is basically a script with a simple GUI that let's you do all kinds of stuff with your wine installation in a pre-configured and proven successful way.
Open a terminal and type:


A window will pop up. Choose "select the default wine prefix" and press OK.
You can then install MS fonts by selecting "install a font" and press OK.
Choose MS core fonts and press OK. This will download and install MS core fonts. This will make the font in metatrader look better and improve readability. After you have done this choose "Install a windows DLL or component". From the following list select "mfc40" and "mfc42" and press OK. I am not sure if this last step is still necessary, but with earlier versions of MT4 it was needed.

Now go and download mt4 from your favorite broker or from Metaquotes. Double click on the .exe file or right click and open with wine program loader and install like you would install any other software for windows.

I used to do all my installations this way and it still works. However there is a far more convenient way to manage even multiple instances of wine. And that is by using Play on Linux (or Play on Mac).

Using PlayOnLinux to install MT4

Installing with Play On Linux

Play on Linux is truly awesome software for linux. It is developed in Python. It's main focus is to bring the world of MS Windows based games to the linux platform, but over time it also started supporting the installation of many other software for windows, including mt4 and mt5.
Unfortunately Play on Linux is not part of the standard repositories of Ubuntu so you will have to go to the website and follow the installation instructions. Still, it is quit easy. So go to:

Find the download section and follow the instructions for your distro. If you are running Ubuntu, do this:

Make sure you install wine:i386. So open a terminal (ctrl-alt-t) and execute following command:

sudo apt-get install wine:i386

Then type the following commands:

wget -q "" -O- | sudo apt-key add -
sudo wget -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux

And that should be it.

Once you have it installed, it becomes even more easy. Just open up play on linux and click on install a program. Then click on the other icon to choose the other section. There you will see metatrader 4 and metatrader 5. Select the app you want and press install. A wizard window will pop up. Just click next. A new wine instance will be configured and in it your Metatrader app will be installed. Once it finishes MT4 or MT5 will launch. And next time you can start it from the shortcut on your desktop .

Play On Linux Screenshots

Main window
Main window
Select Metatrader 4 in the Other section
Select Metatrader 4 in the Other section
Run the wizard, which will setup wine and install the app
Run the wizard, which will setup wine and install the app

Metatrader runs Stable on Ubuntu

It has been my experience that MT4 running on Ubuntu via wine performs very stable. In fact it is so stable that I have an Ubuntu Linux VPS setup with GUI desktop and on top of that several MT4 instances running in a master - slave configuration, where all trades on the master are instantly copied to the slaves. How to set this up, will be the subject of another article. But here is a screenshot so you can see what I mean.

Multiple MT4 Instances Running on Ubuntu VPS

Multiple MT4 instances running on Ubuntu VPS
Multiple MT4 instances running on Ubuntu VPS

Your Experiences with Metatrader on Linux or Mac

Please let me know your experience with running Metatrader via wine on Linux or or Mac. I never had the change running Metatrader on Mac, but many brokers over support for MT4 on mac. If you have any questions, ask them in the comments.

MT4 on Linux

Are you Running MT4 on Linux Succesfully?

See results

© 2015 Dave Tromp


Submit a Comment

No comments yet.