From e0a6f52a92fe07991b910d46321de91c44d9ae81 Mon Sep 17 00:00:00 2001 From: cardosofede Date: Tue, 21 May 2024 12:04:28 -0500 Subject: [PATCH] (feat) adapt base values --- frontend/components/directional_trading_general_inputs.py | 4 ++-- frontend/components/risk_management.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/components/directional_trading_general_inputs.py b/frontend/components/directional_trading_general_inputs.py index 0667718..3e8fb5e 100644 --- a/frontend/components/directional_trading_general_inputs.py +++ b/frontend/components/directional_trading_general_inputs.py @@ -17,7 +17,7 @@ def get_directional_trading_general_inputs(): with c3: leverage = st.number_input("Leverage", value=20, help="Set the leverage to use for trading (e.g., 20 for 20x leverage). Set it to 1 for spot trading.") - interval = st.selectbox("Candles Interval", ("1m", "3m", "5m", "15m", "1h", "4h", "1d"), index=3, + interval = st.selectbox("Candles Interval", ("1m", "3m", "5m", "15m", "1h", "4h", "1d"), index=1, help="Enter the interval for candles (e.g., 1m).") with c4: total_amount_quote = st.number_input("Total amount of quote", value=1000, @@ -26,7 +26,7 @@ def get_directional_trading_general_inputs(): max_executors_per_side = st.number_input("Max Executors Per Side", value=5, help="Enter the maximum number of executors per side (e.g., 5).") with c6: - cooldown_time = st.number_input("Cooldown Time (minutes)", value=15, + cooldown_time = st.number_input("Cooldown Time (minutes)", value=10, help="Specify the cooldown time in minutes (e.g., 60).") * 60 with c7: position_mode = st.selectbox("Position Mode", ("HEDGE", "ONEWAY"), index=0, diff --git a/frontend/components/risk_management.py b/frontend/components/risk_management.py index bfbd6ac..3b0ed71 100644 --- a/frontend/components/risk_management.py +++ b/frontend/components/risk_management.py @@ -6,13 +6,13 @@ def get_risk_management_inputs(): with st.expander("Risk Management", expanded=True): c1, c2, c3, c4, c5, c6 = st.columns(6) with c1: - sl = st.number_input("Stop Loss (%)", min_value=0.0, max_value=100.0, value=3.0, step=0.1, + sl = st.number_input("Stop Loss (%)", min_value=0.0, max_value=100.0, value=5.0, step=0.1, help="Enter the stop loss as a percentage (e.g., 2.0 for 2%).") / 100 with c2: tp = st.number_input("Take Profit (%)", min_value=0.0, max_value=100.0, value=2.0, step=0.1, help="Enter the take profit as a percentage (e.g., 3.0 for 3%).") / 100 with c3: - time_limit = st.number_input("Time Limit (minutes)", min_value=0, value=60 * 6, + time_limit = st.number_input("Time Limit (minutes)", min_value=0, value=60 * 12, help="Enter the time limit in minutes (e.g., 360 for 6 hours).") * 60 with c4: ts_ap = st.number_input("Trailing Stop Act. Price (%)", min_value=0.0, max_value=100.0, value=1.8,