the actual ROI in portfolio tracker is calculated on buy volume - sell volume (total value)/ unrealized and realised p&l.
the problem is that when you porfolio value change the ROI become incorrect, the solution would be to have ROI only on sold items, and ROI only for unrealised p&l
and then maybe a combination of the two for a total ROI.
Thank you for reading,
MILO