Pine Library · 966 open-source scripts

Free Breakout Pine Scripts (page 7)

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

BB Breakout [trugurpala]

by trugurpala
4 stars

This strategy executes trades based on Bollinger Band breakouts and ATR-based dynamic risk management. It opens a long position when price crosses above the upper Bollinger Band and a short position when price crosses below the lower band, provided no position

Strategy v6 Volatility & bandsBreakout
Updated 2 months ago · MIT GitHub repository of BB Breakout [trugurpala]

Dereköy-Darvas

by Kalumur
4 stars

The Dereköy-Darvas indicator combines Darvas Box boundary levels with dual Bollinger Bands plotted directly on the main price chart. It calculates top and bottom box lines based on recent high and low extremes to outline price consolidation zones. Simultaneous

Indicator v5 Volatility & bandsSupport & resistance
Updated 2 years ago · None stated GitHub repository of Dereköy-Darvas
3 stars

Sapphire Fibonacci Strategies is a multi-mode strategy that combines Momentum Breakout, Mean Reversion, and Fibonacci Retracement models built on Fibonacci-period moving averages. It generates long and short trade signals based on price crossovers and moving a

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Sapphire Fibonacci Strategies
3 stars

This strategy implements a trend-following system based on Donchian breakout channels and volatility-adjusted position sizing. It generates long entry signals when the close price breaks above the multi-bar highest high, provided an optional benchmark trend fi

Strategy v5 TrendBreakout
Updated 2 years ago · MIT GitHub repository of Turtle Trend Follow Strategy

Momentum Breakout Strategy

by adminalphabots
2 stars

This strategy plots on the price chart and enters when price closes beyond the prior lookback high or low and also beyond a shorter confirmation range. Long, short, or both directions can be enabled. Optional filters require volume above a volume average or a

Strategy v5 BreakoutVolatility & bands
Updated 8 months ago · MIT GitHub repository of Momentum Breakout Strategy

This indicator plots multiple moving averages including SMA10, SMA50, SMA100, SMA200, Ichimoku conversion and lead lines, and 52-week high and low levels on the price chart. It detects breakouts using volume multiplier, optional gaps, and strong candle require

Indicator v6 BreakoutMoving averages Repaints
Updated 10 months ago · MIT GitHub repository of Ede – MA + Breakout Strategie (Dynamic MAs)

ORB Hunter

by nxtaiapp
2 stars

ORB Hunter is an Opening Range Breakout strategy that identifies price breakouts beyond a defined opening session window (such as 09:30 to 09:45 EST). It places long or short trades when price crosses the opening range bounds with buffer, confirmed by optional

Strategy v5 BreakoutSessions & time
Updated 11 months ago · MIT GitHub repository of ORB Hunter
2 stars

Calculates standard Darvas Box high and low levels based on price pivots over a specified lookback period. The indicator identifies box formations and plots shape markers above and below bars representing the top and bottom boundaries of the active box on the

Indicator v6 Support & resistanceBreakout
Updated 1 year ago · MPL-2.0 GitHub repository of Darvas Box - Last Box Only

Trend Score History

by ryangaraygay
2 stars

Trend Score History calculates a composite trend metric ranging between -5 and +5 by evaluating session VWAP, EMA alignment, price-volume flow, lower-timeframe Donchian channel breakouts, and Opening Range breakouts. It plots the cumulative score as histogram

Indicator v6 TrendOscillators & momentum Repaints
Updated 1 year ago · MIT GitHub repository of Trend Score History

Bollinger Bands

by Web3Degenerate
2 stars

This Pine Script converts a Bollinger Band Breakout indicator into a strategy. It plots Bollinger Bands on the price chart using a 100-period SMA as the middle band with upper deviation of 3 and lower deviation of 1. Signals trigger on price crossing the bands

Strategy v5 Volatility & bandsMoving averages
Updated 2 years ago · None stated GitHub repository of Bollinger Bands

