This commit is contained in:
Dobromir Popov
2025-11-19 10:47:43 +02:00
parent 8ee8558829
commit df5f9b47f2
4 changed files with 303 additions and 16 deletions

View File

@@ -4533,8 +4533,8 @@ class CleanTradingDashboard:
# Add high pivots for this level
if highs_x:
fig.add_trace(
go.Scatter(
fig.add_trace(
go.Scatter(
x=highs_x, y=highs_y,
mode='markers',
name=f'L{level_num} Pivot High',
@@ -4547,14 +4547,14 @@ class CleanTradingDashboard:
),
showlegend=(level_num == 1), # Only show legend for Level 1
hovertemplate=f"Level {level_num} High: ${{y:.2f}}<extra></extra>"
),
row=row, col=1
)
),
row=row, col=1
)
# Add low pivots for this level
if lows_x:
fig.add_trace(
go.Scatter(
fig.add_trace(
go.Scatter(
x=lows_x, y=lows_y,
mode='markers',
name=f'L{level_num} Pivot Low',
@@ -4567,9 +4567,9 @@ class CleanTradingDashboard:
),
showlegend=(level_num == 1), # Only show legend for Level 1
hovertemplate=f"Level {level_num} Low: ${{y:.2f}}<extra></extra>"
),
row=row, col=1
)
),
row=row, col=1
)
# Build external legend HTML (no annotation on chart to avoid scale distortion)
legend_children = []