feat: Improve navigation buttons in strategy guide page with Streamlit switch_page
This commit is contained in:
parent
99f890c4c6
commit
83e2cde08a
@ -713,9 +713,11 @@ def strategy_guide_page():
|
||||
* Set price alerts
|
||||
""")
|
||||
|
||||
if st.button("Go to SunnyBands Scanner"):
|
||||
st.session_state.page = "Technical Scanner"
|
||||
st.rerun()
|
||||
col1, col2 = st.columns(2)
|
||||
with col1:
|
||||
if st.button("Go to SunnyBands Scanner"):
|
||||
st.switch_page("src/streamlit_app.py") # This will refresh the page
|
||||
st.session_state.page = "Technical Scanner" # Set the page before refresh
|
||||
|
||||
# Morning Trading Section
|
||||
with st.expander("2. Trading Strategy (6:30-7:30 AM PST)"):
|
||||
@ -787,9 +789,11 @@ def strategy_guide_page():
|
||||
* Refine strategies
|
||||
""")
|
||||
|
||||
if st.button("Go to Trading Journal"):
|
||||
st.session_state.page = "Trading Journal"
|
||||
st.rerun()
|
||||
col1, col2 = st.columns(2)
|
||||
with col1:
|
||||
if st.button("Go to Trading Journal"):
|
||||
st.switch_page("src/streamlit_app.py") # This will refresh the page
|
||||
st.session_state.page = "Trading Journal" # Set the page before refresh
|
||||
|
||||
def main():
|
||||
st.set_page_config(page_title="Trading System", layout="wide")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user