QuantumLearner commited on
Commit
6e0613c
·
verified ·
1 Parent(s): 308545b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -16,15 +16,15 @@ st.sidebar.markdown("""
16
 
17
  # Wrapping ticker and date settings in an expander
18
  with st.sidebar.expander("Ticker and Date Settings", expanded=True):
19
- ticker = st.text_input('Enter Stock Ticker', 'ADS.DE')
20
- start_date = st.date_input('Start Date', pd.to_datetime('2020-01-01'))
21
- end_date = st.date_input('End Date', pd.to_datetime('2025-12-30'))
22
 
23
  # Wrapping parameter settings in an expander
24
  with st.sidebar.expander("Parameter Settings", expanded=True):
25
- time_horizon = st.slider('Time Horizon (Days)', min_value=1, max_value=60, value=30)
26
- std_multipliers = st.multiselect('Select Std Multipliers', [1, 1.25, 1.5, 1.75, 2], default=[1, 1.25, 1.5])
27
- rolling_window = st.slider('Rolling Window (Days)', min_value=10, max_value=90, value=30, step=5)
28
 
29
  # Inject CSS for custom styling
30
  st.markdown("""
 
16
 
17
  # Wrapping ticker and date settings in an expander
18
  with st.sidebar.expander("Ticker and Date Settings", expanded=True):
19
+ ticker = st.text_input('Enter Stock Ticker', 'ADS.DE', help="Enter the ticker symbol of the stock you want to analyze (e.g., ADS.DE for Adidas).")
20
+ start_date = st.date_input('Start Date', pd.to_datetime('2020-01-01'), help="Select the start date for fetching historical stock data.")
21
+ end_date = st.date_input('End Date', pd.to_datetime('2025-12-30'), help="Select the end date for fetching historical stock data.")
22
 
23
  # Wrapping parameter settings in an expander
24
  with st.sidebar.expander("Parameter Settings", expanded=True):
25
+ time_horizon = st.slider('Time Horizon (Days)', min_value=1, max_value=60, value=30, help="Set the number of days into the future for which you want to predict stock prices.")
26
+ std_multipliers = st.multiselect('Select Std Multipliers', [1, 1.25, 1.5, 1.75, 2], default=[1, 1.25, 1.5], help="Choose the standard deviation multipliers to calculate potential price ranges.")
27
+ rolling_window = st.slider('Rolling Window (Days)', min_value=10, max_value=90, value=30, step=5, help="Set the number of days to use for calculating rolling volatility.")
28
 
29
  # Inject CSS for custom styling
30
  st.markdown("""