Pine Library · 966 open-source scripts

Free Breakout Pine Scripts (page 10)

Open-source Pine scripts that trade or mark breakouts: opening ranges, session and Asian-range breakouts, Donchian channels and squeeze breaks.

Pine scripts966
Code shown here484open licence
Updated in a year720
No repaint flag816

Breakout: Indicators, Strategies and Libraries

SMC+OB+FVG_PH

by mydcc
1 stars

This indicator plots smart money concept structures directly on the price chart. It detects and visualizes market structure elements including change of character, break of structure, swing points, inducements, and liquidity sweeps. Additionally, it identifies

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated yesterday · Custom licence GitHub repository of SMC+OB+FVG_PH
1 stars

Multi Variable Declaration is a strategy designed to demonstrate multiple variable declaration syntax within a trading model. It calculates a 12-period price channel midpoint alongside an exponential moving average spread (EMA 9 minus EMA 21) to establish tren

Strategy v6 TrendMoving averages
Updated 4 months ago · MIT GitHub repository of Multi Variable Declaration

Pivot Points - S/R Trading

by Basant1Saini
1 stars

Calculates classic support and resistance pivot levels using Traditional, Fibonacci, or Camarilla formulas from a higher timeframe. The strategy offers two execution modes: Bounce mode trades reversals within a customizable percentage buffer of support and res

Strategy v5 Support & resistanceBreakout
Updated 7 months ago · None stated GitHub repository of Pivot Points - S/R Trading

Close Flip Reversal

by Tradehook-org
1 stars

A Pine v5 indicator that tracks recent swing highs and lows over a lookback and plots them as resistance and support levels on the price chart. A bullish flip is a close above the last swing high after a close below it, and a bearish flip is the reverse at the

Indicator v5 BreakoutSupport & resistance
Updated 8 months ago · None stated GitHub repository of Close Flip Reversal

algo-trade-v111

by akash-yellgetti
1 stars

A strategy-type script for the price chart that draws the high, low and midpoint of the first part of each session, set by end hour and minute inputs. It then plots pivot-based support and resistance from left and right bar counts, shows labels where price bre

Strategy v5 Sessions & timeSupport & resistance
Updated 2 years ago · None stated GitHub repository of algo-trade-v111

This indicator plots multi-timeframe open, high, low, and close levels directly on the price chart. It draws horizontal lines for key price levels alongside vertical separators at each timeframe interval. In addition, the script displays Fibonacci retracement

Indicator v6 Support & resistanceBreakout
Updated 7 weeks ago · None stated GitHub repository of MTF OHLC Lines with Breakout, Retracement & Fibs
43 stars

This strategy trades SOL perpetual candles on the price chart. It tracks confirmed pivot highs and lows as support and resistance circles, then compares close with a smoothed filter and a three-period EMA to mark long and short conditions after the bar closes.

Strategy v5 Moving averagesSupport & resistance Repaints
Updated 2 years ago · None stated GitHub repository of SOL 1m Strategy Candle Bar
16 stars

This strategy enters long or short when a chart-timeframe Donchian breakout agrees with a higher-timeframe confirmation, using breakout, moving average, or both. It exits on a shorter Donchian channel and can flatten on a time rule. Position size risks a set p

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 17: Dual TF Confluence

TPCharts Alert Levels

by TPCharts
10 stars

TPCharts Alert Levels evaluates price breakouts across multiple timeframes, ranging from two minutes up to monthly intervals. It checks whether the current close crosses above the previous bar high or crosses below the previous bar low using higher-timeframe s

Indicator v4 Support & resistanceBreakout
Updated 5 years ago · GPL-3.0 GitHub repository of TPCharts Alert Levels

This indicator scans price action on the main chart to identify broadening wedge patterns, including descending, ascending, and symmetric formations. It evaluates confirmed swing highs and lows within a sliding window, fitting upper and lower trendlines based

