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.
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.
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.

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:
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.
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.
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 Structure toolDaily stock structure pagesProduct documentation