Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -607,11 +607,11 @@ if st.sidebar.button("Run Analysis"):
|
|
| 607 |
#""")
|
| 608 |
#st.plotly_chart(plot_price_ranges(ticker, implied_volatility, days_until_earnings, up_target, down_target, stock_data), use_container_width=True)
|
| 609 |
|
| 610 |
-
|
| 611 |
-
|
| 612 |
-
|
| 613 |
-
|
| 614 |
-
|
| 615 |
|
| 616 |
except Exception as e:
|
| 617 |
st.error("An error occurred while running the analysis. Please try again.")
|
|
|
|
| 607 |
#""")
|
| 608 |
#st.plotly_chart(plot_price_ranges(ticker, implied_volatility, days_until_earnings, up_target, down_target, stock_data), use_container_width=True)
|
| 609 |
|
| 610 |
+
st.subheader("Monte Carlo Simulation for Price Movements")
|
| 611 |
+
st.markdown("We simulate multiple price paths using the stock's implied volatility to estimate the probabilities of the stock price reaching given targets.")
|
| 612 |
+
st.markdown("Implied volatility (IV) is used to model the expected volatility of the stock's price. "
|
| 613 |
+
"The simulation generates random price paths based on the IV, the current stock price, and the time remaining until the earnings date.")
|
| 614 |
+
st.plotly_chart(monte_carlo_simulation(ticker, implied_volatility, days_until_earnings, up_target, down_target, stock_data, num_simulations), use_container_width=True)
|
| 615 |
|
| 616 |
except Exception as e:
|
| 617 |
st.error("An error occurred while running the analysis. Please try again.")
|