lucas-campagna / mt5linux

MetaTrader5 for linux users
MIT License
66 stars 37 forks source link

Unstable Linux 64bit mt5 installation #12

Open newuser202201 opened 1 year ago

newuser202201 commented 1 year ago

The last 64bit mt5 version is crashing with wine. This has been documented on the mt5 forum https://www.mql5.com/en/forum/10114/page8#comment_43867431.

The 32 version which is automatically installed by this script (terminal.exe), https://www.metatrader5.com/en/terminal/help/start_advanced/install_linux, using a 32 bit wineprefix, is stable but it does not work with https://www.mql5.com/en/docs/integration/python_metatrader5, while teminal64.exe installed in a 64 wineprex crashes all the times.

What linux/wine/executable version are you using?

Thanks

lucas-campagna commented 1 year ago

This project was built when this problem wasn't occurring, at this time I was using Ubuntu-20.04, wine32 (not sure) I don't remember the executable version. Since I have moved to Windows + WSL, I'm no longer using this library (mt5linux). Try to do this https://www.mql5.com/en/blogs/post/751281. It seems to be a recent modification, they shall fix this as soon as possible.

jimmymaise commented 1 year ago

could you please release the new version to pypy. The version 0.1.9 is outdated

newuser202201 commented 1 year ago

Now metatrader works, though i am not sure if the installed version is old or was automatically updated. Te mt5linux connection is established but not data can be retrieved. See below.

from mt5linux import MetaTrader5 mt5 = MetaTrader5(

host = 'localhost',#(default)

#port = 18812 ,#      (default)

) mt5.initialize()

The code above returns False.

The server log is

INFO:SLAVE/18812:accepted ('127.0.0.1', 46208) with fd 220 INFO:SLAVE/18812:welcome ('127.0.0.1', 46208)