Is there anyway to know whether an expert advisor is currently sleeping or not?

 

Hello people

I would really appreciate if anybody could tell me any function which could be used to know whether an expert advisor is slept or not from another expert advisor as a mean of process synchronization.

I look forward for your responses.

Regards,

John

 

This is one way Ive done it.

I have a middleware hub that the Mt4 contacts every x milliseconds.

Do this as part of a tick, or in a loop. Loops are safe if you do them right.

If you are constantly contacting the hub every 5 seconds (It takes virtually no CPU), you then put a timer in the hub that plays a wave or sends a POP3 email if you don't have contact.