Download MetaTrader 5

MetaTrader 5 on Linux

18 January 2013, 07:18
MetaQuotes Software Corp.
75 171


Linux is a Unix-like computer operating system assembled under the model of free and open source software development and distribution. Linux systems are widely used in smartphones and server hardware. Many home PC users prefer it to MS Windows series.

In this article, you will find out how to work in MetaTrader 5 via one of the Linux versions - Ubuntu.

Installing Wine on Ubuntu

One of the Linux features is the absence of a unified distribution kit. Different groups of developers work on several Linux versions including Debian, Mint, Ubuntu, OpenSUSE, Gentoo, etc. In this article we will consider one of the most popular distribution kits - Ubuntu.

Wine is a free software that allows users of the Unix-based systems to run an application developed for the Microsoft Windows systems. Among all the Wine versions there is one for Ubuntu.

Note that Wine is not a fully stable application. Thus, some functions in the applications you start under it may work improperly or not work at all.

Preliminary setup should be performed before the installation. All applications are installed on Ubuntu from the packages contained in repositories. The path to WineHQ PPA repository should be added to install Wine. Open Ubuntu Software Center and execute "Software Sources" command in "Edit" menu.

Software Sources

Click "Add" in the new window.

Adding Repository

The following data should be specified in АРТ (Advanced Package Tool) line: ppa:ubuntu-wine/ppa. Click "Add Source". This completes the preliminary setup.

To install Wine, open its official website, go to Downloads section and choose the distribution kit for Ubuntu. Click the appropriate link to install the latest Wine version. Currently, the latest stable version is Wine 1.4.1. You can also download beta version Wine 1.5.21, which has many improvements but may appear less stable. The system will prompt you to open the link via Ubuntu Software Center. Agree to that and the Software Center will prompt to start Wine installation:

Installing Wine

Click "Install" and wait for the installation to complete. Once the installation is complete, it will already be possible to run Microsoft Windows executable files in Ubuntu.

Installing Wine from the Command Line

You can use command line (which is called "Terminal" in Ubuntu) to install Wine without using Ubuntu GUI.

Execute the following command to add WineHQ PPA repository, from which Wine will be installed:

sudo add-apt-repository ppa:ubuntu-wine/ppa

Installing Wine via the command line

After its execution, update APT package data using the following command:

sudo apt-get update

Upon its execution, you can start Wine installation. Execute the following command:

sudo apt-get install wine1.5

Wine version 1.5 will be installed. After the execution, Wine is ready for use.

Starting MetaTrader 5

To start using MetaTrader 5, you should either download and install the installation file or copy the entire folder of the client terminal previously installed in Microsoft Windows system.

To download the installation file, go to official web site and click "Free download" or use the direct link mt5setup.exe.

Downloading MetaTrader 5 installation package from the official website

The system will automatically determine that you are trying to run a file designed for Microsoft Windows and will offer to open it with Wine. Select this option and click "OK".

Opening MetaTrader 5 installation package via Wine

MetaTrader 5 installer will be launched. Complete all installation steps:

Installing MetaTrader 5

After installation is complete, you can start using MetaTrader 5 by running its terminal.exe file.

Another way to start using MetaTrader 5 in Ubuntu is copying the entire folder of the client terminal previously installed in Microsoft Windows:

Copying previously installed MetaTrader 5

After copying is complete, simply run terminal.exe file of MetaTrader 5 terminal. Wine will be used automatically to open the file. The screenshot below shows MetaTrader 5 terminal in Ubuntu system:

MetaTrader 5 on Ubuntu

Known Issues

As was already mentioned above, Wine is not a completely stable software. Thus, some functions of the MetaTrader 5 terminal may work improperly. Currently the following issues are discovered:

Except for the above problem, you can enjoy all the features of MetaTrader 5 on Ubuntu.

MetaTrader 5 Data Directory

Wine creates a virtual logical drive with necessary environment for installed programs. The default path of the installed terminal's data folder is as follows:

Home\.wine\drive_c\Program Files\MetaTrader 5


In the present article, we described an easy way to run MetaTrader 5 under Ubuntu operating system. All basic terminal functions are available to traders. We hope that this article, or to be more precise, the comments to it, will become a good place for accumulating useful information about running Meta Trader 5 on Linux OS series.

Translated from Russian by MetaQuotes Software Corp.
Original article:

Last comments | Go to discussion (26)
Miftahul Munir
Miftahul Munir | 6 Dec 2015 at 11:33

only windows who officially support running custom indicators and EA.

only c++ who officially support running custom indicators and EA.

