Pine Library · 966 open-source scripts

Free Breakout Pine Scripts (page 12)

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

MegaBarAlgo

by Tradehook-org
1 stars

A Pine v5 script that detects unusually large candles on the price chart. A mega bar is one whose high-to-low range exceeds a multiple of its recent average range, optionally with volume above a multiple of average volume. Bullish bars get a green triangle and

Indicator v5 Volatility & bandsBreakout
Updated 8 months ago · None stated GitHub repository of MegaBarAlgo

ES Absolute Trigger

by knectardev
1 stars

This strategy captures the first bar of each new day as an opening range and plots those high and low levels on the price chart. It enters one long position if price trades above the range high, or one short if price trades below the range low, then blocks fur

Strategy v5 BreakoutSessions & time
Updated 9 months ago · None stated GitHub repository of ES Absolute Trigger

This indicator tracks smart money market structure directly on the price chart. It calculates dual-period swing highs and swing lows to detect Changes of Character (CHoCH), Breaks of Structure (BOS), inducements, and liquidity sweeps. When structural levels ar

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · Apache-2.0 GitHub repository of Market Structure with Inducements & Sweeps [LuxAlgo]
56 stars

This indicator calculates dynamic upper and lower trendlines from pivot highs and pivot lows across a specified bar length. Trendline slopes are derived using ATR, standard deviation, or linear regression methods. It plots trendlines and breakout signal labels

Indicator v5 TrendSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of Trendlines With Breaks [LUX]

Morning Scalp

by benso87
24 stars

This strategy tracks an opening session time range to establish directional bias and triggers pullback trades using Stochastic RSI. Once price breaks out of the initial range, it establishes a directional bias and enters when the Stochastic RSI crosses over in

Strategy v5 Sessions & timeBreakout
Updated 4 years ago · MPL-2.0 GitHub repository of Morning Scalp
16 stars

This strategy enters long or short when price breaks a Keltner channel built from an exponential moving average and an ATR multiple. It sizes each unit from a fixed equity risk percentage and an ATR stop, then can add units as price moves in the trade directio

Strategy v6 TrendVolatility & bands
Updated 12 months ago · None stated GitHub repository of Seykota Alt 23: Keltner Channel

This indicator identifies dynamic support and resistance levels using pivot highs and lows. It plots resistance and support lines directly on the price chart once pivot points are confirmed. Additionally, it calculates a volume oscillator using 9-period and 26

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 1 year ago · MPL-2.0 GitHub repository of Support & Resistance Levels with Break of Structure

Smart Money Breakouts strategy

by wynnforthework
2 stars

Smart Money Breakouts strategy is a price-chart overlay strategy that detects breakouts using volume-adjusted swing highs and lows. It calculates candle wicks or bodies, applies ATR-based adjustment for targets, and supports limit-order entries with coefficien

Strategy v5 SMC / ICT / price actionBreakout Repaints
Updated 1 year ago · None stated GitHub repository of Smart Money Breakouts strategy

RussiaFX Strategy

by DaniilOkrug
2 stars

This indicator plots green arrow up shapes on the price chart when the close exceeds the close one bar ago, high one bar ago, and high two bars ago. It plots red arrow down shapes when the close is lower than the close one bar ago, low one bar ago, and low two

Indicator v4 TrendBreakout
Updated 4 years ago · MIT GitHub repository of RussiaFX Strategy

A strategy meant for a 5-minute chart that detects a break of a delta-based level on a 15-minute context, waits for a retest from the correct side, then enters on a reclaim candle. Gates include estimated pressure rotation, candle body and close location, entr

Strategy v6 VolumeBreakout Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of Delta Break and Retest Stage 8.0.2 Profile and Entry Fix

XSP Daily Lotto

by majohnst
1 stars

This indicator tracks intraday key levels, premarket ranges, and opening range boundaries on index instruments like XSP. To compensate for missing premarket data on index charts, it streams and scales MES futures data to compute sentiment thresholds and target

Indicator v5 Support & resistanceSessions & time Repaints
Updated 4 months ago · None stated GitHub repository of XSP Daily Lotto

IB25 Strategy

by riegodavid-git
1 stars

