Pine Library · 656 open-source scripts

Free Candlestick Pattern Pine Scripts (page 2)

Open-source Pine scripts that find candlestick patterns: engulfing bars, pin bars, doji, inside bars, Heikin Ashi and multi-candle patterns.

Pine scripts656
Code shown here386open licence
Updated in a year368
No repaint flag575

Candlestick patterns: Indicators, Strategies and Libraries

BL-ESW Pinbar Market Lab

by tulukakaniwa
1 stars

BL-ESW Pinbar Market Lab is an overlay indicator that calculates rolling VWAP cost anchors across multiple fixed windows to establish dynamic price levels. It detects Pinbar candlestick patterns using customizable wick-to-body ratios and plots GetDelta volatil

Indicator v6 Support & resistanceCandlestick patterns
Updated yesterday · AGPL-3.0 GitHub repository of BL-ESW Pinbar Market Lab

Change of Context

by ElroyvOuwerkerk
1 stars

A candle-pair indicator that marks a bearish signal when a bar fails to take the previous high and closes below the previous low, and a bullish signal in the mirror case. An optional divisions filter also requires the close to sit in the lower or upper fractio

Indicator v6 Candlestick patterns
Updated 7 days ago · None stated GitHub repository of Change of Context
1 stars

This indicator marks thirteen classic candlestick patterns on the price chart, including engulfing, hammer and hanging man, inverted hammer and shooting star, doji, morning and evening star, harami, piercing line and dark cloud cover. Marks appear only on the

Indicator v6 Candlestick patterns
Updated 8 days ago · Custom licence GitHub repository of Candlestick Signal Alerts

This indicator marks key reversal candles that print a new high or low versus the prior lookback window. A bullish signal needs a lower low, a close above the previous close, and a bullish candle; a bearish signal is the opposite. Double reversals also compare

Indicator v6 Candlestick patternsSupport & resistance
Updated 2 weeks ago · None stated GitHub repository of Key Reversals with 20-Bar High/Low Lines

MMC Order Block Strategy

by vproptrader10010-cmyk
1 stars

An indicator that detects swing highs and lows using a lookback setting and treats them as liquidity pools, plotting the latest ones as lines. It flags a stop-hunt sweep when price pushes beyond a swing level and closes back inside with an engulfing or hammer-

Indicator v6 SMC / ICT / price actionCandlestick patterns
Updated 2 months ago · None stated GitHub repository of MMC Order Block Strategy

GrimmArty Indicator

by GreyssonEnterprises
1 stars

A Pine v5 indicator that draws four smoothed moving averages (21, 50, 100 and 200), a trend fill between a two-period EMA and the 200 average, three line strike markers and engulfing-style candle markers, with optional time-zone session shading and weekday tog

Indicator v5 Moving averagesCandlestick patterns
Updated 2 months ago · MIT GitHub repository of GrimmArty Indicator

Elephant Bars

by FranklyBrandon
1 stars

A price chart overlay that flags unusually large candles, called elephant bars, when the candle body is at least a set multiple of the average body over a lookback, 1.5 times and 100 bars by default. It also marks small retracement bars that follow an elephant

Indicator v5 Candlestick patternsMoving averages
Updated 3 months ago · None stated GitHub repository of Elephant Bars

LSC Pattern

by mrdungx2603
1 stars

LSC Pattern is an on-chart indicator designed to detect three-bar price reversal patterns known as LSC Low and LSC High. An LSC Low bullish pattern occurs when the second bar forms a local trough relative to its adjacent bars and the third bar closes above the

Indicator v6 Candlestick patterns
Updated 4 months ago · None stated GitHub repository of LSC Pattern
1 stars

Identifies 3-candle price patterns that combine structural liquidity sweeps with candle breaks. In a bullish pattern, a second candle sweeps the low of an initial bearish candle before closing above its open, followed by a third candle closing above the previo

Indicator v6 Candlestick patternsSMC / ICT / price action
Updated 4 months ago · None stated GitHub repository of 3-Candle Pattern Clean
1 stars

A one-minute reversal indicator drawn on the price chart. It combines swing-point structure breaks, wick-to-body rejection candles, an RSI condition or divergence, higher-timeframe demand and supply zones and session filters, and prints buy or sell labels only

Indicator v5 SMC / ICT / price actionCandlestick patterns
Updated 5 months ago · None stated GitHub repository of M1 Reversal Multi-Filter Hub Pro

This indicator scores seven approaches on every bar: RSI, volume, VWAP, EMA trend, MACD, Bollinger Bands and a volume-delta module. Each score is weighted by a rolling record of that approach's recent agreement with price, and the weighted total must pass an a

