Calculation on performance year end based on cotation insted on buying price

On report calculation tab, while trying to see the yearly performance for tax declatation there is a gap between the Trader claculation and the report. The report is taking at year end balance the number of share at the “cotation price” at 31 dec, instead of purchase prise . For all other calculation buying price is taken there is only a issue on year end remaing share. As the result the amout of taxable gain is higher that the effective gain. Is there a way to correct the value ?

I ran into the same issue and agree with your observation.

The current calculation uses the market price at the end of the period for remaining shares, which can lead to differences compared to actual purchase cost based gains.

I have proposed a change that calculates realized gains based on the actual purchase cost (FIFO / moving average) and adds an adjustment to keep the overall result consistent for the selected period.