Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 21)

Scripts written for Pine Script version 6, the current version of TradingView's language. They paste into the Pine Editor and run as they are.

Pine scripts4,367
Code shown here2,412open licence
Updated in a year4,021
No repaint flag3,857

Pine Script v6: Indicators, Strategies and Libraries

1 stars

Detects bullish and bearish order block zones from swing structure and draws them as boxes on the price chart. Each zone can carry volume information and an optional mirrored volume bar. Settings control swing length, how many zones are shown, whether a Wick o

Indicator v6 SMC / ICT / price actionVolume
Updated 6 months ago · None stated GitHub repository of Volumized Order Blocks MTF 2026-2
1 stars

A strategy version of an oscillator indicator built on a channel length, average length and short length. It opens long and short positions from the oscillator signals, uses 10 percent of equity per order and allows a very high pyramiding count, so many same-d

Strategy v6 Oscillators & momentum
Updated 6 months ago · None stated GitHub repository of Bull4Life Hunters with TP

CVD Profiles

by Focal-QuantAI
1 stars

An indicator in a separate pane that builds volume profiles from cumulative volume delta using lower-timeframe volume. A model setting switches between CVD, imbalance ratio, activity and USD volume. Profiles reset daily or from a fixed start time, with an adju

Indicator v6 Volume Repaints
Updated 6 months ago · None stated GitHub repository of CVD Profiles

my TPO

by Devtest-Dan
1 stars

My TPO is an overlay market profile indicator that builds time price opportunity profiles for each four-hour, daily or weekly period and draws them on the price chart. It plots the point of control, value area high and low with a configurable percentage, an in

Indicator v6 Support & resistanceVolume
Updated 6 months ago · None stated GitHub repository of my TPO

Breadth Dip Buying

by AlanGuo
1 stars

A long-only strategy that combines a market breadth index, the percentage of stocks above their 50-day average, with a long moving average of 225 periods. When price is above the average, it buys if breadth drops below 25. In bear mode, which is off by default

Strategy v6 Mean reversionMoving averages
Updated 7 months ago · None stated GitHub repository of Breadth Dip Buying

NQ SSR Strategy

by CathalF
1 stars

The NQ SSR Strategy is a trading strategy for Nasdaq futures contracts. It generates buy and sell signals based on multi-timeframe pivot high and low detection across 4H, 1H and 5M timeframes. Signals are plotted directly on the price chart as entry and exit p

Strategy v6 TrendSupport & resistance
Updated 7 months ago · None stated GitHub repository of NQ SSR Strategy

Precious Metals Dashboard

by TehbynDFRNT
1 stars

Overlays fast, slow and trend EMAs with an optional cloud, cross triangles and volume spike markers on the price chart, and pulls spot gold, silver and a list of ASX gold and silver miners through security requests. A table summarises daily change, RSI, volume

Indicator v6 Screeners & dashboardsMoving averages
Updated 7 months ago · None stated GitHub repository of Precious Metals Dashboard
1 stars

A strategy for automated order routing that formats alert messages for a MetaTrader connector service. Inputs cover a license identifier field, symbol prefix, suffix and mapping, lot size, a magic number, a pip multiplier and a base risk percentage. Selected i

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

WirezardStrategyTester

by udhansingh
1 stars

A stock-oriented strategy that scores each bar from minus 100 to plus 100 by combining RSI, an impulse MACD, VIDYA, volume spikes, a spread and wick proxy for market depth, and sector ETF strength against a benchmark. Buy entries need the score above a thresho

Strategy v6 Oscillators & momentumTrend Repaints
Updated 7 months ago · MIT GitHub repository of WirezardStrategyTester

Smart Volume Profile

by billy1030
1 stars

An overlay indicator that builds a volume profile on the price chart over the visible range, a fixed number of bars or a custom time span. Rows split volume into buy and sell parts, and the script marks the point of control, value area high and low, buy and se

Indicator v6 VolumeSupport & resistance
Updated 7 months ago · None stated GitHub repository of Smart Volume Profile

BTC ATH Golden Cycle

by ymlee1104
1 stars

