Pine Library · 966 open-source scripts

Free Breakout Pine Scripts (page 5)

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

ORB Breakout Alert

by az9713
2 stars

The indicator identifies upside breakouts from the 30-minute US market opening range between 09:30 and 10:00 AM ET. It triggers a signal when price closes above the opening range high before 11:30 AM ET, provided bar volume exceeds a multiplier of the opening

Indicator v5 BreakoutSessions & time
Updated 5 months ago · None stated GitHub repository of ORB Breakout Alert

This strategy enters long positions on volume-backed breakout setups with moving average confirmation. It plots the 10, 50, 150, and 200 simple moving averages directly on the price chart. Users can select between three breakout modes: gap only, strict gap wit

Strategy v6 BreakoutMoving averages
Updated 10 months ago · MIT GitHub repository of Ede - Breakout Strategie (mit MA und ATR Exit)

Resistance 20 Periods

by jpiedrafita
2 stars

This indicator calculates and plots the highest close price over the preceding 20 bars directly on the main price chart. Designed to highlight key resistance levels and potential breakout points, it displays a single gray line representing the rolling 20-perio

Indicator v5 Support & resistanceBreakout
Updated 2 years ago · None stated GitHub repository of Resistance 20 Periods

Donchian Trend Ribbon

by ctkqiang
2 stars

This indicator plots a stacked trend ribbon in a separate pane from Donchian channel breakouts. For a chosen period it marks an uptrend when the close exceeds the previous highest high and a downtrend when the close falls below the previous lowest low, otherwi

Indicator v4 TrendBreakout
Updated 3 years ago · Apache-2.0 GitHub repository of Donchian Trend Ribbon

Breaking fractals

by DaniilOkrug
2 stars

This strategy identifies trend changes using fractals from a higher timeframe and the current chart timeframe. It opens buy or sell orders on breaks of lower-timeframe fractals aligned with the higher-timeframe trend. Normal trading mode exits on trend reversa

Strategy v5 TrendBreakout
Updated 4 years ago · MIT GitHub repository of Breaking fractals

Flat Zone Detector

by xopromo
1 stars

An indicator on the price chart that detects sideways ranges and flags breakouts from them. For each bar it counts how many of the previous N completed bars overlapped a zone of plus or minus a multiple of ATR around the current close, giving a flat score from

Indicator v6 BreakoutVolatility & bands
Updated yesterday · None stated GitHub repository of Flat Zone Detector

Auto Trend Lines

by majixai
1 stars

An indicator that finds small and large pivot highs and lows and automatically draws trend lines through them on the price chart. A line proximity filter based on ATR reduces clutter, and a breakout is flagged after a set number of consecutive closes beyond a

Indicator v6 Support & resistanceBreakout
Updated yesterday · None stated GitHub repository of Auto Trend Lines

Muster-Scanner v9.1

by mohidamini-prog
1 stars

A chart pattern scanner that confirms pivots after a set number of bars and then draws classic formations on the price chart, including head and shoulders, double and triple tops and bottoms, triangles, rectangles, wedges, megaphones and V reversals, plus gold

Indicator v5 BreakoutSMC / ICT / price action
Updated yesterday · None stated GitHub repository of Muster-Scanner v9.1

Advanced Trade Metrics

by pineforge-4pass
1 stars

Advanced Trade Metrics is an overlay breakout strategy that uses a 20-bar Donchian channel to generate trade signals. It opens long positions when the closing price breaches the prior 20-bar high and short positions when it drops below the 20-bar low. Position

Strategy v6 BreakoutTrend
Updated 6 days ago · Apache-2.0 GitHub repository of Advanced Trade Metrics

A strategy that defines a 30-minute range, waits for a breakout, then looks for a retracement into a configurable percentage band before entering on a lower-timeframe trigger. The range can be each closed 30-minute candle, the session opening range, or a matur

