Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,6 +21,8 @@ st.markdown(
|
|
| 21 |
"""
|
| 22 |
)
|
| 23 |
|
|
|
|
|
|
|
| 24 |
# Sidebar for "How to Use" instructions inside an expander, closed by default
|
| 25 |
with st.sidebar.expander("How to Use", expanded=False):
|
| 26 |
st.write("""
|
|
@@ -32,13 +34,13 @@ with st.sidebar.expander("How to Use", expanded=False):
|
|
| 32 |
""")
|
| 33 |
|
| 34 |
# Input parameters inside an expander, open by default
|
| 35 |
-
with st.expander("Input Parameters", expanded=True):
|
| 36 |
symbol = st.text_input("Asset Symbol", value="ASML.AS", help="Enter the ticker symbol for the stock or cryptocurrency you want to analyze.")
|
| 37 |
start_date = st.date_input("Start Date", value=pd.to_datetime("2000-01-01"), help="Select the start date for the data range.")
|
| 38 |
end_date = st.date_input("End Date", value=pd.to_datetime(pd.Timestamp.now().date() + pd.Timedelta(days=1)), help="Select the end date for the data range.")
|
| 39 |
|
| 40 |
# Parameters for the selected method inside an expander, open by default
|
| 41 |
-
with st.expander("Analysis Parameters", expanded=True):
|
| 42 |
first_move_days = st.number_input("First Move Days", min_value=1, value=1, help="Set the number of days for the first move.")
|
| 43 |
second_move_days = st.number_input("Second Move Days", min_value=1, value=2, help="Set the number of days for the second move.")
|
| 44 |
first_threshold_percentage = st.number_input("First Threshold (%)", min_value=0.0, value=10.3, help="Set the threshold for the first move as a percentage.") / 100
|
|
|
|
| 21 |
"""
|
| 22 |
)
|
| 23 |
|
| 24 |
+
st.sidebar.title("Input Parameters")
|
| 25 |
+
|
| 26 |
# Sidebar for "How to Use" instructions inside an expander, closed by default
|
| 27 |
with st.sidebar.expander("How to Use", expanded=False):
|
| 28 |
st.write("""
|
|
|
|
| 34 |
""")
|
| 35 |
|
| 36 |
# Input parameters inside an expander, open by default
|
| 37 |
+
with st.sidebar.expander("Input Parameters", expanded=True):
|
| 38 |
symbol = st.text_input("Asset Symbol", value="ASML.AS", help="Enter the ticker symbol for the stock or cryptocurrency you want to analyze.")
|
| 39 |
start_date = st.date_input("Start Date", value=pd.to_datetime("2000-01-01"), help="Select the start date for the data range.")
|
| 40 |
end_date = st.date_input("End Date", value=pd.to_datetime(pd.Timestamp.now().date() + pd.Timedelta(days=1)), help="Select the end date for the data range.")
|
| 41 |
|
| 42 |
# Parameters for the selected method inside an expander, open by default
|
| 43 |
+
with st.sidebar.expander("Analysis Parameters", expanded=True):
|
| 44 |
first_move_days = st.number_input("First Move Days", min_value=1, value=1, help="Set the number of days for the first move.")
|
| 45 |
second_move_days = st.number_input("Second Move Days", min_value=1, value=2, help="Set the number of days for the second move.")
|
| 46 |
first_threshold_percentage = st.number_input("First Threshold (%)", min_value=0.0, value=10.3, help="Set the threshold for the first move as a percentage.") / 100
|