Indicator · Pine Script v5 · On the chart

All Candlestick Patterns

by ShabbirHasan1

All Candlestick Patterns identifies and highlights classical Japanese candlestick patterns directly on the price chart.

View on GitHub

GitHub stars4on the repository
Pine versionv5runs as is
Lines of code514
Settings40inputs
LicenceCustom licence
Last update1 year ago21 Mar 2025

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

All Candlestick Patterns determines underlying market trends using configurable moving averages, including a 50-period SMA, a dual SMA 50/200 setup, or no trend filter. The indicator draws labels above or below qualifying candles based on an ATR offset, color-coded by bullish, bearish, or neutral sentiment. Users can toggle individual formations on or off and filter displays to show bullish, bearish, or both pattern types.

Details

Published by

ShabbirHasan1 on GitHub

Draws

On the price chart

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

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

SettingTypeDefaultVariable
Detect Trend Based OnstringtrendRule1trendRule
Label Color Bullishcolorcolor.bluelabel_color_bullish
Label Color Bearishcolorcolor.redlabel_color_bearish
Label Color Neutralcolorcolor.graylabel_color_neutral
Pattern TypestringBothCandleType
Abandoned BabybooltrueAbandonedBabyInput
Dark Cloud CoverboolfalseDarkCloudCoverInput
DojibooltrueDojiInput
Doji StarboolfalseDojiStarInput
Downside Tasuki GapboolfalseDownsideTasukiGapInput
Dragonfly DojibooltrueDragonflyDojiInput
EngulfingbooltrueEngulfingInput
Show all 40 settings
SettingTypeDefaultVariable
Evening Doji StarboolfalseEveningDojiStarInput
Evening StarboolfalseEveningStarInput
Falling Three MethodsboolfalseFallingThreeMethodsInput
Falling WindowboolfalseFallingWindowInput
Gravestone DojiboolfalseGravestoneDojiInput
HammerbooltrueHammerInput
Hanging ManboolfalseHangingManInput
Harami CrossboolfalseHaramiCrossInput
HaramiboolfalseHaramiInput
Inverted HammerboolfalseInvertedHammerInput
KickingboolfalseKickingInput
Long Lower ShadowboolfalseLongLowerShadowInput
Long Upper ShadowboolfalseLongUpperShadowInput
Marubozu BlackboolfalseMarubozuBlackInput
Marubozu WhiteboolfalseMarubozuWhiteInput
Morning Doji StarboolfalseMorningDojiStarInput
Morning StarboolfalseMorningStarInput
On NeckboolfalseOnNeckInput
PiercingboolfalsePiercingInput
Rising Three MethodsboolfalseRisingThreeMethodsInput
Rising WindowboolfalseRisingWindowInput
Shooting StarboolfalseShootingStarInput
Spinning Top BlackboolfalseSpinningTopBlackInput
Spinning Top WhiteboolfalseSpinningTopWhiteInput
Three Black CrowsboolfalseThreeBlackCrowsInput
Three White SoldiersboolfalseThreeWhiteSoldiersInput
Tri-StarboolfalseTriStarInput
Tweezer BottomboolfalseTweezerBottomInput
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

55 stars

This indicator overlays on the price chart and provides trend and momentum analysis. It calculates and plots three exponential moving averages with fixed periods of 20, 50, and 200 using yellow, orange, and blue colors respectively. The script also computes th

Indicator v6 TrendOscillators & momentum
Updated 6 months ago · Apache-2.0 GitHub repository of Trend & Momentum Analysis

Hanging Man - Bearish

by TWODS-CAPITAL
37 stars

This overlay indicator marks a bearish hanging man candlestick on the price chart. It looks for a small real body sitting in the upper part of the range, a lower shadow at least twice the body, and no upper shadow, and only while an uptrend filter is active. T

Indicator v5 Candlestick patternsTrend
Updated 3 years ago · MIT GitHub repository of Hanging Man - Bearish
29 stars

Zen EMA Pullback Patterns identifies pullback formations relative to an Exponential Moving Average on the price chart. It detects 3-bar pullbacks consisting of three consecutive bearish bars above the EMA or bullish bars below it, as well as 4-bar micro channe

Indicator v6 Moving averagesCandlestick patterns
Updated 2 weeks ago · MIT GitHub repository of Zen EMA Pullback Patterns
15 stars

This indicator plots Bollinger Bands and smoothed HAMA candles on the price chart. It builds each candle from separate moving averages of open, high, low and close, using selectable EMA, SMA or WMA lengths. A simple moving average forms the band basis, and an

Indicator v5 Candlestick patternsMoving averages
Updated 4 months ago · Apache-2.0 GitHub repository of NSDT HAMA Candles with Bollinger Bands

Calculates adaptive arithmetic candles by blending price data with Kaufman Efficiency Ratio smoothing and a linear regression anchor. It measures trend health using a zero-to-hundred Quality Score derived from market efficiency, regression slope, and normalize

Indicator v6 TrendCandlestick patterns
Updated 3 days ago · MIT GitHub repository of Adaptive Arithmetic Candles + Quality Score [WavesUnchained]

More Candlestick patterns scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

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

Compare brokers