A price-chart indicator that builds a zigzag from pivot highs and lows and searches it for classic chart patterns such as double and triple tops and bottoms, head and shoulders, triangles, rectangles, cup and handle, flags and falling wedges.
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
Each pattern gets a quality score from symmetry, depth, breakout strength and volume, and is marked as forming or broken out. Settings include pivot bars, price tolerance, minimum reward-to-risk and cooldown. A dashboard, labels and key level lines are shown, with an optional webhook alert format.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
左側確認K線
int
5
pivotLeft
右側確認K線
int
3
pivotRight
價格容差 %
float
3.0
tolerance
量能確認倍數(T2)
float
1.2
volMultiple
均量計算期
int
20
volAvgLen
型態最大跨度(K線)
int
200
maxPatBars
型態最小跨度(K線)
int
5
minPatBars
型態最小高度(×ATR)
float
0.5
minHeightATR
最低品質分
int
0
minQuality
最低 R:R 比
float
1.5
minRR
冷卻期(K線)
int
20
cooldownBars
最大同時顯示數
int
3
maxSignals
Show all 36 settings
Setting
Type
Default
Variable
反轉頭肩底 89%
bool
true
en_invHS
雙重底 88%
bool
true
en_dblBot
三重底 87%
bool
true
en_triBot
下降三角 87%
bool
true
en_descTri
矩形頂 85%
bool
true
en_rectTop
上升三角 83%
bool
true
en_ascTri
頭肩頂 81%
bool
true
en_hsTop
杯柄 79%
bool
true
en_cup
牛旗 78%
bool
true
en_bullFlag
對稱三角 76%
bool
true
en_symTri
雙重頂 73%
bool
true
en_dblTop
下降楔形 72%
bool
true
en_fallWdg
顯示儀表板
bool
true
showTable
顯示圖表標籤
bool
true
showLabels
顯示關鍵價位線
bool
true
showLines
顯示 Zigzag 節點
bool
true
showZZ
儀表板位置
string
右上
tablePos
啟用 TradersPost webhook
bool
false
useTP
Watchlist (逗號分隔,空=不過濾)
string
SOFI
tpWatchlist
單筆風險金額 ($)
float
25.0
tpRiskDollar
最低品質分 (live trading)
int
70
tpMinQuality
最低 R:R 比 (live trading)
float
1.5
tpMinRR
啟用做多訊號
bool
true
tpAllowLong
啟用做空訊號
bool
false
tpAllowShort
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.
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
This indicator identifies High Of Low Price (HOLP) and Low Of High Price (LOHP) candlestick setups based on price extremes over a specified lookback period. A HOLP signal triggers when the current bar closes above the high of a recent session low, whereas a LO
This indicator plots dynamic support and resistance levels on the price chart. It detects pivot highs and lows using the pivot length and tracks touches to build strength-based levels. Support and resistance zones appear as colored boxes while lines mark key l
This indicator calculates and plots Donchian Channels directly on the price chart. It determines the highest high and lowest low over a user-selected lookback period using an optimized monotonic deque algorithm, as well as a middle basis line computed as their
This indicator tracks bar lows during consecutive rising highs using Pine Script arrays. When at least four lows accumulate or the price breaches the minimum low in the stack, the script sorts the recorded lows in ascending order and flushes them. It plots up
This indicator tracks smart money market structure directly on the price chart. It calculates dual-period swing highs and swing lows to detect Changes of Character (CHoCH), Breaks of Structure (BOS), inducements, and liquidity sweeps. When structural levels ar