Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 65)

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

DEPV2 DEBUG S19

by YuceSezar89
1 stars

This indicator monitors and analyzes up to 20 cryptocurrency pairs across four core analytical dimensions: trend, momentum, volatility, and volume. It generates signals using several selectable modes, including single-factor triggers, simultaneous multi-method

Indicator v6 Screeners & dashboardsTrend Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S19
1 stars

Volume Power Zones {Morindok} is a price-chart overlay that divides a short lookback of candles, including the live bar, into several horizontal price zones. It draws outer boxes and zone boxes for the previous and current windows, and colors each zone as stro

Indicator v6 VolumeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Volume Power Zones {Morindok}

Adaptive Pivot Structure

by vedkanani123
1 stars

A pivot and structure indicator on the price chart. It marks swing highs and lows with a configurable length, grades them against ATR, and can draw a zigzag, active horizontal levels, break of structure and change of character events, and missed reversals. A F

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of Adaptive Pivot Structure
1 stars

A long-only breakout strategy built on a Donchian channel, 25 bars by default, drawn on the price chart as upper and lower lines. At a chosen exchange hour each day it places a buy stop at the previous upper band. The order is cancelled if not filled within a

Strategy v6 BreakoutSessions & time
Updated 2 months ago · None stated GitHub repository of TN Donchian Breakout
1 stars

Draws a single box on the price chart that represents one candle from a higher timeframe, using a custom type to hold its open, high, low and close. Past higher-timeframe candles are drawn as boxes when they complete, and the current one updates as price moves

Indicator v6
Updated 1 year ago · None stated GitHub repository of Multi Time Period Chart
228 stars

This indicator calculates and plots trend direction across four customizable timeframes in a separate pane. It evaluates whether the close is above or below a moving average for each timeframe, assigning directional values that sum into an aggregate alignment

Indicator v6 TrendMoving averages
Updated 3 months ago · None stated GitHub repository of Multi-Timeframe Trend Alignment
99 stars

This indicator calculates the Chande Momentum Oscillator (CMO) to evaluate price momentum over a specified lookback period. It computes the difference between unsmoothed sums of positive and negative price changes using an efficient circular buffer implementat

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Chande Momentum Oscillator (CMO)
47 stars

This indicator plots a Hanning-window finite impulse response moving average of a selected price source on the price chart. It weights the lookback with the classic raised-cosine Hanning coefficients, rebuilds those weights when the effective window grows duri

Indicator v6 TrendMoving averages
Updated 8 months ago · MIT GitHub repository of Hanning Moving Average (HANMA)
16 stars

This trend-following strategy generates long and short breakout signals using volatility channels plotted around a simple moving average. It calculates ATR bands for entries and trailing exits, calculating position sizing based on account equity and ATR risk p

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 3: ATR Channel

Calculates a composite carry and decay oscillator fusing impulse-autocorrelation half-life, a Hurst exponent approximation, path efficiency, and range expansion ratios. It evaluates whether an impulse is likely to persist or mean-revert, plotting the oscillato

Indicator v6 TrendOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Market Memory & Decay Oscillator [WavesUnchained]
4 stars

The indicator calculates classic pivot points from the previous day's high, low, and close using request.security. It plots the central pivot (PP) along with resistance levels R1 R2 R3 and support levels S1 S2 S3 directly on the price chart. The only setting s

Indicator v6 Support & resistance Repaints
Updated 2 months ago · MIT GitHub repository of Pivot Points [trugurpala]

Adaptive Volume Delta Map

by regalouisei
2 stars

This indicator builds a volume delta map in a separate pane. It requests an anchor timeframe, optionally at seconds or tick resolution, and splits volume into buy and sell sides using bid and ask data when that option is on. It maps volume across price rows, f

Indicator v6 VolumeSupport & resistance Repaints
Updated 8 months ago · None stated GitHub repository of Adaptive Volume Delta Map

Walk-Forward Lab

by jayadevrana
1 stars

Walk-Forward Lab is an educational overlay indicator that simulates trade execution and walk-forward testing directly within Pine Script. It evaluates EMA fast and slow line crossovers using ATR-based stop-loss levels and risk-reward ratio targets. A user-defi

Indicator v6 TrendMoving averages
Updated 4 days ago · MPL-2.0 GitHub repository of Walk-Forward Lab

VWAP Reclaim Strategy

by skipp-dev
1 stars

This overlay strategy trades long and short when price reclaims an anchored VWAP and then breaks a recent pullback high or low. Optional modes enter on a simple VWAP cross instead. It filters with VWAP slope, a short price-bias EMA, a stacked RSI bias, and rel

Strategy v6 TrendOscillators & momentum Repaints
Updated 4 days ago · None stated GitHub repository of VWAP Reclaim Strategy

Main Period Adaptive Cross

