Pine Library · 966 open-source scripts

Free Breakout Pine Scripts (page 19)

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

2 Candles Inside ATR

by hasnocool
106 stars

2 Candles Inside ATR is an overlay script that measures volatility compression across two consecutive candles. It calculates a smoothed Average True Range (ATR) and compares it against the combined high and low range of the current and previous bars. When the

Strategy v4 Volatility & bandsBreakout
Updated 2 years ago · GPL-3.0 GitHub repository of 2 Candles Inside ATR
6 stars

This Pine Script indicator calculates the Opening Range Breakout (ORB) high and low within user-defined New York or London session times. It plots a colored box on the price chart marking the ORB range and its start bar index. After the session ends it detects

Indicator v5 BreakoutSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of ORB + ICT Hybrid Indicator
1 stars

This validation strategy tests broker execution priority when opposing pending stop orders are active simultaneously. At scheduled times (02:45 and 14:45), when flat, it places paired long and short stop orders at percentage offsets from the closing price. Pos

Strategy v6 BreakoutSessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 80 - Dual Stop Priority

SMC Strategy Hub + Alerts

by eddiebelaval
7 stars

This indicator marks market structure shifts when price closes beyond the prior lookback high or low, then labels a buy or sell with an ATR-based stop and a take-profit distance set by the TP multiplier. Optional boxes highlight bullish and bearish fair value

Indicator v5 SMC / ICT / price actionBreakout
Updated 3 months ago · None stated GitHub repository of SMC Strategy Hub + Alerts
6 stars

This indicator tracks opening range breakout (ORB) windows for the London and New York sessions and identifies ICT-style liquidity grabs. It calculates the high and low boundaries during the configured session periods and plots visual boxes directly on the pri

Indicator v5 BreakoutSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of ORB + ICT Hybrid Indicator
1 stars

This Pine Script v6 strategy is a validation probe that places competing stop entries close to price. At 02:45, while flat, it submits a long stop slightly above the close and a short stop slightly below the close. At 06:15, if a position is open, it closes ev

Strategy v6 BreakoutSessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 81 - dual stop near only

ORB + ICT Hybrid Strategy

by alboogycOdR
6 stars

This strategy builds a New York and London opening range from user-set start and end times and stores the session high and low on the price chart. After the range, it flags a bullish or bearish liquidity grab when price trades beyond the prior range and closes

Strategy v5 Sessions & timeSMC / ICT / price action Repaints
Updated 7 months ago · None stated GitHub repository of ORB + ICT Hybrid Strategy
1 stars

This strategy places two stop orders at 14:45 when flat: a long stop slightly above the close and a short stop slightly below it. Whichever stop fills first opens the position. At 18:15 it closes any open position. Quantity is fixed at one, with zero commissio

Strategy v6 BreakoutSessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 82 - dual stop far only

Target Radar

by eddiebelaval
7 stars

Target Radar is a multi-factor forecasting indicator that plots projection bands, forward boxes, and dynamic target zones directly on the main price chart. It calculates a forecast score by combining z-scores for trend, momentum, volume pressure, and volatilit

Indicator v5 TrendOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Target Radar

ORB ON SLVRBL

by alboogycOdR
6 stars

ORB ON SLVRBL is a strategy that combines Opening Range Breakouts with ICT Silver Bullet concepts, including Fair Value Gaps (FVG) and Market Structure Shifts (MSS). It identifies breakouts based on candle closes or wicks within designated session windows. Tra

Strategy v5 SMC / ICT / price actionBreakout Repaints
Updated 7 months ago · None stated GitHub repository of ORB ON SLVRBL

Squarify 46 v2

by nishpa800
1 stars

Overlay indicator that merges forty-six numbered buy and sell triggers into one study on the price chart. The changelog describes combinations of unified combo, Napalm and Charge engines, Heavy Weapon and Floor patterns, UU, UUU and UUUU streaks, an Omega mark

Indicator v5 BreakoutVolume
Updated 2 months ago · None stated GitHub repository of Squarify 46 v2

ORB Silver Bullet

by alboogycOdR
6 stars

This overlay indicator marks an opening-range breakout for a chosen session and combines it with fair value gaps, market structure shifts, order blocks, and optional liquidity sweeps. Buy and sell signals depend on the selected execution type, close or wick br

Indicator v5 SMC / ICT / price actionBreakout
Updated 7 months ago · None stated GitHub repository of ORB Silver Bullet
1 stars

This validation probe strategy tests how TradingView handles dual stop-order priority based on script source order. At a fixed time of 02:45, when no position is open, it submits a short stop order below the close followed by a long stop order above the close.

Strategy v6 BreakoutSessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 85 - Dual Stop Short First
6 stars

The Professional ORB + ICT System combines Opening Range Breakout (ORB) techniques with Smart Money Concepts on the price chart. It defines session opening ranges across major global sessions, classifies range width using ATR metrics, and tracks Relative Volum

