How do you detect when an EA silently stops trading? - page 2

A detail that may help with the "no signal vs. EA blocked" question: besides a heartbeat, count the reasons why each evaluation did NOT trade. Most "silent" stops I have seen are not crashes but a gate that stays closed, and a per-reason counter makes it visible. Typical gates worth checking on every evaluation: TerminalInfoInteger(TERMINAL_TRADE_ALLOWED), MQLInfoInteger(MQL_TRADE_ALLOWED), AccountInfoInteger(ACCOUNT_TRADE_ALLOWED) and ACCOUNT_TRADE_EXPERT, SymbolInfoInteger(_Symbol, SYMBOL_TRADE_MODE), the spread filter, the session/time filter, and the maximum open-positions limit. Keep one counter per reason and write the counters to a GlobalVariable or a small file every hour. Then the watchdog can alert on "evaluated 4 hours ago, 0 trades, and 100% of the skips are 'spread filter'" - which tells you where to look instead of just that something is wrong. One more cause to rule out: a broker-side change (symbol suffix, trading hours or a trade mode switched to close-only) that does not show in the Experts log. This is a technical suggestion only, not trading advice.