]> Piment Noir Git Repositories - freqai-strategies.git/commitdiff
refactor(reforcexy): track only changed info properties after trade
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 15 Sep 2025 13:15:26 +0000 (15:15 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 15 Sep 2025 13:15:26 +0000 (15:15 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
ReforceXY/user_data/freqaimodels/ReforceXY.py

index a822cd282c4f0234c196b9b9b3818cc61b943cdf..c12bad70e8a296a759e08f779394a23399fc7b07 100644 (file)
@@ -1203,9 +1203,6 @@ class ReforceXY(BaseReinforcementLearningModel):
             }
             self.execute_trade(action)
             info["position"] = self._position.value
-            info["force_action"] = (
-                self._force_action.name if self._force_action else None
-            )
             info["pnl"] = self.get_unrealized_profit()
             info["trade_duration"] = self.get_trade_duration()
             info["trade_count"] = len(self.trade_history)