vdemydiuk / mtapi

MetaTrader API (terminal bridge)
MIT License
529 stars 283 forks source link

Uninit 8 upon load, seem that MTConnector.dll cannot be found or loaded #221

Closed eabase closed 4 years ago

eabase commented 4 years ago

I'm getting the following error when loading expert:

terminal_2020-11-02_02-38-20

Where is this DLL file supposed to be located?

Maybe related to #79

eabase commented 4 years ago

Indeed the MTConnector.dll is missing from the 32-bit MT4 version of the installer. Instead the MT5Connector.dll is installed under C:\Windows\SysWOW64. Copying MT5Connector.dll to MTConnector.dll, give a new error Cannot find 'initExpert' in 'MTConnector.dll' proving it.

# cd c:\Windows\SysWOW64
# 7z l MT5Connector.dll | findstr CPU

CPU = x86
eabase commented 4 years ago

With poor documentation, the error is always behind the screen.

I was not aware that there were 3 different installers for this, since the latest does not currently show the MT4 installer MtApi_setup.exe, instead thinking that the MtApi5_Setup_x86.exe was for MT4 (since I was not aware that there was a x86 version of MT5).

Search for it and everything will work.