feat: Integrate Monte Carlo Analysis page into Streamlit app navigation

This commit is contained in:
Bobby (aider) 2025-02-17 15:05:32 -08:00
parent 8b9ef53794
commit a90828eeb4

View File

@ -8,6 +8,7 @@ from pages.screener.technical_scanner_page import technical_scanner_page
from pages.trading.trading_system_page import trading_system_page
from pages.trading.trading_plan_page import trading_plan_page
from pages.backtesting.backtesting_page import backtesting_page
from pages.analysis.monte_carlo_page import monte_carlo_page
from trading.journal import (
create_trades_table, get_open_trades, get_trade_history,
get_latest_portfolio_value, update_portfolio_value
@ -31,7 +32,7 @@ def main():
st.sidebar.title("Navigation")
st.session_state.page = st.sidebar.radio(
"Go to",
["Strategy Guide", "Trading Journal", "Technical Scanner", "CANSLIM Screener", "Trading System", "Trading Plans", "Backtesting"]
["Strategy Guide", "Trading Journal", "Technical Scanner", "CANSLIM Screener", "Trading System", "Trading Plans", "Backtesting", "Monte Carlo Analysis"]
)
# Create necessary tables
@ -53,6 +54,8 @@ def main():
trading_plan_page()
elif st.session_state.page == "Backtesting":
backtesting_page()
elif st.session_state.page == "Monte Carlo Analysis":
monte_carlo_page()
if __name__ == "__main__":
main()