MetaTrader 5 (Mac)
*For macOS running on Apple Silicon chips.
1. Setup via Homebrew
- Install Wine view Homebrew. If Homebrew is not yet installed, install it from here: https://github.com/Homebrew/brew/releases/tag/4.4.23
- Open Terminal and run
brew install --cask wine-stable
. - Verify wine installation by running
wine –version
. - If it prints the version number, wine is installed correctly.
- Run
which wine
. - It should display /usr/local/bin/wine or /opt/homebrew/bin/wine.
- If wine is installed but see “command not found”, try running this:
echo export PATH="/opt/homebrew/bin:$PATH"' >> ~/.zshrc source ~/.zshrc
Then run wine –version
again.
2. MT5 Setup via Wine
- Download MT5 exe here https://www.metatrader5.com/en. Note: We need .exe instead of .pkg
- Open Terminal.
- In the terminal, go to the directory where mt5setup.exe was saved.
- Example: If saved in the Downloads, go to Downloads directory by running
cd Downloads
on the terminal. - Run
wine mt5setup.exe
. This should open the MT5 App. - Download the dlls from the PineConnector Portal and import them via command line by running:
mv ~/Downloads/PineConnector/PineConnector-MT5-DLL-v1.17.dll ~/Downloads/PineConnector/PineConnector-MT5-EA-v3.45.ex5 ~/.wine/drive_c/Program\ Files/MetaTrader\ 5/MQL5/Experts/
- The command should move the dll files to wine’s directory. Refresh the MT5 App and it should also display the EA on Experts folder.
- Note: If you encountered a permission denied error after running the command, change the permission by running
chmod 777 {filename}
. Make sure that your terminal is currently pointed at the directory where the file is saved. - Example: usr/user-default/Downloads/PineConnector> chmod 777 PineConnector-MT5-EA-v3.45.ex5