Discussion of article "MetaTrader 5 on Linux" - page 33

 

Tobias Johannes Zimmer #319:
Only the last it rectangle visible.

if(!(m_rect[i].Create(0,"Profit"+string(i),0,0,0,0,0)

Tobias Johannes Zimmer #318:

Because the color picker doesn't open.


Try "F4" https://forum.winehq.org/viewtopic.php?t=33466

 

I have Debian13 with xfce in my test virtualisation:

uname -a
Linux D13-Wine-test 6.12.57+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.57-1 (2025-11-05) x86_64 GNU/Linux

Installed (only with Depends, no Suggests or Recommends)

wine:amd64 10.0~repack-6
wine64:amd64 10.0~repack-6

from Debian's own repository, not winehq.org.

Extracted wine-gecko-2.47.4 and wine-mono-9.4.0 to /opt/wine

This was enough to

2025.12.11 15:38:37.260 Terminal        MetaTrader 5 x64 build 5470 started for MetaQuotes Ltd.
2025.12.11 15:38:37.261 Terminal        Windows 11 build 22000 on Wine 10.0 Linux 6.12.57+deb13-amd64, 1 x Intel Xeon E312xx (Sandy Bridge), AVX, 1 / 1 Gb memory, 3 / 9 Gb disk, GMT+3
2025.12.11 15:38:37.261 Terminal        D:\MT5

to start normally.

But the Fractals indicator was not displayed.

Delivered

fonts-wine:amd64 10.0~repack-6

Copied consola.ttf, wingdng2.ttf, wingdng3.ttf files from .wine/drive_c/windows/Fonts from another VM (with wine from winehq.org) and assigned them to .wine/drive_c/windows/Fonts.

and wrote

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts]
"Consolas (TrueType)"="Z:\\data\\fonts\\consola.ttf"
"Marlett (TrueType)"="Z:\\usr\\share\\wine\\fonts\\marlett.ttf"
"Symbol (TrueType)"="Z:\\usr\\share\\wine\\fonts\\symbol.ttf"
"Webdings (TrueType)"="Z:\\usr\\share\\wine\\fonts\\webdings.ttf"
"Wingdings (TrueType)"="Z:\\usr\\share\\wine\\fonts\\wingding.ttf"
"Wingdings 2 (TrueType)"="Z:\\data\\fonts\\wingdng2.ttf"
"Wingdings 3 (TrueType)"="Z:\\data\\fonts\\wingdng3.ttf"

Now Fractals is displayed.


 
Federico Quintieri #:

In fact, I made it work with these steps (I am on CachyOS) and I am new to Linux

1. Installed Bottles and created a bottle (application)

2. Downloaded the mt5 setup for windows from the original mql5 site (other versions gave proxy errors during installation).

3. In the bootle the "runner" is "ge-proton10-25", which I downloaded from the bootle's home (Preferences => Runner).

4. In the metatrader5 bottle settings I switched to windows 11

5. The bootle dependencies I downloaded are: dotnet48 - allfonts - vcredist2019 - vcredist2015

6. Run mt5.exe in the metatrader5 bottle I just created.

7. Then in the bottle settings you can open a terminal, type "winecfg", in the new window go to graphics and adjust the "dpi" according to how much you want your mt5 to zoom, mine is at 96 (I had the same zoom problem when I tried to install it with lucris, now it works fine).

This is what worked for me, I'm trying and coding different things and it seems to work fine.

If you have hyprland the solution is to use a virtual machine with windows11 installed, I have tried various things but metatrader5 on hyprland just doesn't work.

For the virtual machine I have used, KVM, Qemu and virt-manager

 

Fault phenomenon: the text on the coordinate axes (horizontal and vertical axes) is missing.

Reason for failure: reboot after upgrading mt5.

Tried and true:

1) Upgrade debian v12 to v13. upgrade failed, reinstall debian v13.

2) Downloaded mt5linux.sh from mql5.com and installed it, the failure is still the same. But at this point, it's a little different.

Just after installation, eur/usd, xau/usd, usd/rmb are able to display the text on the axes.

After importing the custom currency "CSI 300" .json file, loading the interface template, copying the historical data file, and entering mt5, the fault appears.

3) Move ~/.mt5 directory, reinitialise winecfg, re-execute mt5linux.sh. Failure reappears.


Missing text on axes


Current working environment:

Debian GNU/Linux 13.2.0 _Trixie

kde plasma v6.36

kernel 6.12.57+debian13-amd64 (64-bit)

wine64 v10.0~repack-6

Files:
 

Problem found: windows/Fonts problem.


Clear files in Fonts, problem solved.

Restore files in Fonts, problem resumed.

 
Tobias Johannes Zimmer #:

This Test EA should show four Rectangles in a line when thrown on a EURUSD chart. Only the last it rectangle visible. I also hat problems changing colors and filling of the rectangles. This came to my attention when I was trying to build a little EA with two rectangles and a few buttons. The buttons were not visible either. 

Strangely the test Expert "Controls" shows all buttons beautifully.

In bottles I tried fixing the problem by installing different dependencies, namely directx, since I remember thinking that directx might have something to do with MT5 graphical objects but I am not sure if that is correct.

Your code is buggy. How can you hope to have 4 rectangles all with the same name ?

Also please report here issues which are related SPECIFICALLY to Wine/Linux.

 

Problem solved.

1) Empty the files in the windows/Fonts directory

2) Copy simsun.ttc into it!

Then, the problem is restored.