MetaTrader 4 on Raspberry Pi

Set up MetaTrader 4 on Raspberry Pi and create your own

money mining machine

MetaTrader 4 on Raspberry Pi

MetaTrader 4 is a great tool for trading on Forex markets. As an ARM-based device user, I would really want to try to install MetaTrader 4 on Raspberry Pi to gain its outstanding benefits. The possibilities of MT4 has brought me to an idea of creating a so-called trading bot on RPi, as a very economy device to use 24/7.

The aim of this bot is to automatically implement the best strategies for currency trading. Being created for x86 architecture hardware, of course, I had to avoid its incompatibility with Raspbian. And going a little further, I can say that I succeeded.

If you are new to what a MetaTrader is like, this is an official and the most popular app for trading on Forex and my aim is to automate it on Raspberry Pi. And as you already know, MT4 is built for x86 devices and we need to put a special effort to make it work on ARM. Well, on the other hand, we have already started Netflix on Raspberry Pi, have launched CrashPlan on it. So, I’m sure we’ll cope with that task too. And to reach our goal we will need the following.

Raspberry Pi test stand configuration

Model

Raspberry Pi 3

Frequency

1200 MHz

Memory

1 GB RAM

Operating System

Raspbian Jessie from July 2017

Software

MetaTrader 4

ExaGear Desktop for Raspberry Pi 3

MetaTrader installation tutorial

Download and Set up ExaGear Desktop

1. So, as the first step, you need to get your ExaGear Desktop. As soon as you are done with the purchase, you’ll receive an email with detailed tutorials on what to do. You need to have it in front of you when you are working with the Pi.

Then enter to Downloads directory via the command line:

$ cd /home/pi/Downloads

2. You are now inside the folder with ExaGear Desktop archive and a license key. Unpack the archive:

$ tar -xvzpf exagear-desktop-rpi*.tar.gz

3. And install ExaGear:

$ sudo ./install-exagear.sh
Install ExaGear to set up MetaTrader 4 on Raspberry Pi

Launch guest x86 system

4. For x86 soft to run properly you need to start x86 guest system:

$ exagear
Starting the shell in the guest image /opt/exagear/images/debian-8

Check if you’re in the x86 environment with the help of the ‘arch’ command:

$ arch

You should see the following result

i686
Get into x86 environment to set up MetaTrader 4 on Raspberry Pi

Install Wine

5. To keep on with the installation we need Wine, which is a simple additional app needed for porting MetaTrader to an ARM device. We always need Wine to run x86 apps on Raspberry Pi (or any other ARM). Use the terminal command:

$ sudo apt-get update && sudo apt-get install wine winbind -y
Install wine to set up MetaTrader 4 on Raspberry Pi

6. After completing the installation you will have to get inside the “Downloads” directory again for your convenience.

$ cd /home/pi/Downloads

Set Up MetaTrader 4

7. As we are working on Raspberry Pi, you need to download it on Raspberry Pi. For downloading a proper version you’d better ask your personal broker about that or download it from the official website of your broker (whatever you are working with).

8. As soon as downloading is finished, launch the installation:

$ wine ./metatrader.exe
Launch the MetaTrader 4 installer on Raspberry Pi

This command will open up the MetaTrader installation manager just as if it was on a Windows device. So, simply follow this manager, agree with all the default options and wait until the installation is done.

Set up MetaTrader 4 on Raspberry Pi with Wine and ExaGear

Run MetaTrader 4

9. To start MetaTrader 4 simply double click on the icon on the Raspbian interface desktop. That’s it. Now it is time to program the best strategies for MetaTrader to implement it 24/7!

Start MetaTrader 4 on Raspberry Pi

Final notes

Of course, it’s worth mentioning, that the fact of setting up MetaTrader on Raspbian doesn’t mean that you have pushed the “cash” button. You also have to use another knowledge for programming your MetaTrader to implement the best selling-and-buying strategy (for example, find some set of strategies here). But once this is done, be sure, that the entire scheme will work consistently and effectively, decreasing your operational cost and time wasting.

Also, note that with ExaGear Desktop you can run almost any x86 app on any ARM-based device including, but not limited to Raspberry Pi, Odroid, Banana Pi, Beagleboard, Cubox, Jetson, Cubieboard and many others.

Get my ExaGear Desktop

Also on Eltechs

Run Wine on Raspberry Pi

Wine on Raspberry Pi

Detailed instruction on running a Wine app on any Raspberry Pi (or other ARM) to port different x86 apps on Raspbian

TeamSpeak 3 Server on Raspberry Pi

Build a TeamSpeak 3 Server on Raspberry Pi

In this post, we will tell you how to setup TeamSpeak 3 Server on Raspberry Pi with ExaGear Desktop which allows running any x86 apps on ARM mini PCs.

Microsoft Dotnet Framework on Raspberry Pi

Run MS .NET Framework 4.5 on Raspberry Pi

Set and run .NET Framework on Raspberry Pi for any specific reason. Step-by-step detailed guide.

Virtual machine for Rasberry Pi - ExaGear Desktop

Virtual machines for Raspberry Pi

Choose the best virtual machine for your Raspberry Pi or any other ARM device comparing ExaGear and its alternatives

Get you gaming experience beyond RetroPie level

Gaming Beyond RetroPie

Run iconic PC games like Arcanum, Disciples II and Fallout on RPi with Exagear and improve your device gaming level beyond Retropie.

How to turn Raspberry Pi into gaming emulator device

Raspberry Pi Gaming emulator

A detailed guide on how to make your Raspberry Pi a powerful gaming emulator and run any iconic and nostalgic PC games on Raspbian (or any other ARM).

ExaGear is registered trademark of Eltechs, Inc. Raspberry Pi is a trademark of the Raspberry Pi Foundation. Other trademarks and product names are the property of their respective owners.