cob signas

This commit is contained in:
Dobromir Popov
2025-07-02 03:31:37 +03:00
parent 11718bf92f
commit b47805dafc
3 changed files with 92 additions and 5 deletions

View File

@ -59,10 +59,19 @@ class DashboardComponentManager:
action_color = "text-success" if action == "BUY" else "text-danger"
manual_indicator = " [M]" if manual else ""
# Highlight COB signals
cob_indicator = ""
if hasattr(decision, 'type') and getattr(decision, 'type', '') == 'cob_liquidity_imbalance':
cob_indicator = " [COB]"
badge_class = "bg-info" # Use blue for COB signals
elif isinstance(decision, dict) and decision.get('type') == 'cob_liquidity_imbalance':
cob_indicator = " [COB]"
badge_class = "bg-info" # Use blue for COB signals
signal_div = html.Div([
html.Span(f"{timestamp}", className="small text-muted me-2"),
html.Span(f"{status}", className=f"badge {badge_class} me-2"),
html.Span(f"{action}{manual_indicator}", className=f"{action_color} fw-bold me-2"),
html.Span(f"{action}{manual_indicator}{cob_indicator}", className=f"{action_color} fw-bold me-2"),
html.Span(f"({confidence:.1f}%)", className="small text-muted me-2"),
html.Span(f"${price:.2f}", className="small")
], className="mb-1")