Skip to content

Commit 4a3790c

Browse files
committed
X6: rebuy mode: fine tune the exits.
1 parent 11c4919 commit 4a3790c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

NostalgiaForInfinityX6.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class NostalgiaForInfinityX6(IStrategy):
6969
INTERFACE_VERSION = 3
7070

7171
def version(self) -> str:
72-
return "v16.4.95"
72+
return "v16.4.96"
7373

7474
stoploss = -0.99
7575

@@ -10266,7 +10266,11 @@ def long_exit_rebuy(
1026610266
mark_signal = f"exit_profit_{self.long_rebuy_mode_name}_max"
1026710267
self._set_profit_target(pair, mark_signal, current_rate, profit_init_ratio, current_time)
1026810268

10269-
if signal_name not in [f"exit_profit_{self.long_rebuy_mode_name}_max"]:
10269+
if signal_name not in [
10270+
f"exit_profit_{self.long_rebuy_mode_name}_max",
10271+
f"exit_{self.long_rebuy_mode_name}_stoploss_doom",
10272+
f"exit_{self.long_rebuy_mode_name}_stoploss_u_e",
10273+
]:
1027010274
if sell and (signal_name is not None):
1027110275
return True, f"{signal_name}"
1027210276

0 commit comments

Comments
 (0)