Priority Ranking Calculation

Users' sequence in the virtual queue is calculated by their profit and leverage. In short, users that are more profitable and with higher leverage are deleveraged first.
Below is detailed calculation for the ranking sequence:
MV be Position Value at Mark Price, BV be Position Value at Bankruptcy Price and AEV be Position Value at Average Entry Price.
The system separates trade positions into longs and shorts. Then, the trade positions are ranked from high to low based on the above calculation.