Artificial Intelligence, Finance, Reinforcement Learning, Data Science, Innovation.
self.trade_summary.update( { "close_price": current_price, "close_step": self.current_step, "profit": reward, # Note we now use reward here, which includes the fee } ) unrealized_profit = ( current_price - self.open_position_price if self.position else 0 ) self.info = { "trade": trade_info,