A New York session strategy built on the initial balance, the price range of the first hour after the 09:30 Eastern open. It tracks the high and low of that opening window, draws a box, computes an anchored session VWAP and, once the range has formed, scans a

Strategy v5 BreakoutSessions & time
Updated 4 months ago · None stated GitHub repository of IB25 Strategy
1 stars

A Pine v5 strategy that trades a breakout from a narrow range bar. A bar is narrow when its range is below a set fraction of the average range. Its high and low are stored and drawn as levels, and a close above the high opens a long while a close below the low

Strategy v5 BreakoutVolatility & bands
Updated 8 months ago · None stated GitHub repository of NRBOAlgo Narrow Range Breakout

ES Alpha (Logic Fix)

by knectardev
1 stars

This strategy tracks the opening 1-minute range during regular market hours and trades the subsequent breakout on the price chart. It locks the high and low of the 09:30 to 09:31 session and plots both levels as trigger lines. A long position is taken if price

Strategy v5 BreakoutSessions & time Repaints
Updated 9 months ago · None stated GitHub repository of ES Alpha (Logic Fix)

Higher Close and Lower Close

by fiji-solutions
1 stars

Higher Close and Lower Close is an overlay indicator that highlights simple single-candle price action signals. It monitors whether the current bar closes above the preceding bar's high or below the preceding bar's low. When a close exceeds the previous high,

Indicator v5 Candlestick patternsBreakout
Updated 2 years ago · None stated GitHub repository of Higher Close and Lower Close
257 stars

The ESH2023 5M strategy is a Pine Script v5 indicator for E-mini S&P 500 futures trading on the 5-minute chart. It calculates a Stochastic oscillator from Ichimoku cloud high/low averages using inputs for K period, D period, and smoothing. The script signals l

Strategy v5 Oscillators & momentumBreakout Repaints
Updated 7 weeks ago · None stated GitHub repository of ESH2023 5M - No repaint V1.1
228 stars

This indicator plots dynamic support and resistance levels on the price chart. It detects pivot highs and lows using the pivot length and tracks touches to build strength-based levels. Support and resistance zones appear as colored boxes while lines mark key l

Indicator v6 Support & resistanceBreakout
Updated 3 months ago · None stated GitHub repository of Dynamic Support & Resistance

This strategy trades Donchian breakouts on the price chart and sizes each unit from a percentage of equity. It allows long and short entries, places an ATR initial stop, trails with a chandelier stop, and can add units as price moves by a multiple of ATR, up t

Strategy v6 TrendVolatility & bands
Updated 12 months ago · None stated GitHub repository of Seykota Alt 24: Vol-Adjusted Targets
7 stars

This strategy executes breakout trades based on price channels and moving average trend alignment. It enters long positions when the closing price breaks above its 20-period high while trading above a 130-period simple moving average. Short positions enter whe

Strategy v5 BreakoutTrend
Updated 1 year ago · MPL-2.0 GitHub repository of Weekly Break out Strategy

Bollinger Squeeze STEPFUN

by eltonaguiar
4 stars

This strategy detects Bollinger Band squeezes by measuring band width against a threshold. It waits for a confirmed breakout in either direction when bands expand, using optional volume confirmation. Long and short signals trigger on breakout after squeeze. Po

Strategy v5 Volatility & bandsBreakout
Updated 2 days ago · None stated GitHub repository of Bollinger Squeeze STEPFUN
4 stars

This strategy identifies breakout entries confirmed by elevated trading volume and trend direction. It triggers long entries when the close crosses above the recent highest high, provided volume exceeds its moving average by a multiplier and price remains abov

Strategy v6 BreakoutVolume
Updated 2 months ago · MIT GitHub repository of ETH Momentum Breakout [trugurpala]

A strategy that replaces the break detector of its earlier stage with a CUSUM change point test on the chart timeframe, using a lookback, threshold and slack setting. After a change point it waits for a retest of the regime zone from the correct side, a reclai

Strategy v6 BreakoutVolume Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of Delta Break and Retest Stage 9 Change Point and Volume Pressure

Turtle Trading Strategy

by GreyssonEnterprises
1 stars

