Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 58)

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

Scalping BB CCI ROC

by rubbermetal
1 stars

Scalping BB CCI ROC is an indicator that marks Scalp L or Scalp S labels when the close is outside a Bollinger Band while CCI and rate of change are both beyond their thresholds in the same direction. It draws the bands with a fill colored by price position, a

Indicator v6 ScalpingMean reversion
Updated 4 months ago · MPL-2.0 GitHub repository of Scalping BB CCI ROC

Trendline Breakouts With Targets

by shubhamtaywade82
1 stars

Detects pivot highs and lows, draws sloping trendlines from them and marks breakouts on the price chart. After a breakout it shows take profit and stop loss visuals and a status table. Settings choose the pivot period, whether lines use wicks or candle bodies,

Indicator v6 Support & resistanceBreakout Archived
Updated 5 months ago · None stated GitHub repository of Trendline Breakouts With Targets
1 stars

Draws supply and demand zones as boxes on the price chart using several detection modes, including classic candle patterns judged by body percentage and an ATR-based mode. This variant uses looser body thresholds, allowing a base candle body up to the full can

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

Liquidation Heatmap

by ymlee1104
1 stars

This indicator draws a liquidation heatmap on the price chart. It estimates pocket intensity from volume, price range, or their product over a configurable lookback, then filters by minimum intensity and merges nearby labels. An optional ZigZag plots swings, w

Indicator v6 Support & resistanceVolume
Updated 7 months ago · None stated GitHub repository of Liquidation Heatmap

Bollinger Bars

by ivansoft
1 stars

Restyles the chart's candles as an overlay. Bodies are coloured green when the close is above the open and red otherwise, while wicks are drawn in a fixed blue. It performs no calculation beyond the candle comparison and has no inputs or signals. It needs the

Indicator v6 Candlestick patterns
Updated 1 year ago · None stated GitHub repository of Bollinger Bars
228 stars

This overlay indicator decomposes a chosen index move into approximate contributions from its largest members. It tracks NDX, SPX, DJIA, or RUT using hard-coded weights and a table of member percentage changes versus the prior daily close, the regular-hours op

Indicator v6 Screeners & dashboards
Updated 3 months ago · None stated GitHub repository of Index Concentration & Contribution
99 stars

This indicator plots a Baxter-King symmetric band-pass filter in a separate pane. It estimates the cyclical component of a source series for periods between a minimum and a maximum bar length, using ideal band-pass weights shifted so they sum to zero and remov

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Baxter-King Band-Pass Filter

Trend Analysis

by dcaoyuan
55 stars

Trend Analysis plots a 20-period and a 50-period exponential moving average on the price chart. It marks bars whose close is above the faster average with a green square below the bar and marks other bars with a red square above the bar. It also calculates a 1

Indicator v6 TrendMoving averages
Updated 6 months ago · Apache-2.0 GitHub repository of Trend Analysis

Double Weighted Moving Average (DWMA) calculates a double-smoothed moving average by applying two consecutive weighted moving average passes to a chosen price source. Implemented with circular array buffers and running state accumulators, it achieves O(1) time

Indicator v6 Moving averagesTrend
Updated 8 months ago · MIT GitHub repository of Double Weighted Moving Average (DWMA)
16 stars

Implements a Donchian breakout trend-following strategy filtered by ADX trend strength. It initiates long or short positions when price breaks Donchian channel extremes and ADX exceeds a specified threshold. Positions are sized using ATR volatility with Turtle

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 28: ADX Filter

The indicator scores whether a counter-move against the dominant structure is maturing and whether price has started turning back. It plots a composite score in a separate pane from weighted context, correction maturity, and exhaustion, scaled by trigger and a

Indicator v6 TrendOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Directional Probability Engine v2 [WavesUnchained]

PaperHands Strategy

by lunarticktrading
7 stars

PaperHands Strategy is an intraday trading system displayed in a separate pane, driven by momentum signals such as Laguerre RSI. It executes long and short entries, re-entries, and signal-based exits with risk management rules. Position exits support fixed-tic

Strategy v6 Oscillators & momentumSessions & time
Updated 2 weeks ago · None stated GitHub repository of PaperHands Strategy

Volume Average [UkutaLabs]

by eddiebelaval
7 stars

This indicator plots volume columns alongside an exponential moving average line of volume in a separate pane. It compares current bar volume against its 13-period average by default. When volume exceeds the exponential moving average, columns are colored gree

Indicator v6 VolumeMoving averages
Updated 3 months ago · None stated GitHub repository of Volume Average [UkutaLabs]
5 stars

This research diagnostic indicator reconstructs fixed-range volume profiles on the main price chart using lower-timeframe bar data. It approximates TradingView native fixed-range volume profiles over a specified time range using configurable source timeframes

Indicator v6 VolumeSupport & resistance
Updated 4 days ago · MPL-2.0 GitHub repository of VP RSD Native-Like Bar Profile Diagnostic
4 stars

