Fix chart pattern alert Markdown

This commit is contained in:
root
2026-08-20 21:03:30 -04:00
parent ac575b4ddc
commit 6c5e58f1c3
2 changed files with 13 additions and 1 deletions
+4 -1
View File
@@ -341,7 +341,10 @@ def format_signal_message(report: SignalReport) -> str:
f"📊 Regime: {regime_str} · Vol: {vol_str}",
]
if report.action_recommendation:
lines.append(f"_{_escape_md(report.action_recommendation)}_")
# Pattern identifiers use underscores, which legacy Telegram Markdown
# can misparse even when escaped inside this italicized action line.
action = report.action_recommendation.replace("_", " ")
lines.append(f"_{_escape_md(action)}_")
if report.trade_setup and sig not in (SignalStrength.NEUTRAL,):
ts = report.trade_setup