Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -602,10 +602,11 @@ with final_recs:
|
|
| 602 |
# Create the line trace for stock prices
|
| 603 |
line_stock = go.Scatter(x=events['Date'], y=events['Price'], mode='lines', name='OGDCL Close Price',
|
| 604 |
line=dict(dash='solid', color=cs.close_line_color, width=2),
|
| 605 |
-
|
| 606 |
-
|
| 607 |
-
|
| 608 |
-
|
|
|
|
| 609 |
# hoverlabel=dict(font=dict(color=events
|
| 610 |
# ['FeatureSentiment'].apply(lambda x: 'red' if x == 'Negative' else 'blue' if x == 'Neutral' else 'green'))), # Customize the line style, color, and width
|
| 611 |
)
|
|
|
|
| 602 |
# Create the line trace for stock prices
|
| 603 |
line_stock = go.Scatter(x=events['Date'], y=events['Price'], mode='lines', name='OGDCL Close Price',
|
| 604 |
line=dict(dash='solid', color=cs.close_line_color, width=2),
|
| 605 |
+
text=events['EMA9_Signal'],
|
| 606 |
+
hovertext=events['EMA55_Signal'],
|
| 607 |
+
meta = events["RSI_Signals"],
|
| 608 |
+
customdata=events['MACD_Signals'],
|
| 609 |
+
hovertemplate='%{x}<br>Close: %{y}<br> EMA9 Signal: %{text}<br>EMA55 Signal: %{hovertext}<br> RSI Signal: %{meta}<br>MACD Signal: %{customdata}<br>',
|
| 610 |
# hoverlabel=dict(font=dict(color=events
|
| 611 |
# ['FeatureSentiment'].apply(lambda x: 'red' if x == 'Negative' else 'blue' if x == 'Neutral' else 'green'))), # Customize the line style, color, and width
|
| 612 |
)
|