If so, you can simply calculate the average trade price. But if not, you need to calculate a weighted average trade price, because a simple average ... Here's the formula used to calculate the ...