darwinex / dwxconnect

Seamlessly link any Trading Strategy in ANY programming language to Darwinex liquidity via MetaTrader 4 or 5. DWX Connect is your very own, fully customizable Trading API!
BSD 3-Clause "New" or "Revised" License
158 stars 84 forks source link

installation does not work on Mac #8

Closed m-ouada closed 2 years ago

m-ouada commented 2 years ago

The path to Files directory on Mac vs other is really mixed up and there is actually no solution that would be working in this case for MT4_files_dir or MT5_files_dir. Would be grateful for your support for Mac users.

Here's how to find the paths' on Mac:

  1. /Applications/MetaTrader4.app/Contents/SharedSupport/metatrader4/support/metatrader4/drive_c/Program Files/MT4 Client Terminal/MQL4/Files

  2. /Applications/MetaTrader 5.app/Contents/SharedSupport/metatrader5/support/metatrader5/drive_c/users/crossover/Application Data/MetaQuotes/Terminal/D0E8209F77C8CF37AD8BF550E51FF075

elvinex commented 2 years ago

Hi, I don't know much (or anything) about Macs, so I don't really understand the issue. What happens if you just set MT4_files_dir to the first path in your comment? Is there any error message?

theandym commented 2 years ago

This appears to be working for me. I set MT4_files_dir as follows:

MT4_files_dir = '/Users/<user>/Library/Application Support/MetaTrader 4/Bottles/metatrader4/drive_c/Program Files/MetaTrader 4/MQL4/Files'

Perhaps this could make its way into the docs?

elvinex commented 2 years ago

Ok, thank you for letting us know what worked for you. I added example paths for Windows, macOS and Linux to the readme.

m-ouada commented 2 years ago

@theandym thanks for your input, this path is working for me. I also think it would be good to have it in the docs for future users, as they may encounter a similar issue.