please read the question before answering :-)
did you tried? if yes did you had all cores working in single test? (not optimization)
I did not try this myself, but i have worked with .dll files before. You can read this for further information:
You probably don't want to call trading functions like OrderSend in parallel since they will be executed sequencially regardless and it is not possible to call MQL functions from the .dll anyways.I would suggest you to perform the raw calculations in the .dll file and use the results to send the orders.
EDIT: I am not 100% sure, but since MQL supports function pointers it may actually be possible to call functions like OrderSend from the .dll with a little bit of trickery. You could try passing a function pointerto OrderSend itself or to a custom wrapper function of OrderSend into the .dll file. This way calling the function from inside the .dll might work, but as I said, I am not sure.
You should avoid using custom .dll files. They are problematic at best, and a major security risk as worst.
hi Jack Thomas, why you say problematic? have you ever tried to call mql5 trading functions by dll? for example open a position from dll, or change a stop loss from a dll. Thanks to all for answers.
dear Sabil, the problem that i'm exposing concern on how to code in mql5 to get all processors involved immediately in parallel (in single back test), you can have 100 cores but mql5 will always use one core. I know what is hyper threading, it speed up very partially... really unuseful if you don't code in multithread model.