Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 59)

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

Mirpapa Lib Struct

by alvinng214
2 stars

This Pine Script v6 library provides custom exported data types and initialization functions for tracking Smart Money Concepts and ICT market structure shifts. It defines structures to manage states for Break of Structure, Change of Character, Market Structure

Library v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of Mirpapa Lib Struct

Log-Normal Price Forecast

by regalouisei
2 stars

Log-Normal Price Forecast calculates historical log returns and volatility to project theoretical future price movements on the main chart overlay. Using a normal distribution inverse function, it computes statistical drift and standard deviation to plot dynam

Indicator v6 Volatility & bandsSupport & resistance Repaints
Updated 8 months ago · None stated GitHub repository of Log-Normal Price Forecast
2 stars

This strategy detects adaptive market regimes by combining ATR volatility with fast and slow EMA moving averages to determine trend direction. It applies multi-timeframe confirmation using RSI and MACD on a higher timeframe. Signals appear as buy and sell arro

Strategy v6 Volatility & bandsMoving averages Repaints

Risk Managed Strategy

by jayadevrana
1 stars

This strategy executes long trades when the closing price crosses above an Exponential Moving Average (EMA) and displays the EMA trend line directly on the price chart. Position sizing is calculated dynamically to risk a fixed percentage of current equity base

Strategy v6 TrendMoving averages
Updated 4 days ago · MPL-2.0 GitHub repository of Risk Managed Strategy
1 stars

This Pine Script library provides reusable helper functions for composing and formatting Smart Money Concepts (SMC) debug text strings and observability data. It builds structured labels and diagnostic lines containing setup sources, zone quality metrics, touc

Library v6 SMC / ICT / price action
Updated 4 days ago · None stated GitHub repository of SMC Observability Private

Elder Ray Index

by pineforge-4pass
1 stars

Calculates Elder Ray Bull Power and Bear Power by measuring differences between price extremes and an exponential moving average. It takes long entries during an uptrend when Bear Power is negative but rising, and short entries during a downtrend when Bull Pow

Strategy v6 Oscillators & momentumTrend
Updated 7 days ago · Apache-2.0 GitHub repository of Elder Ray Index

P_err_indent_2spaces

by GammaExpansion
1 stars

A minimal Pine Script v6 test fixture script used for validating parser error handling and indentation rules. It evaluates if the current bar close is higher than the open using a two-space indented code block, then plots the closing price in a separate pane.

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

A strategy that builds a structural delta volume profile with point of control, value area and high-delta liquidity zones, plus a rolling P0 equilibrium and an acceptance and rejection scoring dashboard. Entries come from the flip of an adaptive ATR band that

Strategy v6 VolumeSupport & resistance Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of Dynamic P0 Delta Profile Strategy v1.0.4

DEPV2 Debug All

by YuceSezar89
1 stars

DEPV2 Debug All is a multi-asset quantitative analysis indicator designed for separate pane execution. It evaluates signal conditions across up to twenty cryptocurrency pairs simultaneously using four analytical dimensions: Trend, Momentum, Volatility, and Vol

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

Mirror Oscillator

by morindok
1 stars

This indicator calculates the average percentage distance between the closing price and three benchmark mirror levels: a central midpoint derived from 500-period highs and lows, and dynamic upper and lower period bounds. The averaged distance is smoothed with

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

Smart Trend Dashboard Pro

by vedkanani123
1 stars

A price-chart indicator that plots a 9 and a 21 period EMA and prints a buy label on a bullish crossover when RSI is below the overbought level, and a sell label on a bearish crossover when RSI is above the oversold level. It tints the background and candles b

Indicator v6 Moving averagesTrend
Updated 2 months ago · None stated GitHub repository of Smart Trend Dashboard Pro
1 stars

Marks the bar where a volume order block zone is first confirmed, at the completion of the moving average crossover, so the marker does not shift to an earlier bar afterwards. A sensitivity bank input selects the six sensitivity lengths, or custom values can b

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

This intraday strategy fades tests of the previous day high and low during the New York morning session. It identifies mean-reversion opportunities when price touches within a few ticks of the prior day high or low, closes back inside, confirms with above-aver

