Pine Library · 966 open-source scripts

Free Breakout Pine Scripts (page 15)

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

1 stars

A long-only breakout strategy built on a Donchian channel, 25 bars by default, drawn on the price chart as upper and lower lines. At a chosen exchange hour each day it places a buy stop at the previous upper band. The order is cancelled if not filled within a

Strategy v6 BreakoutSessions & time
Updated 2 months ago · None stated GitHub repository of TN Donchian Breakout

IWBDT Strategy

by GreyssonEnterprises
1 stars

A strategy version of a multi-timeframe breakout approach. It reads trend from 9 and 18 period EMAs on three higher timeframes, with the chart timeframe optional, and can trade long and short sides independently. Settings include a risk-to-reward target, a ris

Strategy v4 TrendBreakout
Updated 2 months ago · MIT GitHub repository of IWBDT Strategy
1 stars

A Pine v4 strategy using a 12/26 MACD, a 14-period RSI and rolling highs and lows over lookbacks of sixty and two hundred twenty bars. Inputs set take-profit and stop-loss percentages for longs and shorts, and a maximum of four adds. Counters of new highs and

Strategy v4 Oscillators & momentumBreakout Repaints
Updated 4 years ago · None stated GitHub repository of MACD Please 4 (Long Lookbacks)
16 stars

This trend-following strategy generates long and short breakout signals using volatility channels plotted around a simple moving average. It calculates ATR bands for entries and trailing exits, calculating position sizing based on account equity and ATR risk p

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 3: ATR Channel

VWAP Reclaim Strategy

by skipp-dev
1 stars

This overlay strategy trades long and short when price reclaims an anchored VWAP and then breaks a recent pullback high or low. Optional modes enter on a simple VWAP cross instead. It filters with VWAP slope, a short price-bias EMA, a stacked RSI bias, and rel

Strategy v6 TrendOscillators & momentum Repaints
Updated 3 days ago · None stated GitHub repository of VWAP Reclaim Strategy

ORB Break and Retest v3

by rosijay17-cmd
1 stars

An opening range breakout strategy with two entry modes. Breakout mode enters when price clears the opening range by a tick or ATR-based buffer, and retest mode waits for a pullback to the range boundary using a limit or alternative entry type. The range, entr

Strategy v6 BreakoutSessions & time Repaints
Updated 7 days ago · GPL-3.0 GitHub repository of ORB Break and Retest v3

IWBDT Strategy Indicator

by GreyssonEnterprises
1 stars

An indicator version of a multi-timeframe breakout idea that checks 9 and 18 period EMA direction on three higher timeframes, with the chart timeframe optional. Trend agreement is shown through background colours with adjustable transparency. Inputs set a risk

Indicator v4 TrendBreakout Repaints
Updated 2 months ago · MIT GitHub repository of IWBDT Strategy Indicator
1 stars

A Pine v4 strategy combining a 12/26 MACD, a 14-period RSI and rolling highs and lows over lookbacks of twenty and two hundred twenty bars. Inputs set long and short percentage stops, an RSI level for closing longs in a short zone, a short-selling switch and a

Strategy v4 Oscillators & momentumBreakout
Updated 4 years ago · None stated GitHub repository of MACD Please 4 (Percent Stops)
46 stars

This indicator identifies inside bars and outside bars, classifying each by close direction as bullish or bearish. It tracks cumulative occurrences and evaluates how often subsequent price action breaks the high or low of each pattern. A summary table drawn on

Indicator v5 Candlestick patternsScreeners & dashboards
Updated 7 weeks ago · None stated GitHub repository of Inside bar/outside bar - stats
16 stars

This strategy trades Donchian channel breakouts on the price chart and can take both long and short positions. It sizes the first unit from a risk percentage of price and ATR, then adds smaller units when price advances by an ATR step and RSI is above or below

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

RR Dangov

by IAMATOMIC001
3 stars

RR Dangov is a price-chart strategy that combines optional confluence modules for entries. The trader selects a primary and a secondary source from Guppy moving averages, VWAP, an opening-range breakout, Supertrend, or CPR, and can add WaveTrend, stochastic, a

Strategy v5 TrendMoving averages
Updated 12 months ago · None stated GitHub repository of RR Dangov

Multi-Order Breakout Strategy

by wynnforthework
2 stars

This breakout strategy enters long positions when the price moves above the upper Bollinger Band, Parabolic SAR, and a 100-period exponential moving average, provided ATR confirms elevated volatility. It allows opening multiple scaled entries up to a user-defi

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

BFI Reversal

by skipp-dev
1 stars

BFI Reversal is a price-chart indicator that marks reversal and continuation setups from pivot structure, clustered zones, and scored flow. It offers balanced or aggressive early-reversal modes and a continuation-breakout mode, with asset profiles for auto, st