by pineforge-4pass
1 stars

A simple moving average crossover strategy, 10 against 30, that only trades when the chart timeframe is 15 minutes. On that timeframe it enters long when the fast average crosses above the slow one and short when it crosses below, reversing the position. On an

Strategy v6 Moving averagesTrend
Updated 7 days ago · Apache-2.0 GitHub repository of Main Period Adaptive Cross

P_err_unterminated_string

by GammaExpansion
1 stars

This script is a parser test fixture designed to test syntax error handling in Pine Script v6. It declares a string variable containing an unclosed string literal and attempts to plot the string length in a separate pane. Because the string is intentionally le

Indicator v6
Updated 7 days ago · MIT GitHub repository of P_err_unterminated_string

ORB Break and Retest v3

by rosijay17-cmd
1 stars

An opening range breakout strategy with two entry modes. Breakout mode enters when price clears the opening range by a tick or ATR-based buffer, and retest mode waits for a pullback to the range boundary using a limit or alternative entry type. The range, entr

Strategy v6 BreakoutSessions & time Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of ORB Break and Retest v3

DEPV2 DEBUG S2

by YuceSezar89
1 stars

DEPV2 DEBUG S2 is a multi-symbol indicator that aggregates signals across 20 cryptocurrency pairs using four methods: TREND, MOMENTUM, VOLATILITY and VOLUME. It supports signal modes including simultaneous confidence, sequential and automatic per-asset selecti

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S2
1 stars

Volume Power Zones draws stacked price zones over a recent window of candles, including the live bar, on the price chart. It requests lower-timeframe open, high, low, close and volume to estimate volume inside each zone, then colors zones as strong or weak buy

Indicator v6 VolumeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Volume Power Zones {Morindok}

Adaptive Spectral Forecast

by vedkanani123
1 stars

A cycle-analysis indicator on the price chart. It analyzes a lookback window of 144 bars by default, extracts up to five dominant cycles, and projects a forecast line 55 bars ahead with confidence bands. Buy and sell signals can be limited to the direction of

Indicator v6 TrendAI / machine learning Repaints
Updated 2 months ago · None stated GitHub repository of Adaptive Spectral Forecast

Net Volume

by ivansoft
1 stars

Plots net volume, up volume minus down volume, as a blue line in a separate pane with a zero line. Up and down volume are approximated from lower-timeframe data, chosen automatically or set by the user; a higher lower-timeframe setting gives more history but l

Indicator v6 Volume
Updated 1 year ago · None stated GitHub repository of Net Volume

Nasdaq Prop Firm Strategy

by TradersPost
228 stars

This strategy uses multiple VWAP anchors and a custom Lull indicator to generate buy and sell signals on the Nasdaq price chart. It plots the VWAP trend line and three VWAP anchors with customizable colors and mitigation methods. The Lull indicator produces si

Strategy v6 TrendSupport & resistance Repaints
Updated 3 months ago · None stated GitHub repository of Nasdaq Prop Firm Strategy

Chandelier Exit

by mihakralj
99 stars

This indicator plots Chandelier Exit levels on the price chart. It computes true range and a Wilder RMA of true range over a lookback, then subtracts a scaled ATR from the highest high for the long exit and adds it to the lowest low for the short exit. The per

Indicator v6 TrendVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Chandelier Exit
47 stars

Henderson Moving Average plots a finite impulse response smoother of the selected source on the price chart. It derives closed-form Henderson weights once, normalizes them to sum to one, and convolves them with a rolling window. The filter is designed to pass

Indicator v6 TrendMoving averages
Updated 8 months ago · MIT GitHub repository of Henderson Moving Average (HEND)
16 stars

This strategy trades Donchian channel breakouts on the price chart and can take both long and short positions. It sizes the first unit from a risk percentage of price and ATR, then adds smaller units when price advances by an ATR step and RSI is above or below

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 40: ULTIMATE

Market Pressure Scale plots two oscillator curves in a separate pane. Setup pressure combines ATR and Bollinger compression, support and resistance proximity, and drying volume. Impulse pressure combines range expansion, volume, and candle body size. A range-c

Indicator v6 Oscillators & momentumVolatility & bands
Updated 3 days ago · MIT GitHub repository of Market Pressure Scale [WavesUnchained]
4 stars

This strategy enters long when RSI is above a minimum threshold and price is above a trend EMA, and short when RSI is below a maximum threshold and price is below that EMA. It opens a trade only while flat. Exits place an ATR multiple as the stop and a larger

Strategy v6 Oscillators & momentumMoving averages
Updated 2 months ago · MIT GitHub repository of RSI + ATR Strategy [trugurpala]

Intraday Intensity Index (III)

by mushroom-men-Trading
2 stars

The Intraday Intensity Index (III) indicator quantifies volume flow based on price action within each bar's high-low range. It calculates the close price's relative position within the high-low range and scales it by volume to measure buying or selling pressur

