Update app.py
Browse files
app.py
CHANGED
@@ -455,22 +455,21 @@ def plot_individual_signals(df, ticker):
|
|
455 |
x=df.index, y=df['Close'],
|
456 |
mode='lines',
|
457 |
name='Closing Price',
|
458 |
-
line=dict(color='#D4B2FF', width=2)
|
459 |
))
|
460 |
|
461 |
-
# Define colors for different signals
|
462 |
-
|
463 |
-
|
464 |
|
465 |
|
|
|
466 |
signal_colors = {
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
}
|
|
|
474 |
|
475 |
|
476 |
|
|
|
455 |
x=df.index, y=df['Close'],
|
456 |
mode='lines',
|
457 |
name='Closing Price',
|
458 |
+
line=dict(color='#D4B2FF', width=2)
|
459 |
))
|
460 |
|
|
|
|
|
|
|
461 |
|
462 |
|
463 |
+
# Refined pastel colors for signal indicators
|
464 |
signal_colors = {
|
465 |
+
'MACD_Signal': {'buy': '#B6A4D9', 'sell': '#F7D1D1'}, # Soft lavender / Pale rosy pink
|
466 |
+
'RSI_Signal': {'buy': '#B6A4D9', 'sell': '#F7D1D1'}, # Soft lavender / Pale rosy pink
|
467 |
+
'BB_Signal': {'buy': '#B6A4D9', 'sell': '#F8E1A1'}, # Soft lavender / Soft pale yellow
|
468 |
+
'Stochastic_Signal': {'buy': '#B6A4D9', 'sell': '#F6E3A1'}, # Soft lavender / Soft butter yellow
|
469 |
+
'CMF_Signal': {'buy': '#B6A4D9', 'sell': '#F3E5A0'}, # Soft lavender / Soft light yellow
|
470 |
+
'CCI_Signal': {'buy': '#B6A4D9', 'sell': '#F4D8A1'} # Soft lavender / Soft warm yellow
|
471 |
+
}
|
472 |
+
|
473 |
|
474 |
|
475 |
|