Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 56)

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

Identifies rally, base and drop candle sequences and turns them into supply and demand zones on the price chart. It checks four patterns: rally-base-drop, rally-base-rally, drop-base-drop and drop-base-rally. Settings define the averaging length, the size of b

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 6 months ago · None stated GitHub repository of Rally Base Drop Signals
1 stars

This overlay indicator combines three optional modules on the price chart. Volume weighted bands plot a smoothed trend and ATR-scaled envelopes in cloud or line-only form. The Keltner Hull suite calculates a Hull moving average and Keltner channels from a chos

Indicator v6 Moving averagesVolatility & bands
Updated 7 months ago · None stated GitHub repository of Keltner Hull Swing Profile

BBTrend

by ivansoft
1 stars

Plots a histogram in a separate pane that compares two sets of Bollinger Bands, a short one of 20 bars and a long one of 50 bars by default. It measures how far apart the lower bands are minus how far apart the upper bands are, scaled by the short middle band.

Indicator v6 Volatility & bandsTrend
Updated 1 year ago · None stated GitHub repository of BBTrend

EMA Crossover Strategy

by TradersPost
228 stars

EMA Crossover Strategy plots a fast and a slow exponential moving average on the price chart. It treats a confirmed fast-over-slow cross as a long condition and a confirmed cross under as a short condition. Position size is a percentage of equity. Optional per

Strategy v6 TrendMoving averages
Updated 3 months ago · None stated GitHub repository of EMA Crossover Strategy
99 stars

This indicator calculates Bill Williams' Awesome Oscillator in a separate pane. It forms the bar midpoint from high and low, then subtracts a slow simple moving average of that midpoint from a faster one. Default periods are 5 and 34. The histogram is green wh

Indicator v6 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Awesome Oscillator (AO)

Supertrend Strategy

by dcaoyuan
55 stars

This indicator calculates a Supertrend line combined with a 200-period exponential moving average for trend filtering. It plots the Supertrend lines and background fills directly on the price chart, generating buy and sell signal labels when the trend directio

Indicator v6 TrendMoving averages
Updated 6 months ago · Apache-2.0 GitHub repository of Supertrend Strategy
47 stars

This indicator calculates John Ehlers' Detrended Synthetic Price using a dual exponential moving average (EMA) approach. It derives a fast quarter-cycle EMA and a slow half-cycle EMA from a specified dominant cycle period, applying exact warm-up normalization

Indicator v6 Oscillators & momentumMoving averages
Updated 8 months ago · MIT GitHub repository of Detrended Synthetic Price (DSP)

TTM Squeeze Divergence

by TamaraKGreen
46 stars

The TTM Squeeze Divergence indicator plots a classic TTM Squeeze momentum oscillator in a separate pane alongside Bollinger Bands and Keltner Channels squeeze status dots on the zero line. It detects regular and hidden bullish and bearish divergences between p

Indicator v6 Oscillators & momentumVolatility & bands Repaints
Updated 8 weeks ago · None stated GitHub repository of TTM Squeeze Divergence
16 stars

This strategy enters long or short Donchian breakouts and sizes each unit from a percentage of equity and ATR. It sets an initial ATR stop, trails with a chandelier stop, and tightens that trail after a chosen number of bars. Optional profit targets close one

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 25: Time Profit Lock

This indicator detects compressed corrective coils inside a higher-timeframe trend and signals when they resolve into clean directional breaks. It plots compression bands, fractal boxes, efficiency scores, and a light dashboard on the price chart. Signals clas

Indicator v6 Volatility & bandsSMC / ICT / price action
Updated 3 days ago · MIT GitHub repository of Compression Fractal Release [WavesUnchained]
9 stars

Volatility Contraction Score is a separate-pane indicator that scores how tightly price and volume are contracting. It compares short and long true-range averages and close standard deviations, then folds in a five-bar volume ratio against a longer volume aver

Indicator v6 Volatility & bandsVolume
Updated 4 months ago · MIT GitHub repository of Volatility Contraction Score

Heikin Ashi Dots

by lunarticktrading
7 stars

