# Automatic Deleveraging

If the insurance vault is insufficient to cover liquidation losses, the Automatic Deleveraging System (ADL) will automatically reduce the positions of traders holding opposite positions.&#x20;

The ADL prioritizes traders based on profit and leverage — those with higher profit and greater leverage are prioritized for deleveraging.&#x20;

Traders can monitor their priority ranking for automatic position reduction via the “ADL Ranking” indicator in the user interface. Each light represents a 20% priority ranking; when all lights are illuminated, the position is at risk of being reduced in the event of forced liquidation.&#x20;

The ADL ranking is calculated using the following metrics:&#x20;

#### ADL ranking calculation method <a href="#adl-ranking-calculation-method" id="adl-ranking-calculation-method"></a>

Where:

* `Effective leverage` is `mark value / (mark value - bankruptcy value)`
* `% profit` is `(mark value - average open value) / average opening value`
* `Mark value` is the value of the position at the mark price
* `Bankruptcy value` is the value of position at the bankruptcy price
* `Average opening value` is the the value of position at average opening price

This structured approach helps ensure a fair and transparent liquidation process while protecting the integrity of the trading platform.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.satori.finance/perpetual-trading/automatic-deleveraging.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
