How it works
- Gross PnL = (Exit − Entry) × Quantity (reversed for shorts)
- Fees = Fee % × (Entry × Qty + Exit × Qty)
- Net PnL = Gross − Fees − Funding paid
- Initial margin = Entry × Qty ÷ Leverage, and ROE = Net PnL ÷ Initial margin
Example: long 1 unit from 100 to 110 at 10x with no fees gives +10 net and 10 margin, so ROE is 100%.