Pine Library · 966 open-source scripts

Free Breakout Pine Scripts (page 9)

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

EMA Channel Reversal

by rubbermetal
1 stars

EMA Channel Reversal is a strategy that plots a 200-period EMA channel built from highs, closes and lows, plus fast and slow momentum EMAs with an optional glow. Entries follow a tracked sequence of breakout, momentum confirmation and pullback, with an alterna

Strategy v6 TrendMoving averages
Updated 4 months ago · MPL-2.0 GitHub repository of EMA Channel Reversal

Talons Ichimoku Breakout

by muammeryldrm42
1 stars

A strategy that computes Tenkan, Kijun and both Senkou lines from highest and lowest midpoints and plots the cloud with a coloured fill. It goes long when price is above the cloud, Tenkan crosses above Kijun and the cloud is green, and short on the mirrored co

Strategy v5 TrendBreakout
Updated 5 months ago · None stated GitHub repository of Talons Ichimoku Breakout

This indicator plots intraday reversal signals and automatic stop loss levels tailored for the 5-minute chart. It identifies three-candle reversal patterns synchronized to 15-minute blocks, triggering buy signals when two consecutive green bars break above the

Indicator v6 Candlestick patternsBreakout
Updated 6 months ago · None stated GitHub repository of Intraday BUY/SELL & AUTO SL (5-min timeframe only) by chaitu50c
1 stars

The quality-first preset of a strategy that routes orders to MetaTrader through connector alert messages. Inputs cover symbol prefix, suffix and mapping, lot size, a magic number, a pip multiplier and a base risk percentage, with higher risk tiers for selected

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

A Pine v5 strategy that draws trendlines through confirmed swing highs and lows on the price chart. Swing pivots are confirmed after a set number of bars to the right, and a minimum slope angle removes flat lines. A trade mode setting chooses between breakout

Strategy v5 Support & resistanceBreakout
Updated 8 months ago · None stated GitHub repository of ATTraderAlgo Auto Trendline Trader

ZigZag PA Strategy

by merdunal
1 stars

This strategy builds a zigzag from candle direction flips, optionally on an alternate timeframe (60 by default) or Heikin Ashi candles. From the last five zigzag points it measures XABCD ratios to flag harmonic patterns such as Bat, Butterfly and ABCD, and plo

Strategy v5 Support & resistanceBreakout Repaints
Updated 2 years ago · None stated GitHub repository of ZigZag PA Strategy

This strategy builds a normalised band reading from Bollinger Bands, Keltner Channels or the average of both, using Heikin Ashi closes over a 200-bar window by default, with an optional EMA smoothing. Bullish and bearish breakout levels at one and zero define

Strategy v5 Volatility & bandsBreakout
Updated 4 years ago · None stated GitHub repository of Breakout Bollinger Band and Keltner Channel Strategy
29 stars

This overlay indicator marks a four-bar bull or bear breakout follow-through sequence on the price chart. It requires a breakout bar and a follow-through bar that extend the prior extreme while holding the prior extreme, then treats a trade through the follow-

Indicator v6 Breakout
Updated 2 weeks ago · MIT GitHub repository of Zen Breakout Follow Through
16 stars

This strategy implements a trend-following Donchian breakout system with pullback-based pyramiding. It initiates trades on Donchian channel breakouts and sizes positions based on ATR volatility risk. Instead of immediately adding units when the trend advances

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 14: Pullback Pyramid
8 stars

This strategy identifies trend retracements and breakout entries using an adjustable moving average ribbon alongside higher-timeframe anchored moving averages, fractal pivots, and support and resistance level extensions. Bar colors can be customized using a 3-

Strategy v5 TrendMoving averages
Updated 4 years ago · None stated GitHub repository of Pullback Trading Tool ALT

Darvas Box AL SAT

by gocaman
3 stars

Calculates Darvas Box upper and lower channel boundaries based on configurable period length to identify trend breakouts. It plots top and bottom box levels directly on the price chart and plots buy (AL) and sell (SAT) signal labels when price crosses outside

