ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

How to Install Metatrader From Metaquotes on Ubuntu Linux Using Wine

Updated on July 18, 2018
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.


This website uses cookies

As a user in the EEA, your approval is needed on a few things. To provide a better website experience, uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at:

Show Details
HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
LoginThis is necessary to sign in to the HubPages Service.
Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
AkismetThis is used to detect comment spam. (Privacy Policy)
HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the or domains, for performance and efficiency reasons. (Privacy Policy)
Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
MavenThis supports the Maven widget and search functionality. (Privacy Policy)
Google AdSenseThis is an ad network. (Privacy Policy)
Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
Index ExchangeThis is an ad network. (Privacy Policy)
SovrnThis is an ad network. (Privacy Policy)
Facebook AdsThis is an ad network. (Privacy Policy)
Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
AppNexusThis is an ad network. (Privacy Policy)
OpenxThis is an ad network. (Privacy Policy)
Rubicon ProjectThis is an ad network. (Privacy Policy)
TripleLiftThis is an ad network. (Privacy Policy)
Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)
ClickscoThis is a data management platform studying reader behavior (Privacy Policy)