]> Piment Noir Git Repositories - freqai-strategies.git/commitdiff
refactor(reforcexy): cleanups
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sat, 2 Aug 2025 15:35:06 +0000 (17:35 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sat, 2 Aug 2025 15:35:06 +0000 (17:35 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
ReforceXY/user_data/strategies/RLAgentStrategy.py

index 95ed29275988c0c41c771b9bd32c13298dad020f..e0480d89fd3839310bbfa2a672aa3ec9bf6be264 100644 (file)
@@ -51,9 +51,9 @@ class RLAgentStrategy(IStrategy):
     #         },
     #         {
     #             "method": "StoplossGuard",
-    #             "lookback_period_candles": fit_live_predictions_candles,
+    #             "lookback_period_candles": int(fit_live_predictions_candles / 2),
     #             "trade_limit": 1,
-    #             "stop_duration_candles": fit_live_predictions_candles,
+    #             "stop_duration_candles": int(fit_live_predictions_candles / 2),
     #             "only_per_pair": True,
     #         },
     #     ]
@@ -112,7 +112,6 @@ class RLAgentStrategy(IStrategy):
             dataframe.get("do_predict") == 1,
             dataframe.get(ACTION_COLUMN) == 1,
         ]
-
         dataframe.loc[
             reduce(lambda x, y: x & y, enter_long_conditions),
             ["enter_long", "enter_tag"],
@@ -122,7 +121,6 @@ class RLAgentStrategy(IStrategy):
             dataframe.get("do_predict") == 1,
             dataframe.get(ACTION_COLUMN) == 3,
         ]
-
         dataframe.loc[
             reduce(lambda x, y: x & y, enter_short_conditions),
             ["enter_short", "enter_tag"],