Let's say I buy 1000 shares of ABC for 10$ each. Avg. Cost : 10$
Six months later I sell 500 shares for 12$ each. Total earnings: 1000$
Question: should I include the earnings in the formula of the avg. cost in order to drive the avg. share cost lower?