Strategy v6 BreakoutSupport & resistance Repaints
Updated 7 days ago · GPL-3.0 GitHub repository of 30m Range Retracement + 5m Entry Strategy

Donchian Breakout

by quantxaashish
1 stars

Donchian Breakout identifies potential momentum shifts based on Donchian channel extremes. It calculates highest highs and lowest lows across a user-defined lookback period. A bullish signal triggers when the current high matches or exceeds the channel high an

Indicator v5 BreakoutTrend
Updated 13 days ago · MIT GitHub repository of Donchian Breakout

Range XV [ATAS Style]

by pranay123-stack
1 stars

A price-chart overlay that groups bars into custom range blocks. A developing range closes when its high-low span reaches the chosen point size and volume is at least a set multiple of its recent average. A box shows the forming range, a triangle marks the dir

Indicator v5 VolumeBreakout
Updated 5 weeks ago · None stated GitHub repository of Range XV [ATAS Style]

Inside Bar Breakout

by JACKZHOU0521
1 stars

The Inside Bar Breakout indicator identifies inside bar patterns and detects subsequent price breakouts beyond the mother bar boundaries. It marks inside bars with diamonds, plots mother bar high and low reference lines, and generates close-confirmed breakout

Indicator v6 BreakoutCandlestick patterns
Updated 5 weeks ago · None stated GitHub repository of Inside Bar Breakout

ORB + ICT Backtest Strategy v2

by mccallister-dev
1 stars

This strategy defines opening range breakouts within Asian, London and New York sessions using ATR-based width and buffer filters. It identifies potential entries on breakout after a retest followed by continuation, applying ICT-style context and SMC proxies f

Strategy v6 BreakoutSMC / ICT / price action
Updated 5 weeks ago · None stated GitHub repository of ORB + ICT Backtest Strategy v2

BTCUSD Short Only

by Pr-ashant-pawar
1 stars

A Pine v6 indicator that looks for short setups using a 5-period EMA on the price chart. It finds runs of candles that stay entirely above the EMA, waits for a close below the low of that run, then waits for a pullback to that level before marking a short entr

Indicator v6 TrendBreakout
Updated 7 weeks ago · None stated GitHub repository of BTCUSD Short Only

CH033 ORB+ Strategy

by sandovalchristian033
1 stars

A Pine v6 backtest strategy for the New York opening range on index futures. It marks the 09:30 to 09:45 range, then looks for a break by wick or close, a return inside the range, and a close across session VWAP in the opposite direction before entering. Stop

Strategy v6 Sessions & timeBreakout
Updated 2 months ago · None stated GitHub repository of CH033 ORB+ Strategy

Daddy's Turtle Strategy

by timoanttila
1 stars

Daddy's Turtle Strategy is an indicator that marks long and short entries when a candle closes beyond the highest high or lowest low of a configurable lookback, plus an ATR buffer. Candles must have a minimum body share and must not exceed a maximum ATR size.

Indicator v6 BreakoutTrend
Updated 2 months ago · GPL-3.0 GitHub repository of Daddy's Turtle Strategy
1 stars

This strategy plots the Donchian Channel bands on the price chart to identify breakouts. It enters a long position by placing a buy stop order when price breaks above the upper band during a target execution hour. The order remains open until filled or cancele

Strategy v6 BreakoutVolatility & bands
Updated 2 months ago · None stated GitHub repository of Tn Sovereign Donchian Breakout

Alien Wash

by XingHan98
1 stars

Alien Wash is a price-chart indicator that draws the latest green horizontal line at the previous candle high after an up close beyond a USD buffer, and the latest red line at the previous candle low after a down close beyond that buffer. A buy signal fires wh

Indicator v5 Support & resistanceOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Alien Wash

Dollar Cross Play

by majohnst
1 stars

The Dollar Cross Play strategy detects price breakouts above a user-defined dollar threshold. It qualifies long entries by verifying that the previous day's close was at or below a maximum ceiling, aiming to capture fresh crosses rather than overextended moves

