Skip to content

Commit

Permalink
X5: add config option for rapid mode stops.
Browse files Browse the repository at this point in the history
  • Loading branch information
iterativv committed Jan 4, 2025
1 parent b99eff3 commit 34fc267
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion NostalgiaForInfinityX5.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class NostalgiaForInfinityX5(IStrategy):
INTERFACE_VERSION = 3

def version(self) -> str:
return "v15.1.313"
return "v15.1.314"

stoploss = -0.99

Expand Down Expand Up @@ -591,6 +591,10 @@ def __init__(self, config: dict) -> None:
self.stop_threshold_doom_spot = self.config["stop_threshold_doom_spot"]
if "stop_threshold_doom_futures" in self.config:
self.stop_threshold_doom_futures = self.config["stop_threshold_doom_futures"]
if "stop_threshold_rapid_spot" in self.config:
self.stop_threshold_rapid_spot = self.config["stop_threshold_rapid_spot"]
if "stop_threshold_rapid_futures" in self.config:
self.stop_threshold_rapid_futures = self.config["stop_threshold_rapid_futures"]

if "derisk_enable" in self.config:
self.derisk_enable = self.config["derisk_enable"]
Expand Down

0 comments on commit 34fc267

Please sign in to comment.