Indicator v6 Support & resistanceBreakout
Updated 2 days ago · MIT GitHub repository of Broadening Wedge Scanner Pro [WavesUnchained]

LunarTick ORB

by lunarticktrading
7 stars

This indicator calculates and plots Opening Range Breakout (ORB) levels directly on the price chart. It defines the high, low, and midpoint of an opening range based on a configurable duration and session time, with an optional Anchored VWAP (AVWAP) and extens

Indicator v6 Sessions & timeBreakout Repaints
Updated 2 weeks ago · None stated GitHub repository of LunarTick ORB
4 stars

The Keltner Channel Strategy is a breakout system plotted directly on the main price chart. It calculates upper and lower channel bands around an exponential or simple moving average using ATR, True Range, or bar range multiplied by a specified factor. A long

Strategy v5 TrendVolatility & bands
Updated 5 months ago · None stated GitHub repository of Keltner Channel Strategy

My Custom Strategy 1

by might-tree
4 stars

This long-only strategy plots a 20-period exponential moving average of the low, a 20-period simple moving average of the low, and the close in a separate pane. It enters long when the high breaks the prior 25-bar highest close and the close is above both the

Strategy v5 Moving averagesBreakout Repaints
Updated 3 years ago · None stated GitHub repository of My Custom Strategy 1
2 stars

This strategy enters long when price closes above the prior channel high and a longer EMA filter, the bar is bullish, volume rises versus the previous bar, and average volume and turnover clear set thresholds. It exits the long when price closes below a shorte

Strategy v5 BreakoutMoving averages
Updated 2 years ago · None stated GitHub repository of DegenerateChain Channel Breakout
1 stars

A long and short strategy based on five moving averages of 10, 20, 50, 100 and 200 bars. It can require the averages to be in perfect order with aligned slopes, filter entries by ADX range, and optionally by RSI and a higher timeframe moving average. A strict

Strategy v6 Moving averagesBreakout
Updated 7 days ago · None stated GitHub repository of Qullamaggie MA Breakout L+S

A strategy that detects classic chart patterns from pivot points on the price chart: double and triple tops and bottoms, head and shoulders, flags, pennants, wedges, triangles, rectangles and cup and handle shapes. Each can be switched on or off, with toleranc

Strategy v6 BreakoutSupport & resistance
Updated 7 days ago · GPL-3.0 GitHub repository of Auto Pattern Detector Targets with Session Strategy

SMC Strategy

by mrdungx2603
1 stars

This Smart Money Concepts (SMC) strategy identifies market structure, order blocks, imbalances, and premium or discount zones directly on the price chart. It executes long trades in discount zones and short trades in premium zones based on order block retests,

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · None stated GitHub repository of SMC Strategy

Pivot Break

by riegodavid-git
1 stars

An overlay indicator that tracks the most recent confirmed swing high and swing low and prints a small label when the close crosses beyond them. A green B label appears below the bar when the close crosses above the last pivot high, and a red S label appears a

Indicator v6 BreakoutSupport & resistance
Updated 4 months ago · None stated GitHub repository of Pivot Break

Flags and Pennants

by turnupdigital
1 stars

An indicator on the price chart that finds flag and pennant chart patterns using up to four zigzag settings of different lengths and depths. Inputs limit pattern error, flatness, maximum retracement and optionally bar ratio, and an option avoids overlapping pa

Indicator v6 Support & resistanceBreakout
Updated 1 year ago · None stated GitHub repository of Flags and Pennants
1 stars

This strategy fades false breakouts of a rolling high and low. It goes long when the bar's low pokes below the prior lowest low of the lookback window but the close finishes back above it, and short in the mirror case at the highest high. Each trade has an ATR

Strategy v5 Mean reversionBreakout
Updated 1 year ago · None stated GitHub repository of Turtle Soup Strategy

HH, LL, HL, LH Indicator

