All indicators

Fractal Breakout Strategy [KL]

Nov 21, 2021

Static chart image
Support and ResistanceSignalsMoney ManagementPatternsTrailing-StopVolatility

The Fractal Breakout Strategy [KL] indicator is a trading tool designed to identify long entry opportunities by combining fractal support patterns with statistical volatility analysis. It aims to capture breakouts during periods of low market volatility, utilizing an ATR-based trailing stop loss and a multi-level profit-taking system to manage risk.

Usage

The strategy generates a long entry signal when two conditions are met: a bullish fractal pattern is established and the ATR is determined to be relatively low.

  • Bullish Fractals: These are identified as local price minimums (pivots) where a lower-low is surrounded by higher-lows. The script plots these as green crosses, serving as key support levels.
  • Volatility Confirmation: The strategy only enters when the "fast" ATR is significantly lower than the "slow" ATR, indicating price consolidation or a potential bull flag.
  • Exit Strategy: The script employs a trailing stop loss based on a multiplier of the ATR. If the "Take Profit" mode is enabled, the strategy automatically closes segments of the position at three predefined Risk-to-Reward levels (1R, 2R, and 3R).

Details

The core of the volatility filter relies on a two-tailed hypothesis test to compare a short-term ATR (Fast) against a long-term ATR (Slow). By assuming a normal distribution, the script calculates a test statistic (z-score). If this value falls below a critical threshold (determined by the user-selected Confidence Interval), the Null Hypothesis (ATR Fast = ATR Slow) is rejected, signaling that current volatility is statistically "low" enough for a high-probability breakout entry.

Settings

Entry

  • Length of ATR (fast) for diversion test: The lookback period for the short-term volatility measurement.
  • Length of ATR (slow) for diversion test: The lookback period for the long-term volatility baseline.
  • Confidence Interval: Sets the statistical significance level (90%, 95%, or 99%) for the volatility filter.

Stop loss

  • ATR Multiplier for trailing stop loss: Determines the distance of the trailing stop from the price.
  • Length of ATR for trailing stop loss: The lookback period used to calculate the ATR for the stop loss.

Order size and Profit taking

  • Take profit and different levels: Enables or disables the multi-stage profit-taking logic.
  • First/Second/Third level profit: Defines the target levels for partial exits relative to the initial risk (e.g., 1.0 = 1:1 Risk/Reward).

FAQ

How do I access the Fractal Breakout Strategy [KL]?

You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Can I use this for short positions?

The current version of this script is specifically optimized for long entries based on bullish fractal support and low-volatility accumulation.

Why does the ATR need to be low for an entry?

Low ATR typically indicates market consolidation. Entering during these periods allows for a tighter initial stop loss and captures the expansion in volatility that often follows a breakout.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.