Indicator v6 AI / machine learningOscillators & momentum
Updated 6 months ago · None stated GitHub repository of SignalForge v5 Volume Intelligence
1 stars

A Pine v4 indicator in a separate pane that combines many signal modules into one counter-style display for intraday charts. Modules include an adaptive ATR and ADX trend stop on a 4 hour interval, zero-lag EMA crosses on 30 minute, 4 hour and daily frames, Ic

Indicator v4 Oscillators & momentumTrend
Updated 6 months ago · None stated GitHub repository of ARPS Ultimate Signal Framework

ARPS Scalp Short Indicator

by ali-rajabpour
1 stars

A multi-signal overlay aimed at spotting short-side setups. It combines candlestick patterns such as dojis, shooting stars, harami and engulfing shapes with an RSI and weighted moving average cross, a stochastic, the Awesome Oscillator and optional single or d

Indicator v4 Candlestick patternsOscillators & momentum
Updated 6 months ago · None stated GitHub repository of ARPS Scalp Short Indicator

ARPS Ultra Scalper

by ali-rajabpour
1 stars

A price-chart overlay that combines several signal sources into buy and sell markers: an RSI against its weighted moving average, a smoothed stochastic, WMA 50 and 200 crosses, candlestick patterns, an adjustable Ichimoku cloud and Parabolic SAR. Candle patter

Indicator v4 Candlestick patternsOscillators & momentum
Updated 6 months ago · None stated GitHub repository of ARPS Ultra Scalper

ARPS Scalp Suite

by ali-rajabpour
1 stars

A Pine v4 study that bundles many tools on the price chart: short and long SMAs, zero-lag 50 and 200 EMAs, an awesome oscillator, RSI and stochastic crosses, Parabolic SAR, a trend continuation factor and an optional Ichimoku cloud. It also reads a 200 EMA of

Indicator v4 Candlestick patternsOscillators & momentum
Updated 6 months ago · None stated GitHub repository of ARPS Scalp Suite

ARPS Scalp Strategy

by ali-rajabpour
1 stars

A Pine v4 study, despite its name not a backtesting strategy, that combines many tools on the price chart. It plots zero-lag 50 and 200 EMAs, an awesome-style oscillator, an RSI and stochastic cross, Parabolic SAR, a trend continuation factor and an optional I

Indicator v4 Candlestick patternsOscillators & momentum
Updated 6 months ago · None stated GitHub repository of ARPS Scalp Strategy
1 stars

Detects a long list of candlestick patterns, such as engulfing, harami, morning star, evening star, hammer, doji and marubozu, and prints a label on the price chart for each match. Every pattern has its own on/off switch. A trend rule based on the 50-bar avera

Indicator v5 Candlestick patterns
Updated 6 months ago · None stated GitHub repository of ARPS All Candlestick Patterns
1 stars

This indicator detects reversal candlestick patterns, including hammer, hanging man, doji family, engulfing, morning and evening star, harami, piercing line, dark cloud, shooting star and inverted hammer, and marks them with signal labels on the price chart. P

Indicator v5 Candlestick patterns
Updated 6 months ago · Apache-2.0 GitHub repository of Advanced Candlestick Pattern Indicator

ICI Confluence MTF

by Devtest-Dan
1 stars

ICI Confluence MTF is an overlay indicator that combines several analysis layers across timeframes into a confluence table. It works with two timeframe sets, H4, H1 and M15 or H1, M15 and M5, and can require an A-B-C Wyckoff style first layer. Swing pivots, a

Indicator v6 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of ICI Confluence MTF

Advanced Doji Detector

by gabriel-klettur
1 stars

Advanced Doji Detector is an overlay indicator that identifies and categorizes five distinct types of Doji candlestick patterns: Standard, Gravestone, Dragonfly, Long-Legged, and Four-Price Doji. It calculates body size relative to total candle range and evalu

Indicator v6 Candlestick patternsScreeners & dashboards
Updated 7 months ago · None stated GitHub repository of Advanced Doji Detector

Candlestick Patterns

by ognenmitev
1 stars

Detects a set of classic candlestick patterns and labels them on the price chart. Bullish patterns include hammer, inverted hammer, bullish engulfing, morning star, piercing, three white soldiers, bullish harami and dragonfly doji, with a matching bearish grou

Indicator v6 Candlestick patterns
Updated 11 months ago · Custom licence GitHub repository of Candlestick Patterns
1 stars

This indicator looks for a five-candle shape on the price chart. In the high model the middle candle holds the highest high, with rising highs into it and falling lows after it; the low model is the mirror image. When a shape is found it draws grey connecting

Indicator v6 Candlestick patterns Repaints
Updated 11 months ago · None stated GitHub repository of 5-Candle High/Low Indicator

Reversal Signals

