Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 53)

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

6 stars

Capital41 Order Block Detector v2 identifies institutional supply and demand zones on the price chart. It defines bullish order blocks as the last bearish candle prior to a strong upward impulse move and bearish order blocks as the last bullish candle before a

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · MIT GitHub repository of Capital41 Order Block Detector v2
6 stars

This indicator draws Wednesday high, low, and open lines and daily midnight high and low lines on the price chart. It captures the first Wednesdays of each month around 20:30 SAST, shifting the clock for US daylight saving time, and plots the high and low of t

Indicator v6 Support & resistanceSessions & time
Updated 7 months ago · None stated GitHub repository of WED & MIDNIGHT DST System (Alerts)
5 stars

This indicator plots broadening-wall range boxes and an approximate fixed-range volume profile directly on the price chart using macro swing logic. It detects macro pivot structures to identify broadening walls and reconstructs historical volume distribution a

Indicator v6 Support & resistanceVolume Repaints
Updated 4 days ago · MPL-2.0 GitHub repository of VP + RSD Macro Wall Preview (Approx)

Simpleton Signals KIMI

by eltonaguiar
4 stars

This price-chart indicator is described as producing buy and sell signals with strength levels from 1 to 4. It calculates RSI, MACD, SuperTrend, and fast, medium, and slow EMAs. Labels, background color, and an information table can be shown or hidden, and a m

Indicator v6 Oscillators & momentumMoving averages
Updated 2 days ago · None stated GitHub repository of Simpleton Signals KIMI

RSI fixed timeframe

by InNoobWeTrust
4 stars

This indicator calculates the Relative Strength Index and a smoothed moving average across a selectable fixed timeframe, plotting the values in a separate pane. Users can customize the timeframe, RSI length, calculation source, moving average smoothing type, a

Indicator v6 Oscillators & momentumMoving averages
Updated 2 days ago · None stated GitHub repository of RSI fixed timeframe

EMA Ribbon [trugurpala]

by trugurpala
4 stars

