Pine Library · 966 open-source scripts

Free Breakout Pine Scripts (page 16)

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

16 stars

This strategy implements a trend-following Donchian channel breakout system with momentum-based position sizing. It enters an initial scaled position on a channel breakout to minimize false breakout risk, then adds to the position if RSI confirms directional s

Strategy v6 TrendOscillators & momentum
Updated 12 months ago · None stated GitHub repository of Seykota Alt 47: Momentum Sized

Squeeze2backtester

by GreyssonEnterprises
1 stars

Squeeze2backtester is an indicator-based backtester that identifies volatility squeezes by comparing Bollinger Bands with Keltner Channels. It simulates trade executions directly on the price chart, tracking entry prices, stop-loss thresholds, breakeven levels

Indicator v4 Volatility & bandsBreakout Repaints
Updated 2 months ago · MIT GitHub repository of Squeeze2backtester
16 stars

This strategy trades an asymmetric long and short trend system on the price chart. Longs use shorter Donchian entry and exit lengths, tighter ATR stops, more pyramid units, and a higher risk percent per unit than shorts. Each unit is sized from equity and stop

Strategy v6 TrendVolatility & bands
Updated 12 months ago · None stated GitHub repository of Seykota Alt 4: Asymmetric L/S

Sideway Zones Live

by dearvn
257 stars

Sideway Zones Live is an overlay indicator that estimates inner and outer sideways bands from recent highs and lows with a rational quadratic kernel. It tracks swing pivots over a loopback period and counts bars that remain between the outer high and low. Afte

Indicator v5 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of Sideway Zones Live
16 stars

This strategy trades Donchian breakouts measured on weekly bars while orders execute on the chart timeframe. It allows long and short entries when price breaks the prior weekly channel and exits against the shorter weekly channel. Position size risks a set per

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 4: Weekly Donchian
4 stars

This trend-following strategy calculates the Supertrend indicator using average bar prices and Average True Range (ATR). It plots a color-coded trend line directly on the price chart along with buy and sell shapes. The strategy enters a long position when the

Strategy v6 TrendVolatility & bands
Updated 2 months ago · MIT GitHub repository of Supertrend Strategy [trugurpala]
1 stars

This indicator identifies bullish Change of Character (CHoCH) structure shifts directly on the price chart using pivot swing points. It tracks swing highs and lows governed by configurable left and right lengths and maximum swing age. The script highlights CHo

Indicator v6 SMC / ICT / price actionBreakout
Updated 3 days ago · None stated GitHub repository of REV Ladder (Best Bullish CHoCH)

Strong NQ ORB Breakouts

by rosijay17-cmd
1 stars

An overlay indicator for opening range breakouts on Nasdaq futures. The range can start automatically at the session open or use a custom window, with an adjustable length in minutes. A breakout by close or wick produces a signal with a stop based on ATR, the

Indicator v6 BreakoutSessions & time
Updated 7 days ago · GPL-3.0 GitHub repository of Strong NQ ORB Breakouts
1 stars

A Bollinger Band breakout strategy with Spanish-language settings. It goes long when price closes above the upper band and short when it closes below the lower band, limited to a configurable date range and a cooldown of bars between trades. Three take-profit

Strategy v6 BreakoutVolatility & bands
Updated 2 months ago · None stated GitHub repository of Bollinger - 3 TPs (Frecuentes)

This strategy executes breakout trades based on historical high and low entry bands and manages risk using adaptive ATR trailing stop-loss levels. It enters long positions when the close breaks above the lookback band and short positions when it breaks below.

Strategy v5 BreakoutVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of ATR trailing SL tight to slack [Takazudo]
16 stars

This trend-following strategy executes long and short trades based on Donchian channel breakouts directly on the price chart. It enters positions when price breaks a multi-bar high or low and exits on opposing Donchian channel band crosses. Risk management inc

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 5: Accelerated Pyramid
6 stars

