Your idea must have traveled through the air to me.I suggested something like this when editing my previous post.1. You could build an EA that looks at the existing trades and alarms you when the trades of a given other EA (identified by magic number or trade comment) havent changed for a given period.
The disadvantage of this approach is that some EAs won't take trades for hours, so how to set the trigger for the alarm. But it would work for tradoholics such as RnR or Dotty.
2. Your EAs could update global variables periodically to the current date/time. If one EA stops working, it will stop updating this variable. An EA that observes these variables could then alarm you.
2. and 3. appear to be an ideal solution to me. They will give an immediate feedback in an EA gets stuck, looped or paused.3. Or, alternatively, your EA could periodically broadcast a custom event, saying "I'm still alive". That custom event can be picked up by the monitoring EA, that in turn raises the alarm bells if it hasn't received an event from your EA for x minutes.
Ultimately these potential solutions would give an extra protection that may prevent you from losing your shirt.
I have no clue if 2. or 3. will be easier as generic approach.
As I understand it, you need a monitoring EA, and some code which you would need to slot into existing EAs.
Ideally I would envision a 'basket/monitor' which would automatically close and reinitialize unresponsive EAs/magics. Of course you would still investigate the alert ASAP, but your trading system would be running again preventing the risk of non-monitored trades.
This approach would also save you from EAs that 'PAUSED' their selves in a spread-widening event and failed to revive from their sleep.
Unfortunately I am no coder. So unless one of the coder geniuses here takes this under his/her wings as useful project for the SHF community, it will take some time for me to learn enough Empty4 to to it.
So if anybody want to take this further, please do.
First step for me now is to find how to learn enough about Empty4 to do the simple stuff.
Again thanks for all your input. At least I now know it could be done.
Thanks again,
Peter