1. Flux Charts
    2. PAT Backtester

    PAT Automation: Exit Conditions

    PAT Backtester Exit Conditions

    The PAT Backtester allows users to create, backtest, and automate strategies using features from the Price Action Toolkit. This article covers the various conditions and rules for exiting positions in long and short entries.

    Exit Conditions

    Exit on Opposite Signal

    PAT Backtester Exit on opposite signal setting

    When enabled, a long position will close when short entry conditions are met, and a short position will close when long entry conditions are met.

    Exit on Session End

    PAT Backtester Exit on session end setting

    When enabled, positions will be closed at the end of the trading session.

    Take Profit Conditions

    There are several methods available for setting take-profit exits and conditions.

    Entry Condition TP

    Users can use entry conditions as triggers for take profit exits. This setting can be found under the long and short exit conditions.

    Here is an example of a take-profit exit being set to trigger once a bearish CHoCH+ is detected.

    PAT Backtester TP condition setting

    Fixed TP

    PAT Backtester Fixed TP setting

    Users can set a fixed TP for exits. This setting can be found under the long and short exit conditions. Users can choose between the following:

    Price: This method triggers a TP exit when price reaches a specified level.

    For example, if you set the Price TP to 10 and buy $TSLA at $190, the trade will automatically exit when the price reaches $200 ($190 + $10).

    Ticks: This method triggers a TP exit when price moves a specified number of ticks.

    Percentage (%): This method triggers a TP exit when price moves a specified percentage.

    ATR: This method triggers a TP exit based on a specified multiple of the Average True Range (ATR).

    Stop Loss Conditions

    There are several methods available for setting stop-loss exits and conditions.

    Entry Condition SL

    Users can use entry conditions as triggers for stop-loss exits. This setting can be found under the long and short exit conditions.

    Here is an example of a stop-loss exit being set to trigger once a bullish Breaker Block is detected.

    PAT Backtester SL condition

    Fixed SL

    PAT Backtester Fixed stop loss (SL)

    Users can set a fixed SL for exits. This setting can be found under the long and short exit conditions. Users can choose between the following:

    Price: This method triggers a SL exit when price reaches a specified level.

    For example, if you set the Price SL to 10 and buy $TSLA at $200, the trade will automatically exit when the price reaches $190 ($200 - $10).

    Ticks: This method triggers a SL exit when price moves a specified number of ticks.

    Percentage (%): This method triggers a SL exit when price moves a specified percentage.

    ATR: This method triggers a SL exit based on a specified multiple of the Average True Range (ATR).

    Trailing SL

    To use a trailing SL, set the Fixed SL input to 'Trailing'. The trailing stop-loss value entered is measured in ticks.

    PAT Backtester Trailing Stop Loss

    If you want to only activate the Trailing SL after a certain number of ticks, you can adjust the 'Trailing Stop Activation' setting.

    PAT Backtester Trailing Stop Loss activation setting

    In this example, an 80-tick trailing SL is triggered once price moves 20 ticks in the intended direction.

    PAT Backtester trailing stop loss example

    If you want to use a fixed SL alongside a trailing SL, enable the Hard SL setting. This option is only applicable when the trailing SL is active.

    PAT Backtester Hard SL setting

    Move Stop Loss to Breakeven

    This setting allows the strategy to automatically move the SL to Breakeven (BE) when the position is in profit by a certain amount. Users can choose between the following:

    Price: This method moves the SL to BE when price reaches a specified level.

    Ticks: This method moves the SL to BE when price moves a specified number of ticks.

    Percentage (%): This method moves the SL to BE when price moves a specified percentage.

    ATR: This method moves the SL to BE when price moves a specified multiple of the Average True Range (ATR).