# Auto-Exit

> **Auto-Exit continuously tracks real-time market prices and automatically closes your liquidity positions once the predefined conditions are met. Similar to Auto-Rebalance, Auto-Exit is designed to enhance the profitability of your liquidity positions during periods of market volatility, while ensuring efficiency and minimizing the impact of impermanent loss.**

**Step 1: Pick a position and access Auto-Exit feature**

You can set up Auto-Exit (1) on the “Positions” tab of your [**"Profile"**](https://docs.krystal.app/products/liquidity-management/profile-dashboard) page, (2) on the “Automation” tab of your [**"Profile"**](https://docs.krystal.app/products/liquidity-management/profile-dashboard) page, (3) on the "Automation" tab of the [**“Position Details”**](https://docs.krystal.app/products/liquidity-management/profile-dashboard) page, or (4) on the "Auto-Exit" tab of the [**"Automation"**](https://docs.krystal.app/products/liquidity-management/profile-dashboard) page

* From the "Positions" tab in your [**"Profile"**](https://docs.krystal.app/products/liquidity-management/profile-dashboard) page, click on the three dots icon at the end of the position and choose Auto-Exit\\

  <figure><img src="https://github.com/KrystalDeFi/docs-gitbook/blob/main/docs/liquidity-farming/.gitbook/assets/image%20(178).png" alt=""><figcaption></figcaption></figure>
* Or from the "Automation" tab in your [**"Profile"**](https://docs.krystal.app/products/liquidity-management/profile-dashboard) page, click on "Auto-Exit" and choose "New Setup"

  <figure><img src="https://github.com/KrystalDeFi/docs-gitbook/blob/main/docs/liquidity-farming/.gitbook/assets/image%20(181).png" alt=""><figcaption></figcaption></figure>
* Or from the "Automation" tab of the [**“Position Details”**](https://docs.krystal.app/products/liquidity-management/profile-dashboard) page, click on "Auto-Exit" and choose "New Setup"

  <figure><img src="https://github.com/KrystalDeFi/docs-gitbook/blob/main/docs/liquidity-farming/.gitbook/assets/image%20(184).png" alt=""><figcaption></figcaption></figure>
* Or from the "Auto-Exit" tab of the [**"Automation"**](https://docs.krystal.app/products/liquidity-management/profile-dashboard) page, click "New Setup"\\

  <figure><img src="https://github.com/KrystalDeFi/docs-gitbook/blob/main/docs/liquidity-farming/.gitbook/assets/image%20(185).png" alt=""><figcaption></figcaption></figure>

**Step 2: Configure Auto-Rebalance Parameters and confirm the setup**

* In the Trigger Setup section, you can set up the Trigger Prices and Time Buffer:

  * Lower and Upper Trigger Prices can be set up in absolute value or in % changes vs. current price. When the actual price fall out of this Trigger Prices range, you position will auto-exit.
  * Time Buffer can be set up to trigger Auto-Exit only when the price remains outside of the Trigger Prices range for a certain amount of time.

  <figure><img src="https://github.com/KrystalDeFi/docs-gitbook/blob/main/docs/liquidity-farming/.gitbook/assets/image%20(188).png" alt=""><figcaption></figcaption></figure>
* In the Settings section, you can set up Gas Fee Ceiling, Pool Slippage, and Platform Fee:

  * Gas Fee Ceiling let you set the maximum amount of gas fee you are willing to pay for an exit transaction. If the cost is higher than the Gas fee Ceiling, Auto-Exit won't be triggered.
  * Pool Slippage helps protect you by reverting the transaction if there's any unfavorable price movement.
  * Platform fee helps set up the maximum platform fee that you are willing to pay for an Auto-Exit transaction.

  <figure><img src="https://github.com/KrystalDeFi/docs-gitbook/blob/main/docs/liquidity-farming/.gitbook/assets/image%20(189).png" alt=""><figcaption></figcaption></figure>
* Click "Approve" and "Confirm" to activate your Auto-Rebalance strategy.\\

  <figure><img src="https://github.com/KrystalDeFi/docs-gitbook/blob/main/docs/liquidity-farming/.gitbook/assets/image%20(190).png" alt=""><figcaption></figcaption></figure>

**Step 3: Track your Auto-Exit Strategy on the Automation Tab**

<figure><img src="https://github.com/KrystalDeFi/docs-gitbook/blob/main/docs/liquidity-farming/.gitbook/assets/image%20(191).png" alt=""><figcaption></figcaption></figure>
