Русский 中文 Español Deutsch 日本語 Português 한국어 Français Italiano Türkçe
MetaTrader 4 on Linux

MetaTrader 4 on Linux

MetaTrader 4Examples | 23 November 2012, 14:12
317 316 40
MetaQuotes
MetaQuotes

In this article, we demonstrate how to install MetaTrader 4 on popular Linux versions, Ubuntu and Debian. These systems are widely used on companies’ server hardware as well as on traders’ personal computers.


Installing the platform with one command

MetaTrader 4 runs on Linux using Wine. Wine is a free compatibility layer that allows application software developed for Microsoft Windows to run on Unix-like operating systems.

We have prepared a special script to make the installation process as simple as possible. The script will automatically detect your system version, based on which it will download and install the appropriate Wine package. After that, it will download and run the platform installer.

To start the installation, open the command line (Terminal) and specify the relevant command:

For Ubuntu:

wget https://download.mql5.com/cdn/web/metaquotes.software.corp/mt4/mt4ubuntu.sh ; chmod +x mt4ubuntu.sh ; ./mt4ubuntu.sh

For Debian:

wget https://download.mql5.com/cdn/web/metaquotes.software.corp/mt4/mt4debian.sh ; chmod +x mt4debian.sh ; ./mt4debian.sh

This command downloads the script, makes it executable and runs it. You only need to enter your account password to allow installation.

Installing Wine and MetaTrader 4 with a single command


If you are prompted to install additional Wine packages (Mono, Gecko), please agree, as these packages are required for platform operation. The MetaTrader 4 installer will launch after that. Once you complete the standard steps, the platform is ready to go.

The MetaTrader 4 platform is ready to run on Linux


Install updates in a timely manner

It is highly recommended to always use the latest versions of the operating system and Wine. Timely updates increase platform operation stability and improve performance.

To update Wine, open a command prompt and type the following command:

sudo apt update ; sudo apt upgrade

For further information, please visit the official Wine website.


MetaTrader 4 Data Directory

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

Home directory\.mt4\drive_c\Program Files\MetaTrader 4


Use MetaTrader 4 on Linux: install with a single command and enjoy all the platform features.

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

Last comments | Go to discussion (40)
Marco vd Heijden
Marco vd Heijden | 5 Jun 2019 at 20:39
DGRL:

Does anyone has a solution for Ubuntu 18.04 server?

I did everything but keeps giving error of proxy

Gecko is not even available anymore i kep getting error  " couldn't find any package wne-gecko2.21"

Mono is installed but still error of proxy

Internet is full of so called solutions but for the server edition of ubuntu 18.04 its not working 

Hope someone can help me out 

That is bionic beaver and that is the same one i proposed the solution for.

What is your processor architecture ? 

Here is the discussion for Metatrader on Linux: https://www.mql5.com/en/forum/10114/page3#comment_7845504

mangir
mangir | 29 Jun 2019 at 16:37

I have found an easy way to use mt4 on linux. I use linux mint cinnamon.


1-Find the folder in your windows computer, May be it is c: program files (x86)/ Meta Trader 4 IC Markets. 

2-Copy this folder any where in your linux computer.

3-Open this folder and right click terminal.exe, choose open with wine  ( I have Q4wine so I choose Q4wine)  now your MT4 is running on linux.

4-Bad news is no market tab, and can not adjust the tester speed.

5-Good news is you can do the same thing to run MT5 and MT5 has market tab and tester speed.






G Cat
G Cat | 15 Oct 2020 at 03:31
As much as I love Linux, I run MT4 in Virtual Box on my Manjaro desktop. The VM is Windows 10. Everything is blazing fast. However, I have a crazy quick Ryzen processor with 32 gigs of RAM. That's probably why is works flawlessly. Having enough RAM is key for proper VM performance.
[Deleted] | 29 Nov 2020 at 12:55
Marco vd Heijden:

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.

Why does EA fail on Linux systems?
simone559
simone559 | 9 Jun 2021 at 15:27

Good day,

Can anyone please help me, i have tried all that i know and then some more, i have installed wine on my linux 18.04, but when i try to install MT4 or MT5 nothing happens, i right click and open with Wine the cursor just loads for a while then stops, no pop up nothing, but it seems all other App's work fine, i can install them via wine, its just Metatrader thats giving issues, i would appreciate the help thanks

Interview with Juan Pablo Alonso Escobar (ATC 2012) Interview with Juan Pablo Alonso Escobar (ATC 2012)
"Everyone who is struggling with programming and who were not able to participate in this year's competition, know that it becomes a lot easier in time", said Juan Pablo Alonso Escobar (JPAlonso), the hero of today's interview.
How to become a Signals Provider for MetaTrader 4 and MetaTrader 5 How to become a Signals Provider for MetaTrader 4 and MetaTrader 5
Do you want to offer your trading signals and make profit? Register on MQL5.com website as a Seller, specify your trading account and offer traders a subscription to copy your trades.
Interview with Evgeny Gnidko (ATC 2012) Interview with Evgeny Gnidko (ATC 2012)
The Expert Advisor of Evgeny Gnidko (FIFO) currently seems to be the most stable one at the Automated Trading Championship 2012. This trading robot entered TOP-10 at the third week remaining one of the leading Expert Advisors ever since.
How to Test a Trading Robot Before Buying How to Test a Trading Robot Before Buying
Buying a trading robot on MQL5 Market has a distinct benefit over all other similar options - an automated system offered can be thoroughly tested directly in the MetaTrader 5 terminal. Before buying, an Expert Advisor can and should be carefully run in all unfavorable modes in the built-in Strategy Tester to get a complete grasp of the system.