Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 51)

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

Valuation Table

by ankurksoni
1 stars

A table overlay on the price chart, short title Valuation, that shows valuation-related figures for a stock. The code detects the first year of listed data and counts how often price has touched and closed back above the 10 and 20 period EMAs within a lookback

Indicator v6 Screeners & dashboards
Updated 3 days ago · None stated GitHub repository of Valuation Table

kNN Classifier

by jayadevrana
1 stars

This indicator implements a k-nearest neighbours classification model to forecast price direction several bars ahead. It extracts three normalized technical features: RSI, an EMA spread scaled by ATR, and normalized candle range volatility. Historical samples

Indicator v6 AI / machine learningTrend
Updated 4 days ago · MPL-2.0 GitHub repository of kNN Classifier

SMC Engine Private

by skipp-dev
1 stars

This Pine Script v6 library serves as an internal engine for Smart Money Concepts (SMC), providing types, tracking, and rendering logic for order blocks, fair value gaps, and market structure. It calculates order block parameters including quality scores, heig

Library v6 SMC / ICT / price actionSupport & resistance
Updated 4 days ago · None stated GitHub repository of SMC Engine Private

Donchian Channel Breakout

by pineforge-4pass
1 stars

This strategy tracks price breakouts using Donchian Channels calculated from the highest highs and lowest lows over configurable lookback periods. It plots the upper, lower, and mid entry channels directly on the price chart. A long entry triggers when the bar

Strategy v6 TrendBreakout
Updated 7 days ago · Apache-2.0 GitHub repository of Donchian Channel Breakout

P Err Strategy In Indicator

by GammaExpansion
1 stars

This script is an indicator that plots the close price on the price chart. It checks if close is greater than open and enters a long position using strategy.entry if true. However, as an indicator, strategy functions may not execute properly and could cause er

Indicator v6 Trend
Updated 7 days ago · MIT GitHub repository of P Err Strategy In Indicator

An indicator that plots two context reads on the price chart without trading logic. A 4-hour bias comes from swing structure agreeing with the close versus a 50 EMA and its slope, and a 1-hour trend check requires ADX, stacked fast and slow EMAs and an efficie

Indicator v6 Trend Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of Delta Break and Retest Stage 4 MTF Bias Stack

DEPV2 C1a Temel Skor

by YuceSezar89
1 stars

This indicator calculates a composite base score using trend, momentum, volatility, and volume components. It computes HLC3 SMA trend levels, ROC momentum z-scores, ATR-based volatility expansion ratios, and volume participation rates. Additional MTF Heikin As

Indicator v6 TrendOscillators & momentum
Updated 13 days ago · None stated GitHub repository of DEPV2 C1a Temel Skor
1 stars

This indicator detects fractal patterns in price action using a customizable number of periods. It identifies up and down fractals and draws symmetry zones between consecutive fractals of opposite types on the price chart. Zones incorporate slope multipliers a

Indicator v6 Support & resistanceTrend
Updated 7 weeks ago · None stated GitHub repository of Fractal Symmetry Signals

Series Demo

by Alaamo7
1 stars

This educational indicator demonstrates the Pine Script series concept by plotting the current closing price alongside the previous bar's closing price in a separate pane. It serves as an introductory teaching example to show how historical indexing operates o

Indicator v6
Updated 2 months ago · Custom licence GitHub repository of Series Demo

Mean Deviation Trail

by vedkanani123
1 stars

An overlay indicator that measures how far price sits from a central EMA, smooths that signed deviation with a selectable moving average, and uses a mean absolute deviation measure to scale a trailing band. The multiplier is tight when deviation is strong and

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Mean Deviation Trail
1 stars

Draws volume order blocks on the price chart and marks three tiers of asymmetric volume signals, buy and sell, with a cooldown. High-volume proximity markers fire when a rolling highest-volume bar sits within a set number of bars of a tier signal. This version

Indicator v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Asymmetric HV Proximity v1.3

Quantum Flow v22 Engine Bay

by Jitheandra98
1 stars

This indicator builds on the Quantum Flow gold series by making each entry model an independently switchable engine. A buy or sell appears when any enabled engine triggers, and each signal is tagged with the engine that produced it, covering validated, classic

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of Quantum Flow v22 Engine Bay
1 stars

This indicator overlays GEX levels on the price chart for options analysis on stocks and indices. It plots Bullseye, Gamma Flip, Call Wall, Put Wall, Max Pain, Expected Move, Flip Zones, and Top N strikes based on pasted TradeTracker data. Busby levels include

Indicator v6 Support & resistanceVolatility & bands Repaints
Updated 4 months ago · None stated GitHub repository of TradeTracker GEX + Busby

Quad Rotation 14 3

by rubbermetal
1 stars

Quad Rotation 14 3 is the medium pane of a four-stochastic setup with periods 9, 14, 40 and 60. It plots the 14/3 stochastic K and D lines in a separate pane with oversold and overbought zones, K/D cross triangles inside extreme zones, and a convergence band w