Strategy v6 Mean reversionSupport & resistance
Updated 2 months ago · None stated GitHub repository of TeleNexus Sovereign PDH/PDL Fade V6

SMA Spread OSC

by rubbermetal
1 stars

SMA Spread OSC plots the percentage distance between a fast SMA (20) and a slow SMA (200) as an oscillator in a separate pane, with optional smoothing. It adds average-distance bands from the spread's own history, an optional histogram and fills, acceleration

Indicator v6 Oscillators & momentumMoving averages
Updated 4 months ago · MPL-2.0 GitHub repository of SMA Spread OSC

VWAP Basic

by shubhamtaywade82
1 stars

Calculates a volume-weighted average price that resets each day, week or month and plots it on the price chart. Two optional standard deviation bands use adjustable multipliers, with a shaded channel between the inner pair. A small table shows the current VWAP

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

This overlay indicator draws liquidation heatmap pockets on the price chart. It estimates pocket intensity from volume, price range, or their product over a configurable lookback, then filters by a minimum intensity and merges nearby labels. Two swing widths m

Indicator v6 VolumeSupport & resistance
Updated 7 months ago · None stated GitHub repository of Liquidation Heatmap[Modual]

Custom Hours Bars

by ivansoft
1 stars

An indicator in a separate pane that splits the trading day into fixed custom windows, such as 07:00 to 09:50 and 09:50 to 12:00, and measures the wicks of each window as if it were one bar. For every window it records the open, highest high and lowest low, th

Indicator v6 Sessions & time
Updated 1 year ago · None stated GitHub repository of Custom Hours Bars
228 stars

Linear Regression Reversal Strategy is a Pine Script chart overlay indicator that plots a linear regression trendline with upper and lower standard deviation channel bounds for a specified date range. Users can select exact start and end timestamps directly on

Indicator v6 TrendSupport & resistance
Updated 3 months ago · None stated GitHub repository of Linear Regression Reversal Strategy
99 stars

This indicator plots the cumulative distribution function of a beta distribution applied to a min-max normalized source series. Over a lookback window it scales the chosen source into the unit interval, then evaluates the regularized incomplete beta using a La

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Beta Distribution CDF (BETADIST)
55 stars

This indicator builds a simulated volume profile on the price chart. On the last bar it finds the highest high and lowest low across the previous 200 bars, splits that range into 50 price bins, and adds each bar's volume to the bin of its close. It draws a hor

Indicator v6 VolumeSupport & resistance
Updated 6 months ago · Apache-2.0 GitHub repository of Volume Profile (Simulated)

This indicator calculates John Ehlers' two-pole Super Smoother Filter, an infinite impulse response lowpass filter designed to eliminate high-frequency market noise while reducing lag compared to standard moving averages. It plots a smoothed line directly on t

Indicator v6 Moving averagesTrend
Updated 8 months ago · MIT GitHub repository of Ehlers 2-Pole Super Smoother Filter (SSF2)

Range Probability - NQ

by TamaraKGreen
46 stars

This overlay indicator measures fixed-length ranges from a New York session anchor and draws them on the price chart. Boxes mark a range as forming, closed above the previous high, closed below the previous low, or closed inside. It plots the prior range high,

Indicator v6 Support & resistanceSessions & time
Updated 8 weeks ago · None stated GitHub repository of Range Probability - NQ
16 stars

This trend-following strategy generates trades using Donchian channel breakouts combined with higher-timeframe trend filters and chart-timeframe momentum. It confirms breakout entries against a higher-timeframe moving average and rate of change, while optional

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 2: Dual-Timeframe

This indicator expands Alexander Elder's Bull Power and Bear Power concept into a multi-model pressure analysis system displayed in a separate pane. It calculates bull, bear, and net pressure alongside dominance, impulse, and acceleration using selectable movi

Indicator v6 Oscillators & momentumDivergence
Updated 3 days ago · MIT GitHub repository of Elder Ray Pressure Engine [WavesUnchained]

