Hi! The relative gain of the portfolio is gain_rel = ( sum( market value per symbol ) / sum ( cost per symbol ) - 1 ) * 100 where "cost per symbol" relates to the purchase price.
relative gain = absolute gain / sum (cost per symbol) * 100