1. Flux Charts
    2. S&D Backtester

    S&D Backtester: Exit Conditions

    S&D Backtester Exit Conditions

    The S&D Backtester allows users to create, backtest, and automate strategies using features from the MTF Supply & Demand Zones Toolkit. This article covers the various conditions and rules for exiting positions in long and short strategies with the S&D Backtester.

    Exit Conditions

    Exit on Opposite Signal

    S&D 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

    S&D 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 Supply Zone is detected on the current chart's timeframe.

    S&D Backtester TP Condition setting

    Fixed TP

    S&D 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 0.05 and buy $DOGE at $0.45, the trade will automatically exit when the price reaches $0.50 ($0.45 + $0.05).

    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 Demand Zone is retested for a second time on the current chart's timeframe.

    S&D Backtester SL Condition setting

    Fixed SL

    S&D 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 5 and buy $GOOGL at $200, the trade will automatically exit when the price reaches $195 ($200 - $5).

    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.

    S&D 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.

    S&D 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.

    S&D 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.

    S&D 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).