fix bug in Base4ActionRLEnv, improve example strats

This commit is contained in:
robcaulk
2022-09-04 11:21:54 +02:00
parent 240b529533
commit 27dce20b29
3 changed files with 9 additions and 13 deletions

View File

@@ -31,7 +31,7 @@ class Base4ActionRLEnv(BaseEnvironment):
if self._current_tick == self._end_tick:
self._done = True
self.update_portfolio_log_returns(action)
self._update_unrealized_total_profit()
self._update_profit(action)
step_reward = self.calculate_reward(action)