Indicator · Pine Script v4 · On the chart

All Candlestick Patterns

by shunjizhan

All Candlestick Patterns detects and highlights a wide range of bullish, bearish, and neutral candlestick patterns directly on the price chart.

View on GitHub

GitHub stars292on the repository
Pine versionv4older, still runs
Lines of code793
Settings40inputs
LicenceNone stated
Last update3 years ago27 Oct 2023

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 features optional trend filtering using either a 50-period simple moving average or a combination of 50-period and 200-period SMAs to confirm pattern context. Users can selectively toggle individual candlestick patterns, filter signals by direction, customize label shapes and color schemes, and adjust display text. The script plots visual shape labels on individual candles whenever a recognized candlestick formation occurs.

Details

Published by

shunjizhan on GitHub

Type

Indicator, Pine Script v4

Draws

On the price chart

Category

Candlestick patterns, Trend

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.

Topics

pinepinescriptpinescript-indicatorspinescript-strategiestechnical-analysistechnical-indicatorsindicatorsindicatortradetradingview

Settings

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

SettingTypeDefaultVariable
Detect Trend Based OninputtrendRule1trendRule
Pattern TypestringAllCandleType
LanguagestringEnglish + 中文language
Bullish Colorcolorcolor.greenbullishColor
Bearish Colorcolorcolor.redbearishColor
Neutral Colorcolorcolor.grayneutralColor
Text Colorcolorcolor.whitetextColor
Bullish Labelstringlabel upBullish Label
Bearish Labelstringlabel downBearish Label
Neutral Labelstringlabel upNeutral Label
Marubozu White 光头光脚阳线booltrueMarubozuWhiteInput
Hammer 锤子booltrueHammerInput
Show all 40 settings
SettingTypeDefaultVariable
Inverted Hammer 倒锤子booltrueInvertedHammerInput
Long Lower Shadow 长下影线booltrueLongLowerShadowInput
Upside Tasuki Gap 旭日东升booltrueUpsideTasukiGapInput
Rising Window 跳空上涨booltrueRisingWindowInput
Piercing 曙光初现booltruePiercingInput
Engulfing 上涨吞没booltrueBullishEngulfingInput
Tweezer Bottom 平底booltrueTweezerBottomInput
Abandoned Baby 看涨弃婴booltrueBullishAbandonedBabyInput
Morning Star 早晨之星booltrueMorningStarInput
Morning Doji Star 晨星十字booltrueMorningDojiStarInput
Dragonfly Doji 蜻蜓十字booltrueDragonflyDojiInput
Three White Soldiers 红三兵booltrueThreeWhiteSoldiersInput
Rising Three Methods 上升三法booltrueRisingThreeMethodsInput
Tri-Star 底部三星booltrueTriStarInput
Marubozu Black 光头光脚阴线booltrueMarubozuBlackInput
Gravestone Doji 墓碑十字booltrueGravestoneDojiInput
Hanging Man 上吊线booltrueHangingManInput
Long Upper Shadow 长上影线booltrueLongUpperShadowInput
Downside Tasuki Gap 倾盆大雨booltrueDownsideTasukiGapInput
Falling Window 跳空下跌booltrueFallingWindowInput
Dark Cloud Cover 乌云压顶booltrueDarkCloudCoverInput
Engulfing 下跌吞没booltrueBearishEngulfingInput
Tweezer Top 平顶booltrueTweezerTopInput
Abandoned Baby 弃婴booltrueAbandonedBabyInput
Evening Doji Star 黄昏十字星booltrueEveningDojiStarInput
Evening Star 黄昏之星booltrueEveningStarInput
Three Black Crows 三只乌鸦booltrueThreeBlackCrowsInput
Falling Three Methods 下降三法booltrueFallingThreeMethodsInput
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

257 stars

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

Indicator v4 Candlestick patternsTrend
Updated 6 weeks ago · None stated GitHub repository of Snag - All Candlestick Patterns

Five-in-one Strategy

by capissimo
114 stars

Five-in-one Strategy combines five analytical tools into a single price chart overlay: the Dual Thrust Trading Algorithm (DTTA), Semafore, HalfTrend, Nick Rypock Trailing Reverse, and Tweezer or Kangaroo Tail candlestick patterns. It generates trade signals us

Indicator v4 TrendBreakout Repaints
Updated 1 year ago · None stated GitHub repository of Five-in-one Strategy

HA: Heikin-Ashi

by mihakralj
99 stars

This indicator calculates and plots Heikin-Ashi smoothed candlesticks directly on the price chart. It derives the smoothed close from standard price averages and recursively computes the open, high, and low values. The script does not issue trade signals or al

Indicator v6 Candlestick patternsTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of HA: Heikin-Ashi
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

Confluence Suite

by TamaraKGreen
46 stars

The Confluence Suite indicator draws multiple trading signals and tools directly on the price chart. It generates entry and exit signals based on selected modes and filters, with an AI signal classifier rating quality from 1-4. Additional features include smar

Indicator v5 TrendSMC / ICT / price action
Updated 7 weeks ago · None stated GitHub repository of Confluence Suite

Abandoned Baby - Bullish

by TWODS-CAPITAL
37 stars

This indicator identifies the Bullish Abandoned Baby candlestick pattern directly on the price chart. The three-bar reversal pattern consists of a strong down candle during an established downtrend, followed by a lower gapping doji candle, and completed by an

Indicator v5 Candlestick patternsTrend
Updated 3 years ago · MIT GitHub repository of Abandoned Baby - Bullish

More indicators

Trade Your Charts With a Regulated Broker

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

Compare brokers