If you bought a different number of shares with each trade, a simple average of the prices won’t be accurate.