Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 57)

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

4 stars

This strategy trades on the price chart using a fast and slow exponential moving average crossover. It enters long when the fast EMA crosses above the slow EMA and short when it crosses below, but only during the London or New York session in GMT. Each entry s

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

Time Window Highlight

by piecioshka
2 stars

Time Window Highlight is an intraday chart overlay that shades specific daily time windows with background boxes. It measures price performance from the start of the defined time window to the latest point within it, coloring the background green when price ri

Indicator v6 Sessions & time
Updated 12 days ago · MIT GitHub repository of Time Window Highlight

PA Helpers

by TamTH-Dev
2 stars

PA Helpers is a price action visual tool that plots multi-timeframe exponential moving averages and psychological round price levels directly on the price chart. It calculates up to three customizable EMAs with individual timeframe, period, and color controls.

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

The HTF Candle Volume Thermometer indicator renders higher-timeframe candles on the price chart overlaid with volume heatmaps. It calculates internal volume distribution across price bins defined by ATR step sizes. Bins with higher trading activity are highlig

Indicator v6 VolumeSupport & resistance
Updated 8 months ago · None stated GitHub repository of HTF Candle Volume Thermometer [ChartPrime]

Conditional Volatility (CV)

by mushroom-men-Trading
2 stars

Conditional Volatility (CV) calculates annualized volatility using a GARCH(1,1) econometric model based on log returns of closing prices. It plots the resulting annualized variance percentage as a continuous line in a separate pane to display volatility dynami

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Conditional Volatility (CV)

Paste Check

by jayadevrana
1 stars

Paste Check is an overlay indicator that identifies trend direction using dual exponential moving averages. It plots a fast EMA and a slow EMA directly on the price chart. When the fast EMA crosses above the slow EMA, it displays a green triangle below the bar

Indicator v6 TrendMoving averages
Updated 4 days ago · MPL-2.0 GitHub repository of Paste Check

SMC Long-Dip Alerts

by skipp-dev
1 stars

SMC Long-Dip Alerts is an indicator that provides selectable alertcondition() signals for an SMC Long-Dip Suite. It detects structure events such as BOS and CHoCH using a configurable swing length and resolves product state, zone activity, and trust tier from

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

Dual MA with Switch

by pineforge-4pass
1 stars

A moving average crossover strategy where the average type is chosen in the settings: EMA, SMA, WMA or HMA. A fast and a slow average are calculated on a selectable price source. It enters long when the fast line crosses above the slow line and short on the op

Strategy v6 Moving averagesTrend
Updated 7 days ago · Apache-2.0 GitHub repository of Dual MA with Switch

P_err_assign_type_change

by GammaExpansion
1 stars

This script acts as a test fixture from the OptiPine parser test suite designed to evaluate Pine Script compilation behavior. It initializes a variable with an integer value, attempts to reassign it to a string, and attempts to plot the result in a separate pa

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

A strategy that estimates bull, bear and neutral state probabilities from recent price transitions and trades only when they pass minimum levels. It adds previous day high and low breakout entries and filters, swing liquidity levels, and an optional 50 to 61.8

Strategy v6 Support & resistanceBreakout Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of Dynamic Markov Capacity PDH/PDL Liquidity Retracements

DEPV2 C6 Gölge Kasa

by YuceSezar89
1 stars

This indicator evaluates signal performance and multi-timeframe market dynamics through a shadow bankroll tracking framework. It measures market conditions across trend, momentum ROC Z-scores, ATR volatility expansion, and volume flow, alongside multi-timefram

Indicator v6 TrendOscillators & momentum
Updated 13 days ago · None stated GitHub repository of DEPV2 C6 Gölge Kasa

Fractals + Reflection

by morindok
1 stars

This overlay indicator identifies high and low fractal pivots using a customizable period setting. Users select two anchor points directly on the chart to establish a central trendline. The script then projects reflected price and time levels relative to this

Indicator v6 Support & resistanceTrend
Updated 7 weeks ago · None stated GitHub repository of Fractals + Reflection

Root Deviation Loop

by vedkanani123
1 stars

A separate-pane oscillator based on root mean square deviation. It offers two signal modes: Bollinger-style bands around a chosen moving average of the deviation, or a for-loop score summed across a range of lookbacks that is compared with long and short thres

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of Root Deviation Loop
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 Tick

RSI Window

by rubbermetal
1 stars

RSI Window shows a relative strength index in a separate pane with a color gradient and overbought and oversold zone fills. It can also draw a faster RSI and a histogram of the gap between the fast and standard RSI. Up to five exchange symbols, defaulting to B

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

Traditional Pivot Points

by shubhamtaywade82
1 stars

Calculates daily pivot levels from the previous day's high, low and close and draws them on the price chart as lines with price labels. The pivot type can be Traditional, Fibonacci or Camarilla, each giving a central level plus three supports and three resista

Indicator v6 Support & resistance Archived
Updated 5 months ago · None stated GitHub repository of Traditional Pivot Points
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. Settings include a long ATR length with a multiplier, how many levels to display, maximu

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

