- Identification: The system identifies traders who hold profitable positions that are opposite to the bankrupt position.
- Ranking: These profitable traders are ranked, typically based on a combination of their profitability and the leverage they are using. Those with the highest profits and leverage are prioritized for deleveraging first.
- Execution: The positions of the selected profitable traders are automatically closed (deleveraged) at a bankruptcy price against the underwater position. The amount closed is just enough to cover the bad debt.