Pine Library · 966 open-source scripts

Free Breakout Pine Scripts (page 18)

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 indicator scans price action for symmetric, ascending, and descending triangle chart patterns using a sliding window of confirmed swing pivots. It fits upper and lower boundary trend lines across swing highs and lows, rating each pattern with a composite

Indicator v6 BreakoutSupport & resistance
Updated 2 days ago · MIT GitHub repository of Triangle Compression Scanner Pro [WavesUnchained]

Inside Extended

by g-moe
3 stars

Inside Extended tracks inside bar patterns and projects their initial breakout ranges on the price chart. When a candle body falls completely within the high-low range of the prior candle, the indicator marks the inside bar in yellow and establishes the mother

Indicator v5 Candlestick patternsBreakout
Updated 5 months ago · None stated GitHub repository of Inside Extended

Cup & Handle Final

by regalouisei
2 stars

This overlay indicator searches price history for cup and handle shapes using left and right pivot lengths and a lookback of prior pivots. It draws the cup fill, border, and retrace on the price chart. Settings limit how steep the top line may be, how tall the

Indicator v5 BreakoutSupport & resistance
Updated 8 months ago · None stated GitHub repository of Cup & Handle Final
1 stars

This strategy draws Bollinger-style bands on the price chart using ta.sma and ta.stdev of close. It plots upper and lower bands based on the baseline SMA and a multiplier applied to standard deviation. Entries trigger when close breaks above the upper band for

Strategy v6 Volatility & bandsMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 105 - volty expansion close

Brrrrr Strategy

by hasnocool
106 stars

The Brrrrr Strategy is a macro-based breakout strategy designed for crypto markets. It tracks the Glassnode total USDT supply daily metric and calculates a Donchian Channel over a user-defined lookback period. The strategy enters a long position when the USDT

Strategy v5 TrendBreakout
Updated 2 years ago · GPL-3.0 GitHub repository of Brrrrr Strategy

KC Combo 46 Tick

by nishpa800
1 stars

Tick-chart overlay indicator that merges forty-six bullish and bearish combination markers into one study, replacing an earlier bull and bear pair. Combos blend Keltner Channel logic with a VWMA base line, ATR Supertrend, PB and J filter, pocket pivot and a di

Indicator v5 Volatility & bandsVolume Repaints
Updated 2 months ago · None stated GitHub repository of KC Combo 46 Tick
1 stars

This strategy implements a modified Ichimoku Cloud system with causal HTF trend filtering on the price chart. It computes Tenkan-sen, Kijun-sen, Senkou A and B lines using user-set lengths for displacement. Long signals trigger on cloud breakout above with Ten

Strategy v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of TN Sovereign Ichimoku Causal
1 stars

An indicator for the price chart that classifies conditions as trend, range, transition or shock and lets only the matching module signal: a Supertrend flip or continuation in trends, a fade of a completed range edge in ranges, and a break of the completed Asi

Indicator v6 TrendSessions & time
Updated 2 months ago · None stated GitHub repository of NO.1 ULTIMATE BUY/SELL SIGNAL

KC Combo Bear

by nishpa800
1 stars

Time-chart bearish overlay indicator with 23 combination markers that mix Keltner Channel logic with other engines. Inputs cover a VWMA base line, an ATR Supertrend, a PB and J filter, Keltner bands with slope thresholds, pocket pivot size, and a displacement

Indicator v5 Volatility & bandsVolume Repaints
Updated 2 months ago · None stated GitHub repository of KC Combo Bear
6 stars

Institutional CRT Engine Dual Mode implements Candle Range Theory across selectable 1-hour and 4-hour timeframes. It anchors to defined session opening hours across Asian, London, and New York market periods to establish range boundaries. The indicator evaluat

Indicator v5 SMC / ICT / price actionSessions & time Repaints
Updated 7 months ago · None stated GitHub repository of Institutional CRT Engine Dual Mode

KC Combo Bear 44 v4.1

by nishpa800
1 stars

Bearish-only overlay indicator with forty-four combination markers built on Keltner Channel logic, drawn on the price chart. Letter codes on markers show which members fired, such as PB, PBJ, RC, RS, pocket pivot and displacement, and colours are reserved for

Indicator v5 Volatility & bandsVolume
Updated 2 months ago · None stated GitHub repository of KC Combo Bear 44 v4.1