by akash-yellgetti
1 stars

A strategy-type script that draws the high, low and midpoint of an opening window each day, plus pivot-based support and resistance lines from left and right bar settings. It prints buy or sell labels when the close breaks a pivot level while an EMA-based volu

Strategy v5 Support & resistanceBreakout
Updated 2 years ago · None stated GitHub repository of HH, LL, HL, LH Indicator

Squeeze Panel

by amico1234
1 stars

Squeeze Panel plots a volatility squeeze in a separate pane. It marks a squeeze when Bollinger Bands sit inside a Keltner Channel and marks when the bands expand outside it. The user chooses Money Flow Index or linear regression to color likely breakout direct

Indicator v4 Volatility & bandsOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Squeeze Panel

DOT BTC Binance 1m

by tseitz
1 stars

This strategy trades the DOT/BTC pair on a one-minute chart. It plots the VWAP of the close and two offset VWAP bands on the price chart. It opens a long when the open is above the upper band and a short when the open is below the lower band, then closes those

Strategy v4 VolumeBreakout
Updated 4 years ago · None stated GitHub repository of DOT BTC Binance 1m

This strategy designed for Binance SOLUSDTPERP futures trading generates entries based on pivot high and low support or resistance levels, a 3-period EMA, and a custom smoothed trend filter line. It opens long or short positions when price confirms movement re

Strategy v5 TrendBreakout Repaints
Updated 2 years ago · None stated GitHub repository of SOLUSDTPERP - Strategy Candles Bar
16 stars

This price-chart strategy trades Donchian channel breakouts in the style of a Seykota trend system. It enters long or short when price touches the entry channel, using the bar high or low when intrabar mode is on, and can add units after further moves of a set

Strategy v6 TrendBreakout Repaints
Updated 12 months ago · None stated GitHub repository of Seykota Alt 19: Intrabar Execution

My Custom Strategy 2

by might-tree
4 stars

This strategy calculates a 20-period volume-weighted moving average of the low, a 200-period Hull moving average of the high, and 25-period highest close values. It enters a long position when the high breaks above the previous highest close while the close re

Strategy v5 TrendMoving averages
Updated 3 years ago · None stated GitHub repository of My Custom Strategy 2

Gold Digger AI

by IAMATOMIC001
3 stars

This strategy executes gap breakout entries directly on the price chart, opening long positions when the current open exceeds the prior high and short positions when the open drops below the prior low. It overlays a custom Supertrend filter, an EMA cloud, a Pa

Strategy v5 BreakoutMoving averages
Updated 12 months ago · None stated GitHub repository of Gold Digger AI

The Market Tail Risk Detector evaluates market fragility and compression to identify environments preceding volatile price moves. It calculates a composite tail risk score ranging from 0 to 100 based on realized volatility percentiles, volatility of volatility

Indicator v6 Volatility & bandsBreakout Repaints
Updated 3 months ago · Apache-2.0 GitHub repository of Market Tail Risk Detector (Quiet → Explosive)
2 stars

This strategy detects large and smaller fractals on the price chart by comparing highs or lows across a configurable number of bars. It tracks recent fractal levels, draws optional retest lines, and marks a retest signal when price returns a set percentage of

Strategy v4 Support & resistanceBreakout
Updated 4 years ago · MIT GitHub repository of Fractals strategy remaster
1 stars

An indicator that detects cup and handle patterns from pivots, with inputs for rim similarity, handle retracement range, an invalidation retrace level and a target set as a multiple of cup depth. A Bayesian probability update using a Bollinger squeeze as evide

Indicator v6 Support & resistanceBreakout
Updated yesterday · None stated GitHub repository of XRP Breakout Matrix Bayesian GC

Courier UDT Return Method

by pineforge-4pass
1 stars

A long-only strategy that builds a volatility envelope from an EMA centre and an ATR width using a custom type and a method. It enters long when the close crosses above the centre plus a multiple of the width. It exits when the close falls below the centre, or

