Pine Library · 966 open-source scripts

Free Breakout Pine Scripts (page 3)

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

1 stars

Marks fair value gaps, both three-candle and two-candle imbalances, and liquidity sweeps on the price chart, then shades long and short entry zones when filters agree. Optional RSI and volume-burst filters refine the signals, with adjustable periods and thresh

Indicator v5 SMC / ICT / price actionBreakout
Updated 2 months ago · None stated GitHub repository of PacifiqueTrade Indicator 2.0

Anish TB Foster Fix

by nishpa800
1 stars

Overlay indicator for stock-style charts that flags pocket pivot candles: a large percentage body whose volume beats the highest opposite-colour volume over a lookback. It also tests trend stages using 50, 150 and 200 period EMAs plus distance from the 52-week

Indicator v6 TrendVolume
Updated 2 months ago · None stated GitHub repository of Anish TB Foster Fix

SMC Entry Filter

by andriiops
1 stars

This overlay indicator tracks confirmed swing highs and lows as liquidity levels and marks a break of structure when the close moves beyond the last swing. It detects bullish and bearish fair value gaps that meet a minimum ATR size, then plots filtered long an

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · MIT GitHub repository of SMC Entry Filter

Daddy's Special Mix

by timoanttila
1 stars

Daddy's Special Mix is an indicator that combines an anchored VWAP with a standard deviation band, ATR distances, RSI levels and turtle-style breakout windows. It tracks entries after VWAP crosses, allows a set number of additional entries, and flags exits on

Indicator v6 BreakoutTrend Repaints
Updated 2 months ago · GPL-3.0 GitHub repository of Daddy's Special Mix

KB# GOLD

by jayadevrana
1 stars

KB# GOLD is a trading strategy that identifies trend entries and exits using moving average crossovers and optional Tillson T3 breakout filtering. The script calculates fast and slow exponential moving averages alongside a T3 smoothing curve. When breakout mod

Strategy v5 TrendMoving averages
Updated 2 months ago · Custom licence GitHub repository of KB# GOLD
1 stars

This Pine Script indicator plots a range filter line along with high and low target bands on the price chart. It calculates a smoothed average range using a sampling period and multiplier, then applies a filter to detect upward and downward trends. Signals tri

Indicator v5 TrendVolatility & bands
Updated 2 months ago · Custom licence GitHub repository of Range Filter Buy and Sell 5min

Maher Hero Saudi Alerts

by maherhato1986
1 stars

A chart-overlay indicator that scores each bar out of 100 using trend versus the 20 EMA, MACD, RSI range, volume ratio, an early breakout or retest of the prior 20-bar high, distance to the next resistance and an ATR-based stop distance. Hard rejections cap th

Indicator v6 BreakoutOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Maher Hero Saudi Alerts

Triangle Patterns

by atroopa
1 stars

An indicator that draws sloping upper and lower trendlines from confirmed pivot highs and lows, forming triangle-style channels. The slope can be calculated with ATR, standard deviation or linear regression, scaled by a slope multiplier, and breakouts through

Indicator v5 Support & resistanceBreakout Repaints
Updated 2 months ago · None stated GitHub repository of Triangle Patterns

PineFlow v6 — ORB Risk Strategy

by loveyuanfandj-glitch
1 stars

PineFlow v6 — ORB Risk Strategy executes opening range breakout trades filtered by trend and momentum indicators. It defines an initial opening range and trades breakouts during the active trading session when aligned with fast and slow EMAs, ADX momentum, and

Strategy v6 BreakoutSessions & time
Updated 3 months ago · MIT GitHub repository of PineFlow v6 — ORB Risk Strategy

BTC Master Window Analysis

by ShubhRanpara
1 stars

This overlay indicator divides Bitcoin price history into repeating time windows measured in days, with an optional gap between windows and an optional custom start date that phase-locks each cycle. For each window it sets a center and upper and lower bounds f

Indicator v6 Support & resistanceBreakout
Updated 3 months ago · MIT GitHub repository of BTC Master Window Analysis
1 stars

The ATR Breakout Channel strategy detects breakouts by comparing the current close price to the high or low of the previous 20 bars, forming a channel. Entries occur when the price breaks through the channel in the trend direction of a 200-period EMA if the tr