Indicator v5 Support & resistanceBreakout
Updated yesterday · None stated GitHub repository of Darvas Box AL SAT
3 stars

This indicator compares each bar's volume with a simple moving average of volume and flags a spike when volume exceeds that average by a user-set multiplier. An up candle is treated as bullish and a down candle as bearish. It paints the chart background and op

Indicator v6 VolumeBreakout
Updated 8 months ago · MIT GitHub repository of Stella's Volume Spike Detector

Failed Breakdown

by ashwagamma
2 stars

Failed Breakdown identifies and tracks key session support levels—including overnight lows, daily lows, and afternoon lows—and detects potential failed breakdowns against them. The indicator monitors price penetration to classify breakdowns into soft, medium,

Indicator v5 BreakoutSupport & resistance
Updated 1 year ago · None stated GitHub repository of Failed Breakdown

Breakout Strategy

by Web3Degenerate
2 stars

This strategy identifies breakouts above or below a higher-timeframe reference level (daily by default) and executes trades with automated position sizing based on risk percentage. Entries occur when the close crosses the reference high or low for the first ti

Strategy v5 BreakoutSupport & resistance Repaints
Updated 2 years ago · None stated GitHub repository of Breakout Strategy

Trendlines - JD

by JorisDuyck
2 stars

This indicator detects pivot highs and pivot lows to construct and plot dynamic trendlines directly on the price chart. It stores pivot coordinates inside a custom pseudo-3D array structure and connects consecutive points using either candle wicks or real bodi

Indicator v4 Support & resistanceTrend
Updated 5 years ago · MIT GitHub repository of Trendlines - JD

Kinetic Kalman Breakout

by kanylbullen
1 stars

A strategy that fits a two-state Kalman filter, tracking position and velocity, to the close price, then builds bands around the filtered price using a multiple of the mean absolute error. It goes long when the close crosses above the upper band and short when

Strategy v6 TrendBreakout
Updated 7 days ago · None stated GitHub repository of Kinetic Kalman Breakout

Fractal Sweep Strategy

by abhinaynatraj
1 stars

A strategy port of the Fractal Sweep CISD indicator. It detects a sweep of a prior candle's extreme, a return and a CISD confirmation, then enters with a stop at the sweep extreme or CISD level and a take profit at a set R:R multiple. Shallow sweep and closed-

Strategy v5 SMC / ICT / price actionBreakout
Updated 3 months ago · None stated GitHub repository of Fractal Sweep Strategy

Pivot Breakout

by majohnst
1 stars

Pivot Breakout is an intraday strategy that identifies breakout opportunities using standard daily floor trader pivot points. It enters trades when price breaks above the calculated daily pivot, provided the prior daily close was within a defined approach dist

Strategy v6 BreakoutSupport & resistance Repaints
Updated 4 months ago · None stated GitHub repository of Pivot Breakout

First Hour Range

by onlyspx
1 stars

This indicator records the high and low of the first hour of the US cash session, from 9:30 to 10:30 on the chart clock, then draws horizontal lines for both. It also draws dashed lines at one and a half times and dotted lines at two times the range, above the

Indicator v5 Sessions & timeSupport & resistance
Updated 6 months ago · None stated GitHub repository of First Hour Range
1 stars

A strategy for range box breakouts whose header comments describe changes from an earlier version: a tighter ATR stop, a trailing profit exit that triggers later, an EMA 50 direction filter, a stricter volume filter and a higher box quality score. Orders are f

Strategy v6 BreakoutTrend
Updated 7 months ago · None stated GitHub repository of Energy Block V12 Optimized

NSE Infinity

by anil-sn
1 stars

A long-only strategy that enters on a close above the prior 20-bar high or on a cross back above a 50 EMA, in both cases only while price is above a 200 EMA. It holds one position sized at 90 percent of equity and exits when the close falls below a Chandelier-

Strategy v6 TrendBreakout
Updated 9 months ago · None stated GitHub repository of NSE Infinity

