cob signas
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user