> For the complete documentation index, see [llms.txt](https://docs.bigbeluga.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bigbeluga.com/backtesters/bigbeluga-strategy-builder/exit-conditions.md).

# 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.
