Pine Library · 966 open-source scripts

Free Breakout Pine Scripts (page 8)

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

This strategy enters long when the close breaks above the prior lookback high and volume exceeds its simple moving average, but only if a VIX regime score is at least three. The score counts whether the VIX to three-month VIX ratio and the VIX level sit below

Strategy v5 BreakoutVolatility & bands Repaints
Updated 10 months ago · MIT GitHub repository of Auto Breakout Strategy mit VIX Heatmap Gate

Breakout Indicator

by Web3Degenerate
2 stars

Breakout Indicator plots high and low threshold levels for a chosen timeframe, such as daily, directly on the price chart. When price closes above the high or below the low, the indicator displays a breakout shape and marks ATR-based stop loss and take profit

Indicator v5 BreakoutSupport & resistance
Updated 2 years ago · None stated GitHub repository of Breakout Indicator
1 stars

An indicator on the price chart exported from an optimiser, with a long list of switchable entry patterns, all off by default in the visible settings. Options include pivot points, engulfing and pin bar candles, Bollinger, Donchian and ATR channel breakouts, m

Indicator v6 BreakoutCandlestick patterns
Updated yesterday · None stated GitHub repository of USE Optimizer Export

BB Squeeze Breakout

by pineforge-4pass
1 stars

A strategy that detects a volatility squeeze when Bollinger Bands sit inside Keltner Channels. After a squeeze, it waits for the bands to expand outside the channels, then enters long if a linear regression momentum value is positive or short if it is negative

Strategy v6 Volatility & bandsBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of BB Squeeze Breakout

A strategy that classifies each bar as bull or bear trend, bull or bear expansion, chop or neutral using EMA slope, ADX and an ATR ratio, with an optional higher timeframe EMA bias. Depending on the regime it uses trend pullback entries, expansion breakout ent

Strategy v6 TrendBreakout Repaints
Updated 7 days ago · GPL-3.0 GitHub repository of Adaptive Market Regime Hierarchy Strategy v1

Overnight Range Breakout

by JACKZHOU0521
1 stars

This script tracks high and low levels established during a defined overnight trading session in exchange time. Once the overnight session completes, the indicator plots frozen horizontal high and low boundary lines on the price chart. When price closes above

Indicator v6 Support & resistanceBreakout
Updated 5 weeks ago · None stated GitHub repository of Overnight Range Breakout

Range Detect Breakout

by tthanhvu002sgu
1 stars

Detects compressed ranges on the price chart and marks breakout points with triangles at the range high and low. A range is flagged when the recent high-low span is small against its longer average and the bars overlap enough. A daily EMA, default 100 periods,

Indicator v6 BreakoutSessions & time
Updated 3 months ago · None stated GitHub repository of Range Detect Breakout
1 stars

This indicator identifies market structure and price imbalances directly on the price chart using smart money concepts. It tracks pivot points to label higher highs, higher lows, lower highs, and lower lows, while plotting break of structure and change of char

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · None stated GitHub repository of SMC Market Structure Indicator

TTM Squeeze Box

by riegodavid-git
1 stars

An overlay indicator that draws a box around each squeeze period. A squeeze starts when the Bollinger Bands move fully inside the Keltner Channel. While it lasts, a border-only box grows to follow the highest high and lowest low, and it is left on the chart wh

Indicator v6 Volatility & bandsBreakout
Updated 4 months ago · None stated GitHub repository of TTM Squeeze Box

QUANT-OMEGA Strategy

by princeleuel-code
1 stars

A strategy version of the QUANT-OMEGA regime and ensemble signal. It classifies the market with ADX and ATR, scores trend, mean-reversion and breakout signals into a confidence value, and enters only above set thresholds. Stops and targets are ATR multiples. P

Strategy v5 TrendMean reversion
Updated 5 months ago · None stated GitHub repository of QUANT-OMEGA Strategy

ORB

by onlyspx
1 stars

