ROI is calculated by measuring the profitability of trades relative to the initial investment, giving traders a clear picture of their financial performance.