This strategy overlays four smoothed moving averages and a trend fill between a two-period EMA and the longest average on the price chart. It marks optional three-line strike and engulfing candle patterns. Inputs set a Donchian channel length, the four average

Strategy v5 TrendMoving averages
Updated 3 months ago · MIT GitHub repository of Turtle Trading Strategy

Gap and Go

by Basant1Saini
1 stars

This strategy trades opening gap continuation on the price chart. It measures the gap between the daily open and the prior daily close, then enters long after a qualifying gap up or short after a qualifying gap down when price stays beyond the open and a trend

Strategy v5 BreakoutOscillators & momentum Repaints
Updated 8 months ago · None stated GitHub repository of Gap and Go

RSGAlgo (Range/Support/Gap)

by Tradehook-org
1 stars

RSGAlgo identifies consolidation ranges, support and resistance pivot levels, and price gaps directly on the chart. It calculates range bounds using a percentage threshold over a custom lookback period and highlights consolidation zones with background colorin

Indicator v5 Support & resistanceBreakout
Updated 8 months ago · None stated GitHub repository of RSGAlgo (Range/Support/Gap)

Five-in-one Strategy

by capissimo
114 stars

Five-in-one Strategy combines five analytical tools into a single price chart overlay: the Dual Thrust Trading Algorithm (DTTA), Semafore, HalfTrend, Nick Rypock Trailing Reverse, and Tweezer or Kangaroo Tail candlestick patterns. It generates trade signals us

Indicator v4 TrendBreakout Repaints
Updated 1 year ago · None stated GitHub repository of Five-in-one Strategy
16 stars

This strategy enters long or short Donchian breakouts and sizes each unit from a percentage of equity and ATR. It sets an initial ATR stop, trails with a chandelier stop, and tightens that trail after a chosen number of bars. Optional profit targets close one

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 25: Time Profit Lock

This indicator detects compressed corrective coils inside a higher-timeframe trend and signals when they resolve into clean directional breaks. It plots compression bands, fractal boxes, efficiency scores, and a light dashboard on the price chart. Signals clas

Indicator v6 Volatility & bandsSMC / ICT / price action
Updated 3 days ago · MIT GitHub repository of Compression Fractal Release [WavesUnchained]
4 stars

Tracks the high and low of a user-defined intraday session and enters breakout trades when the bar closes outside this range. It can enter during the session or wait until the session ends. Long trades enter on a close above the session high, while short trade

Strategy v5 BreakoutSessions & time
Updated 11 months ago · Custom licence GitHub repository of Session Breakout Strategy [Lab]

Trendsignal

by DaniilOkrug
2 stars

Trendsignal plots buy and sell markers on the price chart when a short-term trend flips. It measures the average high-low range and the highest and lowest prices over a fixed nine-bar window, then builds inner thresholds from the RISK setting. A close above th

Indicator v4 TrendBreakout Repaints
Updated 4 years ago · MIT GitHub repository of Trendsignal

Volume Breakout Strategy

by kanylbullen
1 stars

This strategy identifies breakouts using Keltner Channels combined with volume spike filters, ADX trend strength, RSI thresholds, and an optional EMA trend direction filter. It triggers long entries when price crosses above the upper channel and short entries

Strategy v5 BreakoutTrend Repaints
Updated 8 days ago · None stated GitHub repository of Volume Breakout Strategy

Turtle Trading System

by GreyssonEnterprises
1 stars

An indicator that plots a Donchian channel from the highest high and lowest low over a chosen length, with an optional midpoint line and shaded fill. It marks a bullish signal when the upper band rises and a bearish signal when the lower band falls, colours th

Indicator v5 BreakoutTrend
Updated 3 months ago · MIT GitHub repository of Turtle Trading System
1 stars

US Swing Entry Planner plans swing trading entries on daily price charts using dual entry models: pullback limit buys near the fast EMA and breakout buy-stop orders above pivot highs. It calculates ATR-based stop loss and profit targets along with position siz

Indicator v5 TrendMoving averages
Updated 4 months ago · None stated GitHub repository of US Swing Entry Planner
1 stars

This strategy computes the midpoint of the highest high and lowest low over a configurable lookback and enters long when price crosses above that line and short when it crosses below. An exponential moving average of each bar's high-low range is calculated but

