CATEGORY

Chart Patterns nodes

15 Chart Patterns building blocks in the Algovex node library. Each is a node you can drop on the visual canvas, connect into a strategy, backtest and export. No code required.

  • Ascending Triangle

    State-based detection of bullish ascending triangle: horizontal resistance + ascending support converging at an apex. Breakout typically up; the close-through-resistance fires the bullish entry. Multiple historical patterns persist on the chart with full lifecycle (active → broken | invalidated).

  • Cup & Handle

    State-based detection of the classical Cup & Handle bullish-continuation pattern. The cup is a rounded bottom between two near-equal swing highs (rims) — shape quality is gauged by quadratic regression R² to bar lows × bottom-width factor, so V-bottoms and chaotic shapes are rejected. The right rim must be a sustained level, not a single spike. STRICT GATE: breakout can ONLY fire after a real handle has formed (≥ handleMaxBars/2 bars elapsed with handleRetrace ≥ 5% of cupDepth and downward-drifting slope) — eliminates "swing-high + 1-bar breakout" false positives. Each detection persists through forming → mature → confirmed (rim breakout) | invalidated (close below cup bottom) | expired (no breakout in time). Visualization renders the cup as a 2-Bezier composite arc split at the LSQ-parabola vertex (C1-smooth at the bottom) and the handle as a parallel channel.

  • Descending Triangle

    State-based detection of bearish descending triangle: descending resistance + horizontal support converging at an apex. Breakout typically down; the close-through-support fires the bearish entry. Multiple historical patterns persist on the chart with full lifecycle (active → broken | invalidated).

  • Diamond

    State-based detection of the diamond reversal chart pattern (top and bottom). Four swing corners (LEFT, TOP, RIGHT, BOTTOM) define a diamond outline; LEFT/RIGHT pinch toward the vertical mid, TOP/BOTTOM sit near the chronological middle. The reversal type is set by the prior trend: an uptrend gives a Diamond Top (bearish, breaks down past the right corner); a downtrend gives a Diamond Bottom (bullish, breaks up). Breakout fires when close goes past the right corner in the expected direction — the geometric exit point — instead of waiting for a deeper neckline break.

  • Double Top / Bottom

    Double top (bearish reversal) and double bottom (bullish reversal). Two equal extremes at one level on an ATR-deviation zigzag, separated by a deep counter-reaction, after a prior trend. The neckline is the reaction between the touches (the valley for a top, the rally for a bottom). A third equal touch makes it a triple, not a double. A close beyond the neckline confirms the pattern; target = pattern height projected from the break, stop = the pattern extreme. Every threshold is ATR-relative, so detection is identical on any instrument or timeframe.

  • Flag

    State-based detection of bull/bear flag continuation patterns (v3). A strong impulse pole is found, then the consolidation is GROWN pivot-by-pivot while it stays tight (stopping at the breakout), enclosed by parallel rails that touch the real swing highs/lows so the channel sits on price. A few loose definitional gates plus a SINGLE graded quality score (channel containment, pole/flag tightness, parallelism, counter-drift, pole strength) gate validity — replacing the old gate-pile that detected almost nothing. Breakout in the pole direction = continuation signal with target = close + poleHeight.

  • Head & Shoulders

    Research-grounded detection of regular and inverse Head & Shoulders (v5, after Lo-Mamaysky-Wang 2000, Savin-Weller-Zvingelis 2007, Chong-Poon 2014, Bulkowski). A causal, ATR-scaled directional-change turn stream (close-based, no repaint) yields strictly-alternating swing pivots; each pivot is then SNAPPED onto the true raw-price high/low of its swing (the LMW refinement) so every shoulder / head / armpit and every drawn line sits on an actual candle. A few loose definitional gates (correct alternating sequence, head the genuine extreme but not a lone spike, minimum height, sane neckline tilt, time symmetry, lenient trend-position via a longer SMA) then a SINGLE continuous quality score (0-100; shoulder & armpit symmetry, head-prominence balance, time symmetry, neckline flatness, trend position, skeleton conformance) gate validity. One monotonic minQuality knob replaces the old gate-pile, so it never silently rejects everything. Neckline drawn through the real armpits; breakout level capped at the right armpit.

  • Inverse Cup & Handle

    State-based detection of the bearish Inverse Cup & Handle pattern. The cup is a rounded TOP between two near-equal swing lows (rims) — shape quality is gauged by quadratic regression R² to bar highs × top-width factor, so spike-tops and chaotic shapes are rejected. The right rim must be a sustained level, not a single spike. The handle is a real upward-drifting pullback after the right rim (≥5% of cup depth retrace before maturity). Each detection persists through forming → mature → confirmed (rim breakdown) | invalidated (close above cup top) | expired (no breakdown in time). Visualization renders the rounding-top arc and the rim line (no target line — entry/exit nodes own targets via wiring). Direction = bearish, target = rim − cup depth.

  • Pennant

    State-based detection of bull/bear pennant continuation pattern. A strong impulse pole is followed by a small CONVERGING triangle consolidation (descending resistance + ascending support). Breakout in pole direction = continuation signal with target = close + poleHeight.

  • Rectangle

    Level-first detection of rectangle (trading range) — a horizontal band of ≥2 resistance touches sitting over a horizontal band of ≥2 support touches (flatness relative to box height). Trade it two ways: breakout (close beyond a boundary + ATR buffer) or range_touch (fade the boundaries while the range holds). Lifecycle: active → broken | invalidated. Multiple historical ranges persist on the chart.

  • Rounding Bottom

    State-based detection of the Rounding Bottom (Saucer) pattern — a long-term bullish REVERSAL where price falls from a left-rim high, carves a smooth rounded basin, then rises straight back up to RECLAIM that high (there is no second rim). The neckline is the left-rim high (horizontal); the breakout is the reclaim of it. Detection uses kernel-regression smoothing of the close (Lo-Mamaysky-Wang): the bowl is found as a smoothed top → basin → recovery once the up-leg has risen most of the way back. Each detection persists through a full lifecycle: forming (blue) → confirmed (green, close above neckline + ATR buffer) | invalidated (close clearly below the basin) | expired (no reclaim in time). The drawn arc is the smoothed price path itself, so it always hugs the candles as a real bowl. Outputs neckline, cupBottom, and breakoutTarget for wiring to entry / stop-loss / take-profit nodes.

  • Rounding Top

    State-based detection of the Rounding Top (Inverse Saucer / Dome) pattern — a long-term bearish REVERSAL where price rises from a left-rim low, arches over a smooth rounded peak, then falls back down to RECLAIM (break below) that low (there is no second rim). The neckline is the left-rim low (horizontal support); the breakdown is the reclaim of it. Detection uses kernel-regression smoothing of the close (Lo-Mamaysky-Wang): the dome is found as a smoothed bottom → peak → decline once the down-leg has retraced most of the way back. Each detection persists through a full lifecycle: forming (blue) → confirmed (red, close below neckline - ATR buffer) | invalidated (close clearly above the peak) | expired (no breakdown in time). The drawn arc is the smoothed price path itself, so it always hugs the candles as a real dome. Outputs neckline, capTop, and breakdownTarget for wiring to entry / stop-loss / take-profit nodes.

  • Symmetrical Triangle

    State-based detection of converging upper (descending) and lower (ascending) trendlines. Slope-magnitude ratio constrained → symmetric. Neutral pattern: bidirectional breakout, target = breakout level ± pattern height. SL = opposite trendline at breakout bar. Multiple historical patterns persist on the chart with full lifecycle.

  • Triple Top / Bottom

    Triple top (bearish reversal) and triple bottom (bullish reversal). Three equal extremes at one level on an ATR-deviation zigzag, each separated by a deep counter-reaction, after a prior trend. The neckline is the lower reaction low for a top (higher reaction high for a bottom) — the level whose break confirms. A fourth equal touch makes it a range; a dominant middle peak is a head-and-shoulders. A close beyond the neckline confirms the pattern; target = pattern height projected from the break, stop = the pattern extreme. Every threshold is ATR-relative, so detection is identical on any instrument or timeframe.

  • Wedge

    State-based detection of rising (bearish) and falling (bullish) wedges. Both trendlines slope in the same direction; the lower line moves more steeply than the upper, so the channel narrows toward an apex. Rising wedge → bearish bias; falling wedge → bullish bias. Target = breakout level ± pattern height (height = gap at start). SL = opposite trendline at breakout bar. Multiple historical patterns persist on the chart with full lifecycle.

Explore other categories