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

MetaTrader 5 on Linux

MetaTrader 5Trading | 18 January 2013, 07:18
574 446 100

In this article, we demonstrate how to install MetaTrader 5 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 5 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 ; chmod +x ; ./

For Debian:

wget ; chmod +x ; ./

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 5 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 5 installer will launch after that. Once you complete the standard steps, the platform is ready to go.

The MetaTrader 5 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 5 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\.mt5\drive_c\Program Files\MetaTrader 5

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

Translated from Russian by MetaQuotes Ltd.
Original article:

Last comments | Go to discussion (100)
WStranger | 31 Jul 2023 at 13:30
Dominik Christian Egert #:
What you will probably find is that the DLL is not detached from the terminating process.

I had been struggling with this issue with mysqlclient.dll and could figure out, strategy tester does not clean detach the DLL. Much more it seems Terminal is actually loading the DLL, and that's where it stays loaded.

Please do some research on this, because I cannot confirm on older client versions anymore, as they don't work as of today. Therefore I have currently no possibility to reproduce the issue from back then.
Shame on me. I figured out that .NET Framework was not properly installed on the Wine prefix where I run the Metatrader 5 terminal. After reinstalling it, the DLL problem was resolved.
Thanks for your help anyway!
Dominik Egert
Dominik Egert | 31 Jul 2023 at 17:48
WStranger #:
Shame on me. I figured out that .NET Framework was not properly installed on the Wine prefix where I run the Metatrader 5 terminal. After reinstalling it, the DLL problem was resolved.
Thanks for your help anyway!
Well, thank you for reporting back, I didn't know that.
samy Salah
samy Salah | 1 Dec 2023 at 07:08

How come!!! MetaTrader the most used and the basic software for every broker in the world and you still cannot program the software for multiple operating systems!!!

Why should I use Wine to run MetaTrader!!!

Dominus | 29 Apr 2024 at 18:27
Currently struggling a bit to install several instances of it. Copy paste is what I did for now. IDK how to install it in a custom folder from 0.

Using a different wine prefix is definitely needed, otherwise the history and account of one of them will get replaced! (maybe this happens even with a different prefix, IDK).

As I don't fully understand wine, I could not accomplish getting the .desktop file work with the second MT5. So it only works by clicking on the .exe

MX linux (based on debian) failed to install EA's with the market link in my case, so I use Linux Mint.
nasar78613 | 21 Jul 2024 at 20:10
recently i install mt5 on linux and it work good but how to can i install indicator from market metatrader  
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.
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 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.
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
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.