A SuperTrend breakout strategy for crypto perpetual futures. An auto-adapt option picks the DEMA period, ADX threshold and take-profit multiple based on whether the symbol is Bitcoin or Ethereum, or manual values can be used. Position size comes from a fixed o

Strategy v5 BreakoutTrend Repaints
Updated 3 days ago · MIT GitHub repository of ST Breakout V10.0 Multi-Asset Strategy
1 stars

A strategy for one-minute charts that trades a breakout of a short opening probe at the cash open in a chosen time zone. It limits entries to the first breakout of the day within a time window and offers fixed risk-multiple, ATR bracket, time-based or session-

Strategy v6 Sessions & timeBreakout
Updated 7 days ago · GPL-3.0 GitHub repository of Academia TORB v1.5 Volatility-Regime ORB

Opening Range Breakout

by JACKZHOU0521
1 stars

The Opening Range Breakout indicator identifies high, low, and midpoint levels established during a customizable initial window of the trading day. Once the opening window ends, the range boundaries are frozen and drawn directly on the main price chart. The sc

Indicator v6 BreakoutSupport & resistance
Updated 5 weeks ago · None stated GitHub repository of Opening Range Breakout
1 stars

An intraday strategy for stocks that gap up before the open. It qualifies a symbol by gap size, price band and premarket volume, then trades an opening-range breakout with a volume surge, limited to a set number of trades per day and a cut-off hour in New York

Strategy v6 BreakoutSessions & time
Updated 6 weeks ago · None stated GitHub repository of Premarket Gap Scalper
1 stars

An indicator in a separate pane that scores market compression from 0 to 100 by combining percentile ranks of ATR, Bollinger Band width and Donchian width with narrow-range bar patterns and quiet volume, each with an adjustable weight. It then checks whether a

Indicator v5 Volatility & bandsBreakout
Updated 7 weeks ago · MPL-2.0 GitHub repository of CEP v2 Compression/Expansion Score

Ultimate 5 EMA Quant Engine

by Pr-ashant-pawar
1 stars

A Pine v6 indicator that plots a 5-period EMA and runs a multi-step short-setup tracker on the price chart using data from a chosen timeframe. Signals are filtered by volume against its average and an RSI threshold, then graded A to D. Each grade has its own t

Indicator v6 TrendBreakout
Updated 7 weeks ago · None stated GitHub repository of Ultimate 5 EMA Quant Engine
1 stars

This Pine Script v6 strategy generates multi-layered trading signals plotted directly on the price chart. It combines eight modular signal engines: EMA crossover pullbacks, price action breakouts, RSI momentum and divergence, MACD histogram flips, volume surge

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Advanced Swing Strategy v6
1 stars

A strategy for a Taiwan mini index futures contract that combines a manually updated macro score with chart pattern breakouts. Growth, inflation, valuation and sentiment readings are typed in as inputs and produce a green, red or neutral bias. Entries need fou

Strategy v5 TrendBreakout Repaints
Updated 4 months ago · None stated GitHub repository of Mini Futures Macro Strategy v10
1 stars

This strategy identifies Volatility Contraction Patterns in US stocks using breakout confirmation with volume surge filters. It enters on pattern completion when required conditions such as full TPR or VCP squeeze are met and exits via partial profit targets a

Strategy v6 Volatility & bandsVolume
Updated 4 months ago · None stated GitHub repository of Minervini VCP + SmartMCDX US

Talons EQH/EQL Sweep

by muammeryldrm42
1 stars

This SMC strategy detects EQH and EQL levels from swing pivots using ATR tolerance. It plots EQH as red circles and EQL as green circles on the price chart. Long signals trigger on sweeps where price closes above open after touching EQL on the prior bar. It en

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of Talons EQH/EQL Sweep

Trend Break Indicator

by Chovy-King
1 stars

An indicator version of a trend breakout strategy with BTC, gold and custom presets. It plots 20 and 60 EMAs and marks a triangle when a strong candle breaks the latest swing in the direction of the trend, after filters for higher-timeframe agreement, volume,

Indicator v6 BreakoutTrend
Updated 6 months ago · None stated GitHub repository of Trend Break Indicator