Indicator v5 SMC / ICT / price actionBreakout
Updated 7 months ago · None stated GitHub repository of Professional ORB + ICT System
106 stars

This long-only trend-following strategy identifies breakout trades by requiring price to breach a 250-bar high while aligned with 50-period, 150-period, and 200-period Simple Moving Averages. It calculates relative strength against a comparative market benchma

Strategy v4 TrendBreakout
Updated 2 years ago · GPL-3.0 GitHub repository of 365 Day High Breakout Strategy

Trailering K004

by ruckard
13 stars

Trailering K004 is a long-only strategy designed with integrated Zignaly automated alert webhooks. It calculates entry signals and dynamically adjusts capital allocation based on the number of active sub-strategy conditions met over a specified lookback period

Strategy v5 BreakoutVolatility & bands
Updated 1 year ago · None stated GitHub repository of Trailering K004
7 stars

This indicator identifies a specific anchor candle based on user-defined start hour, start minute, and time zone inputs. It calculates the high-to-low price range of that anchor bar to project entry levels, stop losses, and target levels for both buy and sell

Indicator v5 BreakoutSupport & resistance
Updated 3 months ago · None stated GitHub repository of XAUUSD Dynamic Breakout + SL Points

TnS_ICT_V6

by raybird
1 stars

TnS_ICT_V6 is a Pine Script v6 strategy that identifies liquidity sweeps and displacement moves exceeding a multiple of ATR. It detects Fair Value Gaps and Optimal Trade Entries in the 62 to 79 percent retracement zone of the displacement leg to generate buy a

Strategy v6 SMC / ICT / price actionVolatility & bands
Updated 2 months ago · None stated GitHub repository of TnS_ICT_V6

SMC Luxmod Nuburo0

by alboogycOdR
6 stars

This indicator maps Smart Money Concepts (SMC) directly onto the price chart. It detects both internal and swing market structure breakouts, labeling Changes of Character (CHoCH) and Breaks of Structure (BOS). It also highlights bullish and bearish internal an

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of SMC Luxmod Nuburo0

This strategy evaluates multi-factor breakout confluence using a customized scoring system on the price chart. It checks Minervini-style Volatility Contraction Pattern trend templates, TTM squeeze volatility compression, volume dry-up with OBV accumulation, mo

Strategy v6 BreakoutVolatility & bands
Updated 2 months ago · None stated GitHub repository of TnSovereign Breakout Confluence V6

A test strategy from a reference corpus that re-issues a pending stop entry every bar. When the 8-period EMA is above the 21-period EMA it places a buy stop at the previous bar high and cancels the sell stop, and otherwise it places a sell stop at the previous

Strategy v6 Moving averagesBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 94 Stop Entry Cancel No Regime Close
1 stars

Overlay indicator for detecting extreme opening-drive anomalies, drawing swing-based zones and many combined markers. Version three adds a conditional gate requiring a relative volume, Grand Slam, unified combo, all-time high volume, HCT or large displacement

Indicator v5 BreakoutSessions & time
Updated 2 months ago · None stated GitHub repository of TNT Opening Drive OD v3
1 stars

This strategy draws on the price chart and filters directional signals with four optional checks. It compares a fast exponential moving average with a slower one, requires volume above its average when the volume audit is on, and aligns close with a higher-tim

Strategy v6 Moving averagesVolatility & bands
Updated 2 months ago · None stated GitHub repository of TnSovereign Fakeout Confirmed

Volty Expan Close Strategy

by TWODS-CAPITAL
37 stars

Volty Expan Close Strategy is a volatility expansion breakout strategy that enters long or short positions when price exceeds the closing price by a specified ATR multiple. It calculates an ATR-based volatility threshold using a simple moving average of true r

Strategy v5 Volatility & bandsBreakout
Updated 3 years ago · MIT GitHub repository of Volty Expan Close Strategy

SMC Mod Nuburo 5

by alboogycOdR
6 stars

The indicator plots Smart Money Concepts market structure directly on the price chart. It detects real-time internal and swing structure breakouts, including Break of Structure and Change of Character, along with strong and weak high or low levels. It identifi

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of SMC Mod Nuburo 5
1 stars

The strategy detects range expansion by comparing the previous bar's range to its ATR multiple. It places pending stop entries above highs of up bars or below lows of down bars. On trigger it enters positions with take profit and stop loss in ticks using OCA g

Strategy v6 Volatility & bandsSupport & resistance
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 97 - tp/sl gap reversal oca

Trailucering A002

by ruckard
13 stars

Trailucering A002 is a Pine Script strategy template designed for automated crypto trading via Zignaly webhook alerts. It identifies market breakout opportunities and executes trades directly on the main price chart. Position exits are managed using customizab

Strategy v5 Breakout
Updated 1 year ago · None stated GitHub repository of Trailucering A002

Traiversal A001

by ruckard
13 stars