BTC ATH Golden Cycle is a long-only position trading strategy designed for Bitcoin. It tracks price drawdowns relative to All-Time High (ATH) levels to execute a five-stage dollar-cost averaging entry schedule. As prices decline by configurable percentage tier

Strategy v6 Support & resistanceMoving averages
Updated 7 months ago · None stated GitHub repository of BTC ATH Golden Cycle
1 stars

An indicator for one-hour charts that plots a Donchian channel from the highest high and lowest low over a set number of bars. A close beyond the prior channel edge marks a long or short breakout, and an ATR-multiple trailing stop line tracks the exit. An opti

Indicator v6 BreakoutTrend
Updated 7 months ago · None stated GitHub repository of V18 Donchian Channel Breakout
1 stars

A Pine v6 indicator that combines two smart money tools on the price chart. It finds supply and demand zones from an impulse, base candles, impulse pattern measured against ATR, and it marks breaker blocks, which are order blocks that price later closes throug

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of Supply & Demand + Breaker Blocks v6
1 stars

A price-chart overlay for DAX, based on the Advanced School Run Strategy. Inside a configurable session window in Berlin time, it numbers the opening five candles, takes the fourth candle's high and low and draws buy and sell breakout lines offset by a buffer

Indicator v6 Sessions & timeBreakout
Updated 7 months ago · None stated GitHub repository of TraderTom's ASRS Indicator
1 stars

This indicator serves as a validation test suite for the McClellan Oscillator. It fetches NYSE advancing and declining issues data and computes the oscillator using ratio-adjusted net advances. The script cross-checks manual EMA calculations against ta.ema for

Indicator v6 Screeners & dashboardsOscillators & momentum
Updated 7 months ago · None stated GitHub repository of McClellan Oscillator Tests
1 stars

This strategy identifies the Initial Balance session on the chart and detects confluence with VWAP levels for trade signals. It enters positions when price shows rejection at the confluence zone via a candle with sufficient wick to body ratio. The main setting

Strategy v6 Mean reversionSupport & resistance
Updated 7 months ago · MIT GitHub repository of IB + VWAP Confluence

Lifecycle Example

by propuchon
1 stars

This strategy demonstrates a training, testing, and deployment lifecycle for Pine Script strategies. It calculates a simple moving average (SMA 20) and generates buy signals on crossover. The runMode input selects between Training, Testing, and Deployment. In

Strategy v6 TrendMoving averages
Updated 9 months ago · None stated GitHub repository of Lifecycle Example
1 stars

A long-only strategy generated from the TrendLab research project, drawn on the price chart. It calculates the Parabolic SAR with acceleration start 0.01, step 0.08 and maximum 0.37. It buys when the close crosses above the SAR and closes the position when the

Strategy v6 Trend
Updated 9 months ago · MIT GitHub repository of Parabolic SAR 0.01/0.08/0.37

Turtle Soup

by Ahmed1926
1 stars

An overlay indicator that detects turtle soup setups, where price takes out a higher-timeframe pivot high or low and then reverses. It uses an imported price action library for market structure, with separate pivot lengths for the trend structure and for the l

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 9 months ago · None stated GitHub repository of Turtle Soup

Reports how volatile each part of the trading day has been, shown as columns in a separate pane. It groups intraday bars by time slot and compares their ranges using a daily ATR period, defaulting to 20. The output can be set to median, with high and low volat

Indicator v6 Volatility & bandsSessions & time
Updated 9 months ago · MPL-2.0 GitHub repository of Volatility - Time of Day Report

This indicator draws a trading range box on the price chart, based on a rolling lookback, the previous day or the previous week. Inside it, it marks golden pocket Fibonacci zones, liquidity areas near the range extremes and fair value gaps that extend a set nu

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 9 months ago · MPL-2.0 GitHub repository of Range Indicator: Golden Pocket, Liquidity, & FVG
1 stars

A chart-overlay indicator that combines a volatility cloud with supply and demand zones. The cloud uses a selectable moving average with ATR bands and turns bullish or bearish, producing buy and sell labels when it flips, optionally filtered by volume and RSI.