Strategy v5 BreakoutSupport & resistance
Updated 4 months ago · MIT GitHub repository of Corpus Custom Function Breakout

Turtle Trading Rules

by webcrack4
1 stars

Turtle Trading Rules is an indicator based on the classic Turtle Trading Channels system, customized to generate JSON payloads for the OKX Signal Bot. It calculates price breakout channels using configurable entry and exit lengths (defaulting to 20 and 10 peri

Indicator v5 TrendBreakout
Updated 9 months ago · None stated GitHub repository of Turtle Trading Rules

His/Lows

by tseitz
1 stars

A Pine v4 strategy that combines rolling highest and lowest values over fast, medium and slow lookbacks with a 12/26 MACD and a 14-period RSI. Inputs set the three lookbacks, an RSI level for closing longs in a short zone, whether shorts are allowed, and two M

Strategy v4 Oscillators & momentumBreakout Repaints
Updated 4 years ago · None stated GitHub repository of His/Lows
16 stars

This overlay strategy trades Donchian breakouts in either direction. The first unit is sized from a risk percent of equity and an ATR-based initial stop; later units are added at fixed ATR steps and are progressively smaller, up to four units. Optional profit

Strategy v6 TrendVolatility & bands
Updated 12 months ago · None stated GitHub repository of Seykota Alt 26: Fractional Pyramid
6 stars

The Capital41 Structure Swings v3 indicator tracks market structure on the main price chart using pivot detection. It identifies swing highs and swing lows based on a user-defined pivot length, plotting labels and horizontal dotted level lines at active swing

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 2 months ago · MIT GitHub repository of Capital41 Structure Swings v3

This long-only strategy overlays 50-period exponential moving averages taken from the daily and four-hour timeframes. It opens a long trade when price is above the daily average, crosses above the four-hour average, and closes above the previous bar high. Exit

Strategy v4 TrendMoving averages Repaints
Updated 3 years ago · Apache-2.0 GitHub repository of Daily Trend + 4H Reversal + 15 Min Pressure Long Strategy

A strategy that estimates bull, bear and neutral state probabilities from recent price transitions and trades only when they pass minimum levels. It adds previous day high and low breakout entries and filters, swing liquidity levels, and an optional 50 to 61.8

Strategy v6 Support & resistanceBreakout Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of Dynamic Markov Capacity PDH/PDL Liquidity Retracements
1 stars

V10 Swing Sniper (KLSE) is a daily chart overlay indicator designed for swing trading Bursa Malaysia equities based on Mark Minervini's Stage 2 and Volatility Contraction Pattern (VCP) principles. It calculates exponential moving averages, relative strength ag

Indicator v5 TrendBreakout
Updated 4 months ago · None stated GitHub repository of V10 Swing Sniper (KLSE)

Inside Bar Breakout

by Basant1Saini
1 stars

Inside Bar Breakout identifies standard and double inside bar candlestick patterns to trade breakout momentum. It sets trigger levels using reference bar extremes plus an adjustable percentage buffer. Once a pattern forms, the strategy waits up to five bars fo

Strategy v5 Candlestick patternsBreakout
Updated 8 months ago · None stated GitHub repository of Inside Bar Breakout

Thrust Breakout Algorithm

by Tradehook-org
1 stars

A Pine v5 script that looks for a price thrust followed by a pullback entry on the price chart. A thrust is a rate of change beyond a percent threshold. A pullback is price easing back toward a short EMA or by a small tolerance after the thrust bar, and an RSI

Indicator v5 Oscillators & momentumBreakout
Updated 8 months ago · None stated GitHub repository of Thrust Breakout Algorithm
47 stars

The Donchian Channels indicator plots the middle basis line as the average of the high and low over the user-defined period. It also draws the upper band as the highest high and the lower band as the lowest low across the same period on the price chart. The ma

Indicator v6 Volatility & bandsSupport & resistance
Updated 8 months ago · MIT GitHub repository of Donchian Channels (DCHANNEL)
16 stars

This trend-following strategy plots Donchian channels and execution signals directly on the price chart. It calculates Average True Range volatility to determine position sizing based on a fixed risk percentage of account equity. Long and short entries trigger

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 27: Asymmetric R/R

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