Strategy v6 BreakoutSupport & resistance
Updated 4 months ago · None stated GitHub repository of Dollar Cross Play
1 stars

A Pine v6 strategy variant for 15-minute Bitcoin perpetual charts that trades RSI momentum breakouts. Entries use RSI levels with a gap, plus candle color, EMA 200, ATR and body-size filters, and an optional pullback re-entry. This version sets a tighter fixed

Strategy v6 Oscillators & momentumTrend
Updated 4 months ago · None stated GitHub repository of BTC RSI Momentum v21
1 stars

A strategy version of a chart pattern detector. It builds a zigzag from pivots, finds patterns such as double and triple tops and bottoms, head and shoulders, triangles, rectangles, cup and handle, flags and wedges, and scores their quality. Trades are entered

Strategy v5 BreakoutSupport & resistance Repaints
Updated 4 months ago · None stated GitHub repository of Chart Pattern Detector v2 Backtest

Titan Edge Multi Strategy

by spfogels-web
1 stars

A futures strategy that bundles five entry styles, pivot rejection, dynamic zone rejection, opening range breakout, VWAP rejection and EMA bounce, each of which can be switched on or off. Trades pass optional filters for VWAP, EMA, RSI momentum, volume, a VIX

Strategy v6 BreakoutSupport & resistance
Updated 5 months ago · None stated GitHub repository of Titan Edge Multi Strategy

PA Strategy Backtest

by Chovy-King
1 stars

A strategy version of a price-action signal set with eleven switchable entry setups, such as trend breakout, trend pullback, false breakout of a key level, range edge, breakout retest and double top or bottom. Levels come from clustered swing points, with 20,

Strategy v6 Support & resistanceTrend
Updated 6 months ago · None stated GitHub repository of PA Strategy Backtest

AlgoBot FHB Strategy Long Only

by ghostnathan30-ops
1 stars

A long-only first-hour breakout strategy for Nasdaq futures on the 15-minute chart. It records the 9:30 to 10:30 New York range, then enters at the close of the first bar after 10:30 that closes above it while price is above a 50-period EMA. The stop is an ATR

Strategy v6 BreakoutSessions & time
Updated 6 months ago · None stated GitHub repository of AlgoBot FHB Strategy Long Only
1 stars

A strategy for automated order routing that formats alert messages for a MetaTrader connector service. Inputs cover a license identifier field, symbol prefix, suffix and mapping, lot size, a magic number, a pip multiplier and a base risk percentage. Selected i

Strategy v6 Breakout
Updated 7 months ago · None stated GitHub repository of Energy Block V11 Auto Strategy
1 stars

An indicator for one-hour charts that plots a Donchian channel from the highest high and lowest low over a set number of bars. A close beyond the prior channel edge marks a long or short breakout, and an ATR-multiple trailing stop line tracks the exit. An opti

Indicator v6 BreakoutTrend
Updated 7 months ago · None stated GitHub repository of V18 Donchian Channel Breakout
1 stars

A price-chart overlay for DAX, based on the Advanced School Run Strategy. Inside a configurable session window in Berlin time, it numbers the opening five candles, takes the fourth candle's high and low and draws buy and sell breakout lines offset by a buffer

Indicator v6 Sessions & timeBreakout
Updated 7 months ago · None stated GitHub repository of TraderTom's ASRS Indicator
1 stars

This strategy implements the classic Turtle Trading System using Donchian channels. It enters long when the price breaks above the upper entry channel and short when it breaks below the lower channel, with an optional filter that skips signals following a winn

Strategy v5 BreakoutTrend
Updated 7 months ago · None stated GitHub repository of Donchian Channel - Turtle Trading

Calculates and plots various classical chart patterns directly on the price chart using swing high and low detection libraries. It automatically identifies formations such as double and triple tops or bottoms, head and shoulders, flags, pennants, wedges, Ellio

Indicator v5 Support & resistanceBreakout Repaints
Updated 9 months ago · None stated GitHub repository of All Chart Patterns [theEccentricTrader]
1 stars

