Skip to content

Commit

Permalink
X3: grinding: allow more margin for de-risk detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
iterativv committed Mar 8, 2024
1 parent e5b0322 commit 9edb8e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions NostalgiaForInfinityX3.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class NostalgiaForInfinityX3(IStrategy):
INTERFACE_VERSION = 3

def version(self) -> str:
return "v13.1.309"
return "v13.1.310"

stoploss = -0.99

Expand Down Expand Up @@ -16424,10 +16424,10 @@ def long_adjust_trade_position_no_derisk(
for order2 in filled_orders:
if order2.ft_order_side == "buy":
current_amount += order2.safe_filled
if order2.ft_order_side == "sell":
elif order2.ft_order_side == "sell":
current_amount -= order2.safe_filled
if order2 is order:
if current_amount < (start_amount * 0.99):
if current_amount < (start_amount * 0.95):
is_derisk = True
# found sells for all modes
if rebuy_is_sell_found and grind_1_is_sell_found and grind_2_is_sell_found and grind_3_is_sell_found:
Expand Down

0 comments on commit 9edb8e4

Please sign in to comment.