Expert Advisors crashes sometimes after starting

 

I have one big Expert Advisor (about 2000 lines) which is running on 10 currencies at the same time.

When I start the MQL4 programm the programm will hang up (will not work any more) and I have to

restart it 4, 5 times after it is running.

The reason is, that the activation of the Expert Advisor costs 100% of the system power over a few seconds.

Exist a solution for this problem, because the the normal system power for my Expert Advosor is about 10 % System Load.

Enclosed you see a picture which declares the problem.

The solution could be a time lack in the activation of an EA.

For example: First currency: EA activation after 5 seconds, activation of the second currency in 10 seconds and so on.

 
No image attached . . .
 
24hworker:

The reason is, that the activation of the Expert Advisor costs 100% of the system power over a few seconds. <---- what really you mean? MT4 DOES not cost 100% Power. If that happens your CPU/PC is dead.

The solution could be a time lack in the activation of an EA.

For example: First currency: EA activation after 5 seconds, activation of the second currency in 10 seconds and so on. <-- - EA principally, loads immediately and kicks in on every incoming tick. This 5,10 sec MUST be some internal EA logic, which may be causing those lagging prbs.

In the first place, even before running on 10 charts, have you try running on 1, or at most 2?

If you have just had this EA running, you should test it well on minimal load, then increase gradually, to see:

1) is it OPERATIONAL first, on a single chart, then

2) is it profitable after say, 3 days, 1 week?

 
Do you really want us to tell you why YOUR code uses a large CPU load without seeing YOUR code? No mind-readers here.
 

Sorry, that no picture could be seen. I have loaded it up.

Now, I try it again.

2) I dont write the 2000 lines of the Expert Advisor because I dont want boring you.