Strategy v6 BreakoutTrend
Updated 3 months ago · MIT GitHub repository of ATR Breakout Channel [QuantForge]

Fat Tail System vFinal.2

by zyuzhong470
1 stars

A strategy that looks for a volatility squeeze using a normalised Bollinger Band width, then waits for rising linear regression slope momentum and a break above recent resistance before entering. Exits use an ATR-multiple stop loss, an optional reward-to-risk

Strategy v6 BreakoutVolatility & bands
Updated 3 months ago · None stated GitHub repository of Fat Tail System vFinal.2

GEKO Gold

by grzegorzkowalskigk-jpg
1 stars

GEKO Gold is a trend-following indicator for gold (XAUUSD/MGC). It computes a GEKO-TIMID composite trend strength score by blending weekly and daily EMAs and ADX values, then classifies the trend into Emerging, Dominant or Extended states. The indicator plots

Indicator v6 TrendMoving averages
Updated 3 months ago · Custom licence GitHub repository of GEKO Gold
1 stars

BottleRocket Pivot Breakout is an intraday trading strategy designed to capture breakout moves above daily pivot levels. It derives floor trader pivots and ATR values from prior-day session data to avoid lookahead bias. Entries are filtered using a minimum sto

Strategy v6 BreakoutSupport & resistance Repaints
Updated 4 months ago · None stated GitHub repository of BottleRocket Pivot Breakout
1 stars

A Pine v6 strategy for 15-minute Bitcoin perpetual charts that trades RSI momentum breakouts. It enters long or short when RSI pushes through set levels plus a gap, with optional candle color, EMA 200 trend, ATR range and body-size filters, and a pullback re-e

Strategy v6 Oscillators & momentumTrend
Updated 4 months ago · None stated GitHub repository of BTC RSI Momentum v20
1 stars

A price-chart indicator that builds a zigzag from pivot highs and lows and searches it for classic chart patterns such as double and triple tops and bottoms, head and shoulders, triangles, rectangles, cup and handle, flags and falling wedges. Each pattern gets

Indicator v5 BreakoutSupport & resistance
Updated 4 months ago · None stated GitHub repository of Chart Pattern Detector v2

OOTM Strategy

by FRX132
1 stars

This strategy tracks the Asia, London and New York session highs and lows and draws them on the price chart. In Sweeps mode it looks for a wick beyond a finished session level that closes back inside; Breakouts mode looks for a close beyond it. Optional EMA 20

Strategy v6 Sessions & timeBreakout
Updated 4 months ago · None stated GitHub repository of OOTM Strategy

Talons BB Squeeze Breakout

by muammeryldrm42
1 stars

This strategy identifies Bollinger Band squeezes and enters positions on volatility breakouts. It defines a squeeze when the normalized band width over the last five bars drops below its 25th percentile over a configurable lookback window. When a breakout occu

Strategy v5 Volatility & bandsBreakout
Updated 5 months ago · None stated GitHub repository of Talons BB Squeeze Breakout

Hybrid Strategy Trend ORB MTF

by eliasvictor-trading
1 stars

An indicator for intraday futures that builds an opening range for each session and marks breakout signals once price clears it by a tick buffer, with gap filtering and one signal per direction per range. A trend filter uses two moving averages and a higher ti

Indicator v6 BreakoutSessions & time
Updated 5 months ago · MPL-2.0 GitHub repository of Hybrid Strategy Trend ORB MTF

Luo Sheng Indicator

by Chovy-King
1 stars

An overlay that detects up to eleven price-action entry setups, each with its own switch: trend breakout, trend pullback, false breakout of a key level, range edge, breakout retest, double top or bottom, and others. It builds key levels by clustering swing poi

Indicator v6 Support & resistanceTrend
Updated 6 months ago · None stated GitHub repository of Luo Sheng Indicator

AlgoBot CL Crude Oil Strategy

by ghostnathan30-ops
1 stars

A first-hour breakout strategy for crude oil futures that captures the 9:30 to 10:30 New York range, then looks for a break between 10:30 and 13:00 in the direction of a 50-period EMA bias. It skips the Wednesday inventory report window and calculates ATR-base