KC Combo Bear 44 v4.4

by nishpa800
1 stars

Bearish-only overlay indicator with forty-four combination markers built on Keltner Channel logic, drawn on the price chart. Letter codes on markers show which members fired, such as PB, PBJ, RC, RS, pocket pivot and displacement. This version removes the per-

Indicator v5 Volatility & bandsVolume
Updated 2 months ago · None stated GitHub repository of KC Combo Bear 44 v4.4
1 stars

A Keltner channel breakout strategy. It goes long when the close crosses above the upper band and short when it crosses below the lower band, only if ADX is above a threshold and price is on the matching side of a 200 EMA. Each trade exits at the channel midli

Strategy v6 BreakoutVolatility & bands
Updated 2 months ago · None stated GitHub repository of TN Sovereign Keltner

NO.1 V1 Final Regime Router

by vedkanani123
1 stars

An overlay signal indicator that routes between three exclusive modes: a trend mode using Supertrend flips or Donchian continuation, a range fade mode, and a transition mode that trades breakouts of a finished Asia range. Shock candles, gaps, micro-ranges and

Indicator v6 Sessions & timeTrend Repaints
Updated 2 months ago · None stated GitHub repository of NO.1 V1 Final Regime Router

KC Combo Bear Tick

by nishpa800
1 stars

Tick-chart bearish overlay indicator with 23 combination markers that mix Keltner Channel logic with other engines. Inputs cover a VWMA base line, an ATR Supertrend, a PB and J filter, Keltner bands with slope thresholds, pocket pivot size, and a displacement

Indicator v5 Volatility & bandsVolume Repaints
Updated 2 months ago · None stated GitHub repository of KC Combo Bear Tick

OutSide Bar Strategy

by TWODS-CAPITAL
37 stars

The OutSide Bar Strategy identifies outside bar candlestick patterns directly on the main price chart. It triggers a long entry when a bar's high exceeds the previous high and its low drops below the previous low, provided the bar closes higher than its open.

Strategy v5 Candlestick patternsBreakout
Updated 3 years ago · MIT GitHub repository of OutSide Bar Strategy

PF probe 52 - stop entry cancel

by pineforge-4pass
1 stars

This strategy compares an 8-period EMA with a 21-period EMA on the price chart. When the fast average is above the slow average it places a long stop at the prior bar high and cancels the pending short; otherwise it places a short stop at the prior bar low and

Strategy v6 Moving averagesBreakout Repaints
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 52 - stop entry cancel

NO.1 V3 Dual-Regime Router

by vedkanani123
1 stars

A price-chart indicator that classifies the market into trend, range, transition or shock regimes using an adaptive core, ATR, ADX, choppiness and efficiency measures. Each regime has its own sleeve: trend-following on structure and momentum, range-edge revers

Indicator v6 TrendBreakout
Updated 2 months ago · None stated GitHub repository of NO.1 V3 Dual-Regime Router
13 stars

This strategy identifies volume-based rebound signals on the price chart. It detects three or more consecutive lower volume candles followed by a higher volume candle, with price remaining lower from the start of the volume sequence, signaling potential long e

Strategy v5 VolumeBreakout
Updated 1 year ago · None stated GitHub repository of Ruckard Voladder D002
1 stars

A price-chart indicator that extends a three-regime signal engine (trend, range edge reversal, breakout) with higher-timeframe context and a transparent confidence score. The higher timeframe uses the previous completed bar, either auto-selected or set manuall

Indicator v6 TrendBreakout Repaints
Updated 2 months ago · None stated GitHub repository of NO.1 V4 MTF Confidence Fusion

PF probe 54 - MTF roll state

by pineforge-4pass
1 stars

This strategy detects roll states in multiple timeframes to generate trading signals on the price chart. It fetches close prices from 60m, 240m and daily bars using request.security. Long entries trigger on a 60m roll up with flat 240m state or on a daily high

Strategy v6 TrendBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 54 - MTF roll state
1 stars

A price-chart indicator that combines trend, range edge reversal and transition breakout sleeves, with shock conditions blocking new signals. It uses an adaptive core, causal trail, completed ranges and a previous completed higher-timeframe filter. Presets suc

Indicator v6 TrendBreakout Repaints
Updated 2 months ago · None stated GitHub repository of NO.1 V5 Ultimate Adaptive Engine

