From 3f7d24734dc780b8848b62eaeb0ace56e3bf647a Mon Sep 17 00:00:00 2001 From: harwinder Date: Fri, 15 May 2026 15:26:00 -0400 Subject: [PATCH] Add M5 to Telegram scan buttons and Scan All TFs Co-Authored-By: Claude Opus 4.6 --- telegram_bot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/telegram_bot.py b/telegram_bot.py index 22c1269..2bdfc97 100755 --- a/telegram_bot.py +++ b/telegram_bot.py @@ -91,6 +91,7 @@ _signal_stats: Dict[str, Dict[str, SignalReport]] = {} _stats_updated: Optional[float] = None SCAN_BUTTONS = [ + {"cb": "scan_xauusd_m5", "symbol": XAUUSD, "tf": Timeframe.M5, "label": "5 Min"}, {"cb": "scan_xauusd_m15", "symbol": XAUUSD, "tf": Timeframe.M15, "label": "15 Min"}, {"cb": "scan_xauusd_h1", "symbol": XAUUSD, "tf": Timeframe.H1, "label": "1 Hour"}, {"cb": "scan_xauusd_h4", "symbol": XAUUSD, "tf": Timeframe.H4, "label": "4 Hour"}, @@ -901,11 +902,11 @@ async def cb_scan(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: async def _cb_scan_all(query) -> None: await query.edit_message_text( - "⏳ Scanning XAU/USD across M15 / H1 / H4…", + "⏳ Scanning XAU/USD across M5 / M15 / H1 / H4…", parse_mode=ParseMode.MARKDOWN, ) - tfs = [Timeframe.M15, Timeframe.H1, Timeframe.H4] + tfs = [Timeframe.M5, Timeframe.M15, Timeframe.H1, Timeframe.H4] tasks = [run_signal(XAUUSD, tf) for tf in tfs] results = await asyncio.gather(*tasks, return_exceptions=True)