Skip to content

Commit

Permalink
Fix observation bound
Browse files Browse the repository at this point in the history
  • Loading branch information
AminHP committed May 21, 2022
1 parent c49d881 commit 97780c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gym_anytrading/envs/trading_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def step(self, action):


def _get_observation(self):
return self.signal_features[(self._current_tick-self.window_size):self._current_tick]
return self.signal_features[(self._current_tick-self.window_size+1):self._current_tick+1]


def _update_history(self, info):
Expand Down

0 comments on commit 97780c0

Please sign in to comment.