From: Jérôme Benoit Date: Sat, 2 Aug 2025 15:35:06 +0000 (+0200) Subject: refactor(reforcexy): cleanups X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=941e9462b6d2d268df8657ab3a13e5dad22dc897;p=freqai-strategies.git refactor(reforcexy): cleanups Signed-off-by: Jérôme Benoit --- 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"],