Heikin Ashi Dots calculates trend momentum using Heikin-Ashi candle values retrieved across a customizable timeframe. It evaluates the relationship between the open and close of the current and prior Heikin-Ashi bars, plotting a horizontal series of colored ci

Indicator v6 TrendCandlestick patterns
Updated 2 weeks ago · None stated GitHub repository of Heikin Ashi Dots

Smooth Theil-Sen

by eddiebelaval
7 stars

This indicator calculates and plots a smoothed Theil-Sen robust linear regression line directly on the price chart alongside statistical deviation bands. It uses Gaussian kernel weighting to blend between median and mean calculations for slopes and residuals.

Indicator v6 TrendVolatility & bands
Updated 3 months ago · None stated GitHub repository of Smooth Theil-Sen
6 stars

This indicator plots a session volume-weighted average price on the price chart and resets the cumulative price-volume totals when a new session begins. It uses typical price and volume, and can draw optional standard-deviation bands around the VWAP. A corner

Indicator v6 Sessions & timeVolume
Updated 2 months ago · MIT GitHub repository of Capital41 Session VWAP v2
5 stars

This indicator builds a frozen volume profile over a fixed, half-open timestamp range and draws it on the price chart. It aggregates one-minute source bars into output rows sized by a chosen tick count, marks a configurable value-area percentage, and can plot

Indicator v6 VolumeSupport & resistance
Updated 4 days ago · MPL-2.0 GitHub repository of VP RSD Fixed Range Shelf Diagnostic
4 stars

This strategy trades Ethereum with a fast and slow exponential moving average crossover filtered by a 200-period EMA. It enters long when the fast EMA crosses above the slow EMA and price is above the 200 EMA. Shorts stay off by default and open only when that

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of Ethereum ETH Strategy [trugurpala]

Stochastic Oscillator

by piecioshka
2 stars

This indicator calculates and plots the Stochastic Oscillator (%K and %D lines) in a separate pane. It identifies overbought and oversold market conditions with configurable threshold levels and background zone gradients. When enabled, it plots entry markers o

Indicator v6 Oscillators & momentumScreeners & dashboards
Updated 12 days ago · MIT GitHub repository of Stochastic Oscillator

PA Helpers

by TamTH-Dev
2 stars

This indicator overlays price action assistance tools on the main price chart. It calculates and plots up to three exponential moving averages with user-defined lengths, colors, and independent multi-timeframe resolution settings. In addition to moving average

Indicator v6 Moving averagesSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of PA Helpers
2 stars

Liquidity Location Detector is a TradingView Pine Script indicator that plots fast and slow EMA lines on the price chart along with crossover signals. It detects and draws liquidity zones as colored boxes representing support and resistance levels based on nor

Indicator v6 Moving averagesVolume
Updated 2 months ago · None stated GitHub repository of Liquidity Location Detector

Half Causal Estimator

by regalouisei
2 stars

The Half Causal Estimator calculates a smoothed statistical baseline for metrics such as volume, true range, or price change. It uses time-of-day data hashing combined with non-parametric kernel filtering, supporting Gaussian, Epanechnikov, Triangular, and Sin

Indicator v6 VolumeVolatility & bands
Updated 8 months ago · None stated GitHub repository of Half Causal Estimator

Close-to-Close Volatility (CCV)

by mushroom-men-Trading
2 stars

This indicator calculates close-to-close volatility from logarithmic returns of consecutive closing prices. It computes the standard deviation of those returns over a chosen length, annualizes the result with the square root of 252, and optionally smooths it w

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Close-to-Close Volatility (CCV)

My First Strategy

by jayadevrana
1 stars

This strategy plots an exponential moving average on the price chart and opens a long position when the close crosses above that average, but only when no position is already open. It exits with a percentage stop loss and a percentage take profit measured from

Strategy v6 TrendMoving averages
Updated 4 days ago · MPL-2.0 GitHub repository of My First Strategy

SMC Liquidity Context

by skipp-dev
1 stars

This indicator overlays smart money liquidity analytics directly onto the price chart by reading imported micro-profile data. It displays primary support and resistance levels, zone strength badges, context bias metrics, and sweep or mitigation markers. User i

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 4 days ago · None stated GitHub repository of SMC Liquidity Context

