All details about contracts from position are displayed in Matched orders table.
Trader’s position may consist of a different number of contracts with different price. In our case the Position Panel on the trading page displays aggregated position data. Where:
Entry Price = (q1 * Entry Price1+q2 Entry Price2+ ...) / (q1+q2+ ... )
So Entry Price in the Open Position table is the weighted average of Entry prices of contracts from Matched orders table.
Actually, all contracts have a different liquidation price that is displayed in Matched orders table. So the user will lose only part of his position.
Liquidation Price for a long position that displayed in Open Position table is the maximum liquidation price for trader’s contract.
Liquidation Price for a short position that displayed in Open Position table is the minimum liquidation price for trader’s contract.
Also the liquidation price from the Open Position table is displayed on the ladder.
In case of liquidation, the Position Margin of the liquidated contracts will be removed from the trader’s balance.
When a user places an order in the opposite direction from his position, he will reduce the number of contracts in position according to the LIFO principle (last in first out).