SafeZone Stop

The SafeZone Stop of Alexander Elder places the stop outside the noise of the market instead of a fixed number of Average True Ranges away. In an uptrend, Elder regards the part of a period’s low below the previous low, the downside penetration, as noise: the long stop lies below the previous low by a multiple of the average of those penetrations, so that ordinary dips do not reach it. The short stop lies above the previous high by a multiple of the average upside penetration.

The formula for the SafeZone Stop starts from the penetrations of each period, the part of the low below the previous low and the part of the high above the previous high, zero when there is none:

\[\text{Downside Penetration} = \max\left(\text{Low}_{t-1} - \text{Low}, 0\right)\] \[\text{Upside Penetration} = \max\left(\text{High} - \text{High}_{t-1}, 0\right)\]

A count marks the periods with a penetration:

\[\text{Downside Count} = 1 \quad \text{if } \text{Downside Penetration} > 0\] \[\text{Downside Count} = 0 \quad \text{if } \text{Downside Penetration} = 0\] \[\text{Upside Count} = 1 \quad \text{if } \text{Upside Penetration} > 0\] \[\text{Upside Count} = 0 \quad \text{if } \text{Upside Penetration} = 0\]

The average penetration over the last n periods counts only the periods that had one:

\[\text{Average Downside Penetration} = \frac{\text{Sum}(\text{Downside Penetration}, n)}{\text{Sum}(\text{Downside Count}, n)}\] \[\text{Average Upside Penetration} = \frac{\text{Sum}(\text{Upside Penetration}, n)}{\text{Sum}(\text{Upside Count}, n)}\]

The long exit lies k average downside penetrations below the previous low, and the short exit k average upside penetrations above the previous high:

\[\text{Long Exit} = \text{Low}_{t-1} - k \cdot \text{Average Downside Penetration}\] \[\text{Short Exit} = \text{High}_{t-1} + k \cdot \text{Average Upside Penetration}\]

Elder never lowers the stop of a long position, or raises that of a short one, once a trade is open. A close beyond the stop ends the trade. Because the stop follows the previous low or high rather than the extreme of the trend, it sits closer to the price than the Chandelier Exit and closes trades sooner.

Also known as: SafeZone, Elder’s SafeZone Stop, Elder SafeZone.

In the Finance Toolkit this is get_chandelier_exit with method="safezone", the same function as Chandelier Exit.

Example · TSLA · 2025

Install the Finance Toolkit with pip install financetoolkit -U, then call get_chandelier_exit:

from financetoolkit import Toolkit

toolkit = Toolkit(
    tickers=["TSLA"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2025-01-01",
    end_date="2025-12-31",
)

toolkit.technicals.get_chandelier_exit(method="safezone").xs("TSLA", level=1, axis="columns")

Which returns:

References

  • Paper Elder, A. (2002). “Come Into My Trading Room.” John Wiley & Sons, which popularised the exit and defines the SafeZone Stop (chapter 9).
Share