Donchian Trend

by JoeTonDev
1 stars

A trend-following strategy that goes long when price closes above the prior 20-bar high while a fast EMA is above a slow EMA, and short on a close below the prior 20-bar low when the fast EMA is below. Positions close on a 10-bar opposite extreme, and an ATR-b

Strategy v5 BreakoutTrend
Updated 2 years ago · None stated GitHub repository of Donchian Trend

algo-trade-indian-v1

by akash-yellgetti
1 stars

A strategy-type script for the price chart that plots the high, low and midpoint of the first part of each session, using end hour and minute inputs, and marks those bars. It adds pivot-based support and resistance lines with left and right bar counts, labels

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

A trend-following strategy based on Ed Seykota's Donchian breakout framework, modified to take a single full-risk entry instead of pyramiding multiple units. It enters long or short on 55-bar channel breakouts with ATR-based position sizing and an initial stop

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 15: Single Position

This indicator tracks swing highs and swing lows to generate trend-following trailing stop levels on the price chart. When the closing price breaks above the previous swing high, the system establishes a bullish state using the recent swing low as a trailing s

Indicator v4 TrendBreakout
Updated 4 years ago · None stated GitHub repository of Accurate Swing Trading System

Order Block Strategy

by muammeryldrm42
7 stars

This strategy identifies bullish and bearish order blocks using an average true range impulse filter and plots corresponding boxes on the price chart. It enters positions on price retests of the order block zones, optionally filtered by an exponential moving a

Strategy v5 SMC / ICT / price actionTrend
Updated 3 months ago · MIT GitHub repository of Order Block Strategy

AG Momentum Breakout

by eltonaguiar
4 stars

AG Momentum Breakout is a strategy that identifies continuation signals after pullbacks in trending markets. It filters for uptrends using EMAs and detects recent pullbacks via RSI conditions before entering on RSI crossovers above 50 with ADX confirmation. Th

Strategy v6 TrendOscillators & momentum
Updated yesterday · None stated GitHub repository of AG Momentum Breakout

Intraday Gap Detector

by might-tree
4 stars

This indicator calculates the percentage price gap between the current bar open and the previous bar close on the price chart. When the absolute gap exceeds a hardcoded threshold of 0.2 percent within the past 30 days, it draws an extended horizontal line at t

Indicator v5 Support & resistanceBreakout
Updated 3 years ago · None stated GitHub repository of Intraday Gap Detector

Stella's Bollinger Squeeze

by stella-entry
3 stars

Stella's Bollinger Squeeze plots Bollinger Bands and compares them with a Keltner Channel on the price chart. It marks a squeeze when the Bollinger Bands sit inside the Keltner Channel and a gray background when they sit outside. After the squeeze ends, it mar

Indicator v5 Volatility & bandsBreakout
Updated 8 months ago · MIT GitHub repository of Stella's Bollinger Squeeze

TQQQ ORB v1

by yalili8521
2 stars

Calculates the opening range during the initial minutes of regular trading hours and triggers breakout trades directly on the price chart. Long positions enter when price closes above the opening range high, while short entries trigger on closes below the open

Strategy v6 BreakoutSessions & time
Updated 8 days ago · None stated GitHub repository of TQQQ ORB v1

This strategy generates long entry signals by combining a Donchian Channel breakout with a moving average trend filter, volume confirmation, and a macro volatility regime gate based on CBOE VIX and VIX3M ratios. It enters long positions when prices break above

Strategy v5 TrendBreakout
Updated 10 months ago · MIT GitHub repository of Trend-Breakout System mit VIX Heatmap Gate

XAUUSD Hour Range Reference

by teshmi9z-beep
1 stars

An intraday indicator designed for gold that takes the high and low of one chosen hourly candle, set by an hour input, and extends them across the rest of the day as reference lines. A background tint and triangle markers show when price closes above the high

Indicator v5 Sessions & timeSupport & resistance
Updated yesterday · MIT GitHub repository of XAUUSD Hour Range Reference
1 stars

