Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,17 +43,26 @@ st.write("""
|
|
| 43 |
This tool estimates potential price movements of a selected stock or cryptocurrency over a specified time horizon using Monte Carlo Simulations.
|
| 44 |
The estimates are based on historical volatility and the implied volatility derived from the Black-Scholes-Merton model.
|
| 45 |
You can adjust the time horizon, number of simulations, and volatility measures to explore different scenarios of price dynamics.
|
| 46 |
-
To read more about the methodologies, visit [this link](https://entreprenerdly.com/price-movements-with-historical-implied-volatility-monte-carlo/).
|
| 47 |
""")
|
| 48 |
|
| 49 |
-
|
| 50 |
-
st.latex(r'''
|
| 51 |
-
P_t = P_0 \times e^{(\mu - \frac{1}{2} \sigma^2) \times t + \sigma \times \sqrt{t} \times Z}
|
| 52 |
-
''')
|
| 53 |
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
st.write(f"""
|
| 59 |
These simulations project multiple potential future price paths for the asset based on the volatility models described.
|
|
|
|
| 43 |
This tool estimates potential price movements of a selected stock or cryptocurrency over a specified time horizon using Monte Carlo Simulations.
|
| 44 |
The estimates are based on historical volatility and the implied volatility derived from the Black-Scholes-Merton model.
|
| 45 |
You can adjust the time horizon, number of simulations, and volatility measures to explore different scenarios of price dynamics.
|
|
|
|
| 46 |
""")
|
| 47 |
|
| 48 |
+
with st.sidebar.expander("Click here for more information about the methodology", expanded=True):
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
+
# Adding LaTeX formatted formulas
|
| 51 |
+
st.latex(r'''
|
| 52 |
+
P_t = P_0 \times e^{(\mu - \frac{1}{2} \sigma^2) \times t + \sigma \times \sqrt{t} \times Z}
|
| 53 |
+
''')
|
| 54 |
+
|
| 55 |
+
st.markdown("""
|
| 56 |
+
**Monte Carlo Simulation Inputs** are
|
| 57 |
+
- **(Pt)**: Estimated asset price at time (t).
|
| 58 |
+
- **(P0)**: Current asset price.
|
| 59 |
+
- **(μ)**: Mean of the log returns.
|
| 60 |
+
- **(σ)**: Standard deviation of the log returns, representing historical volatility. -
|
| 61 |
+
- **(t)**: Time horizon in days.
|
| 62 |
+
- **(Z)**: Random variable from the standard normal distribution.
|
| 63 |
+
""")
|
| 64 |
+
|
| 65 |
+
st.write("""To read more about the methodologies, visit [this link](https://entreprenerdly.com/price-movements-with-historical-implied-volatility-monte-carlo/).""")
|
| 66 |
|
| 67 |
st.write(f"""
|
| 68 |
These simulations project multiple potential future price paths for the asset based on the volatility models described.
|