]> Piment Noir Git Repositories - freqai-strategies.git/commitdiff
refactor(reforcexy): code formatting
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 27 Feb 2025 16:22:33 +0000 (17:22 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 27 Feb 2025 16:22:33 +0000 (17:22 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
ReforceXY/user_data/freqaimodels/ReforceXY.py

index ab0594b73a38c08d0e484c4c0e2224ab61a6dbd5..7ee8f2d4a5ea377bcb9a60c501554ec70fe97c48 100644 (file)
@@ -777,17 +777,19 @@ class ReforceXY(BaseReinforcementLearningModel):
             #     period=8,
             #     pair=self.pair,
             #     timeframe=self.config["timeframe"],
-            #     raw=True
+            #     raw=True,
             # )
 
             # # reward agent for entering trades when RSI is low
-            # if (action in (Actions.Long_enter.value, Actions.Short_enter.value)
-            #         and self._position == Positions.Neutral):
+            # if (
+            #     action in (Actions.Long_enter.value, Actions.Short_enter.value)
+            #     and self._position == Positions.Neutral
+            # ):
             #     if rsi_now < 40:
             #         factor = 40 / rsi_now
             #     else:
             #         factor = 1
-            #     return 25 * factor
+            #     return 25.0 * factor
 
             # reward agent for entering trades
             if (