by turnupdigital
1 stars

An indicator on the price chart that looks for candle reversal setups over a lookback of 12 candles and requires confirmation within a few further candles, optionally backed by volume above its 20 bar average. A trend moving average, selectable as SMA, EMA, WM

Indicator v6 Candlestick patternsMoving averages
Updated 1 year ago · None stated GitHub repository of Reversal Signals

Super AI Binary Bot

by 12345678798
1 stars

This indicator generates reversal signals based on simple candlestick comparisons over a user-defined lookback period. A bullish signal triggers when both the current and historical candles close higher while the current low is lower than the past low, and vic

Indicator v5 Candlestick patterns Repaints
Updated 1 year ago · None stated GitHub repository of Super AI Binary Bot
1 stars

Three Bar Reversal Pattern marks bullish and bearish three-candle reversals. A bullish pattern is two down candles followed by an up candle closing above the first candle's open; the bearish pattern is the mirror image. Optional filters require volume above it

Indicator v6 Candlestick patternsVolume
Updated 1 year ago · None stated GitHub repository of Three Bar Reversal Pattern
1 stars

A strategy meant for one-minute charts that buys when price is near a recent pivot low, RSI is below an oversold level, a hammer or bullish engulfing candle appears and price is above an EMA. Sells mirror this near pivot highs with overbought RSI, bearish patt

Strategy v6 Candlestick patternsSupport & resistance
1 stars

This indicator visualizes Wyckoff Volume Spread Analysis principles directly on the price chart. It calculates volume moving averages, bar spread, and close location values to categorize individual candlestick behavior relative to average trading activity. Whe

Indicator v5 VolumeCandlestick patterns
Updated 1 year ago · MIT GitHub repository of VSA Volume Spread Analysis
1 stars

A candlestick pattern detector for the rising and falling three methods setup on a five-candle window. For a bullish final candle it checks that the three candles before it are bearish and sit within the range of the first candle, and for a bearish final candl

Indicator v5 Candlestick patterns
Updated 1 year ago · MIT GitHub repository of Rise/Fall of Three Methods

Basic Engulfing Candles

by fiji-solutions
1 stars

This indicator identifies basic bullish and bearish engulfing candlestick patterns directly on the main price chart. A bullish engulfing signal triggers when a green candle opens at or below the prior bearish candle's close and closes at or above its open. A b

Indicator v5 Candlestick patterns
Updated 2 years ago · None stated GitHub repository of Basic Engulfing Candles

Grail Only Longs

by Wendigooor
1 stars

A long-only strategy based on a trailing stop approach, using a slow SMA, medium and fast EMAs, a pin bar test, and optional stochastic and money flow index filters that can read other timeframes. Exits use a trailing stop plus a hard stop expressed in pips. I

Strategy v5 TrendCandlestick patterns Repaints
Updated 2 years ago · None stated GitHub repository of Grail Only Longs
1 stars

This indicator scans each bar for a handful of candlestick patterns and marks them on the price chart with small symbols. It checks Doji, Hammer, Inverted Hammer, Shooting Star, Hanging Man, Bullish and Bearish Engulfing, Morning Star and Evening Star. Context

Indicator v5 Candlestick patterns
Updated 2 years ago · MIT GitHub repository of Candlestick Patterns Detector

Engulf Indicator

by theomgdev
1 stars

The Engulf Indicator calculates a custom candlestick metric in a separate pane by evaluating the ratio of candle body size to total candle range, comparing it with the previous bar's body size, and normalizing the result with the Average True Range (ATR). It p

Indicator v5 Candlestick patternsVolatility & bands
Updated 2 years ago · None stated GitHub repository of Engulf Indicator

Nilmiya Heikin Ashi

by jubayernil
1 stars

Nilmiya Heikin Ashi calculates and plots custom Heikin Ashi candlesticks in a separate indicator pane below the main chart. It fetches the smoothed open, high, low, and close values for the active symbol and timeframe using security calls. Bullish bars where t

Indicator v5 Candlestick patternsTrend
Updated 3 years ago · None stated GitHub repository of Nilmiya Heikin Ashi

Altcoin Analyzer [Lysergik]

by LysergikProductions
1 stars

This indicator plots the relative price of an altcoin against Bitcoin by dividing the current symbol's OHLC values by INDEX:BTCUSD data. It displays the synthetic pair as either a simple line or custom candlesticks with an optional Heikin-Ashi calculation in a

Indicator v5 Volatility & bandsCandlestick patterns Repaints
Updated 4 years ago · AGPL-3.0 GitHub repository of Altcoin Analyzer [Lysergik]

A candlestick overlay that marks hammer and hanging man candles with up and down arrows, coloured by whether volume on the signal candle was above its 12-bar average. It also highlights inside bars, outside bars and several multi-bar combinations of these thro