KC Combo Bull

by nishpa800
1 stars

Time-chart bullish overlay indicator with 23 combination markers that mix Keltner Channel logic with other engines. Inputs cover a VWMA base line, an ATR Supertrend, a PB and J filter, Keltner bands with slope thresholds, pocket pivot size, and a displacement

Indicator v5 Volatility & bandsVolume Repaints
Updated 2 months ago · None stated GitHub repository of KC Combo Bull
13 stars

Ruckard Walcrypto DoubleDonchian is a trend-following breakout strategy built on two Donchian Channels with an optional exponential moving average filter. Position entries trigger when price achieves a new high or low on the primary channel, provided the optio

Strategy v5 TrendBreakout
Updated 1 year ago · None stated GitHub repository of Ruckard Walcrypto DoubleDonchian

KC Combo Bull Tick

by nishpa800
1 stars

Tick-chart bullish overlay indicator with 23 combination markers that mix Keltner Channel logic with other engines. Inputs cover a VWMA base line, an ATR Supertrend, a PB and J filter, Keltner bands with slope thresholds, pocket pivot size, and a displacement

Indicator v5 Volatility & bandsVolume Repaints
Updated 2 months ago · None stated GitHub repository of KC Combo Bull Tick

This strategy executes breakout trades using two Donchian Channels alongside an optional 200-period EMA trend filter. Entries trigger when the price sets a new highest high or lowest low over the primary Donchian Channel period. Exits are managed via a shorter

Strategy v5 BreakoutTrend
Updated 1 year ago · None stated GitHub repository of Ruckard Walcrypto DoubleDonchian B002
3 stars

The Krypton Indicator overlays trend analysis, buy and sell zones, and sentiment tracking directly onto the price chart. It calculates a dual moving average trend filter, renders supply and demand zones, and plots a sentiment line to identify market momentum.

Indicator v5 TrendSupport & resistance Repaints
Updated 5 months ago · None stated GitHub repository of Krypton Indicator
106 stars

This strategy executes high-pyramiding trades using a combination of dynamic support and resistance breakout channels, the Supertrend indicator, and an array of predefined price levels. It tracks recent 100-bar extremes to permit buys on breakouts and manages

Strategy v5 TrendSupport & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of Buy/Sell Test for More Freq

MSG Enhanced LEGO System

by alboogycOdR
6 stars

The MSG Enhanced LEGO System plots customizable time-based market structure gap ranges and trading sessions as colored boxes on the price chart. Users can configure independent session intervals, such as New York, London, and Asia, along with options to displa

Indicator v5 Sessions & timeSupport & resistance
Updated 7 months ago · None stated GitHub repository of MSG Enhanced LEGO System
1 stars

This strategy tests repeated entries that reuse the same order id while the stop price changes, so only the latest pending stop stays active. On a 15-minute chart it places a one-contract long stop one tick above the high during the 02:00 window and a short st

Strategy v6 Sessions & timeBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 58 - same id stop modify

Price Channel Strategy

by TWODS-CAPITAL
37 stars

This strategy builds a price channel from the highest high and the lowest low over a user-set lookback. Once enough bars exist, it places a long stop order at the channel high and a short stop order at the channel low. The only setting changes the channel leng

Strategy v5 BreakoutSupport & resistance Repaints
Updated 3 years ago · MIT GitHub repository of Price Channel Strategy
6 stars

This overlay strategy builds independent timed session ranges and marks range, trendline, mean, VWAP, and high-low levels when those displays are enabled. It enters on range breakouts and exits with strategy exits, choosing among range, ATR, fixed-point, and r

Strategy v5 Sessions & timeBreakout
Updated 7 months ago · None stated GitHub repository of MSG Enhanced LEGO System Strategy

Lows from New Highs

by be-thomas
65 stars

This indicator tracks bar lows during consecutive rising highs using Pine Script arrays. When at least four lows accumulate or the price breaches the minimum low in the stack, the script sorts the recorded lows in ascending order and flushes them. It plots up

Indicator v4 Support & resistanceBreakout
Updated 5 days ago · GPL-3.0 GitHub repository of Lows from New Highs
6 stars

This indicator identifies and plots custom time-based ranges on the price chart using GMT hours, monitoring for price breakouts within a configurable time window. When price breaks beyond the high or low of the range before expiration, it displays directional