Indicator v6 Support & resistanceVolume
Updated 3 days ago · None stated GitHub repository of BFI Reversal

Mantle Keltner Regime

by pineforge-4pass
1 stars

A long-only strategy built on Keltner Channels. It enters long when price crosses above the upper band while the channel centre is above a longer trend EMA. It exits when price closes below the channel centre, or when price falls a chosen fraction of the chann

Strategy v6 Volatility & bandsBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of Mantle Keltner Regime
1 stars

A strategy built on the opening range. It waits for price to break above or below the range, return to the broken level, and then cross back through it in the same direction, at which point it enters. The range duration, buffer percentage, touch or close trigg

Strategy v6 BreakoutSessions & time Repaints
Updated 7 days ago · GPL-3.0 GitHub repository of ORB Break-Return-Cross Strategy

A Pine v4 strategy using a 12/26 MACD, a 14-period RSI and rolling highs and lows over very short lookbacks of two and twenty bars. Inputs set take-profit and stop-loss percentages for longs and shorts of two and ten percent, and up to four adds. Counters of n

Strategy v4 Oscillators & momentumBreakout Repaints
Updated 4 years ago · None stated GitHub repository of MACD Please 4 (Short Lookbacks)

Anand's Strategy

by hasnocool
106 stars

Anand's Strategy is a multi-timeframe breakout strategy that determines overall bias using daily candle data and triggers entries on 15-minute breakouts. It calculates higher-timeframe trend direction by comparing previous daily closes against daily high and l

Strategy v5 TrendBreakout
Updated 2 years ago · GPL-3.0 GitHub repository of Anand's Strategy
16 stars

Implements an adaptive trend-following and range-trading strategy that switches behavior based on ADX regime detection. When ADX exceeds the threshold, it executes Donchian breakouts with fractional pyramiding and Chandelier trailing stops. In low ADX environm

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 41: Sector-Adaptive
1 stars

Calculates support and resistance breakouts by combining key level testing with smart flow filters and Average Trade Size (ATS) proxy monitoring. The indicator tracks price tests against consolidation ranges, lower timeframe volume, order flow delta, and volum

Indicator v6 BreakoutVolume
Updated 3 days ago · None stated GitHub repository of Breakout Finder Intelligent

Q-Trend + KVO Strategy

by TradersPost
228 stars

This strategy combines the ATR-banded Q-Trend indicator with the Klinger Volume Oscillator (KVO) to execute confluence trades. It enters long when a Q-Trend buy trigger aligns with a positive KVO value and a bullish candle confirmation, taking short trades und

Strategy v6 TrendVolume
Updated 3 months ago · None stated GitHub repository of Q-Trend + KVO Strategy

This strategy enters long or short on a Donchian channel break and sizes each unit by risking a percentage of equity against an ATR stop. It adds units as price advances by a fraction of ATR, up to a set maximum. A three-tier time exit uses RSI: fading momentu

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 42: Momentum-Gated Time

Draw - Plot Shape

by Web3Degenerate
2 stars

This educational indicator demonstrates how to use the plotshape function to display visual markers on the chart. It evaluates whether the current close is above the previous bar's high (higher close) or below it (lower close). Green upward triangles and HC la

Indicator v5 Breakout
Updated 2 years ago · None stated GitHub repository of Draw - Plot Shape

Archens Shares

by hasnocool
106 stars

Archens Shares is an intraday breakout strategy designed for session-based trading. It tracks the highest high and lowest low from a 30-minute timeframe during a specified session window, defaulting to 09:45 to 10:15. A long position is entered when the closin

Strategy v5 BreakoutSessions & time
Updated 2 years ago · GPL-3.0 GitHub repository of Archens Shares

This strategy implements a Donchian breakout trend-following system with volatility-adaptive profit targets. It enters long or short on 55-period Donchian channel breakouts, sizes positions by ATR risk, and pyramids up to four units as price advances. Stop los

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

Raschke Patterns

by TradersPost
228 stars

This overlay indicator marks Linda Raschke short-term bar setups on the price chart. It flags Turtle Soup and Turtle Soup plus one false breakouts of a prior extreme, 80-20 bars, inside bars, failed inside-bar breakouts, outside up and down bars, NR4 and NR7 c

Indicator v6 Candlestick patternsBreakout Repaints
Updated 3 months ago · None stated GitHub repository of Raschke Patterns

Donchian Channels

by TWODS-CAPITAL
37 stars

This indicator plots a Donchian channel on the price chart. It calculates the highest high and the lowest low over a user-set lookback, then draws those values as upper and lower bands with a midline equal to their average. The area between the bands is filled

Indicator v5 Volatility & bandsBreakout
Updated 3 years ago · MIT GitHub repository of Donchian Channels
16 stars

Seykota Alt 44: ADX Pyramid is a trend-following strategy that plots on the price chart. It enters positions on Donchian Channel breakouts when the Average Directional Index (ADX) confirms a strong trend. Position sizing uses Average True Range (ATR) risk, wit

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 44: ADX Pyramid
1 stars

