Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -665,9 +665,7 @@ if st.sidebar.button('Run Analysis'):
|
|
| 665 |
# Add ALMA if selected
|
| 666 |
if use_alma:
|
| 667 |
st.session_state['ALMA'] = calculate_ALMA(data['Close'].tolist(), alma_period, offset=alma_offset, sigma=alma_sigma)
|
| 668 |
-
fig.add_trace(go.Scatter(x=data.index, y=st.session_state['ALMA'], mode='lines', name=f'ALMA (n={alma_period})', line=dict(dash='dash', color='
|
| 669 |
-
|
| 670 |
-
purple')))
|
| 671 |
|
| 672 |
# Add MAMA and FAMA if selected
|
| 673 |
if use_mama_fama:
|
|
@@ -1382,9 +1380,6 @@ if 'data' in st.session_state:
|
|
| 1382 |
if 'current_fig' in st.session_state:
|
| 1383 |
st.plotly_chart(st.session_state['current_fig'], use_container_width=True)
|
| 1384 |
|
| 1385 |
-
|
| 1386 |
-
|
| 1387 |
-
|
| 1388 |
st.markdown(
|
| 1389 |
"""
|
| 1390 |
<style>
|
|
|
|
| 665 |
# Add ALMA if selected
|
| 666 |
if use_alma:
|
| 667 |
st.session_state['ALMA'] = calculate_ALMA(data['Close'].tolist(), alma_period, offset=alma_offset, sigma=alma_sigma)
|
| 668 |
+
fig.add_trace(go.Scatter(x=data.index, y=st.session_state['ALMA'], mode='lines', name=f'ALMA (n={alma_period})', line=dict(dash='dash', color='purple')))
|
|
|
|
|
|
|
| 669 |
|
| 670 |
# Add MAMA and FAMA if selected
|
| 671 |
if use_mama_fama:
|
|
|
|
| 1380 |
if 'current_fig' in st.session_state:
|
| 1381 |
st.plotly_chart(st.session_state['current_fig'], use_container_width=True)
|
| 1382 |
|
|
|
|
|
|
|
|
|
|
| 1383 |
st.markdown(
|
| 1384 |
"""
|
| 1385 |
<style>
|