Fix chart pattern alert Markdown
This commit is contained in:
+4
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user