top of page
Search

Master Chart Patterns: Automatic Pattern Detection for TradingView

  • Writer: Indicator Prime
    Indicator Prime
  • Mar 20
  • 5 min read

Chart patterns are one of the most reliable tools in technical analysis. Triangles, wedges, channels, double tops, head and shoulders formations have been used by institutional and retail traders for decades. The problem is not whether they work. The problem is that finding them manually is slow, subjective, and easy to get wrong.


Two traders looking at the same chart will draw different trendlines, identify different patterns, and reach different conclusions. By the time you spot a triangle forming on one pair, you have already missed three breakouts on others. Manual detection does not scale.


Master Chart Patterns solves this. It scans your chart in real time, detects 9 major formations automatically, draws them with precision, and fires a one-time breakout signal the moment price confirms a structural break.


Symmetric triangle and rising wedge detected by Master Chart Patterns on TradingView

What It Detects

The indicator covers the formations that account for the vast majority of pattern-based trading setups across forex, gold, crypto and indices.


  • Continuation patterns: Ascending Triangles, Descending Triangles, Symmetric Triangles, Rising Wedges, Falling Wedges, Ascending Channels, Descending Channels, Parallel Channels, and Flags/Pennants.

  • Reversal patterns: Double Top, Double Bottom, Head and Shoulders, and Inverse Head and Shoulders.


Each pattern type has its own color coding. Triangles in blue, wedges in orange, channels in light blue, flags in gold, double tops in red, double bottoms in green, head and shoulders in red, inverse head and shoulders in teal. You never have to guess what you are looking at.


How the Detection Works

Most automatic pattern detectors use basic pivot point comparisons with fixed tolerances. They connect two highs and two lows and call it a pattern. This produces excessive false detections and patterns that no experienced trader would recognise.


Master Chart Patterns uses a linear regression boundary fitting engine. Upper and lower trendlines are fitted to confirmed pivot highs and lows using least-squares regression. The algorithm then classifies the pattern geometry by analysing the slope relationship between the two boundaries.


An ascending triangle has a flat upper boundary and a rising lower boundary. A falling wedge has both boundaries declining with the lower one steeper. A symmetric triangle has converging boundaries with roughly equal angles. The detection engine measures these slope relationships precisely rather than relying on rough approximations.


When multiple pattern geometries could apply to the same set of pivots, a priority scoring system selects the best fit. This prevents the chart from being cluttered with overlapping interpretations of the same price structure.


Symmetric triangle pattern with converging trendlines auto-detected on TradingView candlestick chart

Detection Presets

Not every trader operates on the same timeframe or uses the same chart style. The indicator includes three detection presets that adjust pivot sensitivity.

  • Fast (default): Left 5, Right 2. Detects patterns sooner with less confirmation lag. Best for intraday and short-term trading on the 15-minute to 1-hour timeframes.

  • Balanced: Left 7, Right 4. Works across all timeframes. Good for traders who want a middle ground between speed and reliability.

  • Swing: Left 10, Right 6. Requires more structural confirmation before identifying a pivot. Detects larger, more significant patterns on the 4-hour, daily, and weekly charts.

A custom option allows manual control over the left and right lookback values for traders who want full flexibility.


Breakout Signals

Detecting a pattern is only half the job. The real value is knowing when price breaks out of it. Master Chart Patterns includes a dedicated breakout signal engine. When price closes beyond a pattern boundary plus an ATR-based buffer, a confirmed breakout signal fires.


Green triangle for bullish breakouts above resistance boundaries. Red triangle for bearish breakouts below support boundaries. The ATR buffer is critical. Without it, every wick that marginally pokes through a boundary would trigger a false signal.


The default buffer of 0.15 ATR ensures that only genuine bar closes beyond the boundary are counted. This alone eliminates the majority of false breakout signals.

Each signal fires only once per pattern. No repeated signals, no noise. When the breakout happens, you get one clean alert, and the pattern is marked as broken.


Bearish breakdown from a symmetric triangle with confirmed breakout signal on TradingView

Channels That Extend Until They Break

Channel patterns (ascending, descending, and parallel) behave differently from triangles and wedges. While converging patterns have a natural apex where they must resolve, channels can continue indefinitely.


Master Chart Patterns handles this correctly. Detected channels extend dynamically to the right as new bars form. They remain on the chart for as long as price respects the boundaries. When price finally breaks out of the channel, the breakout signal fires and the channel stops extending.


This makes channels useful not just as pattern identification tools but as dynamic support and resistance references throughout their lifetime.


Double Top, Double Bottom, and Head and Shoulders

Reversal patterns require additional structural validation beyond simple trendline fitting. Double tops need two peaks at roughly the same level with a neckline connecting the trough between them. Head and shoulders require three peaks with the middle one higher and a neckline connecting the two troughs.


The indicator draws necklines automatically on all reversal patterns. Breakout signals for these patterns fire when price closes beyond the neckline plus the ATR buffer, which is the standard entry method used by most professional traders. Neckline labels can be toggled on or off depending on your preference for chart cleanliness.


Double top reversal pattern with neckline and bearish breakout signal detected on TradingView

Up to 8 Patterns Simultaneously

The chart can display up to 8 patterns at once (configurable from 2 to 8). When the limit is reached, weaker patterns are removed to make room for new detections.

The retention priority is configurable. "Strongest" mode keeps the highest-scoring patterns regardless of when they formed. "Newest" mode keeps the most recently detected ones. For most traders, "Strongest" with a limit of 2 to 4 provides the cleanest chart.


Setting Up Alerts

TradingView alerts can be configured for both new pattern formations and breakout events. Combined with the breakout signal engine, this means you can be notified the moment a triangle forms on XAUUSD, or the instant a head and shoulders breaks its neckline on EURUSD, without watching either chart. Set the alert to trigger on bar close for the most reliable results. This matches the breakout buffer logic and prevents false alerts from intrabar wicks.


Which Markets and Timeframes

Chart patterns are fractal. They appear on every instrument and every timeframe because they reflect universal crowd psychology: accumulation, distribution, breakout, trend, exhaustion, reversal.


Master Chart Patterns works on forex pairs (EURUSD, GBPUSD, USDJPY), gold (XAUUSD), silver (XAGUSD), indices (US500, US100), crypto (BTCUSD, ETHUSD), and any other instrument available on TradingView.


The detection presets automatically adapt the sensitivity to your chosen timeframe. Use Fast for intraday, Balanced for general purpose, and Swing for higher timeframe structural analysis.


Part of the Price Action Kit

Master Chart Patterns is one of eight indicators in the Indicator Prime Price Action Kit. It works alongside Master Support and Resistance Zones (horizontal structure), Smart Fibonacci Zones (retracement levels), Trendline Pro (dynamic sloped structure), Master Harmonic Patterns (Fibonacci ratio reversals), Master Elliott Waves (wave degree context), Candlestick Pro (entry confirmation), and Smart Pitchfork Zones (median line channels).


The highest-probability setups in this kit combine multiple layers. A bullish triangle breakout at a Master Support and Resistance zone with a Candlestick Pro engulfing pattern firing inside the triangle is a triple-confirmed entry that no single indicator can provide alone.


Price Action Kit for TradingView

Get Master Chart Patterns

Master Chart Patterns is available as a lifetime purchase or as part of the Price Action Kit monthly subscription. Full documentation with signal logic, filter explanations, and recommended settings is available at indicatorprime.com/documentation


Click here to buy Master Chart Patterns Lifetime

Click here to get the full Price Action Kit



 
 
 

Comments


bottom of page