This strategy combines VWAP bands with a multi-factor momentum scoring system to trade trend continuations. It enters positions during pullbacks or breakouts around VWAP when momentum criteria—derived from EMAs, ROC, RSI, MACD, and ADX—reach user-defined thres

Strategy v6 TrendOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Fusion VWAP Momentum Strategy
1 stars

This price-chart strategy builds a prior-day floor pivot from yesterday’s high, low, and close, plus the related resistance and support levels. It looks for a break above that pivot when the prior close was within a set percentage below it, and can require pri

Strategy v6 Support & resistanceBreakout
Updated 4 months ago · None stated GitHub repository of Pivot Breakout (NON-REPAINT)
1 stars

This indicator assists intraday breakout execution on KLSE stocks. It plots VWAP, EMA 9, EMA 21 on the price chart along with an opening range from the first 30 minutes of the session and a buy zone band above the daily pivot price. Settings control the pivot

Indicator v5 Moving averagesSupport & resistance
Updated 4 months ago · None stated GitHub repository of KLSE Intraday Execution Helper

Energy Block V13

by shawnwong84
1 stars

A box breakout strategy whose header comments describe a focus on cutting losing trades. It uses a wider ATR stop, an extra early exit when floating loss exceeds a multiple of the box height, a strict EMA 50 trend filter, a volume filter and a trailing profit

Strategy v6 BreakoutTrend
Updated 7 months ago · None stated GitHub repository of Energy Block V13
1 stars

ORB - Opening Range Breakout calculates the highest high and lowest low during a configurable opening session and trades breakouts during the subsequent trading session. When the closing price crosses above the opening range high, it enters a long position; cr

Strategy v5 BreakoutSessions & time
Updated 7 months ago · None stated GitHub repository of ORB - Opening Range Breakout
1 stars

This strategy records the high and low during a configurable opening session, defaulting to 09:30–10:00 exchange time, then locks the range when the session ends. It enters long when price closes above the range high and short when price closes below the range

Strategy v5 BreakoutSessions & time
Updated 11 months ago · None stated GitHub repository of Open Range Breakout Strategy

Hello World

by fiji-solutions
1 stars

This educational script calculates and plots 50-bar highest high and lowest low levels directly on the price chart. It highlights breakout conditions by coloring the chart background green when the closing price exceeds the previous 50-bar high, and red when t

Indicator v5 Support & resistanceBreakout
Updated 2 years ago · None stated GitHub repository of Hello World

algo-trade-v11

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 plots pivot-based support and resistance using fifteen left and right bars, labels breaks that coincide wi

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

This strategy executes trades on short-term cryptocurrency charts using a combination of pivot support and resistance levels and a multi-pole smoothed trend filter. Entries trigger when price crosses the smoothed trend line and confirms above or below a short-

Strategy v5 TrendBreakout Repaints
Updated 2 years ago · None stated GitHub repository of SOL 1m - Strategy Candle Bar
23 stars

This strategy evaluates breakout and trend opportunities on the price chart using a weighted composite score of volume, trend, and candlestick structure. It tracks volume spikes, fast and slow EMAs, higher-timeframe EMA trend alignment, opening ranges, and ses

Strategy v6 TrendVolume Repaints
Updated 3 weeks ago · Custom licence GitHub repository of TradingAlpha Point-Clip Strategy
16 stars

This strategy trades Donchian channel breakouts on the price chart and exits on a shorter Donchian channel. It sizes each unit from a percentage of equity and an ATR-based initial stop, then adds units as price moves a set ATR distance, up to a maximum unit co

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 16: Anti-Chop Filters

Launch Pad Setup

by major
2 stars

This indicator identifies consolidation by checking if the closing price stays within a user-defined percentage of three moving averages: a 21-period SMA, a 50-period SMA, and a 65-period EMA. When the condition holds, it plots a green X marker below the candl

Indicator v6 Moving averagesBreakout Repaints
Updated 3 months ago · Apache-2.0 GitHub repository of Launch Pad Setup

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