Home › NorthStar Guide › What Are Fractals, Strokes and Segments?

What Are Fractals, Strokes and Segments?

Updated 2026-11-20 · example data as of 2026-11-19

Prices are real US dollar prices (split-adjusted daily bars). Structure analysis, not investment advice.

Structure analysis breaks a candlestick chart into layers of structure, each built from the one below it by fixed rules. The smallest unit is the fractal. Fractals are joined into strokes, and strokes group into segments and pivot zones. This article walks through the first three layers. The example is real output from our NorthStar Structure tool: the Cloudflare (NET) daily chart, data as of 2026-11-19. It covers identification rules only and makes no suggestions about trading.

Step 0: merging inside bars

Two neighbouring candles have an inclusion relationship when one candle's high and low both sit inside the other's range. Before looking for fractals, such pairs are merged into one bar. If the recent direction is up, the merged bar keeps the higher of the two highs and the higher of the two lows. If it is down, it keeps the lower high and the lower low. After merging, no two neighbouring bars contain each other, so every local high or low is well defined. Our chart draws the original candles, but fractals and strokes are computed on the merged series.

Fractals: tops and bottoms

Take any three consecutive merged bars:

Fractals are local turning points and there are many of them. In the last ~180 days of NET daily bars the tool finds 39 fractals. A single fractal says little about the bigger picture; it becomes useful once fractals are joined into strokes.

NET daily chart, first 73 bars, data as of 2026-11-19: fractal markers and strokes
Figure 1. NET daily chart, first part of the window (data as of 2026-11-19). Blue ▼ top fractal, orange ▲ bottom fractal, purple line up stroke, brown line down stroke. The yellow box is a pivot zone, covered in the next article.

Strokes: joining a top and a bottom

A stroke connects a bottom fractal to a top fractal (an up stroke) or a top to a bottom (a down stroke). The rules used on this site are:

  1. Endpoints alternate top, bottom, top, and each stroke starts where the previous one ended.
  2. The two endpoints must be at least 4 merged bars apart, so small wiggles do not count as strokes.
  3. An up stroke must end higher than it started, and a down stroke lower.
  4. While a stroke is still forming, a more extreme fractal of the same kind (a higher top or a lower bottom) moves the endpoint to that fractal.

That is why 39 fractals reduce to only 11 strokes. In Figure 1, an up stroke runs from the bottom at 212.40 (2026-06-22) to the top at 290.99 (2026-07-15). Several small tops appear along the way. Each time a higher top formed, the endpoint moved up (rule 4). Then a down stroke goes from 290.99 to 250.93 (2026-07-28). Next, an up stroke runs to 332.13 (2026-08-13), and a down stroke falls to 269.32 (2026-09-02).

The latest stroke is always incomplete: new bars can still push its end further, so the chart draws it as a dashed line. As of 2026-11-19, NET's latest stroke is an up stroke that started at 233.97 and currently ends at 324.10, not yet complete.

Segments: three or more strokes

A segment is the next layer above strokes. In the classical definition a segment contains at least three strokes, and the first three must share an overlapping price range. This site computes it the same way. When three consecutive strokes have a common overlap, they start a segment. Later strokes that still intersect that overlap join the same segment, and a stroke that moves completely outside it ends the segment. The segment's direction is the direction of its last stroke. The "Current segment direction" line in the tool shows the most recent segment, which for NET as of 2026-11-19 is Up.

The overlap of a segment's first three strokes is exactly what structure analysis calls a pivot zone. That is the topic of the next article.

Summary

All three are computed purely from historical prices with fixed rules, so the same data always gives the same result, apart from the still-forming last stroke. Other software may use slightly different merging or spacing rules, which explains small differences between charting packages.

Next: Pivot Zones and the Three Trend Types: Up, Down, Ranging →

NorthStar Guide series

  1. What Are Fractals, Strokes and Segments?
  2. Pivot Zones and the Three Trend Types: Up, Down, Ranging
  3. How to Read a Chart with Our NorthStar Structure Tool

Try it yourself

This guide explains how historical price structure is identified, for education and research only. Examples describe past data; they are not forecasts, not investment advice, and not a recommendation to take any action on any security.