Clean up signal display — remove dots, direction emoji, confidence %
- Drop _grade_dot() and all colored circle emojis - Remove raw confidence % from signal and scan output - Signal card: "M15 · SELL · Grade C" - Scan row: "EUR/USD · SELL · C · M15" Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+6
-18
@@ -64,13 +64,6 @@ def _now_est() -> str:
|
||||
return datetime.now(_EST).strftime("%I:%M %p EST · %a %d %b %Y")
|
||||
|
||||
|
||||
def _grade_dot(quality: str) -> str:
|
||||
if quality in ("A+", "A"):
|
||||
return "🟢"
|
||||
if quality == "B":
|
||||
return "🟡"
|
||||
return "🔴"
|
||||
|
||||
|
||||
def _signal_action(signal: SignalStrength) -> str:
|
||||
return {
|
||||
@@ -143,15 +136,11 @@ def _build_combined_signal(
|
||||
lines.append(f"<i>{_h(r.warnings[0])}</i>")
|
||||
continue
|
||||
|
||||
dot = _grade_dot(r.signal_quality)
|
||||
action = _signal_action(r.final_signal)
|
||||
|
||||
lines.append("")
|
||||
lines.append("────────────────────────")
|
||||
lines.append(
|
||||
f"{dot} <b>{tf} · {action} · "
|
||||
f"Grade {_h(r.signal_quality)} · {r.final_confidence:.0f}%</b>"
|
||||
)
|
||||
lines.append(f"<b>{tf} · {action} · Grade {_h(r.signal_quality)}</b>")
|
||||
lines.append("")
|
||||
|
||||
# ── Trade setup (always kept intact) ─────────────────────────
|
||||
@@ -223,12 +212,11 @@ def _build_scan_message(
|
||||
lines.append("")
|
||||
|
||||
for tf, r in actionable:
|
||||
dot = _grade_dot(r.signal_quality)
|
||||
action = _signal_action(r.final_signal)
|
||||
|
||||
lines.append(
|
||||
f"{dot} <b>{_h(r.display_name)}</b> · {action}"
|
||||
f" · {_h(r.signal_quality)} · {tf} · {r.final_confidence:.0f}%"
|
||||
f"<b>{_h(r.display_name)} · {action}</b>"
|
||||
f" · {_h(r.signal_quality)} · {tf}"
|
||||
)
|
||||
|
||||
if r.trade_setup:
|
||||
@@ -337,9 +325,9 @@ class ForexTelegramBot:
|
||||
" /help — This message\n\n"
|
||||
f"<b>Timeframes analyzed:</b> <code>{tfs}</code>\n\n"
|
||||
"<b>Signal Grades:</b>\n"
|
||||
" 🟢 A / A+ — High confidence, consider entry\n"
|
||||
" 🟡 B — Decent setup, wait for confirmation\n"
|
||||
" 🔴 C / D — Low confidence, watch only\n\n"
|
||||
" A / A+ — High confidence, consider entry\n"
|
||||
" B — Decent setup, wait for confirmation\n"
|
||||
" C / D — Low confidence, watch only\n\n"
|
||||
"<i>⚠️ Educational use only. Not financial advice.</i>"
|
||||
)
|
||||
await update.message.reply_text(text, parse_mode=ParseMode.HTML)
|
||||
|
||||
Reference in New Issue
Block a user