Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -590,11 +590,11 @@ if st.sidebar.button("Run Analysis"):
|
|
| 590 |
#st.subheader("Monte Carlo Simulation for Normalized Price Movements")
|
| 591 |
#st.markdown("This plot shows the results of a Monte Carlo simulation for normalized price movements around earnings dates. "
|
| 592 |
# "We simulate multiple price paths to estimate the probabilities of price movements exceeding given thresholds.")
|
| 593 |
-
|
| 594 |
#st.plotly_chart(monte_carlo_normalized_prices(all_normalized_prices, upper_threshold, lower_threshold, latest_close_price, window_days, ticker), use_container_width=True)
|
| 595 |
|
| 596 |
-
|
| 597 |
-
|
| 598 |
|
| 599 |
#st.subheader("Expected Price Range Based on Implied Volatility")
|
| 600 |
#st.markdown("This plot shows the expected price range of the stock based on implied volatility over a specified period. "
|
|
|
|
| 590 |
#st.subheader("Monte Carlo Simulation for Normalized Price Movements")
|
| 591 |
#st.markdown("This plot shows the results of a Monte Carlo simulation for normalized price movements around earnings dates. "
|
| 592 |
# "We simulate multiple price paths to estimate the probabilities of price movements exceeding given thresholds.")
|
| 593 |
+
window_days = list(range(-pre_announcement_window, post_announcement_window + 1))
|
| 594 |
#st.plotly_chart(monte_carlo_normalized_prices(all_normalized_prices, upper_threshold, lower_threshold, latest_close_price, window_days, ticker), use_container_width=True)
|
| 595 |
|
| 596 |
+
up_target = latest_close_price * upper_threshold
|
| 597 |
+
down_target = latest_close_price * lower_threshold
|
| 598 |
|
| 599 |
#st.subheader("Expected Price Range Based on Implied Volatility")
|
| 600 |
#st.markdown("This plot shows the expected price range of the stock based on implied volatility over a specified period. "
|