QuantumLearner commited on
Commit
a1f2689
·
verified ·
1 Parent(s): 900e436

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -25,15 +25,18 @@ if 'atr_window' not in st.session_state:
25
  # Sidebar for user input and navigation
26
  st.sidebar.title("Input Parameters")
27
 
 
 
 
28
  # Select the page
29
- page = st.sidebar.radio("Select Mode", ["Run Strategy", "Optimize Parameters"])
30
 
31
  # Common user inputs in the sidebar with collapsible sections
32
  with st.sidebar:
33
 
34
  with st.expander("How to use", expanded=False):
35
- st.sidebar.header("How to Use")
36
- st.sidebar.markdown("""
37
  1. Select **Run Strategy** to calculate stop-loss thresholds using specified ATR parameters.
38
  2. Select **Optimize Parameters** to find the optimal ATR settings using Bayesian Optimization.
39
  3. Set the symbol, date range, and strategy parameters in the **Parameters** section.
 
25
  # Sidebar for user input and navigation
26
  st.sidebar.title("Input Parameters")
27
 
28
+ with st.expander("Stop-Loss Strategy", expanded=True):
29
+ page = st.radio("Select Mode", ["Run Strategy", "Optimize Parameters"])
30
+
31
  # Select the page
32
+ #page = st.sidebar.radio("Select Mode", ["Run Strategy", "Optimize Parameters"])
33
 
34
  # Common user inputs in the sidebar with collapsible sections
35
  with st.sidebar:
36
 
37
  with st.expander("How to use", expanded=False):
38
+ st.header("How to Use")
39
+ st.markdown("""
40
  1. Select **Run Strategy** to calculate stop-loss thresholds using specified ATR parameters.
41
  2. Select **Optimize Parameters** to find the optimal ATR settings using Bayesian Optimization.
42
  3. Set the symbol, date range, and strategy parameters in the **Parameters** section.