This indicator marks the opening range of the trading session on the price chart. The range period can be 5, 15, 30 or 60 minutes, or a custom session and time zone for non-US markets. It draws the range high and low, an optional shaded box and midpoint, plus

Indicator v5 Sessions & timeBreakout
Updated 6 months ago · None stated GitHub repository of ORB

Energy Block V11 Balanced

by shawnwong84
1 stars

The balanced 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 inde

Strategy v6 Breakout
Updated 7 months ago · None stated GitHub repository of Energy Block V11 Balanced

ORB Pullback

by Prat617
1 stars

This strategy identifies an Opening Range based on user-defined Eastern Time session parameters and waits for a breakout. Rather than chasing the initial move, it enters positions when price pulls back to retest the Opening Range boundary with volume and EMA t

Strategy v6 BreakoutMoving averages
Updated 7 months ago · MIT GitHub repository of ORB Pullback
1 stars

This strategy builds the high and low of a configurable Asian session and locks that range when the session ends. During the London window it enters long when price closes above the range high plus a pip buffer, or short when it closes below the range low minu

Strategy v5 BreakoutSessions & time Repaints
Updated 7 months ago · None stated GitHub repository of London Breakout - Session Strategy

This overlay indicator draws trendlines on the price chart and marks breakouts with optional targets. It builds a slope from successive changes in a wick or body source over a user-set period, then extends the line by a selected multiple of the bar interval. P

Indicator v5 TrendVolatility & bands
Updated 9 months ago · None stated GitHub repository of Trendline Breakouts With Targets [ Chartprime ]
1 stars

A strategy built around the first regular-session candle of the US day in New York time, together with rejection levels collected from wicks formed during pre-market and after-hours sessions. Rejection levels within a tolerance percentage are grouped. Options

Strategy v5 BreakoutSessions & time
Updated 11 months ago · Custom licence GitHub repository of Breakout Strategy - Step by Step

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, with alerts for price crossing above the high or below the low. It also plots VWAP, pivot-based support and

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

Min-Max Strategy

by creatidy
1 stars

A strategy that trades breakouts of a rolling high and low channel, filtered by a long moving average adjusted for relative strength. Stop orders are placed at the upper channel for longs when the channel low is above the adjusted level, and at the lower chann

Strategy v4 BreakoutTrend
Updated 3 years ago · GPL-3.0 GitHub repository of Min-Max Strategy

This indicator turns Bollinger Bands, Keltner Channels or the average of both into a single normalised line in a separate pane, computed from Heikin Ashi close prices over a 200-bar window by default. The line is coloured lime above a bullish breakout level, r

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

This strategy plots VWMA-based Bollinger bands on the 1-minute ES futures price chart for volatility analysis and potential breakout identification. It calculates dynamic long and short stop loss and take profit levels using percentage inputs relative to entry

Strategy v6 Volatility & bandsSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of V1.6 ES - Futures 1M No Repaint

This trend breakout strategy plots Donchian Channels consisting of upper, lower, and middle bands directly on the main price chart. Long positions enter when price touches the upper channel and pulls back to or below the middle band, placing a stop loss at the

Strategy v6 TrendBreakout
Updated 2 months ago · MPL-2.0 GitHub repository of Donchian Strategy - Dynamic TP, Fixed SL, 1% Risk, Daily Target

IB / ORB Live Stats

by TamaraKGreen
46 stars

This overlay indicator marks the New York initial balance and a configurable opening range on the price chart and reports live range statistics in two tables. It builds an IB box for a default 09:30–10:30 ET window, an ORB box from 09:30 for a set number of mi

Indicator v6 Sessions & timeBreakout
Updated 7 weeks ago · None stated GitHub repository of IB / ORB Live Stats

Turtle MACD Time-Zone Filter

by skywalker0803r
42 stars

This strategy enters long when price closes above the prior Donchian high and short when it closes below the prior Donchian low, only while flat and inside a Taipei-hour window. It exits on a MACD histogram reversal or through an ATR stop and a percentage take

