About Japanese Candlestick Patterns
Unlike candlestick tools that only mark the last candle of a pattern, Japanese Candlestick Patterns also outlines every candle in it, so you see where the pattern starts.
How it works
- Patterns are checked when a bar closes. A long or small body is compared with the average body of the previous 10 candles.
- Only at swing highs and lows (on by default): a reversal pattern is shown only where its candles make the lowest low (bullish) or the highest high (bearish) of the last 20 bars, and a continuation pattern only in the direction of the trend (the close before the pattern above or below the 20-bar simple moving average). The same candle is named by where it forms: Hammer at a swing low, Hanging Man at a swing high.
- On 24-hour markets each candle usually opens at the previous close, so stars, Three White Soldiers, Three Black Crows, Engulfing and Piercing accept an open at the previous close. Patterns named for a gap (Rising and Falling Window, Tasuki Gap, Kicking, Abandoned Baby, Three Gaps, Side-by-Side White Lines) still need a gap.
- At most one bullish and one bearish pattern per bar: 3+ candle patterns come first, then 2-candle, then 1-candle. Others on the same bar are listed in the tooltip under "Also". Doji and Spinning Top are shown only when no bullish or bearish pattern forms.
- Off by default because they form often: Engulfing, Piercing / Dark Cloud Cover, Doji Star, Harami, Harami Cross, Marubozu, Doji, Spinning Top, and Long Lower / Upper Shadow.
On the chart
- A box around the candles of each pattern: solid with a light fill for reversal patterns, dashed for continuation patterns, dotted for Doji and Spinning Top.
- The name below a bullish pattern and above a bearish one. Hover over it for the full name, the number of candles, what the pattern is, and where it formed.
- Green is bullish, red is bearish, and gray is indecision.
- Patterns older than 50 bars (setting) are drawn faintly, so the latest ones stand out.
- The pattern forming on the current bar, drawn faintly with a question mark, for example "Hammer?". It can change or disappear until the bar closes.
- Top right: the latest pattern, its number of candles, how many bars ago it formed, and what it is.
- Every part can be turned off, and so can each pattern and each group (1-candle, 2-candle, 3+ candle).
Alerts
Use the "Any alert() function call" condition. One alert at bar close for each bullish or bearish pattern, with its name, number of candles and the close. "Alert condition" picks bullish and bearish, bullish only, or bearish only. Forming patterns, Doji and Spinning Top send no alerts.
Notes
- Patterns on closed bars never change. Only the forming one on the current bar can.
- Patterns compare opens and closes, so a pattern can form on one data feed and not on another when their prices differ slightly.
- The latest 450 patterns stay on the chart.
How to add it
- 1Open the script page on TradingView with the button above (or here).
- 2Click “Add to favorites” on that page.
- 3On any chart, open Indicators, go to Favorites and click Japanese Candlestick Patterns [Saikix].