Strategy v6 Volatility & bandsBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of Courier UDT Return Method

KLSE Trend Template

by kevinesk
1 stars

This indicator evaluates Mark Minervini's Trend Template criteria directly on the price chart. It checks eight technical conditions based on 21, 50, 150, and 200-period exponential moving averages, alongside 52-week (260-bar) highs and lows. The script plots t

Indicator v5 TrendMoving averages
Updated 4 months ago · None stated GitHub repository of KLSE Trend Template
1 stars

An opening range tool for the price chart. At a set time in a chosen time zone, by default 8:30 in the Bogota zone, it records the high and low of the first five minutes and draws them as a box and lines. During a trading window of 90 minutes it signals a brea

Indicator v6 Sessions & timeBreakout
Updated 6 months ago · None stated GitHub repository of Primera Vela NY - 5m to 1m

Dragon Breakout

by AlanGuo
1 stars

A long strategy that plots five moving averages (25, 50, 100, 150 and 300 by default, SMA or EMA) and looks for a bullish candle that opens below and closes above at least a set number of them. The breakout must come on volume above a ratio of its recent avera

Strategy v6 BreakoutMoving averages
Updated 7 months ago · None stated GitHub repository of Dragon Breakout

Three Bar Reversal Pattern

by feliperazeek
1 stars

This strategy detects three-bar reversal patterns in normal, enhanced or both forms, derives support and resistance from them as levels or zones, and trades the reversals on the price chart. An optional trend filter uses a moving average cloud, Supertrend or D

Strategy v5 Candlestick patternsSupport & resistance
Updated 1 year ago · None stated GitHub repository of Three Bar Reversal Pattern
1 stars

This strategy measures volatility as the standard deviation of closes and compares it with its own moving average multiplied by a threshold. When volatility is expanding and the close is beyond a Bollinger Band (20 periods, 2 deviations, fixed in the code), it

Strategy v5 BreakoutVolatility & bands
Updated 1 year ago · None stated GitHub repository of Volatility Breakout Strategy

This overlay strategy is written for the SOLUSDT perpetual on the one-minute chart. It tracks confirmed pivot highs and lows as resistance and support circles, then marks strong buy or sell states when close crosses those levels. Long and short conditions comp

Strategy v5 Support & resistanceBreakout Repaints
Updated 2 years ago · None stated GitHub repository of SOLUSDTPERP 1m - Strategy Candle Bar
16 stars

This trend-following strategy adapts classic Donchian breakout channels according to market volatility regimes. It calculates an ATR percentile rank across a rolling lookback period, shifting dynamically between tighter breakout channels with smaller stops dur

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 1: Adaptive Volatility

This indicator evaluates and scores trade signal quality using a four-layer filtering process drawn directly on the main chart. It evaluates volume spikes against a moving average, higher-timeframe EMA trend alignment, price breaches beyond ATR volatility band

Indicator v6 Volatility & bandsVolume Repaints
Updated 2 months ago · None stated GitHub repository of TeleNexus Fakeout Signal Quality
1 stars

This strategy identifies breakout opportunities in Bursa Malaysia stocks using a slow EMA trend filter where price exceeds the 150-period EMA and the slow EMA is above its 150 EMA. It plots fast and slow EMAs on the price chart. Entry occurs on a new 20-day hi

Strategy v5 BreakoutMoving averages
Updated 4 months ago · None stated GitHub repository of KLSE VCP Breakout Backtest
1 stars

The Fractal Breakout Strategy identifies key market turning points using a five-bar Williams Fractal pattern. It tracks confirmed high and low fractal levels without repainting to serve as potential breakout entry triggers. When a breakout occurs, trades are e

Strategy v5 BreakoutSupport & resistance
Updated 8 months ago · None stated GitHub repository of Fractal Breakout Strategy (FB Algo)

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