Strategy v5 BreakoutOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Turtle MACD Time-Zone Filter
23 stars

Point-Clip Unified Indicator plots breakout and directional labels on the price chart. It scores volume spikes against a volume average, range or opening-range breaks, optional VWAP or session-anchored VWAP, fast and slow EMA trend, and a higher-timeframe EMA

Indicator v6 BreakoutVolume Repaints
Updated 3 weeks ago · Custom licence GitHub repository of Point-Clip Unified Indicator

Donchian Channel Breakout - Eterna

by EternaHybridExchange
9 stars

This strategy plots Donchian Channel bands, a middle line, and breakout signals directly on the price chart. It opens long positions when price breaks above the upper band and short positions when price breaks below the lower band, evaluated after confirmation

Strategy v5 TrendBreakout
Updated 7 months ago · MIT GitHub repository of Donchian Channel Breakout - Eterna

Ichimoku Breakout

by muammeryldrm42
7 stars

This strategy executes trades based on Ichimoku Kinko Hyo breakouts combined with Tenkan-sen and Kijun-sen crosses. A long position triggers when price closes above the cloud top while the Tenkan-sen crosses above the Kijun-sen within a bullish cloud. A short

Strategy v5 TrendBreakout
Updated 3 months ago · MIT GitHub repository of Ichimoku Breakout

Edge 71

by subos2008
6 stars

This strategy plots prior high and low breakout levels on the price chart and trades a long breakout. It goes long when the bar high exceeds the previous bar's highest high over a user-set lookback, and it closes that long when the bar low breaks the previous

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

TheStrat Setup Screener

by 345-strategies
5 stars

This indicator screens Rob Smith's TheStrat setups across six configurable timeframes for TradingView's Pine Screener. It classifies bars and exposes inside reversals, 2-2 reversals and continuations, failing 2s, range expansions, and outside bars as numeric p

Indicator v6 Candlestick patternsSupport & resistance Repaints
Updated 3 days ago · MPL-2.0 GitHub repository of TheStrat Setup Screener

ICT Concepts [LuxAlgo]

by rubystar0512
5 stars

This indicator identifies and visualizes key Inner Circle Trader (ICT) market structure concepts directly on the price chart. It detects Market Structure Shifts (MSS), Breaks of Structure (BOS), bullish and bearish Order Blocks (OB), Volume Imbalances, Fair Va

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 years ago · None stated GitHub repository of ICT Concepts [LuxAlgo]

This short-only trading strategy combines 20 and 50 period Exponential Moving Averages with a pivot low breakout filter. A short entry triggers when the 50 EMA is above the 20 EMA, recent candle closes remain below the 50 EMA while reaching above the 20 EMA, a

Strategy v4 TrendMoving averages
Updated 3 years ago · Apache-2.0 GitHub repository of 20 EMA + 50 EMA + Breakout Short Strategy (5M)

RSI EMA Breakout

by latentwill
4 stars

This strategy trades momentum breakouts by combining an Exponential Moving Average with the Relative Strength Index. It enters a long position when the closing price is above the EMA and the RSI crosses above the breakout threshold. It enters a short position

Strategy v5 TrendOscillators & momentum
Updated 7 days ago · None stated GitHub repository of RSI EMA Breakout

RSI-7 Breakout

by aofwittawat
4 stars

This strategy identifies breakout trades using a 7-period RSI combined with price extreme lookbacks. A long entry triggers when the RSI rises above 70 and price reaches a new lookback high, provided price remains above an optional EMA trend filter and passes a

Strategy v5 Oscillators & momentumBreakout
Updated 4 years ago · None stated GitHub repository of RSI-7 Breakout

RTF Strategy

by blackcat1402
3 stars

RTF Strategy is an overlay strategy that tracks Bollinger bands and a lookback of recent highs and lows to decide long and short cycles. It opens a long or short when price crosses the band by a set pivot level, then closes the trade when a take-profit percent