The Liquidation Heatmap indicator detects potential liquidation zones by scanning recent price swings and calculating volume or range-based weights over a configurable lookback period. It overlays boxes and labels on the price chart to highlight long and short

Indicator v6 Volatility & bandsSupport & resistance
Updated 7 months ago · None stated GitHub repository of Liquidation Heatmap

Bollinger BandWidth

by ivansoft
1 stars

Plots Bollinger BandWidth, the distance between the upper and lower Bollinger Bands relative to the middle band, in a separate pane. Two extra lines track the highest value over a chosen expansion length and the lowest over a contraction length, both 125 bars

Indicator v6 Volatility & bands
Updated 1 year ago · None stated GitHub repository of Bollinger BandWidth

Fair Value Gaps - Basic

by TradersPost
228 stars

This indicator detects bullish and bearish fair value gaps on the price chart and draws a translucent box for each gap. A bullish gap needs the high two bars back below the current low and a bullish middle candle; a bearish gap uses the opposite gap and a bear

Indicator v6 SMC / ICT / price action
Updated 3 months ago · None stated GitHub repository of Fair Value Gaps - Basic

Bandpass Filter (BPF)

by mihakralj
99 stars

This indicator calculates a bandpass series by cascading a highpass infinite impulse response filter with a lowpass filter. Lower and higher cutoff periods set the pass band, and the source input selects the series being filtered. It plots the source minus the

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Bandpass Filter (BPF)
55 stars

This indicator overlays on the price chart and provides trend and momentum analysis. It calculates and plots three exponential moving averages with fixed periods of 20, 50, and 200 using yellow, orange, and blue colors respectively. The script also computes th

Indicator v6 TrendOscillators & momentum
Updated 6 months ago · Apache-2.0 GitHub repository of Trend & Momentum Analysis
47 stars

The Donchian Channels indicator plots the middle basis line as the average of the high and low over the user-defined period. It also draws the upper band as the highest high and the lower band as the lowest low across the same period on the price chart. The ma

Indicator v6 Volatility & bandsSupport & resistance
Updated 8 months ago · MIT GitHub repository of Donchian Channels (DCHANNEL)

8020 System Indicator

by TamaraKGreen
46 stars

This overlay indicator draws 80/20 price levels and optional 40-point zone bands on the price chart. It marks repairs, cross sections, and forks with optional letter labels, and can highlight confluence when those marks sit near a level. Separate options shade

Indicator v6 Support & resistanceCandlestick patterns
Updated 8 weeks ago · None stated GitHub repository of 8020 System Indicator
16 stars

This trend-following strategy plots Donchian channels and execution signals directly on the price chart. It calculates Average True Range volatility to determine position sizing based on a fixed risk percentage of account equity. Long and short entries trigger

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 27: Asymmetric R/R

Calculates directional setup scores by evaluating market structure, Fibonacci retracement location, and momentum response metrics. It analyzes confirmed price pivots, movement efficiency, ATR-adjusted Fibonacci zones, and oscillator divergences across user-sel

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

This indicator plots a volume-weighted moving average as a central trend baseline and surrounds it with ATR-based volatility bands. It colors the trend and optional price bars according to whether price is on the bullish or bearish side of those bands. Users c

Indicator v6 TrendMoving averages
Updated 4 months ago · MIT GitHub repository of Volume Weighted Trend [QuantAlgo]

PaperHands

by lunarticktrading
7 stars

PaperHands is an indicator that plots entry, re-entry, and exit signals for LONG and SHORT positions in a separate pane. It calculates signals using multiple confluence conditions such as real candle color, Heikin-Ashi candle color and flat bottoms or tops, He

Indicator v6 TrendOscillators & momentum
Updated 2 weeks ago · None stated GitHub repository of PaperHands

Volatility Risk Premium

by eddiebelaval
7 stars

Calculates the Volatility Risk Premium (VRP) by comparing implied volatility against realized volatility calculated using Close-to-Close, Parkinson, or Garman-Klass methods. It plots VRP values as a histogram or line in a separate pane with optional Bollinger

Indicator v6 Volatility & bands
Updated 3 months ago · None stated GitHub repository of Volatility Risk Premium
6 stars

Capital41 Williams Flow Simple calculates current and higher-timeframe Williams %R values alongside a volume filter to identify trend regimes and momentum entries. It defines bullish, bearish, or chop market regimes using the higher-timeframe Williams %R. Entr

Indicator v6 TrendOscillators & momentum
Updated 2 months ago · MIT GitHub repository of Capital41 Williams Flow Simple v2

This overlay diagnostic builds three total-volume profiles from a fixed 15-minute source over a user-defined swing range. Fine, base, and coarse grids use row sizes near the base tick setting and assign each bar's volume by high-low tick overlap. Local density

Indicator v6 Volume
Updated 4 days ago · MPL-2.0 GitHub repository of VP RSD Multi-Resolution Consensus Diagnostic
4 stars

