1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
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.
Dynamic Cup and Handle pattern recognition
Bollinger Bands squeeze volatility matrix
200 SMA trend filter integration
Customizable handle retracement and target multipliers
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Pivot span
int
10
pivotSpan
Rim similarity tolerance (%)
int
18
rimTolPct
Handle retrace min
float
0.12
hMin
Handle retrace max
float
0.55
hMax
Invalidation (handle max retrace %)
float
61.8
killAtFib
Require breakout confirmation
bool
false
needConfirm
Target multiplier (× cup depth)
float
0.5
targetMult
Show pattern name
bool
true
showName
Bullish fill
color
color.new(color.lime, 82)
bgBull
Bullish border
color
color.new(color.lime, 35)
lnBull
Bearish fill
color
color.new(color.red, 82)
bgBear
Bearish border
color
color.new(color.red, 35)
lnBear
Show all 25 settings
Setting
Type
Default
Variable
Width
int
2
wOk
Style
string
Solid
stOk
Show target line
bool
true
showTarget
Target width
int
2
targetWidth
Target style
string
Dashed
targetStyle
Bollinger Band Length
int
20
bbLength
Standard Deviation
float
2.0
bbMult
Squeeze lookback
int
100
sqLookback
Require Daily timeframe
bool
true
requireDailyTF
Only fire alerts on confirmed close
bool
true
onlyConfirmedBar
Use 200-SMA trend filter
bool
true
useTrendFilter
Trend SMA length
int
200
smaLen
Only one squeeze alert per squeeze cycle
bool
true
emitSqueezeOnce
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.
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,
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
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
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
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
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