Indicator v6 Volume
Updated 9 months ago · None stated GitHub repository of Intraday Intensity Index (III)

Z-Score Lab

by jayadevrana
1 stars

Z-Score Lab plots the simple moving average of close and bands at one and two standard deviations on the price chart, and computes the current z-score of price versus that mean. On the last bar it stores a rolling sample of z-scores and shows a histogram table

Indicator v6 Volatility & bandsMean reversion
Updated 4 days ago · MPL-2.0 GitHub repository of Z-Score Lab

BFI Reversal

by skipp-dev
1 stars

BFI Reversal is a price-chart indicator that marks reversal and continuation setups from pivot structure, clustered zones, and scored flow. It offers balanced or aggressive early-reversal modes and a continuation-breakout mode, with asset profiles for auto, st

Indicator v6 Support & resistanceVolume
Updated 4 days ago · None stated GitHub repository of BFI Reversal

Mantle Keltner Regime

by pineforge-4pass
1 stars

A long-only strategy built on Keltner Channels. It enters long when price crosses above the upper band while the channel centre is above a longer trend EMA. It exits when price closes below the channel centre, or when price falls a chosen fraction of the chann

Strategy v6 Volatility & bandsBreakout
Updated 7 days ago · Apache-2.0 GitHub repository of Mantle Keltner Regime

P_err_use_before_def

by GammaExpansion
1 stars

This Pine Script indicator is a minimal test fixture designed for parser and compiler verification. It attempts to call a custom function to multiply the closing price by two prior to its definition block, subsequently plotting the output value in a separate i

Indicator v6
Updated 7 days ago · MIT GitHub repository of P_err_use_before_def
1 stars

A strategy built on the opening range. It waits for price to break above or below the range, return to the broken level, and then cross back through it in the same direction, at which point it enters. The range duration, buffer percentage, touch or close trigg

Strategy v6 BreakoutSessions & time Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of ORB Break-Return-Cross Strategy

DEPV2 DEBUG S20

by YuceSezar89
1 stars

This indicator watches up to twenty user-chosen symbols and scores each one with four signal classes: trend, momentum, volatility, and volume. Signal mode can use a single class, require several classes to agree, require them in a set order inside a bar window

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S20

Williams Fractals

by morindok
1 stars

Williams Fractals marks swing highs and swing lows on the price chart using Bill Williams fractal rules. A high or low is confirmed when neighbouring bars over a chosen number of periods sit beyond it, with extra checks that allow a few equal highs or lows bes

Indicator v6 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Williams Fractals
1 stars

A squeeze and momentum oscillator in a separate pane. It compares an EMA-based volatility band with an ATR channel to detect squeezes and plots a smoothed momentum histogram colored by strength and direction. Regular and hidden divergence between price and mom

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of Adaptive Squeeze Momentum Pro

On Balance Volume

by ivansoft
1 stars

Plots on balance volume in a separate pane: a running total that adds volume on bars where the close rises and subtracts it where the close falls. An optional smoothing line can be added with SMA, EMA, SMMA, WMA or VWMA, or SMA with Bollinger Bands whose width

Indicator v6 Volume
Updated 1 year ago · None stated GitHub repository of On Balance Volume

Order Blocks - Simple

by TradersPost
228 stars

Order Blocks - Simple calculates pivot highs and lows to identify potential smart money concepts order block zones directly on the main price chart. When price breaks structure relative to past pivot points, the indicator draws colored box zones around the hig

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of Order Blocks - Simple
99 stars

Chebyshev Type I Filter (CHEBY1) calculates a second-order Chebyshev Type I lowpass digital filter directly on the price chart. It provides noise reduction and trend smoothing with steep roll-off characteristics governed by controlled ripple in the passband. T

Indicator v6 Moving averagesTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Chebyshev Type I Filter (CHEBY1)
47 stars

This indicator calculates a 2-pole Infinite Impulse Response highpass filter to isolate higher-frequency components or remove trends from a given price source. It computes an internal highpass value based on a configurable length parameter and plots the result

Indicator v6 Volatility & bandsMoving averages
Updated 8 months ago · MIT GitHub repository of Highpass Filter (2-Pole)
16 stars

Implements an adaptive trend-following and range-trading strategy that switches behavior based on ADX regime detection. When ADX exceeds the threshold, it executes Donchian breakouts with fractional pyramiding and Chandelier trailing stops. In low ADX environm

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 41: Sector-Adaptive

This indicator analyzes impulse momentum, swing pivot structure, and nearby clustered support and resistance zones to project three forward price paths on the chart. It calculates weighted probabilities for direct continuation, pullback continuation, and struc

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 3 days ago · MIT GitHub repository of Market Scenario Projector [WavesUnchained]

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