Bots

Trading Bot Fractal Edge Breakout — breakout of fractal edges

Bill Williams’ fractal levels, the Fractal Edge Breakout strategy idea and its implementation in the bot: signal logic, parameters, settings for OTC/real market, examples, and a trading plan.

Overall view of signals on the chart

What is Fractal Edge Breakout

Fractal Edge Breakout is an approach to entering on the breakout of the nearest meaningful edge of price. The edges come from fractals (local highs/lows), the direction is confirmed by the EMA slope, and the validity of the breakout — by an ATR-based buffer.
The idea is simple: the market often tests local peaks/troughs; when the close goes beyond the edge + a small allowance, the probability of continuation is higher than with a mere touch without allowance.

A fractal in trading is a term and indicator popularized by Bill Williams (author of “Trading Chaos”).
  • A classic fractal is a five-candle pattern: for an upper fractal the central High is above the two neighbors on the left and right; for a lower fractal the central Low is below its neighbors. These points are convenient to use as local resistance/support levels.

How the edge breakout idea works

  • Level: an upper fractal provides local resistance (FH — high), a lower one provides support (FL — low).
  • Direction: filter by the EMA slope (current value above/below the previous one).
  • Confirmation: require the close beyond the level by ATR × multiplier to filter out “taps.”
  • Trade: after confirmation, wait for the next candle and enter in the breakout direction.


How it’s implemented in our bot

  1. For each bar, the presence of an upper/lower fractal is determined.
  2. Within the K window, the extreme meaningful ones are chosen: the highest FH and the lowest FL.
  3. EMA and ATR are calculated with the specified periods.
  4. The EMA slope is checked (up for BUY, down for SELL).
  5. A candle “quality” filter: the body share to the full range must be ≥ the specified threshold.
  6. BUY: close above FH + ATR × multiplier. SELL: below FL − ATR × multiplier.
  7. Markers are placed on the chart: arrows and BUY/SELL text with the chosen colors.
Signals are formed via the pre-signal → confirmation mechanic: a trigger appears on the current bar, and is finally fixed on the close of the next candle if conditions persist.

Parameters and their effect on behavior

Parameter (as in settings)PurposeIf you decreaseIf you increase
Fractal window (K)How many recent bars we consider when picking FH/FLLevels are “fresher,” more signalsLevels are “stronger,” fewer signals
EMA periodSets slope sensitivityMore flips, more signalsSmoother slope, fewer signals
ATR periodBasis for the breakout bufferBuffer is more responsive to the marketBuffer is more stable
Breakout × ATRMinimum allowance beyond the levelLower threshold, more signals, more noisy onesHigher threshold, fewer but cleaner
Min. body/rangeRequirement for a “confident” candleWe allow weak bodies, more signalsWe require strong bodies, fewer, cleaner
BUY/SELL label textText on arrows
BUY/SELL colorMarker styling
  • Want more signals? Lower K, Breakout × ATR, and Min. body/range, slightly reduce the EMA period.
  • Want fewer but more accurate? Raise K, Breakout × ATR, and Min. body/range, increase the EMA period.

Parameter recommendations

  • Fractal window (K): 5–7
  • EMA: 20
  • ATR: 14
  • Breakout × ATR: 0.10–0.15
  • Min. body/range: 0.40–0.50
  • If there are few signals: first reduce K and Breakout × ATR in small steps.


Filter combinations

  • Trend-only: EMA slope conditions are already built in; you can strengthen the filter by increasing Breakout × ATR.
  • Thin hours: don’t understate Min. body/range — weak candles tend to retrace more often.
  • Fast OTC profile: reduce K and EMA, but offset it with a slightly higher Breakout × ATR.

Where to see signals in Spectra Charts

Open the selected asset on Pocket Option in Spectra Charts.

Connect Fractal Edge Breakout.

Choose your working timeframe (1 minute is convenient to start).

BUY/SELL markers will appear on the chart where a breakout is confirmed.


Trading plan

Preparation

Pocket Option asset in Spectra Charts, OTC or real market mode, 1-minute timeframe.

BUY signal

EMA slope up; FH found within K; close above FH + ATR × multiplier; body ≥ threshold.

SELL signal

EMA slope down; FL found within K; close below FL − ATR × multiplier; body ≥ threshold.

Entry

On the next candle after the marker appears.

Expiration

1 candle; later test 2–3 candles based on your own stats.

Risk

Fixed trade size; no martingale during the system tuning phase.


FAQ


Summary

  • We use fractal edges as levels and enter on a confirmed breakout.
  • Direction is set by the EMA slope, breakout validity — by the ATR buffer.
  • The “frequency vs quality” balance is tuned via K, Breakout × ATR, Min. body/range, EMA period.
  • Start with cautious default settings and your own mini-stats; change parameters one at a time and assess the effect.