Indicator v6 TrendSupport & resistance
Updated 9 months ago · None stated GitHub repository of Apex Trend & Liquidity Master

SFA FlowLiquidity v1

by genesisgrubio39
1 stars

The SFA FlowLiquidity library computes structural flow and liquidity events from price data. It detects sweep ups and downs with associated scores, identifies liquidity levels, and applies session and regime filters. Persistent arrays track liquidity prices, b

Library v6 SMC / ICT / price actionSupport & resistance
Updated 10 months ago · None stated GitHub repository of SFA FlowLiquidity v1

CodonRiskManager

by codon-pro
1 stars

This library calculates position size for trading strategies based on a percentage of equity to risk and the distance to the stop loss price. The function takes risk percentage, entry price, and stop loss price as inputs and returns the quantity of contracts o

Library v6
Updated 10 months ago · MIT GitHub repository of CodonRiskManager

Apex Vector

by app-builder-sketch
1 stars

Apex Vector is a separate-pane oscillator that plots a smoothed vector and classifies efficiency against superconductor and resistive thresholds, with a high-heat warning color. Optional volume flux uses a volume-normalization length. Users set vector length,

Indicator v6 Oscillators & momentumVolume
Updated 10 months ago · GPL-3.0 GitHub repository of Apex Vector
1 stars

RI SHORT Manual is an overlay indicator for ES and NQ futures that outlines a discretionary short reversal setup. Levels are measured from the previous session close using a risk interval: an entry level above the anchor, with target and stop levels at fixed f

Indicator v6 Support & resistanceMean reversion
Updated 10 months ago · None stated GitHub repository of RI SHORT Manual REVERSAL_TOUCH
1 stars

This strategy wraps a breakout candle system in a framework that handles position sizing, trade tracking and logging. Settings cover a gap zone block around midnight in the Prague time zone, the number of candles in an accumulation zone, a risk percentage per

Strategy v6 BreakoutSessions & time
Updated 10 months ago · None stated GitHub repository of Breakout Candle Strategy V24
1 stars

A chart-overlay indicator that adds slope-based measures to common indicators. It tracks RSI slope, moving average slope, a Bollinger squeeze test, MACD momentum, volume trend, price acceleration and a linear-regression trend strength. Recent pivots give suppo

Indicator v6 Oscillators & momentumBreakout
Updated 10 months ago · None stated GitHub repository of Predictive Crypto Trading Bot Pro
1 stars

An earlier release of the swing structure overlay that marks change of character, break of structure and liquidity events on the price chart. A volume strength filter compares the breaking bar with the last few bars or with a tape average, and weak breaks can

Indicator v6 SMC / ICT / price actionVolume
Updated 10 months ago · None stated GitHub repository of Orderflow Break Tape Earlier Version
1 stars

Labels four single-candle reversal patterns on the price chart: bullish hammer, inverted hammer, hanging man and shooting star. Detection compares wick length to body size, using a wick-to-body ratio setting and a Strict, Normal or Relaxed sensitivity multipli

Indicator v6 Candlestick patterns
Updated 11 months ago · Custom licence GitHub repository of Hammer & Inverted Hammer Patterns

Viprasol Elite Flow Pro

by Thedev-Lars
1 stars

An overlay that draws a volatility-based trend cloud with three speed modes, detects premium and discount zones, and marks rejections at those zones. A volume filter flags spikes and climax bars, and signals can be set to aggressive, balanced or conservative w

Indicator v6 TrendSupport & resistance
Updated 11 months ago · None stated GitHub repository of Viprasol Elite Flow Pro
1 stars

Advanced ICT Theory - A-ICT identifies institutional market structure patterns based on Smart Money Concepts directly on the price chart. It detects displacement candles, order blocks, fair value gaps, trap zones, and reversal zones, tracking their mitigation

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 11 months ago · None stated GitHub repository of Advanced ICT Theory - A-ICT
1 stars

A price-chart trend indicator that smooths the chosen source with a multi-order Kalman filter, builds ATR-based upper and lower bands around it, smooths the bands exponentially, and flips the trend when price crosses a band. An optional multi-timeframe switch