Volume Delta Dots

by lunarticktrading
7 stars

This indicator calculates lower-timeframe volume delta and displays the directional result as colored dots in a separate pane. It fetches intrabar up and down volume using dynamic lower timeframes based on the current chart resolution. A positive delta colors

Indicator v6 Volume
Updated 2 weeks ago · None stated GitHub repository of Volume Delta Dots
7 stars

Volumetric Supply and Demand identifies and renders supply and demand zones directly on the price chart using pivot swings and ATR-based impulse triggers. Within active zones, it constructs localized volume profiles, highlights Point of Control levels, and dis

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 3 months ago · None stated GitHub repository of Volumetric Supply and Demand [BOSWaves]
5 stars

This overlay indicator is a research diagnostic that builds a volume profile between two user-set 15-minute swing times. It bins each bar's volume by high-low tick overlap on fine, base, and coarse row sizes, then applies local density gates and a paired-node

Indicator v6 VolumeSupport & resistance
Updated 4 days ago · MPL-2.0 GitHub repository of VP RSD Paired Node Consensus Diagnostic
4 stars

This strategy trades GBP/USD on the price chart. It enters long when a fast EMA crosses above a slow EMA while price stays above a trend EMA, and enters short on the opposite cross below that EMA. Signals are allowed only in the London session, 07:00 to 17:00

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of GBP/USD Forex Strategy [trugurpala]

Mirpapa Lib SumBox

by alvinng214
2 stars

This library provides data structures and validation functions for bundled candle analysis in ICT trading scripts. It defines SumCandleStates type with pending, confirmed and completed values, plus a function to create instances of the state set. SumCandleData

Library v6 SMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Mirpapa Lib SumBox

Magnificent 7 Oscillator

by regalouisei
2 stars

Calculates smoothed momentum across the primary Magnificent 7 mega-cap tech stocks (AAPL, MSFT, GOOGL, AMZN, NVDA, TSLA, META) and optional additional tickers. It aggregates their performance either through equal weighting or market comparison modes against be

Indicator v6 Oscillators & momentumScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Magnificent 7 Oscillator

Dskyz Adaptive Futures Elite (DAFE)

by mushroom-men-Trading
2 stars

Dskyz Adaptive Futures Elite (DAFE) is an automated strategy designed for intraday trading. It generates long and short entries by pairing fast and slow moving average crossovers with candlestick pattern detection, filtered by RSI, volume, volatility, and a hi

Strategy v6 Moving averagesCandlestick patterns
Updated 9 months ago · None stated GitHub repository of Dskyz Adaptive Futures Elite (DAFE)

RSI Zones

by jayadevrana
1 stars

Calculates the Relative Strength Index (RSI) based on close prices over a customizable period length. Plots the resulting oscillator in a separate chart pane alongside fixed horizontal lines at the standard 70 overbought and 30 oversold thresholds. When the RS

Indicator v6 Oscillators & momentum
Updated 4 days ago · MPL-2.0 GitHub repository of RSI Zones

SMC Orderflow Overlay

by skipp-dev
1 stars

SMC Orderflow Overlay is a separate-pane order flow indicator designed to complement Smart Money Concepts strategies. It plots relative volume, delta proxy values, ATS state and spike indicators, and flow direction confirmation markers. Traders can enable an o

Indicator v6 SMC / ICT / price actionVolume
Updated 4 days ago · None stated GitHub repository of SMC Orderflow Overlay

EMA Ribbon

by pineforge-4pass
1 stars

This strategy calculates three exponential moving averages with adjustable lengths for the fast, mid, and slow periods. It enters a long position when the moving averages form a bullish stack and a short position during a bearish stack, utilizing a transition

Strategy v6 TrendMoving averages
Updated 7 days ago · Apache-2.0 GitHub repository of EMA Ribbon

P_err_input_defval_series

by GammaExpansion
1 stars

This script serves as a test fixture within the OptiPine parser suite to test error handling when assigning a series integer to an input default value. It attempts to declare an integer input using the current bar index as its default value and plots the resul

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

