vdemydiuk / mtapi

MetaTrader API (terminal bridge)
http://mtapi4.net/
MIT License
511 stars 276 forks source link

MtAPI in Wine #273

Closed maartenschalekamp closed 1 year ago

maartenschalekamp commented 1 year ago

Good day,

I am trying to use this plugin in wine with meta trader. I got wine up and running and MT loaded with the expert. I can connect to the endpoint from the test client ui. But I am not able to send any commands to the api. Once I do that it (for example an IsConnected test ) respond with. And it takes a about a minute to respond with it as well. MtExecutionException: Response from MetaTrader is null: ErrorCode = MTApiCustomError

I have no idea how to get debug logging working. I have build in debug mode but no idea where to see the debug logs and everywhere I checked I cant find anything.

Its able to connect and get updated quotes. Any assistance would be greatly appreciated.

lazou commented 1 year ago

Hi @maartenschalekamp,

you can find the logs of the WCF service side (MtApiService) in this location: %temp%\MtApiService\Logs

Hint: In case you use a debug version of this DLL (in GAC), it will consume multiple GB of disk space.

maartenschalekamp commented 1 year ago

Hi. I found that when sending requests with the value of 0 for the ExecutorHandle, which is default, its responding with null. So using the event function to get the first quote from the expert then save that ID. Using that id for the ExecutorHandle, I am able to send requests.