diff --git a/pages/config/grid_strike/user_inputs.py b/pages/config/grid_strike/user_inputs.py index f007b5093..68bdb5369 100644 --- a/pages/config/grid_strike/user_inputs.py +++ b/pages/config/grid_strike/user_inputs.py @@ -68,9 +68,9 @@ def user_inputs(): end_price = max(current_price, max_price) limit_price = start_price * 0.95 else: - start_price = max(max_price, current_price) - end_price = min(current_price, min_price) - limit_price = start_price * 1.05 + start_price = min(current_price, min_price) + end_price = max(max_price, current_price) + limit_price = end_price * 1.05 # Price configuration with meaningful defaults start_price = st.number_input( "Start Price", @@ -245,4 +245,4 @@ def user_inputs(): "activation_bounds": activation_bounds, "triple_barrier_config": triple_barrier_config, "candles_config": [] - } \ No newline at end of file + }