Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -115,7 +115,7 @@ def plot_price_with_cones(data, bootstrap_percentiles, days, thresholds, bootstr
|
|
| 115 |
|
| 116 |
# Streamlit app
|
| 117 |
st.set_page_config(layout="wide")
|
| 118 |
-
st.title('Future
|
| 119 |
|
| 120 |
st.sidebar.header('Input Parameters')
|
| 121 |
|
|
@@ -131,8 +131,8 @@ with st.sidebar.expander("How to Use", expanded=False):
|
|
| 131 |
""")
|
| 132 |
|
| 133 |
# Ticker and dates in an expander (open by default)
|
| 134 |
-
with st.sidebar.expander("
|
| 135 |
-
ticker = st.text_input('Enter
|
| 136 |
start_date = st.date_input('Start Date', pd.to_datetime('2020-01-01'), help="Select the start date for historical data")
|
| 137 |
end_date = st.date_input('End Date', pd.to_datetime('2025-01-01'), help="Select the end date for historical data")
|
| 138 |
|
|
@@ -145,7 +145,7 @@ thresholds = [threshold1, threshold2]
|
|
| 145 |
|
| 146 |
st.write("""
|
| 147 |
### Description
|
| 148 |
-
This application simulates future
|
| 149 |
You can specify the stock ticker or crypto pair, the date range, the number of simulation days, the number of simulations, and price thresholds.
|
| 150 |
The simulation results will show the probability of the price falling below, between, or above the specified thresholds.""")
|
| 151 |
|
|
|
|
| 115 |
|
| 116 |
# Streamlit app
|
| 117 |
st.set_page_config(layout="wide")
|
| 118 |
+
st.title('Future Asset Prices Bootstrap Simulation')
|
| 119 |
|
| 120 |
st.sidebar.header('Input Parameters')
|
| 121 |
|
|
|
|
| 131 |
""")
|
| 132 |
|
| 133 |
# Ticker and dates in an expander (open by default)
|
| 134 |
+
with st.sidebar.expander("Symbol and Dates", expanded=True):
|
| 135 |
+
ticker = st.text_input('Enter Asset Symbol', 'ASML.AS', help="Enter a stock ticker (e.g., AAPL) or a crypto pair (e.g., BTC-USD)")
|
| 136 |
start_date = st.date_input('Start Date', pd.to_datetime('2020-01-01'), help="Select the start date for historical data")
|
| 137 |
end_date = st.date_input('End Date', pd.to_datetime('2025-01-01'), help="Select the end date for historical data")
|
| 138 |
|
|
|
|
| 145 |
|
| 146 |
st.write("""
|
| 147 |
### Description
|
| 148 |
+
This application simulates future asset prices using bootstrapping simulation methods.
|
| 149 |
You can specify the stock ticker or crypto pair, the date range, the number of simulation days, the number of simulations, and price thresholds.
|
| 150 |
The simulation results will show the probability of the price falling below, between, or above the specified thresholds.""")
|
| 151 |
|