Skip to content
StatePath
Tool Atlasinterpretor.chart_pattern

Tool

Chart Pattern Interpretor

interpretor.chart_pattern

InterpretorChart

Inputs

infoBundle (untagged)

The chart-pattern bundle from a market.chart_patterns node — carries each detected pattern's name, family, direction, confidence, lifecycle stage, neckline and target.

Outputs

Bundle (untagged)

An interpreted pattern bundle: a `matched` gate that is true when a pattern you care about is present and tradeable, plus scalars like confidence, direction, neckline and target_price you can tap downstream.

Chart Pattern reads a chart-pattern detector's output (head-and-shoulders, triangles, double-tops, and more) and turns it into a usable gate plus handy values like confidence, direction, neckline and a projected target. Use it to act only on the chart patterns that fit your plan.

Chart Pattern Interpretor overview diagramneckline

How it works

Wire the `info` handle from a market.chart_patterns node, pick a mode (by name, by family or preset, by direction, or by minimum confidence), and optionally require the pattern to be at a tradeable lifecycle stage. It exposes a `matched` gate plus scalars like `target_price` you can use as a take-profit.

Modes

Mode options

By namename_filter

Match only the exact pattern slugs you list in `codes` (an allow- or block-list).

By name diagramneckline

When to use: When your plan trades specific named shapes, e.g. only a head-and-shoulders or a double-top.

By family / presetfamily_filter

Match any pattern belonging to a family or preset you pick in `selected` (e.g. bullish_reversal, triangle).

By family / preset diagramLLbull revHLHH

When to use: When you care about the kind of setup, not the exact name — admit a whole bucket at once.

By directiondirection_filter

Match patterns that imply a chosen side — up, down, undecided, or any.

By direction diagrambias

When to use: When you only want bullish (or only bearish) patterns, whatever their name.

By confidenceconfidence_filter

Match only patterns whose detector confidence meets `confidence_threshold`.

By confidence diagram

When to use: When you want to admit any shape but cull weak, low-confidence detections.

Code match mode options

Include (allow-list)include

Only the listed `codes` count as a match; everything else is ignored.

Include (allow-list) diagramabORout0 0 → 00 1 → 11 0 → 11 1 → 1

When to use: The usual choice — name exactly the few patterns you trade.

Exclude (block-list)exclude

Every pattern matches EXCEPT the ones you list in `codes`.

Exclude (block-list) diagramabNORout0 0 → 10 1 → 01 0 → 01 1 → 0

When to use: When it's easier to name the handful of shapes you want to skip.

Selected options

Bullish reversalbullish_reversal

Patterns that flip a downtrend up (e.g. inverse H&S, double-bottom, rounding bottom).

Bullish reversal diagram

When to use: Long entries timed to a trend turning from down to up.

Bearish reversalbearish_reversal

Patterns that flip an uptrend down (e.g. H&S, double-top, rounding top).

Bearish reversal diagram

When to use: Short entries timed to a trend turning from up to down.

Bullish continuationbullish_continuation

Patterns that pause an uptrend then resume higher (e.g. bull flag, ascending triangle).

Bullish continuation diagram

When to use: Add to or join an existing uptrend on the resumption breakout.

Bearish continuationbearish_continuation

Patterns that pause a downtrend then resume lower (e.g. bear flag, descending triangle).

Bearish continuation diagram

When to use: Add to or join an existing downtrend on the resumption breakdown.

Double top / bottomdouble

Two roughly equal peaks (double-top) or two equal troughs (double-bottom) at the same level.

Double top / bottom diagramtwin peaksneckline

When to use: Reversal entries when price fails twice at the same price.

Triple top / bottomtriple

Three roughly equal peaks or troughs at one level — a stronger version of the double.

Triple top / bottom diagramtripleneckline

When to use: Reversal entries after price is rejected three times at the same price.

Head & shouldershead_shoulders

Three peaks with the middle (head) highest and two lower shoulders, sharing a neckline.

Head & shoulders diagramneckline

When to use: Classic reversal — short the break of the neckline after the right shoulder.

Triangletriangle

Highs and lows converge to a point as the range tightens before a breakout.

Triangle diagramapex

When to use: Trade the breakout when a coiling triangle resolves up or down.

Channelchannel

Price runs between two parallel sloping trendlines (an up- or down-channel).

Channel diagramupper raillower rail

When to use: Fade the rails inside the channel, or trade the eventual breakout.

Rectanglerectangle

A horizontal range between flat support and flat resistance before a breakout.

Rectangle diagramresistancesupport

When to use: Range-trade the box edges, or trade the break of support / resistance.

Flagflag

A sharp pole, then a small rectangle drifting against the trend, then a resume in the pole's direction.

Flag diagramflag topflag base

When to use: Continuation entries — join the trend when the flag breaks.

Pennantpennant

A sharp pole, then a tiny symmetrical triangle that coils, then a continuation move.

