Merge pull request #7801 from initrv/patch-1
Fix 4ac update_total_profit
This commit is contained in:
commit
732757e087
@ -73,8 +73,8 @@ class Base4ActionRLEnv(BaseEnvironment):
|
||||
trade_type = "short"
|
||||
self._last_trade_tick = self._current_tick
|
||||
elif action == Actions.Exit.value:
|
||||
self._position = Positions.Neutral
|
||||
self._update_total_profit()
|
||||
self._position = Positions.Neutral
|
||||
trade_type = "neutral"
|
||||
self._last_trade_tick = None
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user