Artificial Intelligence, Finance, Reinforcement Learning, Data Science, Innovation.
if self.position else "closed" current_price = self.df.loc[self.current_step, "adjusted_close"] if self.position: unrealized_profit = current_price - self.open_position_price else: unrealized_profit = 0 # General information about the current step print( f"Step: {self.current_step}, Balance: