Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pages/config/grid_strike/user_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -245,4 +245,4 @@ def user_inputs():
"activation_bounds": activation_bounds,
"triple_barrier_config": triple_barrier_config,
"candles_config": []
}
}