Strategy v6 BreakoutSessions & time
Updated 6 months ago · None stated GitHub repository of AlgoBot CL Crude Oil Strategy
1 stars

This Pine Script indicator computes a Confluence Score from 0 to 100 by aggregating seven breakout identification strategies based on VCP trend template, TTM squeeze, volume analysis, relative strength, MA setup, RSI momentum and price near resistance. It plot

Indicator v6 TrendOscillators & momentum
Updated 6 months ago · None stated GitHub repository of Breakout Confluence Scanner

Range STR v3 IMBA v3

by martyn-ukrainian-trading-plan
1 stars

The SMC Range STR v3 IMBA v3 indicator detects swing ranges on multi-timeframe charts. It plots range boxes, support and resistance lines, and swing dots on the price chart. Users can configure the grace period, retracement percentage, swing timeframe, break m

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of Range STR v3 IMBA v3
1 stars

The aggressive 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 in

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

This strategy identifies the Initial Balance (IB) high and low during a user-defined opening session and trades breakout pullbacks. Once the IB window concludes and range filters are satisfied, it enters long or short when price breaks out and retraces back to

Strategy v6 BreakoutSessions & time
Updated 7 months ago · MIT GitHub repository of Gold IB Breakout Retracement

This strategy detects low-volatility consolidation by identifying when Bollinger Bands contract inside Keltner Channels. When the squeeze releases, it evaluates linear regression momentum and optional volume spikes to confirm breakouts. Long signals occur on r

Strategy v5 Volatility & bandsBreakout
Updated 7 months ago · None stated GitHub repository of Bollinger Band Squeeze - Volatility Breakout

ATR Range Break

by itstherax
1 stars

Plots the 20-bar highest high and lowest low on the price chart, plus buy and sell levels set one ATR beyond them. A buy triangle appears when the close first moves above the upper level and a sell triangle when it first drops below the lower level. The ATR va

Indicator v5 BreakoutVolatility & bands
Updated 8 months ago · None stated GitHub repository of ATR Range Break
1 stars

A long-only strategy generated from the TrendLab research project, drawn on the price chart. It tracks the highest high over a 115-bar lookback. It buys when the close is at or above 70 percent of that high and sells when the close falls below 52 percent of it

Strategy v6 TrendBreakout
Updated 9 months ago · MIT GitHub repository of 52-Week High 115/70/52
1 stars

Auto Chart Patterns Trendoscope automatically identifies and plots technical chart patterns on the main price chart using multi-depth ZigZag pivot calculations. It detects various geometric formations including channels, wedges, and triangles across rising, fa

Indicator v6 Support & resistanceTrend
Updated 9 months ago · None stated GitHub repository of Auto Chart Patterns Trendoscope

Donchian Breakout + ATR Risk

by JustACoder279
1 stars

A trend-following strategy that goes long when the close breaks above the previous Donchian channel high and short when it breaks below the previous low. An optional 200 EMA filter limits direction, and an ATR regime filter skips quiet markets. Each trade has

Strategy v5 BreakoutTrend Repaints
Updated 9 months ago · MIT GitHub repository of Donchian Breakout + ATR Risk

MTF Checklist Dashboard

by eliasvictor-trading
1 stars

An overlay indicator that shows a colour-coded table of market conditions across six timeframes, 1, 5, 15, 30, 60 and 240 minutes by default, including opening range breakout status and distance from the daily high and low. It prints arrow signals when enough

Indicator v6 Screeners & dashboardsSessions & time
Updated 11 months ago · None stated GitHub repository of MTF Checklist Dashboard

This strategy plots Supertrend on the price chart and enters long only when the one-hour Bitcoin Supertrend is bullish, the symbol Supertrend is bullish, price is above the line, and the bar makes a higher high. It sizes each trade at 100 percent of equity and

Strategy v5 TrendBreakout Repaints

Hybrid Pro Strategy

by bdrnjom007
1 stars

A Pine v5 strategy, with Arabic input labels, that counts bullish signals from several groups: Turtle-style breakouts, RSI and Bollinger Band mean reversion, EMA, MACD and ADX momentum, plus order blocks, fair value gaps and supply and demand zones. It enters

