Running EA "Goes To Sleep"

 

An EA that I wrote and demoing stops working sometimes (I don't know why!). I have written an indicator which continually checks the EA's operation and sounds an alarm when it detects that the EA has "gone to sleep". I then restart the EA manually.

Is it possible to have the indicator restart the EA automatically?

 
I would spend the effort looking for the root cause rather than work arounds ?
 
Hi ydrol,

I agree with you in theory, but in practice it is much easier said than done! There is no error message to indicate where the problem is.
 
mbes: There is no error message to indicate where the problem is.
Then you add some print statements, printing your variables and conclusions.
 
maybe a loop or a while function where the EA stays in
 
WHRoeder:
Then you add some print statements, printing your variables and conclusions.
It is a very long EA. I cannot tell in which part the problem lies. In addition, the problem manifests itself randomly.
 
Put a print statement at the beginning and end (and returns) of every function. Last ("start function") statement tells you which function.
Reason: