]> Piment Noir Git Repositories - freqai-strategies.git/commitdiff
refactor(reforcexy): trivial code cleanup
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sat, 4 Oct 2025 17:48:02 +0000 (19:48 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sat, 4 Oct 2025 17:48:02 +0000 (19:48 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
ReforceXY/user_data/freqaimodels/ReforceXY.py

index 246c8be37edf7f762a5f11f409cbd601d2b48850..980c1313691fc5e7ede9d155a0ac43e64571f1af 100644 (file)
@@ -1792,7 +1792,7 @@ class MyRLEnv(Base5ActionRLEnv):
         )
 
     def is_terminated(self) -> bool:
-        return bool(
+        return (
             self._current_tick == self._end_tick
             or self._total_profit <= self.max_drawdown
             or self._total_unrealized_profit <= self.max_drawdown