Pattern scripts scan each bar for shapes such as an engulfing candle, a hammer or an inside bar and label them on the chart.
A pattern is only complete when its last candle closes. Scripts that label patterns on the live bar can show a pattern that disappears by the close, so prefer ones that confirm on close.
81 of these 656 scripts are marked Repaints, or read higher-timeframe data with lookahead on.
Before You Use One
Check that labels appear only after the candle closes.
Read the exact rules it uses for each pattern.
Judge patterns together with location: at a level or in the middle of nowhere.
Candlestick patterns: Indicators, Strategies and Libraries
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 Strategy is an overlay strategy that identifies pullbacks using a long-term EMA, RSI, and candlestick patterns. It generates long signals when a bullish engulfing candle forms below the EMA while RSI is oversold, and short signals when a bearish
The Body Mass Indicator highlights candles with exceptionally large body ranges relative to recent price movement. It calculates the absolute distance between open and close prices. When enabled, it identifies bars where the body range achieves a new high over
Generates simulated order signals and tracks dollar-cost averaging (DCA) cycles to test webhook execution software. It marks buy signals on bearish candles and sell signals on bullish candles, with optional DCA logic that requires lower consecutive entries and
The Strat Assistant indicator identifies candlestick patterns from the STRAT methodology on the price chart. It detects inside bars, 2-candle directional bars, 3-candle outside bars, and sequences like 212 and 222 for continuations and reversals. Shapes such a
Ghost Channels fits dynamic parallel trend channels over a configurable lookback window using linear regression or pivot swing methods. It layers confirmation signals onto the channel geometry, detecting candlestick pattern reactions at the rails, volume-confi
This Pine Script strategy identifies classic bullish engulfing candlestick patterns to open long positions, deploying 100 percent of equity. It calculates a short-term Relative Strength Index to determine exits, closing open long positions when the RSI exceeds
Marubozu Finder identifies classic bullish and bearish Marubozu candlestick patterns based on the previous completed bar. It detects a bullish Marubozu when the previous bar's high equals its close and its low equals its open. Conversely, a bearish Marubozu is
This indicator identifies and plots bullish and bearish engulfing candlestick formations directly on the price chart. It checks standard body-engulfing criteria using prior and current bar open and close values, with optional stricter filters for wick engulfme
This indicator detects bullish and bearish engulfing candlestick patterns on the main price chart based on configurable bar fullness and height filters. It identifies specific pattern variations, including 3-Strike reversals and 180-degree turnarounds, marking
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
The indicator tracks four-bar fractal sweep and reclaim setups on chart timeframes of 15 minutes and above. It calculates Reclaim Strength based on where C2 closes relative to C1's range and plots level lines for the swept C1 extreme and C2 extreme. An on-scre
ICT HTF Candles displays higher timeframe candle structures directly on the price chart using customized boxes and lines. It tracks up to six user-defined higher timeframes, plotting historical body, wick, and imbalance zones alongside optional price level tra
This strategy detects bullish and bearish pinbar candles on the price chart and opens a long or short position when the pattern appears and no trade is open. Take profit and stop loss are set from the signal candle's range using separate multipliers, and trail
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
This indicator implements Chanlun (Zen Theory) structural concepts directly on the main price chart. It identifies top and bottom fractals using five-bar pivot conditions and dynamically tracks high and low arrays to plot strokes (Bi) and segments. Traders can
Markov Strategy is a mean-reversion quantitative strategy inspired by streak-based Markov chain analysis. Applied directly to the price chart, it monitors price action for consecutive downward closes. The strategy enters a long position after detecting six con
This strategy shorts the ES three-minute chart when three consecutive down candles form a triple-red pattern and price is above a Tillson-style T3 average. The average is six nested EMAs of close, combined with fixed coefficients and a user length defaulting t
Bullish Engulfing Low is an overlay indicator that marks a two-candle pattern: a bullish bar whose close is above the prior bar open and whose low stays above the prior low, after a bearish bar. When that condition is true it draws a right-extended horizontal
This indicator plots key session-based price action reference levels on the price chart. It calculates and displays the current session open, previous day close, Globex session high and low, weekly open, and higher-timeframe boundaries. It also supports bar co
This indicator screens many symbols for close-to-close inside bars, a stricter inside bar that also requires the close to continue in the prior candle's direction. It scans either a pasted symbol list or one page of a preset Nifty index list, with a hard limit
This indicator detects stop hunts, liquidity raids, and Rob Hoffman Inventory Retracement Bar breakouts directly on the main price chart. It tracks bullish and bearish retracement bars using dynamic arrays, identifying when incoming price action breaks these s
JoppanFX Candlestick Patterns identifies classic single-candle and multi-candle price patterns directly on the main price chart. It checks for bullish patterns (Hammer, Inverted Hammer, Bullish Engulfing) and bearish patterns (Shooting Star, Hanging Man, Beari
SHODAN9 Katana is a trend-following strategy that generates trading signals using Heikin-Ashi candle color transitions. It enters long positions on the first green Heikin-Ashi candle after a series of red candles and enters short positions on the first red can
This indicator recolors price candles from recent volume and range. It marks climax bars when current volume times range exceeds the prior ten-bar peak or volume is at least twice a ten-bar average, and rising bars at one and a half times that average. Bullish
This indicator generates buy and sell signals based on engulfing candlestick patterns, a candle stability ratio relative to true range, RSI thresholds, and a multi-bar price momentum condition. It draws visual signal labels on the chart alongside suggested tak
This strategy plots Bollinger Bands on the price chart and enters long only when flat. It buys on a strong bullish close above the middle band or on a small-body pullback that tags the middle band with a long lower wick. The stop sits below the signal bar by a
The Traffic Light Strategy is a breakout trading system overlaid on the main price chart. It detects momentum transitions whenever two consecutive candles have opposing colors (bullish followed by bearish, or vice versa). Upon detection, it marks the combined
Brahmāstra plots a fixed 10-period exponential moving average on the price chart and marks candles that sit entirely beyond it. A red candle whose low is above the average gets a cross, and a later green candle that opens below and closes above that candle's h
The Pivot Points indicator plots horizontal lines on the price chart to mark bullish and bearish pivot points. It identifies shifts from bullish to bearish or vice versa by scanning the last 100 candles by default. Buy lines appear in blue and sell lines in re
This indicator detects and highlights Doji candlestick patterns directly on the price chart. It checks whether the absolute difference between the candle's open and close prices falls below a user-defined threshold relative to the closing price. The script dif
Strategy combining EMA and SMA trend alignment with pin bar candle patterns and moving average piercing. It triggers trades in the direction of the moving average fan when a pin bar forms, managing positions using an ATR-based stop loss, pip-based profit targe
This strategy detects volume-based trading signals on Bitcoin perpetual futures. It calculates volume spikes on green and red candles along with ATR for volatility filtering. Long entries trigger on red candles with high volume and specific spike conditions wh
MomGulfing is a momentum strategy that identifies trade setups using multi-bar engulfing candlestick patterns paired with volume confirmation. It triggers long or short entries when price breaks key candle bounds across one to three bars while volume expands.
This short-only strategy identifies sell setups by combining a 3-period RSI overbought condition with a bearish engulfing candlestick pattern. It triggers short entries when the open RSI exceeds 70 and momentum turns downward alongside a bearish engulfing bar.
This overlay indicator identifies Candle 2 (C2) liquidity sweep and reclaim setups confirmed by Candle 3 (C3). It evaluates price action relative to local and higher timeframe (HTF) points of interest (POI), filtering setups based on C2 wick-to-range ratios, r
This indicator implements a streaming bar-by-bar port of the Chanlun theory decomposition pipeline directly on the price chart. It processes raw price action through Algorithm N containment normalization, identifies top and bottom fractals, connects them into
This overlay approximates order-book liquidity from intrabar OHLCV buckets because true depth-of-market data is unavailable. It paints a decaying volume heatmap around price and labels absorption, exhaustion, rejection, and momentum when wick, body, delta, and
Strong Wealth Magnet is an overlay indicator that scores price action and draws selected narrative layers on the price chart. Up to three modes can run together, including a Pro layout and a Six Eyes view that reviews past signals over a chosen window and labe
This indicator detects institutional candles where the body exceeds a multiple of the rolling average body size. It creates and draws supply and demand zone boxes directly on the price chart, validating them over subsequent bars to discard invalidated zones. W
The LSD-15 indicator detects liquidity sweeps on 15-minute crypto charts by identifying price movements that exceed a threshold from swing highs and lows. It plots swing high and low lines on the price chart and highlights sweep candles in color. Multiple conf
This indicator automatically detects and plots support and resistance areas on the price chart. It identifies reversal patterns using candlestick spikes, pivot points, and trend analysis while applying noise filtering for small candles. Areas get shaded with c
15M is an intraday chart overlay designed for 15-minute timeframes. It plots a volume-weighted moving average (VWMA) alongside a simulated 5-day moving average calculated from user-defined daily trading hours. The script detects several classic candlestick pat
Advanced Scalping EMA & RSI Strategy is an overlay indicator that combines fast and smooth moving averages with RSI levels and candlestick patterns to generate scalping signals. Users can select calculation methods for moving averages, such as SMA, EMA, WMA, o
This TradingView indicator plots three exponential moving averages of 10, 21, and 50 periods on the price chart. Users toggle visibility of each EMA via a group input. It also colors bars yellow when an inside day forms, defined by the current bar's high and l
BarUpDn Strategy is a lightweight indicator that identifies basic price momentum by comparing consecutive closing prices. It calculates the difference between the current close and the previous bar's close. When the close is higher, it displays an upward green
This indicator calculates and plots rolling high, low, and midpoint levels over 24-hour, 48-hour, and 7-day lookback periods directly on the price chart. It projects standard Fibonacci retracement levels based on the 7-day range and detects doji candlestick pa
Third-party code. ForexR lists open-source Pine scripts from GitHub; it did not write, test or endorse them, and their summaries are generated automatically from each script's code and README. Indicators describe the past, and a strategy's backtest can look better than live trading. Check a script on a demo account before you rely on it. CFDs and leveraged forex are complex instruments with a high risk of losing money rapidly.
Learn to Use Pine Scripts
Free, plain-English guides: add a script to TradingView, read what it does, test it and avoid the common traps.