Python integration on Mac OS

 
Hello everyone ,
I’m wondering how is possible to run python wrapper for mt5 on Mac as guidance show .exe .

First I thought about recommended option to simply utilise parallel but I would  need to buy Pro to utilise 12 core and 30 gpu core on M2 Max .
Other option I thought to get wine with necessary libraries but not sure if this would be possible to have python running in terminal and wine not crashing .

And final can I just locate .app in application and use Intel version with Rosetta ? 

Thanks for any advice .
 
Pavloper: I’m wondering how is possible to run python wrapper for mt5 on Mac as guidance show .exe . First I thought about recommended option to simply utilise parallel but I would  need to buy Pro to utilise 12 core and 30 gpu core on M2 Max . Other option I thought to get wine with necessary libraries but not sure if this would be possible to have python running in terminal and wine not crashing . And final can I just locate .app in application and use Intel version with Rosetta ? 

I have zero experience with Mac, but as far as I understand it, to use the Python API on a Mac, you will probably have to use a Windows version of Python running in the same virtualised environment as MetaTrader 5.

Forum on trading, automated trading systems and testing trading strategies

MT5 Python integration on Mac M1 (ARM)

Fernando Carreiro, 2022.09.06 13:00

You will probably have to run a "Windows" python setup on Wine as well. I don't think it will be able to "talk" to the the macOS setup of Python.

Forum on trading, automated trading systems and testing trading strategies

Dear MetaQuotes can you build a python SDK for arm archtecture?

Fernando Carreiro, 2023.02.04 16:02

MetaTrader 5 is a Windows application, and is therefore aimed at Intel based CPU's. It's use on a Mac is via virtualisation/emulation of the Windows and Intel environment. So, making a ARM based SDK does not make sense.

EDIT: To use Python with MetaTrader 5 on a Mac, you have to use the Windows version of Python, also running on "parallels" .

 
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
 
Fernando Carreiro #:
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893


Thank you , for moving to correct section .

I'm not having a much experience with this forum . 

I tried "

pip3 install MetaTrader5

Defaulting to user installation because normal site-packages is not writeable

ERROR: Could not find a version that satisfies the requirement MetaTrader5 (from versions: none)

ERROR: No matching distribution found for MetaTrader5

I have checked it here https://pypi.org/project/MetaTrader5/#files only windows x86-64 version :-( 

 

As far as I have seen from other user's posts, I don't think it will work with "Rosetta" or "CrossOver", only with "Wine" or "Parallels".

Also, you will have to use Python v3.13 (for Windows) at most and no higher.