Artificial Intelligence, Finance, Reinforcement Learning, Data Science, Innovation.
self.open_position_price = 0 self.current_step = 0 self.trade_open = False self.trade_summary = {} return self.get_discrete_state() def _next_observation(self): return self.df_scaled[self.current_step] def get_discrete_state(self): current_price = self.df.loc[self.current_step, "adjusted_close"]