Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -93,7 +93,6 @@ def plot_results(data, best_short_window, best_long_window, horizon_name, best_a
|
|
| 93 |
)
|
| 94 |
return fig
|
| 95 |
|
| 96 |
-
|
| 97 |
# Plotting function for strategy performance over time
|
| 98 |
def plot_strategy_over_time(data, best_short_window, best_long_window):
|
| 99 |
data = calculate_signals_hma(data.copy(), best_short_window, best_long_window)
|
|
@@ -143,11 +142,8 @@ with st.sidebar:
|
|
| 143 |
}
|
| 144 |
selected_horizon = horizons[st.session_state.horizon_page]
|
| 145 |
|
| 146 |
-
#
|
| 147 |
-
st.markdown("---") # Separator line
|
| 148 |
-
st.markdown("<div style='position: fixed; bottom: 0; width: 100%; background-color: #ffffff; padding: 10px;'>", unsafe_allow_html=True)
|
| 149 |
run_button = st.button("Run")
|
| 150 |
-
st.markdown("</div>", unsafe_allow_html=True)
|
| 151 |
|
| 152 |
# Title based on the selected page
|
| 153 |
st.title(f"Hull Moving Average Cross-Over Strategy Optimizer - {st.session_state.horizon_page}")
|
|
@@ -281,4 +277,4 @@ hide_streamlit_style = """
|
|
| 281 |
footer {visibility: hidden;}
|
| 282 |
</style>
|
| 283 |
"""
|
| 284 |
-
st.markdown(hide_streamlit_style, unsafe_allow_html=True)
|
|
|
|
| 93 |
)
|
| 94 |
return fig
|
| 95 |
|
|
|
|
| 96 |
# Plotting function for strategy performance over time
|
| 97 |
def plot_strategy_over_time(data, best_short_window, best_long_window):
|
| 98 |
data = calculate_signals_hma(data.copy(), best_short_window, best_long_window)
|
|
|
|
| 142 |
}
|
| 143 |
selected_horizon = horizons[st.session_state.horizon_page]
|
| 144 |
|
| 145 |
+
# Run button at the bottom of the sidebar
|
|
|
|
|
|
|
| 146 |
run_button = st.button("Run")
|
|
|
|
| 147 |
|
| 148 |
# Title based on the selected page
|
| 149 |
st.title(f"Hull Moving Average Cross-Over Strategy Optimizer - {st.session_state.horizon_page}")
|
|
|
|
| 277 |
footer {visibility: hidden;}
|
| 278 |
</style>
|
| 279 |
"""
|
| 280 |
+
st.markdown(hide_streamlit_style, unsafe_allow_html=True)
|