Drawing Visual Noise Geometry

by pineforge-4pass
1 stars

This strategy plots a 14-period simple moving average as a chart line and fills the space between two overlapping lines. It creates a small label on each bar, then overwrites the label text. It enters one long contract when close crosses above the line level a

Strategy v6 TrendMoving averages
Updated 7 days ago · Apache-2.0 GitHub repository of Drawing Visual Noise Geometry

P Ver Plot Offset Series

by GammaExpansion
1 stars

This indicator plots the close price series with an offset determined by bar index modulo 5. The offset creates a shifted visual series for plotting purposes on the chart. It draws the plot directly on the main price chart pane. No trading signals or exits exi

Indicator v6 Support & resistance
Updated 7 days ago · MIT GitHub repository of P Ver Plot Offset Series
1 stars

A strategy that builds a volume profile with delta over a lookback window and trades touches of its point of control and value area high and low levels, long or short. The window, bin count, value area percentage and touch tolerance in ticks are adjustable. Po

Strategy v6 VolumeSupport & resistance
Updated 8 days ago · GPL-3.0 GitHub repository of DeltaFlow Volume Profile Strategy

DEPV2 C5 - Mod Secici

by YuceSezar89
1 stars

DEPV2 C5 Mod Secici is a signal mode selection indicator designed primarily for 15-minute timeframes. It evaluates market conditions across four primary dimensions: HLC3 moving average trend scores, momentum rate-of-change z-scores, volatility expansions via f

Indicator v6 TrendOscillators & momentum
Updated 13 days ago · None stated GitHub repository of DEPV2 C5 - Mod Secici
1 stars

A price-chart indicator by AlgoAlpha that builds reversal bands around a moving basis, with band width set from a percentile of recent price moves. When price reaches a band it marks a bullish or bearish reversal signal and starts an ATR-based trailing stop li

Indicator v6 Mean reversionVolatility & bands
Updated 2 months ago · None stated GitHub repository of Reversal Signals & Trailing Stop
1 stars

Marks the bar where a volume order block zone is first confirmed, which is when the moving average crossover completes, rather than any earlier bar that would shift later. A sensitivity bank input selects the set of six sensitivity lengths, or custom values ca

Indicator v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Birth Bar Study v1.1

RSI Divergence

by rubbermetal
1 stars

RSI Divergence subtracts a slow RSI from a fast RSI and plots the difference as a four-color histogram in a separate pane. Color shows whether the gap is positive or negative and whether it is growing or shrinking. Markers appear on the bar where the gap cross

Indicator v6 Oscillators & momentumDivergence
Updated 4 months ago · MPL-2.0 GitHub repository of RSI Divergence

Support & Resistance Basic

by shubhamtaywade82
1 stars

Draws horizontal support and resistance lines on the price chart from confirmed pivot lows and pivot highs. Each level is added only after the pivot length has passed, so it appears with a delay of that many bars. Lines can extend left or right, carry price la

Indicator v6 Support & resistance Archived
Updated 5 months ago · None stated GitHub repository of Support & Resistance Basic
1 stars

Draws supply and demand zones as boxes on the price chart using pivot-based detection and several detection modes, including classic candle patterns judged by body percentage and an ATR-based mode. Settings include ATR length and multiplier, how many levels to

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones 2026-1

Liquidation Heatmap

by ymlee1104
1 stars

The Liquidation Heatmap indicator identifies potential liquidation zones on the price chart by detecting swing highs and lows, then calculates long and short liquidation volumes using selected sources such as volume, range, or their product. It extends bars to

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of Liquidation Heatmap

Bollinger Bands %b

by ivansoft
1 stars

Plots Bollinger Bands %b, which shows where price sits relative to the bands, in a separate pane. Values near one mean price is at the upper band, near zero at the lower band and 0.5 at the middle. Length, source and standard deviation multiplier are adjustabl

Indicator v6 Volatility & bandsMean reversion
Updated 1 year ago · None stated GitHub repository of Bollinger Bands %b

Exit Orders

by TradersPost
228 stars