Indicator v6 TrendVolatility & bands
Updated 11 months ago · MIT GitHub repository of Kalman Exponential SuperTrend MTF

[FS] Time & Cycles

by flasomm
1 stars

A price-chart overlay that draws previous day and previous week highs and lows, plus the current day and week extremes, with optional labels, dates and line styles. History depth is adjustable up to ten periods. It also marks chosen clock times such as midnigh

Indicator v6 Support & resistanceSessions & time
Updated 11 months ago · None stated GitHub repository of [FS] Time & Cycles

EMA Fibonacci Trend

by ktg0413
1 stars

The EMA Fibonacci Trend indicator calculates and plots dynamic Fibonacci retracement and extension levels based on a 200-period Exponential Moving Average (EMA). It measures volatility using a 14-period Average True Range (ATR) relative to price, establishing

Indicator v6 Support & resistanceMoving averages
Updated 1 year ago · None stated GitHub repository of EMA Fibonacci Trend

FRK Reversal Times

by murdrae
1 stars

This indicator highlights clock-time windows in New York time on the price chart, defaulting to short windows around the early morning and the 8:45 to 11:16 morning hours. During each window it draws a horizontal line along the top of the chart. A second optio

Indicator v6 Sessions & time
Updated 1 year ago · None stated GitHub repository of FRK Reversal Times

MVG

by lappingio
1 stars

An intraday gap tracker for the price chart. After each confirmed bar it checks whether the bar's low is above the prior high or its high is below the prior low within the same day, and draws a rectangle over the empty space. Gaps are marked filled once price

Indicator v6 Support & resistance
Updated 1 year ago · None stated GitHub repository of MVG

Smoothed Heiken Ashi

by turnupdigital
1 stars

An indicator that draws smoothed Heiken Ashi candles on the price chart. Prices are smoothed with a selectable moving average type and length before the Heiken Ashi calculation and again afterwards, using an imported library of average types. Signal badges mar

Indicator v6 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Smoothed Heiken Ashi

ADR Up to 10 Days With Targets

by MarvelousShabi
1 stars

This indicator calculates the average daily range from a user-selected lookback of one to ten completed days and rounds it to the instrument tick. It draws optional bullish and bearish target lines from the current day's range on the price chart and shows a co

Indicator v6 Volatility & bandsSupport & resistance Repaints
Updated 1 year ago · MIT GitHub repository of ADR Up to 10 Days With Targets

A second variant of a reversal strategy for a 15-minute TRUMP perpetual swap chart. It reacts to candles whose range exceeds a larger percentage threshold than version one, entering with a limit order against the candle direction. Take profit, stop loss, slipp

Strategy v6 Mean reversionVolatility & bands
Updated 1 year ago · None stated GitHub repository of TRUMP 15m Large Range Reversal v2

ezTrend Lines

by ezPappi
1 stars

ezTrend Lines calculates selected oscillator indicators, including RSI, CCI, Momentum, OBV, or MACD, and displays them in a separate pane. It identifies pivot highs and pivot lows on the chosen oscillator line using configurable pivot periods and checks up to

Indicator v6 Oscillators & momentumSupport & resistance
Updated 1 year ago · GPL-3.0 GitHub repository of ezTrend Lines

Bollinger Bands

by yagyesh-bobde
1 stars

The Bollinger Bands indicator plots a basis moving average line together with two volatility bands on the main price chart. The middle band shows the average price level while the upper and lower bands reflect price deviation from volatility. Traders use the b

Indicator v6 Volatility & bandsMoving averages
Updated 1 year ago · None stated GitHub repository of Bollinger Bands

BTCDOM Best Position

by theteelek
1 stars

A long-only accumulation strategy that buys near the lower edge of a smoothed channel built from an EMA of the highest high and lowest low over an adjustable range. A buy fires when price touches the lower line while RSI turns up from an oversold reading, limi

Strategy v6 Mean reversion
Updated 1 year ago · None stated GitHub repository of BTCDOM Best Position

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