Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -633,11 +633,20 @@ with final_recs:
|
|
| 633 |
# Add positive impact
|
| 634 |
figure.add_scatter(x=plot_sub_pos['Date'], y=plot_sub_pos['Price'], mode='markers',
|
| 635 |
marker=dict(symbol='triangle-up', size=10, color=cs.pos_impacts_color), name='Positive Impact',
|
| 636 |
-
customdata=plot_sub_pos['SetFeature'],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 637 |
# Add negative impact
|
| 638 |
figure.add_scatter(x=plot_sub_neg['Date'], y=plot_sub_neg['Price'], mode='markers',
|
| 639 |
marker=dict(symbol='triangle-down', size=10, color=cs.neg_impacts_color), name='Negative Impact',
|
| 640 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 641 |
|
| 642 |
# Update layout
|
| 643 |
figure.update_layout(
|
|
|
|
| 633 |
# Add positive impact
|
| 634 |
figure.add_scatter(x=plot_sub_pos['Date'], y=plot_sub_pos['Price'], mode='markers',
|
| 635 |
marker=dict(symbol='triangle-up', size=10, color=cs.pos_impacts_color), name='Positive Impact',
|
| 636 |
+
# customdata=plot_sub_pos['SetFeature'],
|
| 637 |
+
text=events['EMA9_Signal'],
|
| 638 |
+
hovertext=events['EMA55_Signal'],
|
| 639 |
+
meta = events["RSI_Signals"],
|
| 640 |
+
customdata=events['MACD_Signals'],
|
| 641 |
+
hovertemplate='%{x}<br>Close: %{y}<br> EMA9 Signal: %{text}<br>EMA55 Signal: %{hovertext}<br> RSI Signal: %{meta}<br>MACD Signal: %{customdata}<br>',)
|
| 642 |
# Add negative impact
|
| 643 |
figure.add_scatter(x=plot_sub_neg['Date'], y=plot_sub_neg['Price'], mode='markers',
|
| 644 |
marker=dict(symbol='triangle-down', size=10, color=cs.neg_impacts_color), name='Negative Impact',
|
| 645 |
+
text=events['EMA9_Signal'],
|
| 646 |
+
hovertext=events['EMA55_Signal'],
|
| 647 |
+
meta = events["RSI_Signals"],
|
| 648 |
+
customdata=events['MACD_Signals'],
|
| 649 |
+
hovertemplate='%{x}<br>Close: %{y}<br> EMA9 Signal: %{text}<br>EMA55 Signal: %{hovertext}<br> RSI Signal: %{meta}<br>MACD Signal: %{customdata}<br>',)
|
| 650 |
|
| 651 |
# Update layout
|
| 652 |
figure.update_layout(
|