The Fakeout Filter indicator calculates a four-layer signal quality score ranging from 0 to 4 to evaluate trade setups. It assesses four conditions: volume expansion above a moving average multiple, alignment with a higher timeframe EMA trend, price move excee

Indicator v6 TrendVolume Repaints
Updated 2 months ago · MIT GitHub repository of Fakeout Filter [trugurpala]

Volume Delta Histogram

by piecioshka
2 stars

Volume Delta Histogram calculates real volume delta (buy volume minus sell volume) from footprint data and displays it as a histogram in a separate pane. Positive delta columns represent buy dominance, while negative delta columns represent sell dominance. Use

Indicator v6 Volume
Updated 12 days ago · MIT GitHub repository of Volume Delta Histogram

Mirpapa Lib Line

by alvinng214
2 stars

This library creates and tracks horizontal lines on the chart. It supports two breach modes: price and close. When a line is breached, it increments a break count up to a maximum value and can finalize the line with a close color. The data structure holds line

Library v6 Support & resistanceSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Mirpapa Lib Line
2 stars

This indicator calculates and plots the intraday percentage change of the current or a user-selected asset relative to its daily opening price in a separate pane. It color-codes positive and negative returns dynamically and draws vertical day separator dotted

Indicator v6 Sessions & time Repaints
Updated 8 months ago · None stated GitHub repository of Intraday Spark Chart [AstrideUnicorn]

Previous Day Levels

by jayadevrana
1 stars

The Previous Day Levels indicator plots yesterday's high and low as step lines on the price chart for any symbol and timeframe. It shades the daily trading range and draws triangular markers on breakout events when price crosses the high or low. Input settings

Indicator v6 Support & resistanceBreakout
Updated 4 days ago · MPL-2.0 GitHub repository of Previous Day Levels

SMC Long-Dip Strategy

by skipp-dev
1 stars

This strategy executes long-only dip setups on the price chart by linking to external Smart Money Concepts core signals. It enters positions based on selectable execution stages when quality score and regime criteria are met. Risk management uses an invalidati

Strategy v6 SMC / ICT / price action
Updated 4 days ago · None stated GitHub repository of SMC Long-Dip Strategy

Dual Thrust Breakout

by pineforge-4pass
1 stars

The Dual Thrust Breakout strategy calculates upper and lower price threshold channels based on an open-anchored range formula over a configurable lookback period. It determines the maximum value between highest high minus lowest close and highest close minus l

Strategy v6 BreakoutSupport & resistance
Updated 7 days ago · Apache-2.0 GitHub repository of Dual Thrust Breakout

P_err_import

by GammaExpansion
1 stars

P_err_import is a minimal Pine Script v6 indicator fixture designed to test script parsing and library imports. It demonstrates importing the official TradingView TA library version 8 alias and plots the close price series in a separate indicator pane. The scr

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

A merged strategy that combines two entry engines on one chart. The anchor trail engine uses a dynamic equilibrium level called P0, built from a rolling volume and delta profile, and scores acceptance and rejection against structural levels such as POC and val

Strategy v6 VolumeSupport & resistance Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of Dynamic P0 Delta + DBR Change-Point Merged Strategy

DEPV2 DEBUG ALL

by YuceSezar89
1 stars

DEPV2 DEBUG ALL evaluates multi-asset market dynamics across up to 20 cryptocurrency symbols using four distinct analytical dimensions: trend, momentum, volatility, and volume. It computes and displays diagnostic signal outputs in a separate pane, allowing tra

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

Mirror Oscillator

by morindok
1 stars

The Mirror Oscillator indicator computes a central mirror level as the average of the highest high and lowest low over 500 bars, along with recent mirror levels based on the n-period highest high and lowest low. It calculates percentage deviations of the close

Indicator v6 Oscillators & momentumSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Mirror Oscillator

Smart Money Volume Tools

by vedkanani123
1 stars

A separate-pane volume indicator that combines fast and slow EMAs of price, a volume average and a lower-timeframe volume read, normalized with an adjustable steepness value. A signal type setting chooses between a trailing style and other readings, and the ou

Indicator v6 VolumeTrend Repaints
Updated 2 months ago · None stated GitHub repository of Smart Money Volume Tools
1 stars

Marks the bar where a volume order block zone is first confirmed, which is when the moving average crossover completes, so the marker does not move to an earlier bar later. A sensitivity bank input selects the set of six sensitivity lengths, or custom values c

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

This indicator plots session-filtered bullish and bearish engulfing markers on the price chart. A long mark appears when the current candle engulfs the prior candle inside the New York window and volume exceeds 1.5 times its 20-bar average. A short mark uses a

Indicator v6 Candlestick patternsSessions & time Repaints
Updated 2 months ago · None stated GitHub repository of TeleNexus Sovereign ORB Multi-Model

SMA Rate of Change

by rubbermetal
1 stars

SMA Rate of Change measures the rate of change of a simple moving average, using a fast (20) and an optional slow (200) average, and plots both in a separate pane. Values can be shown as a percent or scaled by price. Optional extras include a histogram, fills,