Indicator v5 BreakoutSessions & time
Updated 7 months ago · None stated GitHub repository of MSG Enhanced Range Breakout System
1 stars

This strategy rotates pending stop entries by the clock. Before noon it places a long stop one tick above the bar high and cancels the short order id; from noon it places a short stop one tick below the bar low and cancels the long order id. An open long is cl

Strategy v6 Sessions & timeBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 63 - dual stop cancel rotation
1 stars

This strategy identifies breakouts from session highs and lows on the price chart. It tracks the current session high and low for the configured time window in the specified timezone. Price crosses above the prior session high with an upward EMA trend confirm

Strategy v6 Sessions & timeBreakout
Updated 2 months ago · None stated GitHub repository of Tn Sovereign Session Quant v6

Smart Breakout Targets

by vedkanani123
1 stars

A squeeze breakout indicator on the price chart. It detects consolidation when Bollinger Band width and ATR are both compressed for a minimum number of bars, draws a range box with a centerline, and signals a breakout when an impulse candle leaves the range. E

Indicator v6 BreakoutVolatility & bands
Updated 2 months ago · None stated GitHub repository of Smart Breakout Targets
99 stars

Calculates and plots Fractal Chaos Bands directly on the price chart. The indicator identifies local fractal swing highs and lows, tracking the highest fractal high and lowest fractal low across a user-specified lookback period using monotonic deques. The resu

Indicator v6 Volatility & bandsSupport & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of Fractal Chaos Bands (FCB)
7 stars

This overlay strategy tracks the high and low of a user-defined London session and plots the previous session levels as support and resistance. It flags a break beyond a level when price closes past an ATR buffer, then waits a set number of bars for a retest w

Strategy v5 Sessions & timeSupport & resistance
Updated 3 months ago · None stated GitHub repository of London SR Cleaner WR (TP 0.20)

PF probe 73 - minute zero stop

by pineforge-4pass
1 stars

This strategy is a validation probe that places stop orders only when the bar minute is zero. When flat, it enters long at 02:00 with a buy stop one tick above the bar high, and enters short at 14:00 with a sell stop one tick below the bar low. It closes a lon

Strategy v6 Sessions & timeBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 73 - minute zero stop

(IK) Base Break Buy

by hasnocool
106 stars

This price-chart strategy marks a base when enough recent bar bottoms cluster within a set deviation of the current bottom, then ignores new bases that sit too close to existing ones. A buy is considered when price falls a chosen percentage below a base inside

Strategy v4 Support & resistanceBreakout
Updated 2 years ago · GPL-3.0 GitHub repository of (IK) Base Break Buy

ORION: Hybrid Strategy

by eddiebelaval
7 stars

This strategy identifies volatility breakout opportunities by constructing dynamic ATR-based price boxes and detecting volatility squeezes. Trades are filtered using an exponential moving average trend condition and designated session hours. Entries trigger up

Strategy v5 Volatility & bandsBreakout
Updated 3 months ago · None stated GitHub repository of ORION: Hybrid Strategy
1 stars

This Pine Script strategy is a test probe designed to evaluate order engine execution around pending stop orders and position closures. On a 15-minute timeframe, it submits a long stop order above the current high at 02:15 UTC and closes open long positions at

Strategy v6 Sessions & timeBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 77 - Stale Stop After Close
106 stars

This script monitors opening gap conditions and breakout behavior relative to the first candle's range across up to twenty configurable stock tickers. It detects whether following bars remain inside the opening range before breaking out, displaying the status

Strategy v4 Screeners & dashboardsBreakout Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of 1St Bar GAP+BkOut Screener v2 by RM

ORB + Fib + MACD Strategy

by alboogycOdR
6 stars

This strategy builds a timed opening range and tracks session high and low on the price chart. It flags bullish and bearish breakouts of that range and uses Fibonacci levels for an entry zone, a default stop, and an optional take-profit extension. Take profit

Strategy v5 BreakoutSupport & resistance
Updated 7 months ago · None stated GitHub repository of ORB + Fib + MACD Strategy
1 stars

This strategy tracks the high and low price levels established during the Tokyo trading session (00:00–08:00 UTC) and seeks breakout entries during the London and New York sessions. Long trades trigger when price breaks above the Tokyo high, confirmed by price

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

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