This strategy wraps a breakout candle system in a framework that handles position sizing, trade tracking and logging. Settings cover a gap zone block around midnight in the Prague time zone, the number of candles in an accumulation zone, a risk percentage per

Strategy v6 BreakoutSessions & time
Updated 10 months ago · None stated GitHub repository of Breakout Candle Strategy V24
1 stars

A chart-overlay indicator that adds slope-based measures to common indicators. It tracks RSI slope, moving average slope, a Bollinger squeeze test, MACD momentum, volume trend, price acceleration and a linear-regression trend strength. Recent pivots give suppo

Indicator v6 Oscillators & momentumBreakout
Updated 10 months ago · None stated GitHub repository of Predictive Crypto Trading Bot Pro

Breaks and Retests [HG]

by christonomous
1 stars

This indicator identifies pivot highs and pivot lows to map support and resistance levels directly on the price chart. It detects breakouts beyond these zones and signals subsequent retest attempts with visual labels and boxes. Users can adjust the pivot lookb

Indicator v5 Support & resistanceBreakout Repaints
Updated 11 months ago · None stated GitHub repository of Breaks and Retests [HG]

Breakout Probability

by angrysky56
1 stars

Measures how often price has reached levels placed at fixed percentage steps above and below a reference and shows those hit counts as probabilities. It draws a set number of level lines on the price chart, optional labels and a statistics table, and can fill

Indicator v5 BreakoutSupport & resistance
Updated 11 months ago · MIT GitHub repository of Breakout Probability
1 stars

The Bollinger Squeeze Indicator measures volatility contraction by comparing Bollinger Bands with Keltner Channels. It calculates standard deviation-based bands and ATR-based channels around a simple moving average. When the Bollinger Bands contract inside the

Indicator v5 Volatility & bandsBreakout
Updated 11 months ago · None stated GitHub repository of Bollinger Squeeze Indicator

A Pine version 5 price-chart indicator that marks the opening range of each session, taken from a chosen time period or a custom session and timezone. It plots the range high and low with a shaded box and prints breakout signals when price closes outside the r

Indicator v5 Sessions & timeBreakout
Updated 12 months ago · MIT GitHub repository of LuxAlgo Opening Range with Breakouts and Targets v5
1 stars

A pivot breakout strategy designed for the S50 futures on a 30-minute chart. It detects swing highs and lows from left and right bar counts and places stop entries just beyond them. Stops sit one ATR beyond the pivot, targets are ATR multiples set by a risk to

Strategy v6 BreakoutSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of S50 TFEX Strategy With ATR

This strategy enters long when price closes above the upper Bollinger Band after being at or below it on the prior bar, and enters short on a close below the lower band. Each trade gets an ATR-based stop loss and take profit using separate multipliers. Band le

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

ATR Channel Breakout

by JoeTonDev
1 stars

A strategy template titled for an ATR channel breakout. The code sets non-pyramiding, a starting capital, a cash commission per order and slippage, then lists numbered section headings for settings, calculations, long and short conditions and entry and exit or

Strategy v5 BreakoutVolatility & bands
Updated 2 years ago · None stated GitHub repository of ATR Channel Breakout

KC Integration

by Sikako
1 stars

KC Integration is a trading strategy that calculates multiple sets of Keltner Channels tailored for both trend-following and counter-trend conditions. It plots upper, middle, and lower channel bands directly on the main price chart to identify potential breako

Strategy v5 Volatility & bandsBreakout
Updated 3 years ago · None stated GitHub repository of KC Integration

This indicator plots a Donchian channel with a long default period of 1440 bars, its midline and a 250-period simple moving average on the price chart. When a high reaches the upper band, or a low reaches the lower band, on volume above a multiple of its movin

Indicator v4 BreakoutMean reversion
Updated 4 years ago · MIT GitHub repository of Greeffer's Donchian Channel Study

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