This strategy tracks the high and low range established during the Asian trading session and executes breakout trades during the London session. It draws directly on the price chart. When the price crosses above the Asian high or below the Asian low, it enters

Strategy v6 BreakoutSessions & time
Updated 2 months ago · MIT GitHub repository of EUR/USD London Breakout [trugurpala]

Vertical Hour Lines

by piecioshka
2 stars

Vertical Hour Lines draws vertical gridlines at user-defined intraday timestamps directly on the main price chart. It helps traders mark key session events, market opens, or specific time thresholds across any intraday timeframe. The script provides multiple c

Indicator v6 Sessions & time
Updated 12 days ago · MIT GitHub repository of Vertical Hour Lines
2 stars

This indicator calculates the Relative Strength Index from a chosen price source and length and plots it in a separate pane. It draws horizontal bands at 70, 50, and 30 and fills the area between the outer bands. An optional moving average can smooth the RSI u

Indicator v6 Oscillators & momentumMoving averages
Updated 6 weeks ago · None stated GitHub repository of Relative Strength Index

MirPapa Lib Box

by alvinng214
2 stars

This Pine Script v6 library defines shared types and price checks for smart-money boxes. It stores box type, bullish or bearish direction, start and end breach modes, state, and top, bottom, and midpoint prices, plus a box and line handle. A higher-timeframe c

Library v6
Updated 2 months ago · None stated GitHub repository of MirPapa Lib Box

Intrabar Efficiency Ratio

by regalouisei
2 stars

Intrabar Efficiency Ratio calculates an efficiency ratio indicator using lower timeframe intrabar data to measure price efficiency and market noise. It plots in a separate pane using customizable visual modes such as Line, Candles, or Circles based on moving a

Indicator v6 Moving averagesVolatility & bands
Updated 8 months ago · None stated GitHub repository of Intrabar Efficiency Ratio

Pivot Levels

by jayadevrana
1 stars

Pivot Levels identifies key structural high and low turning points on the price chart using customizable left and right bar confirmation periods. It calculates pivot highs and lows to plot horizontal resistance and support lines directly on the main chart pane

Indicator v6 Support & resistance
Updated 4 days ago · MPL-2.0 GitHub repository of Pivot Levels

SMC Long-Dip Mobile

by skipp-dev
1 stars

SMC Long-Dip Mobile is a compact companion surface and HUD indicator designed for mobile or small-screen chart viewing. It links to the main SMC Long-Dip Suite indicator outputs via plot sources, displaying setup state, quality score, and hero action or bias s

Indicator v6 SMC / ICT / price actionScreeners & dashboards
Updated 4 days ago · None stated GitHub repository of SMC Long-Dip Mobile

Dual SMA Cross

by pineforge-4pass
1 stars

A dual simple moving average crossover strategy with adjustable fast and slow lengths. When the fast average crosses above the slow one it closes any short and enters long; when it crosses below it closes any long and enters short. There is no stop loss, take

Strategy v6 Moving averagesTrend
Updated 7 days ago · Apache-2.0 GitHub repository of Dual SMA Cross

P_err_float_as_int_length

by GammaExpansion
1 stars

This indicator is a minimal Pine Script v6 fixture that calculates a simple moving average of the close and plots the result in a separate pane. It passes the close series, a floating-point value, as the length argument of the moving-average function, which ex

Indicator v6 Moving averages
Updated 7 days ago · MIT GitHub repository of P_err_float_as_int_length
1 stars

An indicator that draws a Dynamic P0 line on the price chart: a rolling volume-weighted equilibrium price computed over a window set in minutes, with a value area band around it. A dashboard table scores acceptance and rejection from P0 migration, new-location

Indicator v6 VolumeScreeners & dashboards
Updated 8 days ago · GPL-3.0 GitHub repository of Dynamic P0 Architecture Dashboard

DEPV2 D1 Giriş Kalitesi

by YuceSezar89
1 stars

This indicator evaluates trade entry quality across trend, momentum, volatility, and volume dimensions. It calculates momentum ROC z-scores, ATR-based volatility expansion, volume flow thresholds, and multi-timeframe Heikin Ashi alignment across multiple timef

Indicator v6 TrendOscillators & momentum
Updated 13 days ago · None stated GitHub repository of DEPV2 D1 Giriş Kalitesi

Liquidity Zones

by morindok
1 stars

Builds a liquidity heat map on the price chart over the last 240 candles by default. The price range is split into rows and the history into time columns. Candle wicks, bodies and equal pivot highs and lows add weighted scores, and a candle body passing throug

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Liquidity Zones

Root Mean Deviation Trail

by vedkanani123
1 stars

An overlay indicator that measures how far price sits from a central EMA, smooths the signed deviation with a selectable moving average, and normalizes it with a root mean square deviation to scale a trailing band. The multiplier shrinks when deviation is stro

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Root Mean Deviation Trail
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

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