AlgoBot ORB Strategy

by ghostnathan30-ops
1 stars

An opening range breakout strategy for Nasdaq and S&P futures on the 15-minute chart. It records the 9:30 to 10:00 New York range, then enters on the first close beyond it, plus a small point buffer, in line with a 50-period EMA bias, until 11:30. Stops are AT

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

An indicator that detects a volatility squeeze when ATR falls to a low percentile of its recent range, tracks the high and low of the squeeze, and signals a long or short when price closes beyond that range as the squeeze ends. It plots EMA lines with a ribbon

Indicator v6 BreakoutVolatility & bands
Updated 7 months ago · None stated GitHub repository of V19 Volatility Squeeze Breakout

Ichimoku Cloud Strategy

by Basant1Saini
1 stars

This strategy plots Ichimoku Cloud components on the price chart and generates trades based on trend confirmation. It enters long when a bullish Tenkan-Kijun cross occurs above the cloud or upon a bullish cloud breakout, with optional Chikou Span confirmation.

Strategy v5 TrendBreakout
Updated 7 months ago · None stated GitHub repository of Ichimoku Cloud Strategy

A long and short strategy built on a custom momentum index that combines price velocity, log volume and a standardised Bollinger Band width. A trade needs a recent squeeze in band width, the index breaking beyond its own two-deviation band, and price on the co

Strategy v5 BreakoutVolatility & bands
Updated 8 months ago · MIT GitHub repository of Thermodynamic Volume-Price Resonance (TVPR)
1 stars

This indicator detects swing highs and lows using configurable pivot lookback periods and plots upper and lower trendlines directly on the price chart. Slope angles are dynamically calculated using ATR, standard deviation, or linear regression methods. Breakou

Indicator v5 TrendSupport & resistance Repaints
Updated 11 months ago · None stated GitHub repository of Trendlines with Breaks LuxAlgo
1 stars

An intraday strategy that builds a range from the first fifteen minutes after a configurable start time, then looks for breakouts of that range until a set end time. It tracks whether a long or short has been taken or stopped out each day and sizes positions a

Strategy v5 BreakoutSessions & time
Updated 12 months ago · MIT GitHub repository of Range Breakout Strategy UCMO Research

Keltner Channel

by Studentcodee
1 stars

The Keltner Channel strategy plots upper and lower bands on the price chart overlay using an exponential moving average or simple moving average combined with ATR or range calculations. The source crosses the bands to generate signals. It enters long positions

Strategy v6 Moving averagesVolatility & bands
Updated 1 year ago · None stated GitHub repository of Keltner Channel
1 stars

A pivot based strategy intended for the USDTHB futures on a 30-minute chart. It detects swing highs and swing lows using a long left bar count and a one bar right count, tracks the latest levels, and trades breakouts of them with a fixed contract count and a p

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

Volume Price Indicator

by fuyuanyuan
1 stars

This indicator plots colored volume bars on the price chart, where green shows price up days and red shows price down days. It also draws an EMA of volume in yellow. The script detects bullish and bearish divergences by comparing price highs/lows to volume hig

Indicator v6 VolumeMoving averages
Updated 1 year ago · None stated GitHub repository of Volume Price Indicator
1 stars

A long and short strategy using a long simple moving average with bands set a chosen number of standard deviations above and below it, 350 bars by default. It goes long when price closes above the upper band and exits when price falls back under the average; i

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

algo-trade-indian

by akash-yellgetti
1 stars

A strategy-type script for the price chart that marks the high, low and midpoint of the first part of each session, set by start hour and minute inputs, and alerts when price crosses above the high or below the low. It also plots VWAP and a 50-period EMA, pivo

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

Hotch Break Strat

by rajatjpatel
1 stars

A strategy that combines several filters on one chart. Components include an ignition bar marker based on a candle body retracement percentage, fractal detection, three configurable moving averages, an RSI with overbought and oversold levels, a trading range l

