การคำนวณต้นทุนในการเปิด Limit Order
1. คำนวณ Initial Margin
Initial Margin
= Notional Value / Leverage Multiplier
=(49948.8*1 BTC)/20x
=2497.44
2. คำนวณ Open Loss
- Open Loss ของ Long Order
= Number of Contract * Absolute Value {min[0, Direction of order * (Mark price - Order Price)]}
= 1 * Absolute Value {min[0, 1 * (49822.1- 49948.8)]}
= 1 * Absolute Value {min[0, (-126.7)]}
= 1 * 126.7
= 126.7
Open Loss จะเกิดขึ้นเมื่อคุณ Place Long Order
- Open Loss ของ Short Order
= Number of Contract * Absolute Value {min[0, Direction of order * (Mark Price - Order Price)]}
= 1 * Absolute Value {min[0, -1 * (49822.1- 49948.8)]}
= 1 * Absolute Value {min[0, 126.7]}
= 1 * 0
= 0
Open Loss จะไม่เกิดขึ้นเมื่อคุณ Place Short Order
3. คำนวณต้นทุนในการเปิด Position
เนื่องจากการ Place Short Order จะไม่มี Open Loss ต้นทุนในการเปิด Short Order จึงเท่ากับ Initial Margin
- ต้นทุนในการเปิด Long Order
=2497.44 + 126.7
=2624.14
- ต้นทุนในการเปิด Short Order
=2497.44 + 0
=2497.44
เนื่องจากการ Place Long Order จะมี Open Loss การ Place Long Order จึงมีต้นทุนมากกว่า นอกจาก Initial Margin แล้ว คุณต้องคำนึงถึง Open Loss ด้วย
การคำนวณต้นทุนในการเปิด Market Order
1. คำนวณ Entry Price โดยประมาณ
Entry Price โดยประมาณของ Long Order = ask[0] * (1 + 0.05%); Entry Price โดยประมาณของ Short Order = max(bid[0], mark price)
- Entry Price โดยประมาณของ Long Order
=ask[0]*(1 + 0.05%)
=49939.9*(1 + 0.05%)
=49964.87
* [0]: Level 1 Price
- Assuming Price ของ Short Order
= max(Bid[0], Mark Price)
= max (49940, 49904.5)
= 49940
* [0]: Level 1 Price
2. คำนวณ Initial Margin
Initial Margin = Notional Value / Leverage Multiplier
- Initial Margin ของ Long Order
= Entry Price โดยประมาณของ Long Order * จำนวนสัญญา / Leverage Multiplier
=49964.87 * 1 /20
=2498.2435
- Initial Margin ของ Short Order
= Entry Price โดยประมาณของ Short Order * จำนวนสัญญา / Leverage Multiplier
=49940 * 1/20
=2497
3. คำนวณ Open Loss
Open Loss = Number of Contract * Absolute Value {min[0, direction of order * (mark price - order price)]}
Direction of Order: 1 สำหรับ Long Order;-1 สำหรับ Short Order
- Open Loss สำหรับ Long Order
= Number of Contract * Absolute Value {min[0, direction of order * (mark price - order price)]}
= 1 * Absolute Value {min[0, 1 * (49904.5 - 49964.87)]}
= 1 * Absolute Value {min[0, -60.37]}
= 1 * 60.37
= 60.37
Open Loss จะเกิดขึ้นเมื่อคุณ Place Long Order
- Open Loss สำหรับ Short Order
= Number of Contract * Absolute Value {min[0, direction of order * (mark price - order price)]}
= 1 * Absolute Value {min[0, -1 * (49904.5 - 49940)]}
= 1 * Absolute Value {min[0, 35.5]}
= 1 * 0
= 0
4. การคำนวณต้นทุนในการเปิด Position
เนื่องจากการ Place Long Order จะมี Open Loss การ Place Long Order จึงมีต้นทุนมากกว่า นอกจาก Initial Margin แล้ว คุณต้องคำนึงถึง Open Loss ด้วย
- ต้นทุนในการเปิด Long Order
=2498.2435+60.37
=2558.6135
- ต้นทุนในการเปิด Short Order
=2497+0
=2497
เนื่องจากการวาง Short Order จะไม่มี Open Loss ต้นทุนในการเปิด Short Order จึงเท่ากับ Initial Margin