Indicator v5 Candlestick patternsVolume
Updated 4 years ago · None stated GitHub repository of My Comprehensive Trading Indicator

Barbwire v1.0.0

by itmakesyousick
1 stars

Looks for barbwire zones, runs of bars with unusually small ranges, and boxes them on the price chart. It measures how small recent bars are using Heikin-Ashi data, scaled over a period with a level threshold and a minimum number of bars. Settings choose open

Indicator v5 Candlestick patternsVolatility & bands
Updated 4 years ago · None stated GitHub repository of Barbwire v1.0.0

Hammers & Stars Strategy

by namdar-nejad
1 stars

This Pine v4 strategy trades hammer and shooting star candles on the price chart. Entry candles can be filtered by size relative to ATR and by an optional EMA, and a Fibonacci level defines how far into the candle the close must be. Stop loss is an ATR multipl

Strategy v4 Candlestick patterns
Updated 4 years ago · None stated GitHub repository of Hammers & Stars Strategy
575 stars

This indicator scans multiple stock symbols for ICT Displacement Candles. It detects strong price moves characterized by long candles and minimal wicks that exceed a minimum bar count and a set deviation percentage from average range. Signals for bullish and b

Indicator v6 Screeners & dashboardsSMC / ICT / price action
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Displacement Candles Scanner
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
220 stars

Candlestick - Inside Bar Pattern is an overlay indicator that identifies inside bar setups across three consecutive candles. It detects when the price range of the preceding bar is completely contained within the range of the bar prior to it. The direction of

Indicator v5 Candlestick patternsBreakout
Updated 1 year ago · None stated GitHub repository of Candlestick - Inside Bar Pattern
56 stars

This overlay indicator highlights candles with a body smaller than 50% of their total range by coloring them white on the price chart. Simultaneously, it calculates and plots horizontal lines for open prices across multiple higher timeframes, such as daily, we

Indicator v6 Support & resistanceCandlestick patterns Repaints
Updated 2 months ago · None stated GitHub repository of Daily Weekly Monthly Yearly Opens

Abandoned Baby - Bearish

by TWODS-CAPITAL
37 stars

This indicator detects a bearish Abandoned Baby candlestick pattern on the price chart. It looks for an uptrend, a white candle, a doji that gaps away from that candle, and a following black candle that gaps below the doji. The trend filter can use a 50-period

Indicator v5 Candlestick patterns
Updated 3 years ago · MIT GitHub repository of Abandoned Baby - Bearish
23 stars

The Stocks - Inside Day Strategy identifies inside day candlestick patterns on the main price chart. It enters a long position when a bar's high is below the previous high and its low is above the previous low. The strategy exits positions when a short-period

Strategy v6 Candlestick patternsOscillators & momentum
Updated 3 months ago · Custom licence GitHub repository of Stocks - Inside Day Strategy

Harami pattern finder

by shibisuriya
18 stars

This indicator detects bullish and bearish harami candlestick patterns on the price chart. A bullish harami requires a down candle followed by an up candle whose body sits inside the prior body; a bearish harami reverses that relationship. When perfect harami

Indicator v4 Candlestick patterns
Updated 4 years ago · None stated GitHub repository of Harami pattern finder
15 stars

This indicator overlays Bollinger Bands and smoothed HAMA candles directly on the main price chart. It calculates standard Bollinger Bands using a simple moving average and standard deviation, alongside custom smoothed open, high, low, and close values. A cent

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

More Pine Script Categories

Browse the whole Pine Library

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.

  1. 1Using this librarySearch, filters, licences and what the badges mean.
  2. 2Add a script to TradingViewCopy, paste into the Pine Editor, save and add to chart.
  3. 3Indicators, strategies and librariesWhat each type does and how to tell them apart.
  4. 4Spot a script that repaintsWhy some signals change after the bar closes.
  5. 5Backtest a strategyStrategy Tester settings that keep results honest.
  6. 6Send alerts to MT4 or MT5From a TradingView alert to an order in MetaTrader.
  7. 7What Pine Script isThe language, what it can and cannot do, and where to start.
  8. 8Write your first indicatorA complete script, line by line, in the Pine Editor.
  9. 9Read a script before you trust itA routine for checking inputs, logic and red flags.
  10. 10Edit a script safelyChange colours and lengths, add a filter or an alert.
  11. 11Pine Script alertsalertcondition(), alert(), placeholders and webhooks.
  12. 12Build a crossover strategyAn EMA cross strategy with an ATR stop, ready to test.

Trade Your Charts With a Regulated Broker

Compare regulated brokers on platforms, spreads, minimum deposit and leverage.

Compare brokers