Margin and profit/loss calculations
Opening Margin
The opening margin includes the initial margin and the opening loss.
Opening losses occur when the futures contract price moves unfavourably (that is, the mark price is lower than the order price of the long order). Incorporating opening losses into the cost of opening a position can help prevent forced liquidation when traders place orders. If the opening loss is not included in the cost of opening a position, users' positions are likely to be liquidated immediately when they place an order.
Formulas
Initial Margin:
sCNH-margined Notional Value:
Opening Loss (sCNH-margined):
Order Direction: 1 represents a long order; −1 represents a short order
Example
sCNH-margined contract. The price is 1.94 sCNH. Open long 10,000 GMYD/sCNH contracts. Leverage 10×. The mark price now is 1.90 sCNH.
Initial Margin:
Opening Loss:
Opening Margin:
Average Opening Price
When an open position occurs, the average price of the open position is recalculated.
Formula
Average Opening Price:
Total Contract Value in sCNH:
Example
Trader A now holds a GMYD/sCNH long position of 5,000 GMYD, opening price of 1.90 sCNH. An hour later, Trader A decides to open an additional 3,000 GMYD position at 2.00 sCNH.
Total Contract Value:
Total Contract Quantity:
Average Opening Price:
Profit/Loss
After opening a position, the position and its profit and loss can be seen in real time in the position area.
Depending on the direction of your trade, the formula for calculating profit and loss is slightly different.
For Long Positions
Formula:
Example
Trader B now holds a GMYD/sCNH long position of 5,000 GMYD, opening price of 1.90 sCNH. When the latest mark price is shown as 2.00 sCNH, the unrealized profit and loss is displayed as 500 sCNH.
For Short Positions
Formula:
Example
Trader C now holds a GMYD/sCNH short position of 8,000 GMYD, opening price of 2.00 sCNH. When the latest mark price is shown as 1.85 sCNH, the unrealized profit and loss is displayed as 1,200 sCNH.
Summary of Formulas
| Formula | Long Position | Short Position |
|---|---|---|
| Notional Value | Qty × Price | Qty × Price |
| Initial Margin | Notional ÷ Leverage | Notional ÷ Leverage |
| Opening Loss | Qty × max(0, Order Price − Mark Price) | Qty × max(0, Mark Price − Order Price) |
| Opening Margin | Initial Margin + Opening Loss | Initial Margin + Opening Loss |
| Unrealized PnL | Qty × (Mark Price − Entry Price) | Qty × (Entry Price − Mark Price) |
| Realized PnL | Qty × (Exit Price − Entry Price) | Qty × (Entry Price − Exit Price) |