The confirmed swing pivots from a zigzag tool; the pattern matcher reads these turning points and looks for named shapes in their sequence.
Outputs
Bundle (untagged)
A pattern-match bundle naming any recognized swing formation over the recent legs (e.g. double top / bottom, M/W), which you can interpret into a tradable signal downstream.
Zigzag Patterns scans the chain of zigzag swing legs and flags recognizable shapes — like double tops, M/W formations, and other multi-leg pivot patterns — so you can act on classic price-structure setups.
How it works
It takes the confirmed pivots from a zigzag input and slides a window of the most recent leg_count legs across them, matching the resulting high/low sequence against its library of named swing patterns and emitting any that fit.
Modes
11
22
33
44
55
66
77
Configuration
leg_countenum
How many of the most recent zigzag legs the matcher looks at when testing for a pattern. Fewer legs catch short shapes; more legs let it recognize larger multi-swing formations; 3–9 legs is the useful range (1–7 here), more = bigger patterns.
Choices:1234567
Connects to
Reads from
Feeds into
Examples
Feed a zigzag's pivots in with leg_count 5 to detect M-tops and W-bottoms, then route the match through condition.zigzag_pattern into a reversal signal.
Lower leg_count to 3 to catch tight two-leg shapes for faster setups.
Common mistakes
Setting leg_count too low so larger formations never form a complete shape and go undetected.
Trusting a match built on the newest leg before that leg's pivot has confirmed — the pattern can dissolve if the swing repaints.