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

 
Thiago Ferreira #:
wine-10.8-staging-tkg-ntsync

I installed wine-10.8-staging-tkg-ntsync from Lutris without any tambourine. The ProtonUp-Qt software installs WINE builds for Lutris. Windows 10 mode is set by default and I didn't change it to Windows 11. Only for installing MicrosoftEdgeWebview2Setup.exe I tried compatibility with Windows 8.1.

 
After I noticed some inconsistencies in the graph when dragging the mouse in the menus after installing MT5 via Wine Staging, I decided to create a VM with Windows Server 2019 so I wouldn't have any more problems with it. I deactivated all the features (or almost all of them) of a Server and it became like Windows 10 for me, but with the advantage of having update support for a few more years. As long as I don't have a native MT5 solution for Linux, my first choice should be Windows VMs.
 
Ilya Filatov arrow indicator buffers are not displayed on charts (at all, even standard indicators). Wingdins font is present and visible in other applications. And everything worked before.
It turned out that the terminal used to work without the font correctly written in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts in the system, but now it doesn't. So if the arrows are missing, it means you need to tidy up the presence of the wingding.ttf font.
 

For i made it work with these steps (I'm on CachyOS) and i'm new to linux

1. Installed Bottles and made a bottle (application)

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

3. In the bootle the "runner" is "ge-proton10-25" which i downloaded from the bootle home (Preferences => Runners)

4. On the settings of the metatrader5 bottle i switched to windows 11

5. The dependiencs of the bootle that i downloaded are:  dotnet48 - allfonts - vcredist2019 - vcredist2015

6. Runned the mt5.exe in the metatrader5 bottle that i just created

7. Then in the settings of the bottle you can open a terminal, write "winecfg", it the new windows go to graphics and tune the "dpi" based on how much zoomed you want your mt5, mine is at 96 (I had the same zooming problem when i tried installing it with lucris, now it works fine)

That's what worked for me, i'm trying and coding different stuff and it seems to work fine.

 
@Federico Quintieri This is the only method that worked for me. I am on Ubuntu 24.0 LTS and have tried so many options and nothing solved the market not displaying issue on MT5. These exact steps resolved all issues. Thank you very much !! 
 
i have used bottles, pure wine and playonelinux and nothing i install it runs smoothly in bottles for example but it does not load the templates it always has problems with the market and so i had to use virtual box for the most powerful pc install windows on the other two pc i had to go back to windows waiting for mql5 to make an application that runs natively in linux
 
Federico Quintieri #:

For i made it work with these steps (I'm on CachyOS) and i'm new to linux

1. Installed Bottles and made a bottle (application)

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

3. In the bootle the "runner" is "ge-proton10-25" which i downloaded from the bootle home (Preferences => Runners)

4. On the settings of the metatrader5 bottle i switched to windows 11

5. The dependiencs of the bootle that i downloaded are:  dotnet48 - allfonts - vcredist2019 - vcredist2015

6. Runned the mt5.exe in the metatrader5 bottle that i just created

7. Then in the settings of the bottle you can open a terminal, write "winecfg", it the new windows go to graphics and tune the "dpi" based on how much zoomed you want your mt5, mine is at 96 (I had the same zooming problem when i tried installing it with lucris, now it works fine)

That's what worked for me, i'm trying and coding different stuff and it seems to work fine.

Thanks very much. I have been struggling with this for nearly 3 weeks even using bottles. using your proton runners makes everything run smoothly. thanks very much. no need for an expensive wndows vps now. lol
 

The installation script works. Trading also works and so does running MT5 with basic indicators.

But there are already some problems because not all indicators are created equal. Some have a different configuration window and not all of them allow you to change colors. Because the color picker doesn't open. You can change the period though.

Try the Channels from the included Custom Indicators folder: you can't change colors on the channels.

What it also can't do is creating and manipulating multiple graphical objects via an Expert. It doesn't work with any combination of Bottles because it doesn't work with the installation script.

 :-|
 
#include <ChartObjects/ChartObjectsShapes.mqh>

CChartObjectRectangle   m_rect[];


bool IsFirstRun=true;

//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
//---
   ArrayResize(m_rect,4);
   for(int i=0;i<ArraySize(m_rect);i++)
     {
      if(!(m_rect[i].Create(0,"Profit",0,0,0,0,0)
       ))
      Print("Test Rectangle objects creation failed!");

   else
      PrintFormat("Test Rectangle%d creation succeeded",i);
     }
   

//---
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
//---
   for(int i=0;i<ArraySize(m_rect);i++)
     {
      if(m_rect[i].Delete())PrintFormat("Test Rectangle%d deleted",i);
      else PrintFormat("Test Rectangle%d removal failed",i);
     }
  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
//---
   if(IsFirstRun || IsNewBar())
     {
      int barShift=0;
      for(int i=0;i<ArraySize(m_rect);i++)
        {
         if(!m_rect[i].SetPoint(0,iTime(_Symbol,_Period,barShift),SymbolInfoDouble(_Symbol,SYMBOL_ASK))) PrintFormat("Point %d, %d Setting failed",i,0); else PrintFormat("Point %d, %d Setting succeeded",i,0);
         barShift+=10;
         if(!m_rect[i].SetPoint(1,iTime(_Symbol,_Period,barShift),SymbolInfoDouble(_Symbol,SYMBOL_ASK)+0.003))PrintFormat("Point %d, %d Setting failed",i,1); else PrintFormat("Point %d, %d Setting succeeded",i,1);
        }
      

      IsFirstRun=false;
     }
  }

bool IsNewBar()
  {
   bool result=false;
   static datetime newBar=0;
   datetime currBar = iTime(_Symbol,_Period,0);
   if(newBar!=currBar)
     {
      result=true;
      newBar=currBar;
     }
   return result;
  }

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.

Custom Graphical Controls. Part 1: Creating a Simple Control
Custom Graphical Controls. Part 1: Creating a Simple Control
  • 2011.09.27
  • www.mql5.com
This article covers general principles of development of graphical controls. We are going to prepare tools for a quick and convenient work with graphical objects, analyze an example of creation of a simple control for entering text or numeric data as well as the ways of using it.
 
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.

What exactly are you discussing? I have a suspicion you're off-topic, although I'm not sure.