fx Formula & Mathematical Methodology
Total Shares = Shares_1 + Shares_2. Total Cost = (Shares_1 * Price_1) + (Shares_2 * Price_2). Weighted Average Price = Total Cost / Total Shares. Current Value = Total Shares * Market Price. Unrealized P&L = Current Value - Total Cost.