Nazhar commited on
Commit
f6f00db
·
verified ·
1 Parent(s): bd2ff34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
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
- # text=events['Cleaned_Headline'],
606
- # hovertext=events['FeatureSentiment'],
607
- customdata=events['SetFeature'],
608
- hovertemplate='%{x}<br>Close: %{y}<br>Feature: %{customdata}<br>',
 
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
  )