def _do_sell_normal():
    if (self.state[((index + self.stock_dim) + 1)] > 0):
        sell_num_shares = min(abs(action), self.state[((index + self.stock_dim) + 1)])
        sell_amount = ((self.state[(index + 1)] * sell_num_shares) * (1 - self.sell_cost_pct))
        self.state[0] += sell_amount
        self.state[((index + self.stock_dim) + 1)] -= min(abs(action), self.state[((index + self.stock_dim) + 1)])
        self.cost += ((self.state[(index + 1)] * min(abs(action), self.state[((index + self.stock_dim) + 1)])) * self.sell_cost_pct)
        self.trades += 1
    else:
        sell_num_shares = 0
        pass
    return sell_num_shares
def _do_sell_normal():
    if (self.state[((index + self.stock_dim) + 1)] > 0):
        sell_num_shares = min(abs(action), self.state[((index + self.stock_dim) + 1)])
        sell_amount = ((self.state[(index + 1)] * sell_num_shares) * (1 - self.sell_cost_pct))
        self.state[0] += sell_amount
        self.state[((index + self.stock_dim) + 1)] -= min(abs(action), self.state[((index + self.stock_dim) + 1)])
        self.cost += ((self.state[(index + 1)] * min(abs(action), self.state[((index + self.stock_dim) + 1)])) * self.sell_cost_pct)
        self.trades += 1
    else:
        sell_num_shares = 0
        pass
    return sell_num_shares