Indicator v6 Oscillators & momentumMoving averages
Updated 4 months ago · MPL-2.0 GitHub repository of SMA Rate of Change
1 stars

A strategy version of a trendline breakout tool. It draws pivot-based trendlines on the price chart and trades breakouts, using an ATR-based stop loss by default and a take profit set as a multiple of the stop distance, 1.5 by default. Settings choose the pivo

Strategy v6 BreakoutSupport & resistance Archived
Updated 5 months ago · None stated GitHub repository of Trendline Breakouts With Targets Strategy
1 stars

This indicator requests the native footprint for each bar and prints the net delta, buy volume minus sell volume, as a small label below the candle on the price chart. Colours show positive, negative or zero delta. Settings control ticks per footprint row, val

Indicator v6 Volume
Updated 6 months ago · None stated GitHub repository of True Net Delta Under Candle
1 stars

Plots cumulative volume delta as candles in a separate pane, resetting at the chosen anchor period, one day by default. Up and down volume is approximated from lower-timeframe data, selected automatically or set by the user; higher lower-timeframe choices give

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

Index Member Distribution

by TradersPost
228 stars

Calculates and plots a weighted histogram of constituent returns for major market indices (NDX, SPX, DJIA, and RUT) in a separate pane. Each histogram bin reflects the summed weights of members within that percentage return bracket. The script renders vertical

Indicator v6 Screeners & dashboards
Updated 3 months ago · None stated GitHub repository of Index Member Distribution
99 stars

This indicator calculates a second-order Bessel lowpass filter on a chosen price source and plots the result on the price chart. It uses a recursive infinite-impulse-response formula with constant work per bar. Length sets the cutoff period linked to the minus

Indicator v6 Trend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Bessel 2nd Order Filter
55 stars

The VibeTrader Signal System is an overlay indicator that identifies trend direction and potential reversal conditions. It calculates a Supertrend line alongside Bollinger Bands and a 14-period RSI indicator. The script highlights bullish and bearish trends by

Indicator v6 TrendVolatility & bands
Updated 6 months ago · Apache-2.0 GitHub repository of VibeTrader Signal System
47 stars

The Dynamic Momentum Index (DYMOI) calculates a volatility-adaptive Relative Strength Index based on price volatility ratios. It measures short-term versus long-term standard deviation to dynamically adjust the RSI lookback period. Higher volatility shortens t

Indicator v6 Oscillators & momentumVolatility & bands
Updated 8 months ago · MIT GitHub repository of Dynamic Momentum Index (DYMOI)

This strategy implements a multi-stage trend following system inspired by John W. Seykota. It generates long and short entries when price breaks above or below Donchian channels of specified length. Each entry adds a unit sized to risk a fixed percentage of cu

Strategy v6 TrendVolatility & bands
Updated 12 months ago · None stated GitHub repository of Seykota Alt 29: Multi-Stage Scaling
9 stars

Edge Atlas draws a right-edge price-level atlas on the price chart. Modules produce day, week, and other period highs, lows, opens, and closes, plus pivot points, Fibonacci levels, support and resistance zones, session ranges, round numbers, and VWAP. A shared

Indicator v6 Support & resistanceSessions & time Repaints
Updated 3 days ago · MIT GitHub repository of Edge Atlas [WavesUnchained]

RealOpenClose

by lunarticktrading
7 stars

This indicator plots the actual open and close price values directly on the price chart when viewing Heikin Ashi charts. It retrieves standard bar prices using a security call to display dots representing the true market open and close levels. Users can toggle

Indicator v6
Updated 2 weeks ago · None stated GitHub repository of RealOpenClose

Volume Conviction Index

by eddiebelaval
7 stars

The Volume Conviction Index measures volume conviction by evaluating volume intensity and relative changes against historical medians. It computes a robust median volume and median absolute deviation to derive volume Z-scores while winsorizing extreme outliers

Indicator v6 VolumeOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Volume Conviction Index
5 stars

This diagnostic indicator reconstructs a native-style Fixed Range Volume Profile directly on the price chart using lower-timeframe bar data across a user-defined time range. It allocates bar volume across price rows, calculates the Value Area, and identifies v

Indicator v6 VolumeSupport & resistance
Updated 4 days ago · MPL-2.0 GitHub repository of VP RSD Native-Like Bar Profile Diagnostic
4 stars

This trend-following strategy generates long and short entries when a fast EMA crosses a slow EMA, overlaying directly on the price chart. To reduce false signals, it applies four configurable fakeout filters: volume moving average threshold, consecutive bar c

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of Fakeout-Confirmed Strategy

Volume Delta Table

by piecioshka
2 stars

Volume Delta Table is an indicator that displays a customizable table with volume, buy, sell, delta, and cumulative volume delta (CVD) values. It uses request.footprint data to split volume by aggressor side. Options allow showing session start, bar count, ses

Indicator v6 Volume
Updated 12 days ago · MIT GitHub repository of Volume Delta Table

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