This strategy provides reusable building blocks for entries, exits, and risk management in Pine Script. It calculates profit and loss units, applies session filtering based on timezone, and handles backtest date ranges. It includes risk settings like stop loss

Strategy v6 Sessions & time Repaints
Updated 3 months ago · None stated GitHub repository of Exit Orders

Balance of Power (BOP)

by mihakralj
99 stars

This indicator calculates the Balance of Power oscillator to gauge underlying buying and selling pressure by evaluating the position of the close relative to the open against the bar high-low range. It provides an option to smooth raw values using an exponenti

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Balance of Power (BOP)
55 stars

The script identifies market structure key levels by calculating pivot highs and pivot lows across a fixed fifteen-bar lookback and lookahead window. It plots confirmed resistance pivots as red circles and support pivots as green crosses directly on the price

Indicator v6 Support & resistance Repaints
Updated 6 months ago · Apache-2.0 GitHub repository of Support & Resistance Levels
47 stars

This diagnostic utility injects missing (na) values into an input data series at regular cyclic intervals to test how indicators handle corrupted or interrupted data feeds. The user can configure the input source, the repetition interval, and the length of eac

Indicator v6
Updated 8 months ago · MIT GitHub repository of Dirty Data Injection (DIRTY)

6-9 session & levels

by TamaraKGreen
46 stars

This indicator marks a user-defined session, defaulting to 06:00-09:00 in the America/New_York time zone, and draws that session's high-low range on the price chart. It can show a session anchor, a session open line, a shaded range box, and horizontal levels a

Indicator v6 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of 6-9 session & levels
16 stars

This overlay strategy trades Donchian breakouts in either direction. The first unit is sized from a risk percent of equity and an ATR-based initial stop; later units are added at fixed ATR steps and are progressively smaller, up to four units. Optional profit

Strategy v6 TrendVolatility & bands
Updated 12 months ago · None stated GitHub repository of Seykota Alt 26: Fractional Pyramid
9 stars

This indicator plots a heuristic volume-balance oscillator in a separate pane. It estimates signed volume from the close location inside each bar, multiplies that by volume, and sums the proxy over a rolling window. The sum is scaled between minus one and plus

Indicator v6 VolumeOscillators & momentum
Updated 3 days ago · MIT GitHub repository of CVD Bias [WavesUnchained]

Volume Surprise [LuxAlgo]

by MeridianAlgo
9 stars

Volume Surprise plots volume against a historical summary for matching time periods in a separate pane. It groups past volume by minutes, hours, days, months, or quarters, then summarizes each group with a mean or a percentile. Length sets the sample window an

Indicator v6 Volume
Updated 4 months ago · MIT GitHub repository of Volume Surprise [LuxAlgo]

LunarTick VWAP

by lunarticktrading
7 stars

This overlay indicator plots a volume-weighted average price on the price chart, anchored to a chosen period such as the session, week, month, or longer calendar and corporate events. It draws up to three standard-deviation bands around the VWAP, with multipli

Indicator v6 VolumeVolatility & bands Repaints
Updated 2 weeks ago · None stated GitHub repository of LunarTick VWAP

stelaraX - Momentum

by eddiebelaval
7 stars

This indicator plots momentum of a chosen price source over a user-set period in a separate pane. It calculates the difference between the current source value and the value that many bars earlier, then draws the result as a histogram. Positive values appear g

Indicator v6 Oscillators & momentum
Updated 3 months ago · None stated GitHub repository of stelaraX - Momentum
6 stars

The Capital41 Structure Swings v3 indicator tracks market structure on the main price chart using pivot detection. It identifies swing highs and swing lows based on a user-defined pivot length, plotting labels and horizontal dotted level lines at active swing

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 2 months ago · MIT GitHub repository of Capital41 Structure Swings v3

This indicator is a research diagnostic that builds a volume profile over a user-defined swing range and draws it on the price chart. It allocates each bar's volume by exact high and low tick overlap across fine, base, and coarse row sizes. It marks a volume n

Indicator v6 Volume
Updated 4 days ago · MPL-2.0 GitHub repository of VP RSD Local Node Edge Consensus Diagnostic

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