This indicator plots CHOCH (Change of Character) and BOS market structure signals on the price chart based on SMC logic. It calculates fast and slow EMAs, RSI, ATR volatility filters, and sweep lookback to detect breakouts and pullbacks. Signals trigger entrie

Indicator v6 SMC / ICT / price actionTrend Repaints
Updated 3 days ago · None stated GitHub repository of CHOCH-Base Indikator (RUNA logic)

Displacement 4x

by nishpa800
1 stars

Overlay indicator running four independent displacement engines on the price chart. Each engine measures candle range as open to close or high to low, compares it with a standard deviation multiple, and marks the candle when a fair value gap confirms on the ne

Indicator v5 SMC / ICT / price actionVolatility & bands
Updated 2 months ago · None stated GitHub repository of Displacement 4x

SCDTM - Unemployment Edition

by GreyssonEnterprises
1 stars

This overlay indicator tracks a multi-checkpoint setup built from trending exponential moving averages, Bollinger Band percent B, and a stochastic RSI crossover. A three- or five-bar fractal marks an unconfirmed signal, then the script stores breakout prices,

Indicator v4 Oscillators & momentumVolatility & bands Repaints
Updated 2 months ago · MIT GitHub repository of SCDTM - Unemployment Edition
16 stars

This strategy enters long or short when price breaks a Donchian channel and RSI confirms the same direction. It sizes each unit from a risk percent of equity and can add units after a set ATR advance, up to a unit limit. An initial ATR stop and a trailing stop

Strategy v6 TrendOscillators & momentum
Updated 12 months ago · None stated GitHub repository of Seykota Alt 45: Dual Momentum

The Market Tradability Engine calculates multi-factor tradability, balance, compression, and direction scores to evaluate market regime quality. It classifies market conditions into eight distinct states, including Balance, Compression, Ready, Breakout, Trend,

Indicator v6 TrendVolatility & bands
Updated 2 days ago · MIT GitHub repository of Market Tradability Engine [WavesUnchained]
106 stars

Calculates a momentum squeeze using Bollinger Bands and Keltner Channels alongside a trend-filtering moving average. It generates long and short entries based on squeeze momentum bar conditions and an optional pre-squeeze dot count filter. Exits can trigger on

Strategy v5 Oscillators & momentumVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Athena Momentum Squeeze - Autoview
16 stars

This strategy implements a Donchian breakout trend-following system with sector-adaptive profit targets and ATR-based volatility sizing. It enters positions on Donchian channel breakouts, pyramiding additional units at ATR increments up to a configurable maxim

Strategy v6 BreakoutTrend
Updated 12 months ago · None stated GitHub repository of Seykota Alt 46: Sector Adaptive
2 stars

This indicator detects market structure breaks using a configurable ZigZag length to identify swing highs and lows. It marks bullish and bearish order blocks along with breaker blocks on the price chart. Breakouts are confirmed via a Fibonacci retracement fact

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of Market Structure Break & Order Block

Q-Trend Strategy

by wynnforthework
2 stars

Q-Trend Strategy builds a midpoint from the highest and lowest source values over a trend period and shifts it by an ATR band. It enters long when the source crosses or remains above the upper band and short when it crosses or remains below the lower band. Typ

Strategy v5 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Q-Trend Strategy
1 stars

This strategy plots market structure on the price chart from confirmed swing highs and lows and flags breaks of those levels. Breaks can use the wick or the close, and structure logic can stay standard or include sweeps. ChoCH mode selects Ping, Verify, or bot

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 3 days ago · None stated GitHub repository of CHOCH-Strategy (Structure Only)
1 stars

A strategy for gold futures based on the initial balance, the high and low of a set New York time window that starts at 9:30 and ends at 10:30 by default. Ranges outside a minimum and maximum percent of price are skipped. After price breaks the range, it waits

Strategy v6 BreakoutSessions & time
Updated 2 months ago · None stated GitHub repository of TN Gold IB Retracement

Squeeze Trailer

by GreyssonEnterprises
1 stars

A Pine v4 indicator built around a TTM-style squeeze, comparing Bollinger Bands with Keltner Channels to flag low-volatility compression and the breakout that follows. It then derives entry, stop and target levels from an entry source, a stop source with a per

Indicator v4 Volatility & bandsBreakout
Updated 2 months ago · MIT GitHub repository of Squeeze Trailer
1 stars

A strategy that trades breaks of swing points. It detects pivot highs and pivot lows using left and right bar counts, then places a long stop order one tick above the latest pivot high and a short stop order one tick below the latest pivot low. A pending order

Strategy v6 BreakoutSupport & resistance
Updated 1 year ago · None stated GitHub repository of Pivot Reversal Strategy

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