# Exit Conditions

The **Exit Conditions** section allows traders to define precise logic for automatically closing active positions.

Each exit rule uses the same set of market conditions available in the [**Long** and **Short** entry configurations](/backtesters/bigbeluga-strategy-builder/entry-conditions.md#long-short-entry-conditions) — including structure breaks, order blocks, divergences, liquidity events, or oscillator reversals — but is applied strictly for **trade management and exit execution**.

***

<div><figure><img src="/files/QCOhfU1jM77KM0nkpk5v" alt=""><figcaption></figcaption></figure> <figure><img src="/files/oTHblkIM2isWIQ9yaXUx" alt=""><figcaption></figcaption></figure></div>

***

Traders can assign up to two exit conditions for both long and short positions.\
Each exit rule can be configured with:

* **Direction filter** *(Bullish/Bearish)* — determines when the signal is valid for exit.
* **Condition type** — defines the event that triggers the trade closure (e.g., Break of Structure, FVG Retest, Divergence, Liquidity Grab, etc.).

*When an exit condition is met, the system automatically closes any active position of the corresponding direction — ensuring precise, rule-based trade management without manual intervention.*

***

The **Long/Short Exit Conditions** module completes the backtesting framework by introducing **automated position management**.\
It ensures every strategy tested under the **BigBeluga Backtester** adheres to consistent exit logic, minimizing emotional bias and enhancing accuracy in performance evaluation.

By mirroring entry condition flexibility, the exit system allows full creative control — from structure-based exits to momentum or liquidity-driven reversals — enabling traders to test how each exit method impacts long-term profitability and drawdown behavior.


---

# 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.bigbeluga.com/backtesters/bigbeluga-strategy-builder/exit-conditions.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.
