diff --git a/OrdersEA_Smart_Grid_BO.mq5 b/OrdersEA_Smart_Grid_BO.mq5 index 12d372c..c4cc9b4 100755 --- a/OrdersEA_Smart_Grid_BO.mq5 +++ b/OrdersEA_Smart_Grid_BO.mq5 @@ -5,12 +5,12 @@ //+------------------------------------------------------------------+ #property copyright "Copyright 2024, Garfield Heron" #property link "https://fetcherpay.com" -#property version "5.4" +#property version "5.5" #include #include -#define VERSION "Version 5.4 Smart Grid Breakout BO MT5" +#define VERSION "Version 5.5 Smart Grid Breakout BO MT5" #define MAX_TRADES 600 #define MAX_LOG_TRADES 1200 @@ -1320,6 +1320,18 @@ void OnTick() return; } + // --- Hourly heartbeat (5.5) — ABOVE every gate on purpose: it fires on + // any tick, so log silence >1h during market hours means the chart feed + // is dead (tick starvation), never a blocked/quiet EA. The ea-watchdog + // keys off this; without it, a stable placed grid looks identical to a + // starved chart and the watchdog restart-loops (seen Jul 15-16). + static datetime lastHeartbeat = 0; + if(TimeCurrent() - lastHeartbeat >= 3600) + { + PrintS("hb " + DoubleToString(SymbolInfoDouble(_Symbol, SYMBOL_BID), _Digits)); + lastHeartbeat = TimeCurrent(); + } + // --- Per-EA daily drawdown (3.1B) --- if(!CheckDailyDrawdown()) {