Hello,
You may do a test by replacing Matlab startup with Notepad.exe, for example and see if it behaves similarly. You may have to use the "fork" as it is called in Linux; that is start a process and let it continue, but not block the code execution. ..
Just a thought...
You may do a test by replacing Matlab startup with Notepad.exe, for example and see if it behaves similarly. You may have to use the "fork" as it is called in Linux; that is start a process and let it continue, but not block the code execution. ..
Just a thought...
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Has anybody managed to control Matlab from MQL expert advisor? I tried it this way:
- I wrote C++ DLL to start Matlab, using Matlab Engine interface. DLL works fine when called from other C++ programs.
- I call my DLL from MQL expert advisor - Matlab starts ok, but exits immediately after the init() function finishes.
I do not have any problems invoking different DLLs from MQL, the problem is just with starting Matlab.
Maybe somebody suggests a different way of interfacing with Matlab?
Thanks in advance,
Piotr