Detects a long list of candlestick patterns, such as engulfing, harami, morning star, evening star, hammer, doji and marubozu, and prints a label on the price chart for each match.
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
Every pattern has its own on/off switch. A trend rule based on the 50-bar average, the 50 and 200-bar averages together, or no filter decides how patterns are read. Pattern type can be limited to bullish, bearish or both, and label colors can be changed. It only labels bars and has no entries or exits.
Dozens of candlestick patterns with individual toggles
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Detect Trend Based On
string
trendRule1
trendRule
Label Color Bullish
color
color.green
label_color_bullish
Label Color Bearish
color
color.red
label_color_bearish
Label Color Neutral
color
color.gray
label_color_neutral
Pattern Type
string
Both
CandleType
Abandoned Baby
bool
true
AbandonedBabyInput
Dark Cloud Cover
bool
true
DarkCloudCoverInput
Doji
bool
true
DojiInput
Doji Star
bool
true
DojiStarInput
Downside Tasuki Gap
bool
true
DownsideTasukiGapInput
Dragonfly Doji
bool
true
DragonflyDojiInput
Engulfing
bool
true
EngulfingInput
Show all 40 settings
Setting
Type
Default
Variable
Evening Doji Star
bool
true
EveningDojiStarInput
Evening Star
bool
true
EveningStarInput
Falling Three Methods
bool
true
FallingThreeMethodsInput
Falling Window
bool
true
FallingWindowInput
Gravestone Doji
bool
true
GravestoneDojiInput
Hammer
bool
true
HammerInput
Hanging Man
bool
true
HangingManInput
Harami Cross
bool
true
HaramiCrossInput
Harami
bool
true
HaramiInput
Inverted Hammer
bool
true
InvertedHammerInput
Kicking
bool
true
KickingInput
Long Lower Shadow
bool
true
LongLowerShadowInput
Long Upper Shadow
bool
true
LongUpperShadowInput
Marubozu Black
bool
true
MarubozuBlackInput
Marubozu White
bool
true
MarubozuWhiteInput
Morning Doji Star
bool
true
MorningDojiStarInput
Morning Star
bool
true
MorningStarInput
On Neck
bool
true
OnNeckInput
Piercing
bool
true
PiercingInput
Rising Three Methods
bool
true
RisingThreeMethodsInput
Rising Window
bool
true
RisingWindowInput
Shooting Star
bool
true
ShootingStarInput
Spinning Top Black
bool
true
SpinningTopBlackInput
Spinning Top White
bool
true
SpinningTopWhiteInput
Three Black Crows
bool
true
ThreeBlackCrowsInput
Three White Soldiers
bool
true
ThreeWhiteSoldiersInput
Tri-Star
bool
true
TriStarInput
Tweezer Bottom
bool
true
TweezerBottomInput
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 Heikin-Ashi Chart Identifier is an indicator that checks if the current chart uses Heikin-Ashi candles. It tracks matched candles where open equals the average of previous open and close, and verifies no gaps between bars. When conditions match, it display
The indicator plots ICT displacement candles on the price chart and can switch to retracement scanning. Displacement requires a move larger than a set share of the 14-bar average high-low range, lasting at least a chosen number of bars, with optional close, pr
All Candlestick Patterns detects and highlights a wide range of bullish, bearish, and neutral candlestick patterns directly on the price chart. It features optional trend filtering using either a 50-period simple moving average or a combination of 50-period an
Mean Reversion Study is an indicator that identifies trade setups combining exponential moving averages, RSI extremes, and engulfing candlestick patterns. It highlights bullish setups when a bullish engulfing candle forms below the EMA while RSI is oversold, a
This indicator overlays up to five higher-timeframe candlestick groups on the price chart. For each enabled timeframe it requests open, high, low, and close and can show up to five candles, offset by a spacing setting. The main inputs set the candle count, the
This indicator detects a large set of classic candlestick patterns and plots colored labels on the price chart. Trend context uses a 50-period simple moving average, or the 50 and 200 averages stacked together, and can be switched off. Users filter bullish, be