Pennant diagramapex

When to use: Continuation entries — like a flag but the consolidation converges.

Wedgewedge

Both trendlines slope the same direction and converge (rising or falling wedge); often reverses.

Wedge diagramupperlower

When to use: Reversal entries — a rising wedge breaks down, a falling wedge breaks up.

Broadeningbroadening

A megaphone of widening swings — higher highs and lower lows as volatility expands.

Broadening diagramwidening highwidening low

When to use: Volatile reversal / fade setups at the expanding extremes.

Roundingrounding

A slow, smooth saucer (rounding bottom) or dome (rounding top) curving the trend around.

Rounding diagram

When to use: Gradual reversal entries as a curved base or top completes.

Cup (with handle)cup

A rounded cup base, then a small pullback handle, then a breakout to new highs.

Cup (with handle) diagramrim

When to use: Bullish continuation / breakout entries when the handle breaks.

Diamonddiamond

Swings first widen (broadening) then narrow (triangle), forming a diamond outline.

Diamond diagram

When to use: Reversal entries when the diamond resolves out of its narrowing side.

V-spikev_spike

A sharp, fast reversal with no rounding — a hard V bottom or inverted-V top.

V-spike diagram

When to use: Capturing violent climactic reversals (often after capitulation).

Bump-and-runbump_run

A gentle trend line (lead-in), then a steep over-extended bump, then a break back through the line.

Bump-and-run diagramlead-in

When to use: Reversal entries when an over-extended bump fails and breaks the lead-in trendline.

Measured movemeasured_move

An impulse leg, a partial retrace, then a second leg of similar size (an ABCD move).

Measured move diagramHHAHLBHHCD

When to use: Targeting — project the second leg's size to set a take-profit.

Direction options

Upup

Admit only patterns that point higher (bullish bias).

Up diagramup

When to use: Long-only setups — take the bullish reversals and continuations.

Downdown

Admit only patterns that point lower (bearish bias).

Down diagramdown

When to use: Short-only setups — take the bearish reversals and continuations.

Undecidedundecided

Admit only patterns with no clear directional lean yet (still forming a bias).

Undecided diagramflat

When to use: When you want to watch ambiguous shapes before they resolve.

Anyany

Admit patterns of either direction (no directional filter).

Any diagramboth

When to use: Symmetric strategies that trade both bullish and bearish shapes.

Require lifecycle options

Any stageany

Disable the lifecycle check — even patterns still forming count as a match.

Any stage diagramforming

When to use: Early monitoring, or when a downstream stage handles confirmation itself.

Completedcompleted

Admit only patterns whose shape has fully formed (the last pivot is in).

Completed diagram

When to use: When you want a finished structure but don't need a confirmed breakout yet.

Tradeabletradeable

Admit only confirmed or retested patterns — the default, broken-out and ready to trade.

Tradeable diagrambreakout

When to use: The safe default for live entries: only act on a confirmed breakout.

Retestedretested

Admit only patterns that broke out AND came back to retest the level before continuing.

Retested diagramlevel

When to use: Highest-conviction entries — wait for price to retest the neckline / break level.

Configuration

modeenum

Picks which test to run: by pattern name, by family/preset, by direction, or by minimum confidence.

Choices:name_filterfamily_filterdirection_filterconfidence_filter
codesmulti_enum

In name_filter mode, the list of pattern slugs to match; empty means any pattern counts.

code_match_modeenum

Whether the codes list is an allow-list (include) or a block-list (exclude).

Choices:includeexclude
selectedmulti_enum

In family_filter mode, the families or presets (like bullish_reversal or triangle) to match; empty means any.

Choices:bullish_reversalbearish_reversalbullish_continuationbearish_continuationdoubletriplehead_shoulderstrianglechannelrectangleflagpennantwedgebroadeningroundingcupdiamondv_spikebump_runmeasured_move
directionenum

In direction_filter mode, which side to admit — up, down, undecided, or any.

Choices:updownundecidedany
confidence_thresholdscalar

The minimum pattern confidence required to count as a match.

confidence_threshold diagram
require_lifecycleenum

Only admit patterns at or past this stage; tradeable (default) means confirmed or retested, any disables the check.

Choices:anycompletedtradeableretested
live_after_last_patternscalar

Off fires only on the pattern's completion bar; on keeps firing on later bars using the last pattern's saved values.

live_after_last_pattern diagram

Connects to

Reads from
Feeds into

Examples

  • Filter: only take entries when `matched` is true for a confirmed bullish reversal preset.
  • Tap `target_price` into an ORDER_EXIT take-profit slot so the trade aims at the pattern's measured target.

Common mistakes

  • Leaving `require_lifecycle` on tradeable but expecting matches on patterns that are only forming — only confirmed/retested patterns pass.
  • Setting `confidence_threshold` too low, which lets weak, unreliable patterns through.

See also