unfortunately, my resource running low, and cheap arm device eks secondhand smartphone the only option for me.

create EA with whatever programming language, and running on low power low cost device is my dreams.

no, actually my dream is take high class rig pc and high class server pc, rent building for my EA, bad joke haha.

but now metatrader web based is on the way, beta version.

maybe 2 or 3 years later metatrader will open API, so everyone can build their own custom indicator and EA on their own language programming and device that can they purcase, or maybe 5 years later, be patien.

evertonbg | 25 Apr 2016 at 03:01
For solving keyboard layout issues in MetaEditor, go to "System Settings... > Language Support > Language tab" and choose "none" in "Keyboard input method system:" dropdown list.
Nezar Mahir
Nezar Mahir | 12 May 2016 at 17:29
Has anyone found a way to get mql5 market working on linux?
bucket | 20 Sep 2016 at 00:28

On my Debian 8 System I installed MT4 and MT5. Both work quite good. MT4/5 do not run 100% perfect but most things work fine on my wine-1.9.19 installation. I pulled wine directly from WineHQ repositories.

In MT4 I can display the HTML news. In MT5 I can not read HTML news. The Window shows "Loading ...." and nothing happens. Saving and Printing news fails on MT5 too. I think the relevant error messages are:

p { margin-bottom: 2.47mm; line-height: 120%; }

fixme:ieframe:PersistStreamInit_InitNew (0x54e2d10)

fixme:ieframe:BrowserService_GetTravelLog 0xbb8cd48 0x33c358

fixme:mshtml:on_change_dlcontrol unsupported dlcontrol 40000510

fixme:ieframe:ClientSite_GetContainer (0x54e2ddc)->(0x33c32c)

fixme:mshtml:nsChannel_GetContentDisposition (0x1b9250)->(0x33bb88)

fixme:mshtml:nsChannel_GetContentDispositionHeader (0x1b9250)->(0x33b2dc)

fixme:ieframe:ClientSite_GetContainer (0x54e2ddc)->(0x33d0ec)

err:toolbar:ToolbarWindowProc unknown msg 0465 wp=00000000 lp=0033e1e8

fixme:ieframe:DocHostUIHandler_GetDropTarget (0x54e2ddc)

err:toolbar:ToolbarWindowProc unknown msg 0465 wp=00000000 lp=0033e828

fixme:ieframe:PropertyNotifySink_OnChanged unimplemented dispid 1005

fixme:ieframe:PropertyNotifySink_OnChanged unimplemented dispid 1005

fixme:ieframe:WebBrowser_Stop (0x54e2d10)

fixme:ieframe:PersistStreamInit_InitNew (0xd094928)

Anyone has an idea how to fix this?

Aecio de Feo Flora Neto
Aecio de Feo Flora Neto | 21 Sep 2016 at 17:33

Latest wine version (1.8) requires winhttp library in order to run  mt5setup.exe. Otherwise proxy settings dialoag box appears.

To solve this, download winetricks (latest version) and run:

winetricks winhttp

Step on New Rails: Custom Indicators in MQL5 Step on New Rails: Custom Indicators in MQL5

I will not list all of the new possibilities and features of the new terminal and language. They are numerous, and some novelties are worth the discussion in a separate article. Also there is no code here, written with object-oriented programming, it is a too serous topic to be simply mentioned in a context as additional advantages for developers. In this article we will consider the indicators, their structure, drawing, types and their programming details, as compared to MQL4. I hope that this article will be useful both for beginners and experienced developers, maybe some of them will find something new.

Here Comes the New MetaTrader 5 and MQL5 Here Comes the New MetaTrader 5 and MQL5

This is just a brief review of MetaTrader 5. I can't describe all the system's new features for such a short time period - the testing started on 2009.09.09. This is a symbolical date, and I am sure it will be a lucky number. A few days have passed since I got the beta version of the MetaTrader 5 terminal and MQL5. I haven't managed to try all its features, but I am already impressed.

False trigger protection for Trading Robot False trigger protection for Trading Robot

Profitability of trading systems is defined not only by logic and precision of analyzing the financial instrument dynamics, but also by the quality of the performance algorithm of this logic. False trigger is typical for low quality performance of the main logic of a trading robot. Ways of solving the specified problem are considered in this article.

Using text files for storing input parameters of Expert Advisors, indicators and scripts Using text files for storing input parameters of Expert Advisors, indicators and scripts

The article describes the application of text files for storing dynamic objects, arrays and other variables used as properties of Expert Advisors, indicators and scripts. The files serve as a convenient addition to the functionality of standard tools offered by MQL languages.