This indicator calculates eight Exponential Moving Averages with Fibonacci lengths ranging from 8 to 233. It plots all eight EMAs on the price chart and dynamically colors them green during bullish alignment (when the fastest EMAs are stacked sequentially abov

Indicator v6 Moving averagesTrend
Updated 2 months ago · MIT GitHub repository of EMA Ribbon [trugurpala]

Naked POC

by piecioshka
2 stars

Calculates and plots Naked Point of Control levels directly on the price chart using order flow footprint data. It identifies the price row with the highest traded volume either per individual candle or aggregated across an entire session. Levels extend horizo

Indicator v6 VolumeSupport & resistance
Updated 12 days ago · MIT GitHub repository of Naked POC

Sniper

by TamTH-Dev
2 stars

Sniper is a custom oscillator indicator that derives Bullish and Bearish lines from close and open prices using a smoothing factor based on trend length. These lines feed into a signal line calculated as EMA over the signal length. The indicator plots Bullish

Indicator v6 Oscillators & momentum
Updated 6 weeks ago · None stated GitHub repository of Sniper

ta

by alvinng214
2 stars

This Pine Script library exports multiple technical analysis functions for use in TradingView indicators and strategies. It includes helper functions for moving averages such as dema, ema2, t3, tema, and rma2, oscillators like macd2, stochFull, stochRsi, and p

Library v6
Updated 2 months ago · None stated GitHub repository of ta
2 stars

EMD Trend calculates trend direction by combining moving averages with an exponential moving deviation filter. Rendered as an overlay on the main price chart, it generates visual long and short trend signals and offers optional bar coloring. It includes an on-

Indicator v6 TrendMoving averages
Updated 8 months ago · None stated GitHub repository of EMD Trend [InvestorUnknown]

Volume MACD Histogram

by ankurksoni
1 stars

A separate-pane indicator, short title Vol MACD, that applies the MACD calculation to volume instead of price. It takes a fast and a slow moving average of volume, subtracts them to form the MACD line, smooths that with a signal average and plots the differenc

Indicator v6 VolumeOscillators & momentum
Updated 3 days ago · None stated GitHub repository of Volume MACD Histogram
1 stars

This indicator identifies market structure by tracking confirmed swing highs and lows using pivot points. It detects breaks of structure (BOS) and changes of character (CHoCH) when the bar close breaches the most recent unbroken swing level. Visual outputs on

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 days ago · MPL-2.0 GitHub repository of Market Structure BOS CHoCH

SMC HTF Confluence

by skipp-dev
1 stars

This indicator plots HTF SMC confluence signals in a separate pane. It visualizes ATR regime states from compression through expansion and exhaustion using custom colors. Squeeze markers indicate on or released states while reversal context displays scores for

Indicator v6 SMC / ICT / price actionVolatility & bands
Updated 4 days ago · None stated GitHub repository of SMC HTF Confluence

Drawing Chartpoint Trendline

by pineforge-4pass
1 stars

Drawing Chartpoint Trendline is a strategy that calculates a 20-period simple moving average to dynamically construct a trendline using chart points between past SMA values. It extracts the projected line price at the previous bar as a reference level on the p

Strategy v6 Moving averagesSupport & resistance
Updated 7 days ago · Apache-2.0 GitHub repository of Drawing Chartpoint Trendline

P Syn Switch

by GammaExpansion
1 stars

P Syn Switch is an indicator that selects price values based on the mode input using a switch function. For mode 'a' it calculates and plots close, for 'b' it uses open, and for 'c' it calculates hl2. It also plots v2 to indicate candle direction as 1 for bull

Indicator v6 Support & resistance
Updated 7 days ago · MIT GitHub repository of P Syn Switch

An indicator meant for a 5-minute chart that recomputes a simplified 15-minute break of session delta levels, then watches a retest of the broken level within a set number of hours and flags a trigger candle, optionally needing delta confirmation. It also show

Indicator v6 VolumeSupport & resistance Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of Delta Break and Retest Stage 6 Retest and Trigger
1 stars

DEPV2 C1c DEVISSO KOLAYLIK calculates a Devisso ratio and ease score for five selectable symbols using daily higher-timeframe data. It computes each symbol's historical ratio percentile over a configurable lookback window alongside a cross-sectional percentile

Indicator v6 Oscillators & momentumScreeners & dashboards Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 C1c DEVISSO KOLAYLIK
1 stars

A long-only strategy meant for a one-minute chart that tracks the previous day's low as a liquidity level. When price trades below it and a green candle closes back above, a stop-buy order is placed just above that candle's high. The stop sits under the signal

Strategy v6 SMC / ICT / price actionSupport & resistance

This trading strategy generates scalping entries by combining exponential moving averages with momentum and trend filters. It triggers long or short trades when the short EMA crosses the long EMA, provided RSI, MACD, ADX trend strength, and Stochastic levels c

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · Custom licence GitHub repository of Ultimate Scalping PRO Legend Pro

Momentum Cascade

by vedkanani123
1 stars

A separate-pane momentum indicator by Lyro RS that computes rate of change over an adjustable length and passes it through three EMA stages, described as instant, reactive and committed. A trend is flagged only when all three stages agree. It can show signals

Indicator v6 Oscillators & momentumTrend
Updated 2 months ago · None stated GitHub repository of Momentum Cascade
1 stars

Plots volume order block zones on the price chart with three tiers of asymmetric buy and sell volume signals and a signal cooldown. High-volume proximity markers fire when the rolling highest-volume candle and a tier signal occur within a set number of bars of

Indicator v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Asymmetric HV Proximity v1.4

Quad Rotation 60 10

by rubbermetal
1 stars

Quad Rotation 60 10 is the slowest pane of a four-stochastic setup with periods 9, 14, 40 and 60. It plots the 60/10 stochastic K and D lines in a separate pane with oversold and overbought zones, K/D cross triangles inside extreme zones, and a convergence ban

Indicator v6 Oscillators & momentumDivergence
Updated 4 months ago · MPL-2.0 GitHub repository of Quad Rotation 60 10

Order Blocks Advanced

by shubhamtaywade82
1 stars

Draws order block zones on the price chart in two sets, internal blocks from short pivots and swing blocks from longer pivots, as shaded boxes with optional labels. Candidates can be filtered by ATR or cumulative mean range, and a block is mitigated by either

Indicator v6 SMC / ICT / price actionSupport & resistance Archived
Updated 5 months ago · None stated GitHub repository of Order Blocks Advanced
1 stars

This compact indicator labels Elliott Wave counts on the price chart. It runs a zig-zag at several depths, chooses the depth that gives the best fit, and applies Elliott Wave rules, with a strict mode that forces an A-B-C count when the rules break. A correcti

Indicator v6 Support & resistance Repaints
Updated 6 months ago · None stated GitHub repository of Mini Elliott Wave 2026-3

Smart Levels Pro

by Focal-QuantAI
1 stars

An indicator on the price chart that draws previous day, previous week and previous month highs and lows as extended horizontal lines, with choices for colour, style and width. Optional equilibrium lines mark the midpoint of each high and low pair. It also sho

Indicator v6 Support & resistanceSessions & time
Updated 6 months ago · None stated GitHub repository of Smart Levels Pro

M2

by AlanGuo
1 stars

An indicator that adds up M2 money supply for the United States, Europe, China and Japan, each converted to dollars, and plots the total on the chart using a left-hand price scale. Region switches choose which economies are included, and settings add SMA smoot

Indicator v6
Updated 7 months ago · None stated GitHub repository of M2

Keltner Hull Suite

by ymlee1104
1 stars

This overlay indicator draws a volume-weighted trend line and ATR bands on the price chart. It marks a bullish or bearish state when close moves outside those bands and keeps the previous state while price stays between them. Users can show a filled cloud or o

Indicator v6 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of Keltner Hull Suite
1 stars

Teaching script that demonstrates several ways to request data from other symbols and timeframes in Pine. It shows a daily close shifted so it only uses completed daily bars, a daily candle overlay with its 10-period EMA drawn using a tuple request, an array r

Indicator v6
Updated 1 year ago · None stated GitHub repository of Advanced Security Requests

Debug Panel Template

by TradersPost
228 stars

The Debug Panel Template displays an on-chart information dashboard on the price pane to assist developers in monitoring real-time market data and custom variables. It calculates and shows price changes, bar metrics like wick sizes and total range, volume stat

Indicator v6 Screeners & dashboards
Updated 3 months ago · None stated GitHub repository of Debug Panel Template

The indicator calculates the Average Directional Movement Index (ADX) along with +DI and -DI lines to measure trend strength and direction. It plots ADX, +DI and -DI in a separate pane on the chart. The main setting is the period length for smoothing, defaulti

Indicator v6 TrendOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Average Directional Movement Index (ADX)

Volume Flow Analysis

by iamrichardD
57 stars

This indicator calculates volume moving averages, volume spikes, and price-volume momentum to detect institutional order flow. It plots in a separate pane and generates visual signals for high-volume activity and flow persistence. Key inputs adjust the volume

Indicator v6 VolumeScalping
Updated 1 year ago · Apache-2.0 GitHub repository of Volume Flow Analysis

SMA

by dcaoyuan
55 stars

This indicator plots three simple moving averages of the closing price on the price chart. The lengths default to 9, 21, and 36 and are labeled Fast MA, Slow MA, and Slowest MA. Each length can be changed independently through the inputs. It only draws the thr

Indicator v6 Moving averages
Updated 6 months ago · Apache-2.0 GitHub repository of SMA

Session Range Projections

by TamaraKGreen
47 stars

Session Range Projections measures the high-low or open-close range of a user-defined session and projects that range on the price chart. It draws horizontal range and deviation lines, optional range boxes, range extensions, and true standard deviations at sel

Indicator v6 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of Session Range Projections
47 stars

The Convolution Moving Average (CONV) indicator calculates a smoothed price series via FIR convolution with a custom kernel. It plots the CONV value as an overlay line directly on the price chart. The main input allows selecting any source series while the ker

Indicator v6 Moving averagesTrend
Updated 8 months ago · MIT GitHub repository of Convolution Moving Average (CONV)

Zen Trading Toolkit

by Zen-Tim
29 stars

The Zen Trading Toolkit calculates and projects key volatility levels, intraday targets, and session statistics on the price chart. It features three main components: ABR-based measured moves projected from the prior day's close and extremes, an opening range

Indicator v6 Support & resistanceVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Zen Trading Toolkit
16 stars

Seykota Alt 22 is a trend-following strategy combining 55-bar Donchian channel breakouts for entries with a Parabolic SAR trailing stop for exits. Position sizing and initial stop-loss levels are determined using Average True Range (ATR). The strategy supports

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 22: Parabolic SAR

This indicator identifies and plots price compression zones directly on the price chart using multi-module scoring. It measures ATR compression, ADX chop levels, boundary touches, volume dry-up, and historical pivot levels to identify consolidation areas and s

Indicator v6 BreakoutSupport & resistance
Updated 3 days ago · MIT GitHub repository of CoilForge Zones [WavesUnchained]

This indicator applies Singular Spectrum Analysis (SSA) to decompose price data into distinct structural components, including the underlying trend, long-term periodic cycles, short-term periodic cycles, and high-frequency noise. Using a configurable window le

Indicator v6 TrendOscillators & momentum
Updated 4 months ago · MIT GitHub repository of Singular Spectrum Decomposition [LuxAlgo]

EMA Cloud

by lunarticktrading
7 stars

This indicator plots a fast and a slow exponential moving average on the price chart and fills the space between them as an EMA cloud. The fill is green when the fast average is at or above the slow average and red when it is below. Arrows mark bullish crossov

Indicator v6 Moving averagesTrend
Updated 2 weeks ago · None stated GitHub repository of EMA Cloud

This indicator builds a channel from a Hull moving average of the source and an ATR scaled by a band multiplier, then normalizes price inside that channel into a 0 to 100 oscillator. It smooths the result with a weighted moving average and plots the line in a

Indicator v6 Mean reversionVolatility & bands
Updated 3 months ago · None stated GitHub repository of Radiant Mean Reversion Channels [Pineify]

Capital41 PDH/PDL Levels

by damianpitt
6 stars

This indicator plots previous-day high, low, and midpoint on the price chart, with optional previous-week and previous-month highs and lows. It fills the high-low ranges, places right-edge labels, and shows a status badge for distance to the daily extremes and

Indicator v6 Support & resistance
Updated 2 months ago · MIT GitHub repository of Capital41 PDH/PDL Levels

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