Strategy v5 BreakoutMean reversion
Updated 11 months ago · None stated GitHub repository of Hybrid Pro Strategy

A price-chart indicator that marks the opening range of each session, either from a chosen opening time period or a custom session and timezone. It plots the range high and low, shades the range, and prints breakout signals when price closes beyond it. Targets

Indicator v6 Sessions & timeBreakout
Updated 12 months ago · MIT GitHub repository of LuxAlgo Opening Range with Breakouts and Targets

MR First Entry Backtester

by gaurav4ever
1 stars

A strategy for 5-minute charts that builds a morning range of either five or fifteen minutes after the market open and takes the first breakout entry, with an entry buffer in ticks. An optional trend filter buys only above and sells only below the 50 EMA, and

Strategy v5 BreakoutSessions & time
Updated 1 year ago · None stated GitHub repository of MR First Entry Backtester

ORB Fresh v3

by abhidp
1 stars

Opening range breakout strategy on the price chart. It measures the high and low of a configurable opening window, 09:30 to 09:45 by default, ignores ranges below a minimum point size, and trades breakouts of that range. Position size is based on a risk percen

Strategy v6 BreakoutSessions & time
Updated 1 year ago · None stated GitHub repository of ORB Fresh v3

CCE ORB

by ylohnitram
1 stars

Marks the opening range of the US stock session on the price chart. The range starts at 9:30 New York time and lasts a set number of minutes, 15 by default, with optional extension levels projected from it. A setting limits the display to the morning or to the

Indicator v5 Sessions & timeBreakout
Updated 1 year ago · None stated GitHub repository of CCE ORB

A breakout strategy built for S50 futures on a 30-minute chart. It tracks confirmed swing highs and lows from pivot detection and places stop-order entries when price breaks the latest swing level. The stop sits one ATR beyond the opposite swing, the target is

Strategy v6 BreakoutSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of S50 TFEX Trend Following Breakout
1 stars

An overlay indicator that marks price breaks confirmed by a volume surge. A break is when price moves past the recent high or low by a set percentage, direction selectable, on volume above its average. Optional confirmations are a retest, RSI and MACD momentum

Indicator v6 BreakoutVolume Archived
Updated 1 year ago · MIT GitHub repository of High Volume Momentum Strategy

Consolidation Zones

by MarcosACH
1 stars

Consolidation Zones draws boxes over periods when price stays inside a band around a simple moving average. A zone forms when every close in the last minimum-zone-length bars sits within one ATR of the average. Overlapping zones are extended and merged, and zo

Indicator v6 Volatility & bandsSupport & resistance
Updated 1 year ago · None stated GitHub repository of Consolidation Zones

Buy and Sell Signal Combo

by Mr-Madhuranga
1 stars

An indicator on the price chart that merges three signal sources into one buy and one sell marker. A buy appears when RSI is below 30 and MACD crosses above its signal line, when the 50 EMA crosses above the 200 EMA, or when price closes above the highest high

Indicator v5 Oscillators & momentumBreakout
Updated 1 year ago · None stated GitHub repository of Buy and Sell Signal Combo

Adaptive Strategy

by Studentcodee
1 stars

This adaptive strategy combines multiple classic technical indicators into a unified framework to generate trading signals on the price chart. It evaluates conditions across Moving Average crossovers, Donchian channel breakouts, MACD, RSI, Bollinger Bands, Par

Strategy v6 TrendOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of Adaptive Strategy

A pivot breakout strategy for the S50 futures on a 30-minute chart. Swing highs and lows are found from left and right bar counts, with stop entries placed beyond them. Each entry has an exit order with a stop one ATR past the pivot and a limit set by a risk t

Strategy v6 BreakoutSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of S50 TFEX Strategy LeftBar RightBar
1 stars

A strategy built on two Donchian midlines, one long and one short, plus an ATR readout. It enters long when price has crossed above the long line and the short line has crossed above the long line, in either order, and enters short on the mirror pair of crosse

Strategy v5 TrendBreakout
Updated 1 year ago · None stated GitHub repository of Ardakani Dual Condition 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