Indicator v6 Oscillators & momentumDivergence
Updated 4 months ago · MPL-2.0 GitHub repository of Quad Rotation 14 3
1 stars

Calculates Relative Strength Index (RSI) across four configurable timeframes using security calls with lookahead disabled. It identifies regular bullish and bearish divergences between price pivots and the primary RSI over a user-defined lookback window. A wei

Indicator v6 Oscillators & momentumDivergence Archived
Updated 5 months ago · None stated GitHub repository of Multi-Timeframe RSI [Agent Example]
1 stars

This indicator toolkit analyzes cryptocurrency price action on TradingView charts. It computes and plots Volume Profile with user-adjustable lookback bars, row count, and value area percentage; VWAP lines anchored to daily/weekly/monthly sessions plus optional

Indicator v6 VolumeSupport & resistance
Updated 5 months ago · MIT GitHub repository of Crypto AMT v7.2 Spec Watch
1 stars

This compact indicator labels Elliott Wave counts on the price chart. It runs a zig-zag at several depths, chooses the depth that gives the best fit, and applies Elliott Wave rules, with a strict mode that forces an A-B-C count when the rules break. A correcti

Indicator v6 Support & resistance Repaints
Updated 6 months ago · None stated GitHub repository of Mini Elliott Wave 2026-2

Quantum Scalper 5M

by Focal-QuantAI
1 stars

An indicator on the price chart intended for 5 minute charts. It plots fixed support and resistance from rolling highest and lowest values and combines retest confirmation, a Bollinger Band option, a channel built from an EMA with ATR and standard deviation, a

Indicator v6 ScalpingSupport & resistance
Updated 6 months ago · None stated GitHub repository of Quantum Scalper 5M
1 stars

This indicator plots a global liquidity series in a separate pane from selected central-bank balance sheets and optional national money-supply series, converted into US dollars. Toggles cover the Federal Reserve, Treasury General Account, reverse repurchase ag

Indicator v6 Oscillators & momentumScreeners & dashboards
Updated 7 months ago · None stated GitHub repository of Global Liquidity Index
1 stars

This indicator calculates and plots dollar-cost averaging cost basis lines directly on the main price chart from a chosen starting date. It tracks a continuous average purchase price across regular bar intervals alongside a secondary average that accumulates o

Indicator v6
Updated 1 year ago · None stated GitHub repository of TeeLek-DCA-Under-DCA-Line

Ticker Tape

by ivansoft
1 stars

An indicator that draws a scrolling ticker tape on the price chart for a list of symbols entered as comma-separated text. For each symbol it requests the daily close, the daily change and the percentage change, and shows them with the symbol name. A running se

Indicator v6 Screeners & dashboards Repaints
Updated 1 year ago · None stated GitHub repository of Ticker Tape

Volume Accumulation

by everget
947 stars

Volume Accumulation sums bar volume inside a chosen time bucket and plots the running total as columns in a separate pane. The bucket can be minutely, hourly, session, daily, monthly, quarterly, or yearly, and the total resets when that period changes. Columns

Indicator v6 Volume
Updated 12 days ago · GPL-3.0 GitHub repository of Volume Accumulation
228 stars

Comprehensive Volume Profile is an overlay indicator that calculates and plots volume distribution across specified time ranges such as daily sessions, weekly, monthly, or custom bar lengths. It identifies key structural price levels including the Point of Con

Indicator v6 VolumeSupport & resistance
Updated 3 months ago · None stated GitHub repository of Comprehensive Volume Profile
99 stars

This indicator calculates the statistical autocorrelation coefficient of an input series over a user-defined lookback window at a specified lag. It tracks values using an internal circular buffer, computes sample mean, variance, and autocovariance, and normali

Indicator v6 TrendMean reversion
Updated 4 weeks ago · Apache-2.0 GitHub repository of Autocorrelation Function (ACF)

Scalping Position Size

by iamrichardD
57 stars

This indicator calculates a suggested position size from account size, risk per trade, and a percentage stop. It multiplies account size by the risk percent to get the dollar risk, then divides that by a stop distance equal to the current close times the stop-

Indicator v6 Screeners & dashboardsScalping
Updated 1 year ago · Apache-2.0 GitHub repository of Scalping Position Size
55 stars

This indicator calculates a 14-period RSI from close and plots it in a separate pane with dotted overbought and dashed oversold lines at 70 and 30. It marks bullish divergence when a five-bar pivot low in price is lower than the price twenty bars earlier while

Indicator v6 Oscillators & momentumDivergence
Updated 6 months ago · Apache-2.0 GitHub repository of RSI Divergence Detector
53 stars

The script calculates the Relative Strength Index (RSI) alongside customizable overbought and oversold thresholds. It tracks recent high and low values over a user-defined lookback period to detect price and momentum divergence. Bullish and bearish divergences

Indicator v6 Oscillators & momentumDivergence
Updated 2 months ago · MPL-2.0 GitHub repository of RSI Divergence [Ahmed Edition]