Strategy v5 BreakoutOscillators & momentum Repaints
Updated 4 years ago · None stated GitHub repository of Hotch Break Strat

This indicator ranks the current Bollinger Band width against its own recent history to give a percentile from zero to one hundred, drawn in a separate pane with a moving average of that value and extreme high and low levels at 98 and 2 by default. It also cal

Indicator v5 Volatility & bandsBreakout
Updated 4 years ago · None stated GitHub repository of Bollinger Band Width Percentile and BB Breakout

Donchian Pullback Strategy

by Ahmed-GoCode
53 stars

This strategy identifies trend direction from Donchian Channel breakouts and executes trades on pullbacks toward the channel midpoint. A new breakout beyond the previous channel bands sets a bullish or bearish trend state. When price retraces to or across the

Strategy v6 TrendBreakout
Updated 2 months ago · MPL-2.0 GitHub repository of Donchian Pullback Strategy

RSC Trend Trading Study

by readysetcryptocodes
43 stars

This indicator plots Donchian Channels alongside fast and slow simple moving averages directly on the price chart. It generates bullish breakout signals when the high reaches the upper channel while the close is above the 50 SMA (and optionally the 200 SMA). B

Indicator v4 TrendBreakout
Updated 2 years ago · None stated GitHub repository of RSC Trend Trading Study
24 stars

This indicator maps Smart Money Concepts (SMC) market structure directly onto the price chart. It detects internal and swing structure breaks (BOS and CHoCH), tracks bullish and bearish order blocks, identifies fair value gaps (FVG), highlights equal highs and

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 11 days ago · Custom licence GitHub repository of Smart Money Concepts [LuxAlgo] Test B

This trend-following strategy plots Donchian channels and trade signals directly on the price chart. It enters long or short positions upon Donchian channel breakouts and scales in with accelerated pyramiding every fraction of the Average True Range. Position

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 12: Accelerated Pyramid

Candle Breaks 1v1 L+S

by chargersfan47
7 stars

This indicator detects 1v1 candle break patterns where the current candle breaks and closes beyond the open of the prior opposite-colored candle. It projects a 1.618 Fibonacci extension target based on the previous candle's range, calculating the expected perc

Indicator v5 BreakoutCandlestick patterns
Updated 5 months ago · None stated GitHub repository of Candle Breaks 1v1 L+S

Edge 71

by subos2008
6 stars

Edge 71 plots prior-window extremes on the price chart and marks breakout entries. It takes the highest high over a long lookback and the lowest low over a short lookback, both excluding the current bar. A green arrow appears when the bar high exceeds that pri

Indicator v5 BreakoutSupport & resistance Repaints
Updated 2 years ago · Custom licence GitHub repository of Edge 71

This long-only trend-following strategy plots a 20-period short EMA and a 50-period long EMA directly on the price chart. It triggers long entries when the short EMA is above the long EMA, price breaks above a recent pivot high, and specific price action condi

Strategy v4 TrendMoving averages
Updated 3 years ago · Apache-2.0 GitHub repository of 20 EMA + 50 EMA + Breakout Long Strategy (H)
4 stars

This indicator identifies and plots support and resistance zones based on specific Gann cycle timing timestamps. It checks whether lower or higher timeframe bars correspond to pre-configured cycle times, creating zones defined by the bar high and low. When pri

Indicator v6 Support & resistanceBreakout
Updated yesterday · None stated GitHub repository of Gann Cycle Support/Resistance Zones
4 stars

This long-only strategy plots an asymmetric ATR channel around a rolling moving average on the price chart. It enters long when a confirmed close breaks above the upper band and exits when a confirmed close breaks below the lower band. An optional setting exit

Strategy v6 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of RMA ATR Bands (Long Only)
3 stars

Greeffer's Long Study calculates Donchian Channels alongside a volume moving average filter to generate trade signals. When price touches the lower or upper channel boundaries combined with volume exceeding a custom moving average multiplier, the indicator tri

Indicator v4 TrendVolatility & bands
Updated 4 years ago · CC0-1.0 GitHub repository of Greeffer's Long 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