BacktestFolio · Glossary
Average cost
In plain language
If you get 10 units at €90 and then another 10 at €110, with no fees, the average cost under the average method is €100. The unrealised gain is the difference between today's price and the average cost, times the units you hold.
Technical definition
The cost per unit of the holdings you own, purchase fees included. With the average-cost method it changes with every purchase; with FIFO or LIFO it also depends on which units leave at each sale.