Reversal Breakout System

by TamaraKGreen
47 stars

This indicator detects inside candles inside larger parent candles on the price chart. It plots colored boxes around inside and parent candles, fills them with user-adjustable transparency, draws Fibonacci retracement lines and mother candle range lines, and d

Indicator v6 Candlestick patternsBreakout
Updated 8 weeks ago · None stated GitHub repository of Reversal Breakout System

Choppiness Index

by mihakralj
47 stars

The Choppiness Index is a technical indicator designed to determine whether a market is trending or consolidating. It calculates values between zero and one hundred using true range sums and price ranges over a user-defined lookback length. Lower values indica

Indicator v6 TrendVolatility & bands
Updated 8 months ago · MIT GitHub repository of Choppiness Index

Zen Trading Toolkit

by Zen-Tim
29 stars

This indicator plots average bar range (ABR) measured move targets, opening range boxes, and historical key reference levels directly on the price chart. It projects bullish and bearish targets (0.5x, 1.0x, 1.5x, 2.0x ABR) from the previous session's close, al

Indicator v6 Support & resistanceVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Zen Trading Toolkit

This strategy executes trend-following breakout trades using asymmetric parameters for long and short directions. It calculates Donchian channels and ATR (N) to adapt to directional market speeds. Long positions utilize a longer entry lookback and tighter ATR

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 20: Asymmetric Long/Short

Chandelier Flip Radar plots an ATR trailing stop on the price chart and tracks a directional trend state. It holds a ratchet stop until an accepted flip, using close or wick extremums and a body filter so weak breaks do not change direction. Distance to the fl

Indicator v6 TrendVolatility & bands
Updated 3 days ago · MIT GitHub repository of Chandelier Flip Radar [WavesUnchained]

Pro Pattern Al-Sat

by MeridianAlgo
9 stars

This overlay indicator marks bullish and bearish chart patterns on the price chart and can hide either side. Optional filters require agreement from fast and slow EMAs, Supertrend, and ADX, plus volume, RSI, nearby pivot support or resistance, and a user-defin

Indicator v6 Candlestick patternsTrend
Updated 4 months ago · MIT GitHub repository of Pro Pattern Al-Sat

Swing Levels

by lunarticktrading
7 stars

Swing Levels is a Pine Script indicator designed to replicate a popular pivot-based swing indicator from NinjaTrader directly on the price chart. It calculates swing high and swing low points using a user-definable length parameter and plots them with circles

Indicator v6 Support & resistance
Updated 2 weeks ago · None stated GitHub repository of Swing Levels

This indicator projects a dual-asset momentum matrix visualizer directly onto the price chart overlay. It calculates normalized momentum for the chart symbol using either RSI or Stochastic inputs adjusted by ATR volatility, and compares it against a benchmark

Indicator v6 Oscillators & momentumVolatility & bands Repaints
Updated 3 months ago · None stated GitHub repository of Pro Grid Elite: Advanced Dual-Asset Momentum Matrix

RSI + MFI Combined

by s4mn0v
7 stars

This indicator plots a custom RSI and an optional Money Flow Index in a separate pane so price momentum can be compared with volume-weighted momentum. It draws RSI bands at 30, 50, and 70 with gradient fills above and below the midline, plus dashed MFI levels

Indicator v6 Oscillators & momentum
Updated 5 months ago · None stated GitHub repository of RSI + MFI Combined
6 stars

This overlay indicator maps an opening drive for a chosen session, using the first 30 or 60 minutes. It tracks drive high, low, midpoint, range, pace, and volume versus a multi-session average, then projects continuation lines from the drive edge and fade line

Indicator v6 Sessions & timeSupport & resistance
Updated 2 months ago · MIT GitHub repository of Capital41 Opening Drive Playbook

Volume Profile Phase 0 Probe

by 345-strategies
5 stars

Volume Profile Phase 0 Probe is a non-visual diagnostic tool designed to perform parity testing and internal backend validation for volume profile calculations. It deliberately features no chart plots, signals, alerts, or visual drawings. The script computes i

Indicator v6 Volume
Updated 4 days ago · MPL-2.0 GitHub repository of Volume Profile Phase 0 Probe

This indicator calculates a volatility signal-to-noise ratio based on the absolute bar-to-bar price change. It estimates the mean and second moment using an exponential weighting scheme to evaluate relative noise in price movement. The resulting ratio is plott

Indicator v6 Volatility & bands
Updated 8 months ago · None stated GitHub repository of Volatility Signal-to-Noise Ratio

Williams %R

by SiegerTerpstra
5 stars

This indicator calculates Williams %R, a momentum oscillator that places the selected source inside the highest-high to lowest-low range over a chosen length and scales the result from 0 to -100. It draws the oscillator in a separate pane, colors it according

Indicator v6 Oscillators & momentum
Updated 9 months ago · None stated GitHub repository of Williams %R

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