Fixed sawal
Long entry 100, exit 101, quantity 100 aur 0.001 per-side example fees par net PnL kya hai?
Fixed inputs
- side
- long
- entryPrice
- 100
- exitPrice
- 101
- quantity
- 100
- openFeeRate
- 0.001
- closeFeeRate
- 0.001
Hisab ke marahil
- Gross PnL = (101 - 100) × 100 = 100.
- Open fee = 100 × 100 × 0.001 = 10.
- Close fee = 101 × 100 × 0.001 = 10.1; net = 79.9.
Auditable results
- grossPnl = 100
- openFee = 10
- closeFee = 10.1
- netPnl = 79.9
Matlab
PKR equivalent conversion ke baad bhi gross aur net ka farq rehga; actual rates live account se aayenge.
Failure conditions aur risk
- Maker/taker rate badlay to net result badlega.
- Partial fills ko single exit price se model nahin kiya gaya.
Funding, Slippage aur FX zero hain; 0.001 sirf fixed fixture hai.
Content checked: