Download MetaTrader 5

MetaTrader 4 on Linux

23 November 2012, 14:12
MetaQuotes Software Corp.
29
41 189

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 4 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, which are 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.


Click "Add" in the new window.


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 http://www.winehq.org, 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:


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 v. 1.5 will be installed. After the execution, Wine is ready for use.


Starting MetaTrader 4

To start using MetaTrader 4, 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, move to www.metatrader4.com official web site and click "Free download" or use the direct link mt4setup.exe.

Downloading MetaTrader 4 installation package from the official site

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". MetaTrader 4 installer will be launched. Complete all installation steps:

Installing MetaTrader 4

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

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

Copying previously installed MetaTrader 4

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


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 4 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 4


Conclusion

If we type "Linux" in MQL4.community search box, we will receive about 30 pages of results. This suggests that many users are interested in running MetaTrader 4 on this operating system, and it is necessary to have a unified source of information on the subject. There is only one article on the topic written by one of the community members and it is long out of date, as it was published in 2006.

In the present article, we described an easy way to run MetaTrader 4 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 4 on Linux OS series.

Translated from Russian by MetaQuotes Software Corp.
Original article: https://www.mql5.com/ru/articles/1358

Last comments | Go to discussion (29)
Marco vd Heijden
Marco vd Heijden | 30 Jul 2016 at 16:30

Is working fine.

Please don't believe those who claim IMPOSSIBLE and all that, they simply don(t) know what they are doing or what causes the proxy window.


mattmiller55
mattmiller55 | 7 Aug 2016 at 16:42

Does anyone here have any signals working on linux from https://www.mql5.com/en/signals/mt4 ?

Has anyone managed to install an EA from the Market tab under Linux, since the problem has been know for several years?

 

For me, the latest is that MT4 appears to be only useful on linux if all you want is manual live trading, write your own programs, use code base or use indicators?

I've sadly had to purchase a Windows pc for the sole reason too run a fully functioning MT4 platform that I can use signals (and put up with annoyance of frequent windows and anti virus updates). It would be wonderful to have a fully functioning MT4 platform running on Linux.

 Any help / advice on how to get signals working on Linux would be greatly appreciated.  

Mark Brooker
Mark Brooker | 11 Aug 2016 at 10:02
Marco vd Heijden:

Is working fine.

Please don't believe those who claim IMPOSSIBLE and all that, they simply don(t) know what they are doing or what causes the proxy window.


Well in that case, genius, why don't you explain what causes the proxy window and how to fix it? Or what we have to do to be able to modify indicators?
Marco vd Heijden
Marco vd Heijden | 11 Aug 2016 at 10:41
Mark Brooker:
Well in that case, genius, why don't you explain what causes the proxy window and how to fix it? Or what we have to do to be able to modify indicators?

I did already.

Many times actually.

But people keep posting these proxy problems without searching the site for a solution.

The installer fails to set up a secure connection and as a result the proxy window appears.

The solution is to update the necessary packages, Gecko and Mono.

Or to use a portable version of metatrader since it is not necessary to actually install the terminal.

A portable copy will run fine.(even the one straight from your C: drive !)

As for the (Market) indicators and EA's no they do not work and have never worked,

Simply because if they did it would become peanuts to copy them and this would pose a security threat for the developers/sellers.

Here is it is on Kali, directly from the Live DVD !


For those that want to be sure about things, (and stay in control) you can monitor your system and connections in Kali, using the build in WireShark.




Here are the steps for Knoppix, directly from USB Drive or (micro)-SD Card.

In case of a system failure you can use this USB Drive to boot up (almost) any machine as to manage your open positions.

It works out of the box with mobile modems in case your local connection drops.

Security is important if you take trading seriously.

Anyway here are the steps.

That's it !


In case you wonder about the USB drive itself just download the Knoppix ISO (currently 7.6.1) and burn it to your USB drive with UnetBootin.

MAKE SURE YOU SELECT THE CORRECT DRIVE (!) OR YOU WILL LOSE YOUR FILES/DATA !!!

If you are not sure just don't do it and ask someone who knows how to do it.

If that's done you can boot your system from the USB Drive and set up your trading environment following the steps above.

And you will be able to take your personal trading environment with you, anywhere you go.

FxZoo
FxZoo | 14 Aug 2016 at 10:51
DonFx:

So sad,

Currently it is IMPOSSIBLE to make a fresh INSTALL of METATRADER4 onto a LINUX system!!!

Things written in the article are totally useless (outdated).

I've tried everything, but without success.

It always asks for a proxy configuration!!!


HEY METAQUOTES! WHY DON'T YOU MAKE A STEP-BY-STEP WORKAROUND FOR THIS ISSUE?!


here is the solution
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.