Why MetaTrader is only using 10% of the CPU?

 

Hello There,

I loaded a heavy Script that took more than 15 minutes to complete, and in the meantime I noticed the CPU usage by MetaTrader was only 10%

So cleary the program is not using all the available cores in  my pc.

To understand better,  this time I ran an expert on the strategy tester and, on the agents tab, I saw that only 1 core was working, while all the others remain "ready".

Is there a way to change the core usage?

I found nothing online, pls help me...

Thank you.



 
Scripts are not multithreaded, therefor it used one core.
 
trevor88:

Hello There,

I loaded a heavy Script that took more than 15 minutes to complete, and in the meantime I noticed the CPU usage by MetaTrader was only 10%

So cleary the program is not using all the available cores in  my pc.

To understand better,  this time I ran an expert on the strategy tester and, on the agents tab, I saw that only 1 core was working, while all the others remain "ready".

Is there a way to change the core usage?

I found nothing online, pls help me...

Thank you.



If you want your code to be multi-threaded then code it multi-threaded, don't hope it will be done automatically that doesn't exist.
 
Alain Verleyen #:
If you want your code to be multi-threaded then code it multi-threaded, don't hope it will be done automatically that doesn't exist.

Could you post a link where I can learn about this?? Thanks