A strategy that first classifies the market using ADX and a Bollinger-inside-Keltner squeeze check, then switches between two sub-strategies. In ranging conditions it fades asymmetric Bollinger Band extremes with a 200 EMA trend filter. In trending conditions

Strategy v6 Mean reversionBreakout
Updated 8 days ago · GPL-3.0 GitHub repository of Hierarchical HTS v6 Markov-Proxy Regime Switcher

DEPV2 DEBUG DAY

by YuceSezar89
1 stars

This debug version of the DEPV2 indicator tests multi-method signal logic. It evaluates four categories—TREND, MOMENTUM, VOLATILITY and VOLUME—across 20 cryptocurrency symbols including BTCUSDT, ETHUSDT, SOLUSDT and others. Users select signal modes for simult

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

The Mirror Oscillator Morindok calculates a bounded momentum oscillator in a separate chart pane. It computes dynamic price reflection levels using a moving average and high-low channels over a specified lookback window. The script normalizes the current closi

Indicator v6 Oscillators & momentumMoving averages
Updated 7 weeks ago · None stated GitHub repository of Mirror Oscillator Morindok

SR Breakout Auto TP/SL

by vedkanani123
1 stars

An overlay indicator that detects pivot highs and lows and draws the latest resistance and support as extended lines. A buy signal fires when the close crosses above resistance, and a sell when it crosses below support. Each signal draws entry, stop loss and t

Indicator v6 Support & resistanceBreakout
Updated 2 months ago · None stated GitHub repository of SR Breakout Auto TP/SL
1 stars

Marks the bar where a volume order block zone is first confirmed, at the completion of the moving average crossover, so the marker does not shift to an earlier bar afterwards. A sensitivity bank input selects the six sensitivity lengths, or custom values can b

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

A scalping strategy on the price chart built around market structure: change of character, break of structure and inducement sweeps, filtered by RSI extremes, volume, trend EMA, ATR range, session hours and signal confluence. A mode selector switches between C

Strategy v6 ScalpingSMC / ICT / price action Repaints
Updated 2 months ago · None stated GitHub repository of TeleNexus Sovereign Scalping Pro

Stochastic RSI

by rubbermetal
1 stars

Stochastic RSI plots smoothed K and D lines of a stochastic calculation in a separate pane, using smoothed moving average smoothing instead of a plain average. The K line shifts color from green to red by level. Overbought and oversold zones are filled, K/D cr

Indicator v6 Oscillators & momentum
Updated 4 months ago · MPL-2.0 GitHub repository of Stochastic RSI
1 stars

This indicator overlays several optional trend tools on the price chart. It draws a ZigZag from a deviation setting and can plot a multi-timeframe Tillson T3, a Jurik moving average, an ALMA, and a Range Filter. Users switch each tool on or off and change leng

Indicator v6 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of Quad Trend Master & KalmanOSC
1 stars

An indicator in a separate pane that measures how far the average of open and close has moved from the day's opening price. The difference is plotted as an area, green above the open and red below, and the day open is drawn on the price chart. Percentile lines

Indicator v6 Volatility & bands
Updated 1 year ago · None stated GitHub repository of DayOpen Delta Volatility

Liquidity Zones - ICT

by TradersPost
228 stars

The Liquidity Zones - ICT indicator identifies and highlights potential buyside and sellside liquidity areas directly on the price chart. It tracks recurring price levels within a specified lookback period, grouping price touches that fall within a configurabl

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of Liquidity Zones - ICT

Beta Function (BETA)

by mihakralj
99 stars

This indicator calculates a rolling financial beta that compares percentage returns of a selected source with percentage returns of a second symbol, defaulting to SPY. It keeps a circular buffer of returns over a user-set period and plots the result as a yello

Indicator v6 Volatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Beta Function (BETA)
47 stars

This indicator calculates John Ehlers' Autocorrelation Periodogram to estimate the dominant cycle length of a market. It pre-filters price data using high-pass and smoothing filters, then computes Pearson correlation coefficients across a spectrum of lag perio

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Ehlers Autocorrelation Periodogram

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