lucifer7210 commited on
Commit
5683194
·
verified ·
1 Parent(s): 600a72b

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +6 -0
src/streamlit_app.py CHANGED
@@ -553,6 +553,12 @@ if col3.button("🚀 Analyze Stock", type="secondary", use_container_width=True)
553
  go.Scatter(x=data.index, y=indicators['SSMA'].fillna(method='ffill'), name='SSMA', line=dict(color='indigo')),
554
  row=1, col=1
555
  )
 
 
 
 
 
 
556
 
557
  # Add volume (row 2)
558
  fig.add_trace(
 
553
  go.Scatter(x=data.index, y=indicators['SSMA'].fillna(method='ffill'), name='SSMA', line=dict(color='indigo')),
554
  row=1, col=1
555
  )
556
+
557
+ if 'TRIX' in indicators:
558
+ fig.add_trace(
559
+ go.Scatter(x=data.index, y=indicators['TRIX'].fillna(method='ffill'), name='TRIX', line=dict(color='darkorange')),
560
+ row=4, col=1
561
+ )
562
 
563
  # Add volume (row 2)
564
  fig.add_trace(