From 941e9462b6d2d268df8657ab3a13e5dad22dc897 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 2 Aug 2025 17:35:06 +0200 Subject: [PATCH] refactor(reforcexy): cleanups MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- ReforceXY/user_data/strategies/RLAgentStrategy.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ReforceXY/user_data/strategies/RLAgentStrategy.py b/ReforceXY/user_data/strategies/RLAgentStrategy.py index 95ed292..e0480d8 100644 --- a/ReforceXY/user_data/strategies/RLAgentStrategy.py +++ b/ReforceXY/user_data/strategies/RLAgentStrategy.py @@ -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"], -- 2.43.0