Strategy v4 Volatility & bandsBreakout
Updated 5 years ago · MIT GitHub repository of RTF Strategy

Strategy Examples

by danielbodnar
2 stars

Strategy Examples is a Pine Script strategy template demonstrating multiple classic technical trading approaches directly on the price chart. It incorporates a moving average crossover system using SMA or EMA, an RSI mean reversion model operating on overbough

Strategy v6 Moving averagesOscillators & momentum
Updated 2 months ago · MIT GitHub repository of Strategy Examples
2 stars

This strategy captures momentum moves on gold by combining Bollinger Band breakouts with EMA trend confirmation. It restricts trade entry to active European and US trading sessions based on specified hours. Exits are managed dynamically through an ATR-based in

Strategy v6 BreakoutTrend
Updated 4 months ago · None stated GitHub repository of XAUUSD Momentum Breakout Strategy

Swing Structure - Exact Coordinates

by ifreddyman2014-tech
2 stars

This indicator identifies market structure by calculating pivot highs and lows, detecting breaks of structure (BOS), and highlighting order blocks directly on the price chart. It checks for displacement during breaks using candle body size relative to a simple

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 8 months ago · None stated GitHub repository of Swing Structure - Exact Coordinates
2 stars

This indicator overlays a volatility filter on the price chart. It loads CBOE VIX and VIX3M closes, divides VIX by VIX3M, and smooths that ratio with a five-bar simple moving average. A breakout is marked allowed only when the smoothed ratio is below 0.98 and

Indicator v5 Volatility & bandsBreakout
Updated 10 months ago · MIT GitHub repository of Harter VIX Curve Breakout Filter

2b Reversal

by ashwagamma
2 stars

This indicator identifies 2B reversal patterns across auto-detected or user-defined price levels on the chart. It monitors breakdowns and breakouts against key references such as regular trading hours highs and lows, overnight swings, previous day boundaries,

Indicator v5 BreakoutSupport & resistance
Updated 1 year ago · None stated GitHub repository of 2b Reversal

Breakout Strategy

by Web3Degenerate
2 stars

This strategy detects price breakouts beyond the high or low of a higher timeframe (default Daily) on an intraday chart. When the close crosses above the higher-timeframe high or below its low, it enters long or short, limiting execution to one breakout per di

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

SMC Breakout Overlay

by skipp-dev
1 stars

The SMC Breakout Overlay indicator draws breakout and breakdown boxes on the price chart using Smart Money Concepts structure detection. It triggers on BOS and CHoCH signals from a chosen structure source including library, engine BUS, or local pivots, and can

Indicator v6 SMC / ICT / price actionBreakout
Updated 3 days ago · None stated GitHub repository of SMC Breakout Overlay

Week 02

by moonyroy
1 stars

This indicator plots ZigZag lines on the price chart to map swing highs and lows. It detects break_high and break_low events to identify pivot points. The code supports a primary chart timeframe and optional second timeframe ZigZag with selectable modes such a

Indicator v6 TrendSupport & resistance
Updated 5 days ago · None stated GitHub repository of Week 02

ORB + Targets

by kasutu
1 stars

An opening range breakout indicator that records the high and low of a configurable session window (default 06:00 to 06:20 in a chosen timezone) and draws them on the price chart. After the window closes it marks a close beyond either edge, optionally requirin

Indicator v6 Sessions & timeBreakout
Updated 2 weeks ago · None stated GitHub repository of ORB + Targets

Previous-Day Levels

by JACKZHOU0521
1 stars

Previous-Day Levels plots the prior-day high, prior-day low, and an optional prior-day midpoint directly on the price chart. It evaluates price interactions with these benchmark levels to highlight breakouts and rejections upon bar close. Breakout signals trig

Indicator v6 Support & resistanceBreakout
Updated 5 weeks ago · None stated GitHub repository of Previous-Day Levels

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