Traiversal A001 is a breakout reversal strategy designed primarily for cryptocurrency trading. It identifies reversal entry opportunities three candles following a breakout and closes positions when a breakout in the opposite direction occurs. The script inclu

Strategy v5 BreakoutMean reversion
Updated 1 year ago · None stated GitHub repository of Traiversal A001
1 stars

A test strategy from a reference corpus that arms pending stop entries after a range expansion. When the previous bar's range exceeds a multiple of the prior ATR, it places a buy stop at the previous high if that bar closed up, or a sell stop at the previous l

Strategy v6 BreakoutVolatility & bands
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 97c Range Expansion Pending Stop

UnfairValueGap B003

by ruckard
13 stars

This strategy calculates the distance between the current price and the opposite end of a recent price gap. It trades against gap completion under the assumption that price will resume the prevailing trend after a partial gap fill. Take profit and stop loss va

Strategy v5 SMC / ICT / price actionMoving averages
Updated 1 year ago · None stated GitHub repository of UnfairValueGap B003

A breakout strategy that scores setups from 0 to 100 using a trend template of stacked moving averages, a volatility contraction check, a squeeze test with Bollinger and Keltner bands, and volume flow. A custom free energy versus fractal entropy measure acts a

Strategy v6 BreakoutVolatility & bands
Updated 2 months ago · None stated GitHub repository of TnSovereign Thermodynamic Breakout
1 stars

This strategy calculates Keltner Channels using an Exponential Moving Average (EMA) for the midline and Average True Range (ATR) scaled by a multiplier for band width. It triggers a long entry when the close price crosses above the upper band and a short entry

Strategy v6 TrendVolatility & bands
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 99 - Keltner Channel Break

A volatility squeeze strategy on the price chart. It detects when Bollinger Bands contract inside Keltner Channels, then waits for the squeeze to release. A long or short entry is considered when price closes outside the band on release and a custom free energ

Strategy v6 Volatility & bandsBreakout
Updated 2 months ago · None stated GitHub repository of TnSovereign Thermodynamic Squeeze

Detects swing break-of-structure (BOS) levels using confirmed pivot highs and lows. It records the most recent confirmed swing points and triggers a long trade when the bar closes above the last pivot high, or a short trade when it closes below the last pivot

Strategy v6 SMC / ICT / price actionBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe bos-curv-probe-01-swing-bos-trigger
1 stars

This overlay strategy combines confirmed pivot break-of-structure with a curved linear-regression and ATR channel. It enters long when price breaks a confirmed pivot high and closes above the slope-adjusted channel midline, and enters short on the symmetric be

Strategy v6 BreakoutSupport & resistance
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe bos-curv-probe-integration
1 stars

This strategy draws an exponential moving average of close and an ATR envelope around it on the price chart. It enters one long contract when close crosses above the upper band and one short contract when close crosses below the lower band, reversing only from

Strategy v6 BreakoutMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe kkb-probe-02-breakout-trigger

PF probe kkb-probe-integration

by pineforge-4pass
1 stars

This strategy combines a one-dimensional Kalman filter with an EMA midline and ATR breakout bands. It enters long when the Kalman estimate rises and close crosses above the upper band, and short when the estimate falls and close crosses below the lower band. A

Strategy v6 TrendVolatility & bands
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe kkb-probe-integration
1 stars

This strategy draws on the price chart and trades structural breakouts. It stores confirmed pivot highs and lows, then looks for a close beyond the last pivot in the direction of an exponential moving average. A thermodynamic check must also pass, with free en

Strategy v6 SMC / ICT / price actionBreakout
Updated 2 months ago · None stated GitHub repository of TnSovereignMarketStructureV20

Alex Days HiLo Rajib

by hasnocool
106 stars

Alex Days HiLo Rajib tracks the highest high and lowest low over a customizable lookback period and overlays them directly on the price chart. When the current high exceeds the previous highest level, the script displays a signal arrow, and another arrow appea

Strategy v4 BreakoutSupport & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of Alex Days HiLo Rajib

Priced Entry demo

by be-thomas
65 stars

This strategy demonstrates priced long entries. After the calendar year passes 2020, it counts bars and, on the first such bar, submits two long stop orders of quantity two that share an OCA cancel group. One stop sits 35 ticks above the bar high and the other

Strategy v4 Breakout
Updated 5 days ago · GPL-3.0 GitHub repository of Priced Entry demo
1 stars

This strategy detects pivot highs and lows to establish swing structure, then identifies liquidity sweeps where price breaks the wick of the most recent pivot and closes back inside it. After a one-bar delay on continuation, it fires long entries on bullish st

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe liquidity-sweep-probe-integration

This strategy detects market regime state transitions based on pivot high and low break levels. It calculates pivot highs and lows using a specified strength setting and updates the market state when the close price breaks above the last pivot high or below th

Strategy v6 TrendBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe Market Shift Probe 03 Shift Driven Entry

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