Indicator · Pine Script v6 · On the chart

Algorithmic Breakout Matrix Dynamic C&H

by majixai· code credited to Zeiierman

The indicator detects bullish and bearish Cup and Handle patterns directly on the price chart using pivot points.

View on GitHub

Repaints

GitHub stars1on the repository
Pine versionv6current
Lines of code276
Settings25inputs
LicenceNone stated
Last updatetoday28 Oct 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

Algorithmic Breakout Matrix Dynamic C&H integrates a Volatility Matrix based on Bollinger Bands squeezes alongside a 200-period simple moving average trend filter to identify breakdown and breakout setups. Validated patterns are drawn with colored fills, rim borders, and projected target lines proportional to cup depth. Settings allow users to adjust pivot detection sensitivity, handle retracement tolerances, squeeze parameters, and timeframe constraints.

Details

Published by

majixai on GitHub

Code credit

Zeiierman, as written in the script's header

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Breakout, Volatility & bands, Support & resistance, Trend

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

  • Signals can change on the live bar or after it closes (repainting)

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Pivot spanint10pivotSpan
Rim similarity tolerance (%)int18rimTolPct
Handle retrace minfloat0.12hMin
Handle retrace maxfloat0.55hMax
Invalidation (handle max retrace %) float61.8killAtFib
Require breakout confirmationboolfalseneedConfirm
Target multiplier (× cup depth)float0.5targetMult
Show pattern namebooltrueshowName
Bullish fillcolorcolor.new(color.lime, 82)bgBull
Bullish bordercolorcolor.new(color.lime, 35)lnBull
Bearish fillcolorcolor.new(color.red, 82)bgBear
Bearish bordercolorcolor.new(color.red, 35)lnBear
Show all 25 settings
SettingTypeDefaultVariable
Widthint2wOk
StylestringSolidstOk
Show target linebooltrueshowTarget
Target widthint2targetWidth
Target stylestringDashedtargetStyle
Bollinger Band Lengthint20bbLength
Standard Deviationfloat2.0bbMult
Squeeze lookbackint100sqLookback
Require Daily timeframebooltruerequireDailyTF
Only fire alerts on confirmed closebooltrueonlyConfirmedBar
Use 200-SMA trend filterbooltrueuseTrendFilter
Trend SMA lengthint200smaLen
Only one squeeze alert per squeeze cyclebooltrueemitSqueezeOnce
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

The Market Tradability Engine calculates multi-factor tradability, balance, compression, and direction scores to evaluate market regime quality. It classifies market conditions into eight distinct states, including Balance, Compression, Ready, Breakout, Trend,

Indicator v6 TrendVolatility & bands
Updated yesterday · MIT GitHub repository of Market Tradability Engine [WavesUnchained]
1 stars

This Pine Script indicator plots a range filter line along with high and low target bands on the price chart. It calculates a smoothed average range using a sampling period and multiplier, then applies a filter to detect upward and downward trends. Signals tri

Indicator v5 TrendVolatility & bands
Updated 2 months ago · Custom licence GitHub repository of Range Filter Buy and Sell 5min

This overlay indicator draws trendlines on the price chart and marks breakouts with optional targets. It builds a slope from successive changes in a wick or body source over a user-set period, then extends the line by a selected multiple of the bar interval. P

Indicator v5 TrendVolatility & bands
Updated 9 months ago · None stated GitHub repository of Trendline Breakouts With Targets [ Chartprime ]

[RS]Donchian Fans

by ricardosantos79
261 stars

This indicator plots Donchian Channel boundary lines along with dynamic fan projections directly on the price chart. It calculates the highest high, lowest low, and median price over a customizable lookback period. Whenever price establishes a new channel high

Indicator v4 Support & resistanceTrend
Updated 4 years ago · None stated GitHub repository of [RS]Donchian Fans

Sideway Zones Live

by dearvn
257 stars

Sideway Zones Live is an overlay indicator that estimates inner and outer sideways bands from recent highs and lows with a rational quadratic kernel. It tracks swing pivots over a loopback period and counts bars that remain between the outer high and low. Afte

Indicator v5 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of Sideway Zones Live

Dynamic Linear Regression

by TradersPost
218 stars

Dynamic Linear Regression calculates and plots linear regression trendlines and standard deviation channels directly on the price chart over a user-selected time period. Traders can configure static channels locked at the end time, dynamic channels that contin

Indicator v6 TrendSupport & resistance
Updated 3 months ago · None stated GitHub repository of Dynamic Linear Regression

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers