Indicator · Pine Script v4 · On the chart

All Candlestick Patterns

by eduardofx

A price-chart overlay that detects a long list of candlestick patterns and labels them on the bars.

View on GitHub

GitHub stars1on the repository
Pine versionv4older, still runs
Lines of code793
Settings40inputs
LicenceNone stated
Last update2 years ago18 Nov 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 covers single-bar shapes such as hammer, hanging man, doji types and marubozu, and multi-bar patterns such as engulfing, morning star, three white soldiers and rising three methods. Trend context comes from the 50-bar average, from both 50 and 200 averages, or can be switched off. Settings filter bullish, bearish or neutral patterns, toggle each pattern, pick label styles and colours, and choose English, Chinese or both languages. It has no trade management.

Details

Published by

eduardofx on GitHub

Type

Indicator, Pine Script v4

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 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

947 stars

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

Indicator v4 Candlestick patterns
Updated 11 days ago · GPL-3.0 GitHub repository of Heikin-Ashi Chart Identifier
575 stars

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

Indicator v6 SMC / ICT / price actionCandlestick patterns
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Displacement Candles Indicator

All Candlestick Patterns

by shunjizhan
292 stars

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

Indicator v4 Candlestick patternsTrend
Updated 3 years ago · None stated GitHub repository of All Candlestick Patterns
285 stars

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

Indicator v4 Mean reversionCandlestick patterns
Updated 3 years ago · None stated GitHub repository of Mean Reversion Study

[RS]MTF Candle Sticks

by ricardosantos79
261 stars

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

Indicator v4 Candlestick patternsSupport & resistance Repaints
Updated 4 years ago · None stated GitHub repository of [RS]MTF Candle Sticks
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

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