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
I have a function within DLL that uses OpenMP to parallelize few loops. The functions have been tested/exported by calling them from an app built in C++ and everything works nicely (method used for linking). I then export the functions to MQL4 (method used for linking) where the code also works but substantially slower. I am using Visual Studio 2015 for creating the DLL. I strongly suspect that parallelization is not working while calling from the MQL4. Is it something to do with MQL4 or the DLL it-self?
Loops that contributes to overall slowdown:
These are outputs for convergence and time taken:
C++ app:
From MetaTrader4:
MQL4 function declarations:
MQL4 function calls:
Definitions in the DLL:
LMBRDLL.def for exporting to MetaTrader platform:
LIBRARY "LMBRDLL" EXPORTS getWeights testWeights
HeaderDLL.h for exporting to C++ app: