MetaTrader 5 on Linux

18 January 2013, 07:18
MetaQuotes Software Corp.
30
116 173

Introduction

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.
  • It is strongly recommended to use the latest version of Ubuntu and Wine. Timely update provides the greatest stability of the trading platform.

All applications under Ubuntu are installed from the packages contained in repositories. In the latest versions of Ubuntu, the required Wine installation repository is already available in the system without additional settings. Therefore, to install Wine, you only need to execute one command on the command line (called "Terminal" in Ubuntu):

sudo apt-get install wine-stable

This command installs the latest stable version of Wine.

Installing Wine from the Command Line


You can also install the Wine version for developers. This version may contain various improvements, but be less stable. To install it, run the following command:

sudo apt-get install wine-development

If your Ubuntu version does not provide a repository and you get an error during Wine installation, run the following commands one by one:

wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/

Next, update the package information by executing the following command:

sudo apt-get update

After the command execution, install Wine using the following command:

sudo apt-get install --install-recommends winehq-stable

For details on installation under Ubuntu, please visit the official Wine site.



Starting MetaTrader 5

To install the platform, download its installer "mt5setup.exe". When the download completes, run the setup file. The system automatically detects that you are trying to run a file designed for Microsoft Windows, and offers 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


Conclusion

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: https://www.mql5.com/ru/articles/625

Last comments | Go to discussion (30)
xlwarez
xlwarez | 1 Jan 2017 at 12:43

Hi,

 

I have problems with MetaTester 5 in linux. All installation was well, MetaTester also launching and done few tasks, but it working just 10-20 minutes and close. And every time I launch MetaTester it after 10-20 minutes close. Can anyone help me fix it?

 

Testing envyroment:

I tried in Ubuntu 16.04 and Centos 6

1.8.6 wine versiom 

martinfou
martinfou | 6 Aug 2017 at 18:23
Aecio de Feo Flora Neto:

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


I was having the same problem with ubuntun xenial but winetricks winhttp did not work for me. 


My work around was the following

1) installing latest stable version of wine with 32bit architecture

yes Y | sudo apt-get update

echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections

yes Y | udo apt-get install ttf-mscorefonts-installer

yes Y | sudo apt-get install xauth

yes Y | sudo dpkg --add-architecture i386

wget -nc https://dl.winehq.org/wine-builds/Release.key

sudo apt-key add Release.key

sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/

yes Y | sudo apt-get update

yes Y | sudo apt-get install --install-recommends winehq-stable

WINEPREFIX="$HOME/.wine" WINEARCH=win32 wine wineboot


2) Install metatrader 5 

cd /tmp

wget https://download.mql5.com/cdn/web/metaquotes.software.corp/mt5/mt5setup.exe

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff} span.s1 {font-variant-ligatures: no-common-ligatures; color: #cd7923} span.s2 {font-variant-ligatures: no-common-ligatures} span.s3 {font-variant-ligatures: no-common-ligatures; color: #c33720}

wine /tmp/mt5setup.exe


p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff} span.s1 {font-variant-ligatures: no-common-ligatures; color: #cd7923} span.s2 {font-variant-ligatures: no-common-ligatures} span.s3 {font-variant-ligatures: no-common-ligatures; color: #c33720}
cheezus
cheezus | 12 Jun 2018 at 15:40
Save yourself the insanity of trying to run the installer under Linux. Install it under a Windows VM and copy the directory to a Wine installation. It must be 64-bit, however.
Marco vd Heijden
Marco vd Heijden | 12 Jun 2018 at 17:12

Some work out of the box, use those.

Marco vd Heijden
Marco vd Heijden | 21 Jun 2018 at 18:10

Here is the current solution for the 32 Bit Terminal on 64 Bit Ubuntu.

sudo dpkg --add-architecture i386 
wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
sudo apt-get update
sudo apt-get install --install-recommends winehq-staging
WINEARCH=win32 winecfg

After this you will be asked to install Mono and Gecko.

After this you select compatibility mode Windows 7 or later.

And then proceed to download the installer https://download.mql5.com/cdn/web/metaquotes.software.corp/mt5/mt5setup.exe?utm_source=www.mql5.com&utm_campaign=en.0009.desktop.default

$ cd Downloads
$ wine mt5setup.exe

Which should install Metatrader 5 32 Bit.

MetaTrader 5 on Mac OS MetaTrader 5 on Mac OS

Apple products have become very popular. MetaQuotes Software Corp. attentively follows the progress of the IT industry and has already released the special mobile applications for iOS-based devices - MetaTrader 4 for iPhone and MetaTrader 5 for iPhone. There are many topics on MQL5.community forum, where people are seeking a solution for running MetaTrader 5 under Mac OS operating system. In this article, you will find out how to work with MetaTrader 5 via the Apple's popular operating system.

General information on Trading Signals for MetaTrader 4 and MetaTrader 5 General information on Trading Signals for MetaTrader 4 and MetaTrader 5

MetaTrader 4 / MetaTrader 5 Trading Signals is a service allowing traders to copy trading operations of a Signals Provider. Our goal was to develop the new massively used service protecting Subscribers and relieving them of unnecessary costs.

Neural Networks: From Theory to Practice Neural Networks: From Theory to Practice

Nowadays, every trader must have heard of neural networks and knows how cool it is to use them. The majority believes that those who can deal with neural networks are some kind of superhuman. In this article, I will try to explain to you the neural network architecture, describe its applications and show examples of practical use.

Order Strategies. Multi-Purpose Expert Advisor Order Strategies. Multi-Purpose Expert Advisor

This article centers around strategies that actively use pending orders, a metalanguage that can be created to formally describe such strategies and the use of a multi-purpose Expert Advisor whose operation is based on those descriptions