This indicator scans the chart for 101 distinct patterns, including single-bar, two-bar, and multi-bar candlestick patterns, classic chart patterns, and harmonic patterns.
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
Pattern Recognition — 101 Patterns + Bayesian Predictor features a complex situation context engine for confluence detection and displays a Bayesian table predicting next-pattern classifications. Visual elements include pattern labels, EMA trend lines (20/50/200), and background shading overlaying the price chart. Chart and harmonic patterns depend on pivot points, meaning historical pattern labels appear after confirmation bars complete.
Detects single-bar, two-bar, and multi-bar candlestick patterns
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Single-Bar Candle Patterns
bool
true
showSingle
Two-Bar Candle Patterns
bool
true
showTwoBar
Multi-Bar Candle Patterns
bool
true
showMultiBar
Classic Chart Patterns
bool
true
showChart
Pivot Left Bars
int
5
pLeft
Pivot Right Bars
int
5
pRight
Max Pivot History
int
10
maxPivots
Pattern Tolerance (0–1)
float
0.03
tolPct
Harmonic Patterns
bool
true
showHarm
Fibonacci Tolerance (0–1)
float
0.05
harmTol
Label Size
string
small
lSzStr
Show Bullish Labels
bool
true
showBullLbl
Show all 20 settings
Setting
Type
Default
Variable
Show Bearish Labels
bool
true
showBearLbl
ATR Length
int
14
atrLen
Complex Situation Labels
bool
true
showCplx
EMA Trend Lines (20/50/200)
bool
true
showTrend
Min Signals for HC Label
int
2
hcMinSigs
Background Trend Shade
bool
true
showBgShade
Show Bayesian Table
bool
true
showBayes
Laplace Prior α (1–10)
int
1
bayAlpha
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.
This overlay indicator draws a set of higher-timeframe candles on the price chart. The user sets the timeframe or lets it select automatically, plus candle count, size, offset, margin, and whether the candles are standard or Heikin Ashi. A table can show the a
The indicator tracks four-bar fractal sweep and reclaim setups on chart timeframes of 15 minutes and above. It calculates Reclaim Strength based on where C2 closes relative to C1's range and plots level lines for the swept C1 extreme and C2 extreme. An on-scre
This overlay indicator marks bullish and bearish chart patterns on the price chart and can hide either side. Optional filters require agreement from fast and slow EMAs, Supertrend, and ADX, plus volume, RSI, nearby pivot support or resistance, and a user-defin
This indicator segments recent price bars into defined groups and visual boxes to serve as a visual chart ruler. It includes automated trend detection with configurable angle thresholds to plot uptrend, downtrend, and range segments directly on the price chart
Forex Majors 4H Rejection Scanner tracks seven customizable currency pairs on a four-hour timeframe and displays their bias in a table overlay on the main price chart. It checks the last two closed four-hour candles for high or low price rejections, labeling a
This indicator screens Rob Smith's TheStrat setups across six configurable timeframes for TradingView's Pine Screener. It classifies bars and exposes inside reversals, 2-2 reversals and continuations, failing 2s, range expansions, and outside bars as numeric p