I always sell those shares that are at "Highest cost," as TD Ameritrade allows, to keep the tax consequences as minimal as possible.