Apex Protocol - The SMC Engine is a comprehensive Smart Money Concepts indicator that overlays key market structure levels directly on the main price chart. It calculates internal and external market structures (BOS and MSS), Order Blocks, Fair Value Gaps (FVG

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of Apex Protocol v3.4 - The SMC Engine

Breakout Pattern Setup

by vedkanani123
1 stars

A pattern indicator on the price chart that looks for converging channels, such as triangles and wedges, from swing pivots. A channel needs a minimum number of touches per boundary, a maximum width, a minimum convergence rate and ATR-based tolerances. Breakout

Indicator v6 BreakoutSupport & resistance
Updated 2 months ago · None stated GitHub repository of Breakout Pattern Setup

This strategy enters long or short when price closes beyond a Donchian channel and can require a slow moving average, called the tide, to agree with the direction. It sizes each unit from ATR risk, sets an initial ATR stop, and adds units after further ATR mov

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 5: Close-Confirmed + Tide

Modern Trend Regime classifies price action into trend, range, and transition modes using a score rather than a strict conjunction of conditions. It builds fast, base, and slow structure from a price-range, EMA, WMA, or SMA calculation, then compares ATR-norma

Indicator v6 TrendVolatility & bands
Updated 2 days ago · MIT GitHub repository of Modern Trend Regime [WavesUnchained]
16 stars

Seykota Alt 6 Pure ATR Stop is a trend-following strategy based on Donchian channel breakouts and ATR volatility trailing stops. It enters trades when price breaks out beyond the Donchian lookback channel, provided optional market regime and volume filters are

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 6: Pure ATR Stop

This indicator implements a Wyckoff method state machine that tracks accumulation, distribution, markup, and markdown regimes across phases A through E. It identifies structural events including springs, UTADs, SOS, SOW, LPS, LPSY, and climactic bars using ATR

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 days ago · MIT GitHub repository of Modern Wyckoff State Machine Lite [WavesUnchained]
1 stars

This Pine Script v6 strategy isolates and tests market structure events, specifically Break of Structure (BOS) and Change of Character (CHoCH). Using swing points calculated from configurable pivot strength settings, it tracks structural direction and triggers

Strategy v6 SMC / ICT / price actionBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of Parity Probe 02 - CHoCH/BOS Isolator
16 stars

This strategy enters on Donchian channel breaks and can trade long, short, or both. Position size for each unit is based on a percentage of equity divided by an initial ATR stop. A chandelier stop trails a multiple of ATR from the highest high since entry for

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 7: Chandelier Trail

RSI %B on Chart

by zhuzp98
1 stars

This indicator plots the Relative Strength Index (RSI) and its Bollinger Band percentage bandwidth (%B) deviation directly on the price chart. It calculates RSI from a user-defined source and length, applies an EMA, and derives the %B deviation using a configu

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of RSI %B on Chart
16 stars

This strategy enters long or short breakouts when price crosses a Donchian channel and exits with a volatility-adaptive Donchian lookback that is shorter in low volatility and longer in high volatility. It sizes each unit from a percentage of equity and an ATR

Strategy v6 TrendVolatility & bands
Updated 12 months ago · None stated GitHub repository of Seykota Alt 8: Adaptive Exit
16 stars

Seykota Alt 9: Time Exit Primary executes a Donchian breakout trend-following strategy that prioritizes time-based exits over price-based trailing stops. It enters long or short on 55-bar Donchian channel breakouts, sizing positions by ATR-based risk and pyram

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 9: Time Exit Primary
3 stars

This strategy overlays three Simple Moving Averages, one Exponential Moving Average, and a dynamic trailing swing line directly on the price chart. It determines market direction by tracking recent highest highs and lowest lows over a customizable swing period

Strategy v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of EMA Crossover Scott Strategy
2 stars

This strategy plots period high and low breakout bands on the price chart and trades breaks of those bands. It goes long when price closes above the upper band while that band is above a simple moving average, and short on the opposite setup. Position size is

Strategy v4 TrendBreakout
Updated 1 year ago · None stated GitHub repository of Trend #1 - ATR+Breakout high/low

Schaff Trend Cycle

by everget
947 stars

This indicator plots the Schaff Trend Cycle in a separate pane. It subtracts a slow exponential moving average from a fast one, applies a stochastic cycle twice, and smooths each result to form a 0–100 oscillator. Line color follows the slope, or the upper and

Indicator v4 Oscillators & momentumTrend
Updated 11 days ago · GPL-3.0 GitHub repository of Schaff Trend Cycle

Gold Breakout Trader

by eddiebelaval
7 stars

Plots timed breakout ranges directly on the price chart, designed for gold trading using dollar-based spacing. At scheduled trigger times or recurring two-hour intervals, it creates a central reference box flanked by upper and lower breakout stop lines, follow

Indicator v6 BreakoutSupport & resistance
Updated 3 months ago · None stated GitHub repository of Gold Breakout Trader

CRT + Turtle Soup Scanner

by alboogycOdR
6 stars

Calculates CRT session range boundaries and detects Turtle Soup setups to identify potential breakout signals. The script tracks session high, low, and midpoint values to determine intraday bias while measuring price break distances against ATR thresholds. It

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT + Turtle Soup Scanner

This strategy executes trades based on price crosses over dynamic swing breakout levels filtered by a baseline moving average. It plots three simple moving averages and an exponential moving average directly on the price chart alongside buy and sell arrows. Lo

Strategy v5 Moving averagesTrend
Updated 5 months ago · None stated GitHub repository of EMA Crossover Scott Strategy v2

PF Analyzer (PineForge)

by pineforge-4pass
1 stars

PF Analyzer (PineForge) is a multi-mode validation strategy designed to benchmark trade execution timing and parity against backtesting engines. It provides four selectable operational modes: a clock pulse for fixed intraday time entries and exits, a 60-minute

Strategy v6 Sessions & timeBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of PF Analyzer (PineForge)

Trend Continuation Zones

by rosijay17-cmd
1 stars

An overlay indicator that signals trend-continuation breakouts only in the direction of a mandatory trend filter built from a long EMA and a confirmed higher-timeframe EMA stack. Recent swing highs and lows are stored as reference levels, and a breakout needs

Indicator v6 TrendBreakout
Updated 7 days ago · GPL-3.0 GitHub repository of Trend Continuation Zones
330 stars

This strategy trades breakouts beyond custom Bollinger Bands and closes positions upon mean reversion back to the central moving average. It enters long when the close crosses above the upper band and exits when the close crosses below the simple moving averag

Strategy v4 BreakoutVolatility & bands
Updated 2 months ago · None stated GitHub repository of Bollinger Breakout [kodify]
114 stars

This indicator adapts Michael Chalek's Dual Thrust trading concept to plot breakout levels and overlay bands directly on the price chart. It calculates lookback ranges based on historical price action and provides two algorithmic variations along with multiple

Indicator v4 TrendBreakout Repaints
Updated 1 year ago · None stated GitHub repository of Dual Thrust Trading Algorithm

Donchian Channels (DC)

by mihakralj
99 stars

This indicator calculates and plots Donchian Channels directly on the price chart. It determines the highest high and lowest low over a user-selected lookback period using an optimized monotonic deque algorithm, as well as a middle basis line computed as their

Indicator v6 Volatility & bandsSupport & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of Donchian Channels (DC)

Greedy Strategy

by TWODS-CAPITAL
37 stars

The Greedy Strategy enters long or short positions based on price gaps and bar close conditions relative to current position direction. It places long entries when price gaps above the previous high and short entries on downward gaps below the previous low. Po

Strategy v5 Breakout
Updated 3 years ago · MIT GitHub repository of Greedy Strategy
7 stars

This indicator detects consolidation zones, fair value gaps, and breakaway gaps on the price chart using Heikin-Ashi price calculations. It tracks overlapping candles to identify consolidation ranges and marks subsequent structural breakouts. Users can display

Indicator v6 SMC / ICT / price actionBreakout
Updated 3 months ago · None stated GitHub repository of HA Colidation Breakout Structure

HB Directional Range

by eddiebelaval
7 stars

HB Directional Range calculates and plots consolidation range boxes directly on the price chart based on candle body behavior. It tracks high and low boundaries, extending the active range box as long as candle bodies remain within it. When a candle body break

Indicator v6 TrendSupport & resistance
Updated 3 months ago · None stated GitHub repository of HB Directional Range

A trend-following strategy that marks entries with triangles. Trend needs a fast and slow EMA stack with a minimum slope, an optional ADX filter and an optional higher-timeframe EMA check defaulting to daily. Two entry modes are offered: a pullback continuatio

Strategy v6 TrendBreakout Repaints
Updated 7 days ago · GPL-3.0 GitHub repository of Trend Following Strategy - Triangle Entries

Band-Zigzag TrendFollower Strategy is a trend-following trading system that combines volatility bands, such as Bollinger Bands or Keltner Channels, with pivot-based trend structure. It evaluates trend switches and invalidation levels using adaptive or sticky b

Strategy v5 TrendVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Band-Zigzag - TrendFollower Strategy [Trendoscope]

A Donchian-style trend strategy that enters on a breakout of a 55-bar channel and exits on a 20-bar channel break, with a 200-period EMA as the regime filter. Entries can require a fresh breakout and an ADX and DMI strength check. An ATR trailing stop is drawn

Strategy v6 TrendBreakout
Updated 7 days ago · GPL-3.0 GitHub repository of Trend Following Strategy v6 Signal Cooldown

An overlay indicator that looks for the Wyckoff upthrust after distribution pattern. It requires a prior advance measured in ATR, detects a trading range with a minimum duration and boundary tests, and flags a terminal breakout attempt that fails back inside w

Indicator v6 BreakoutVolume
Updated 7 days ago · GPL-3.0 GitHub repository of Upthrust After Distribution + Entry Alerts

Pattern Recognition [WavesUnchained] automatically identifies chart patterns including ascending, descending, and symmetrical triangles, rising and falling wedges, and parallel channels. It validates formations through multi-point pivot analysis, volume spike

Indicator v6 BreakoutSupport & resistance Repaints
Updated 2 days ago · MIT GitHub repository of Pattern Recognition [WavesUnchained]

GROK NO.1 Major Move

by vedkanani123
1 stars

An indicator for the price chart that marks buy and sell flips and then stays on that side until a reversal. A flip needs several conditions on a closed bar, including a broken ATR trail for consecutive closes, a close through the last confirmed swing, an impu

Indicator v6 TrendBreakout Repaints
Updated 2 months ago · None stated GitHub repository of GROK NO.1 Major Move

BB and KC Strategy

by hasnocool
106 stars

This strategy identifies breakout momentum by combining Bollinger Bands and Keltner Channels with volume confirmation. It opens long positions when the upper Keltner Channel crosses above the upper Bollinger Band and volume exceeds its moving average. Converse

Strategy v5 Volatility & bandsBreakout
Updated 2 years ago · GPL-3.0 GitHub repository of BB and KC Strategy

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