added leverage, better training
This commit is contained in:
@ -70,8 +70,8 @@ class DashboardLayoutManager:
|
||||
metrics_cards = [
|
||||
("current-price", "Live Price", "text-success"),
|
||||
("session-pnl", "Session P&L", ""),
|
||||
("total-fees", "Total Fees", "text-warning"),
|
||||
("current-position", "Position", "text-info"),
|
||||
# ("leverage-info", "Leverage", "text-primary"),
|
||||
("trade-count", "Trades", "text-warning"),
|
||||
("portfolio-value", "Portfolio", "text-secondary"),
|
||||
("mexc-status", "MEXC API", "text-info")
|
||||
@ -120,6 +120,31 @@ class DashboardLayoutManager:
|
||||
html.I(className="fas fa-cog me-2"),
|
||||
"Session Controls"
|
||||
], className="card-title mb-2"),
|
||||
|
||||
# Leverage Control
|
||||
html.Div([
|
||||
html.Label([
|
||||
html.I(className="fas fa-sliders-h me-1"),
|
||||
"Leverage: ",
|
||||
html.Span(id="leverage-display", children="x50", className="fw-bold text-primary")
|
||||
], className="form-label small mb-1"),
|
||||
dcc.Slider(
|
||||
id='leverage-slider',
|
||||
min=1,
|
||||
max=100,
|
||||
step=1,
|
||||
value=50,
|
||||
marks={
|
||||
1: {'label': 'x1', 'style': {'fontSize': '8px'}},
|
||||
25: {'label': 'x25', 'style': {'fontSize': '8px'}},
|
||||
50: {'label': 'x50', 'style': {'fontSize': '8px'}},
|
||||
75: {'label': 'x75', 'style': {'fontSize': '8px'}},
|
||||
100: {'label': 'x100', 'style': {'fontSize': '8px'}}
|
||||
},
|
||||
tooltip={"placement": "bottom", "always_visible": False}
|
||||
)
|
||||
], className="mb-2"),
|
||||
|
||||
html.Button([
|
||||
html.I(className="fas fa-trash me-1"),
|
||||
"Clear Session"
|
||||
@ -221,7 +246,7 @@ class DashboardLayoutManager:
|
||||
html.Div([
|
||||
html.H6([
|
||||
html.I(className="fas fa-brain me-2"),
|
||||
"Training Progress & COB $1 Buckets"
|
||||
"Models & Training Progress"
|
||||
], className="card-title mb-2"),
|
||||
html.Div(id="training-metrics", style={"height": "550px", "overflowY": "auto"})
|
||||
], className="card-body p-2")
|
||||
|
Reference in New Issue
Block a user