Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 48)

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

This indicator identifies institutional Candle Range Theory (CRT) patterns directly on the main price chart. It detects two-candle rejection patterns, three-candle classic setups, inside bars, and outside bars. Users can enable time-anchored 4-hour CRT schedul

Indicator v6 Candlestick patternsSMC / ICT / price action

TheStrat Suite

by 345-strategies
5 stars

TheStrat Suite is a multi-timeframe price-action indicator for TradingView that implements Rob Smith's TheStrat methodology using Pine Script v6. It detects patterns including inside bars, hammers, shooters, failed 2s and outside bars across six configurable t

Indicator v6 SMC / ICT / price actionCandlestick patterns Repaints
Updated 4 days ago · MPL-2.0 GitHub repository of TheStrat Suite

Stochastic W%R

by SiegerTerpstra
5 stars

Stochastic W%R is a momentum oscillator that combines Stochastic smoothing techniques with Williams %R concepts. It calculates a smoothed K line alongside a D signal line derived from a simple moving average of K. The indicator plots in a separate pane with bo

Indicator v6 Oscillators & momentum
Updated 9 months ago · None stated GitHub repository of Stochastic W%R

Antigravity Superstar

by eltonaguiar
4 stars

This strategy draws on the price chart and combines a triple EMA stack, a volume spike with a minimum price move, and a MACD line-signal crossover. It enters long or short only when at least the chosen number of those three signals agree, with an optional RSI

Strategy v6 TrendMoving averages
Updated 2 days ago · None stated GitHub repository of Antigravity Superstar

polyglot_lib

by InNoobWeTrust
4 stars

polyglot_lib is a Pine Script utility library providing shared technical analysis functions and calculations. It includes flexible moving average algorithms for SMA, WMA, and EMA, custom rolling moving average helpers, a Relative Liquidity Index derived from R

Library v6
Updated 2 days ago · None stated GitHub repository of polyglot_lib
4 stars

This strategy trades opening gap fades on the DAX index during the European Xetra session. At the 09:00 CET market open, it measures the opening price against the previous close relative to an ATR threshold. If a gap exceeds the threshold, it fades the move by

Strategy v6 Mean reversionSessions & time
Updated 2 months ago · MIT GitHub repository of DAX Gap Fade [trugurpala]

Last Time at Price

by piecioshka
2 stars

Calculates and displays the last date and time the market traded at the current reference price level. On the most recent bar, the indicator searches backwards up to a configurable lookback limit for the nearest historical candle whose high-low range contained

Indicator v6 Support & resistance
Updated 12 days ago · MIT GitHub repository of Last Time at Price

RSI Divergence Indicator MP

by midngtpickle
2 stars

The RSI Divergence Indicator MP detects regular and hidden bullish and bearish divergences using configurable RSI and pivot parameters. It plots the RSI oscillator with customizable overbought and oversold levels in a separate pane, while optionally drawing di

Indicator v6 Oscillators & momentumDivergence
Updated 4 weeks ago · Custom licence GitHub repository of RSI Divergence Indicator MP

Oscillator

by TamTH-Dev
2 stars

The Oscillator is a technical indicator designed to analyze price momentum across multiple display modes and formulas. It calculates values using fast and slow lookback periods, incorporating adjustable smoothing types and an exhaustion threshold to identify o

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

MirPapa_Lib_trend

by alvinng214
2 stars

MirPapa_Lib_trend is a Pine Script utility library providing trend and momentum calculation functions for other scripts. It features implementations for several moving average types, including the Hull Moving Average (HMA), Exponential Hull Moving Average (EHM

Library v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of MirPapa_Lib_trend

This indicator plots a horizontal table at the top of the price chart. It displays the symbol, name, sector, RSI value, ADR percentage, ATR percentage, and days until next earnings release. Earnings days are color-coded with gray for unknown dates, green for o

Indicator v6 Screeners & dashboardsOscillators & momentum
Updated 3 months ago · Apache-2.0 GitHub repository of Stock Info Dashboard [thetanerd]

Lakshmi Zones v2

by voletiramu
2 stars

This indicator detects and plots dynamic supply and demand zones directly on the price chart by combining Volume Profile peaks, daily equal highs and lows, and fair value gap levels. Nearby levels are merged according to a user-defined dollar threshold. The sc

Indicator v6 Support & resistanceVolume Repaints
Updated 6 months ago · None stated GitHub repository of Lakshmi Zones v2
2 stars

This indicator calculates and plots cumulative volume delta directly on the price chart using lower timeframe intrabar data. It displays volume delta values as lines or histograms, tracking volume flow across customizable reset intervals such as fixed sessions

Indicator v6 VolumeDivergence
Updated 8 months ago · None stated GitHub repository of CVD - Cumulative Volume Delta (Chart)

Yield Lag Forecast

by rellis3
1 stars

Detects the FX pair on the chart and pulls daily 2-year and 10-year government yields for both currencies. It blends them into a yield-spread z-score drawn as an oscillator in a separate pane, tracks its rate of change and flags abnormal moves. A rolling regre

Indicator v6 Oscillators & momentumDivergence
Updated 2 days ago · None stated GitHub repository of Yield Lag Forecast
1 stars

A table overlay on the price chart, short title Fin Table, that lists recent quarterly or annual company figures pulled from TradingView financial data. Rows cover diluted earnings per share, total revenue, net income and operating income, with changes coloure

Indicator v6 Screeners & dashboards
Updated 3 days ago · None stated GitHub repository of Quarterly Financials Table

Intrabar Delta

by jayadevrana
1 stars

Intrabar Delta estimates buying and selling volume within each chart bar by fetching lower timeframe OHLCV data. It categorizes lower timeframe bars as bullish, bearish, or neutral to calculate buy and sell volume. The script plots the net intrabar volume delt

Indicator v6 VolumeScreeners & dashboards
Updated 4 days ago · MPL-2.0 GitHub repository of Intrabar Delta

SMC Decision Board

by skipp-dev
1 stars

SMC Decision Board is an on-chart decision-support dashboard designed for Smart Money Concepts analysis. It processes aggregated signal states from linked chart scripts to display a structured HUD table, trade plan risk lines, and live setup highlights directl

Indicator v6 SMC / ICT / price actionScreeners & dashboards
Updated 4 days ago · None stated GitHub repository of SMC Decision Board

Dial Main Period

by pineforge-4pass
1 stars

A long-only EMA crossover strategy whose fast and slow lengths change with the chart timeframe. Separate pairs of lengths are set for 5, 15, 60 and 240 minute charts, and other timeframes use the 15 minute pair. It enters long when the fast EMA crosses above t

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

MA Cross

by GammaExpansion
1 stars

This strategy calculates fast and slow moving averages using SMA or EMA selections and plots them on the price chart. It signals long entries on fast MA crossing above slow MA, optionally requiring slow MA to be rising. It closes positions on fast MA crossing

Strategy v6 Moving averagesTrend
Updated 7 days ago · MIT GitHub repository of MA Cross

An indicator that builds a delta profile for each session and extracts points of interest from it at session close: the delta point of control, positive and negative delta extremes, a delta flip level and an absorption node. Each becomes a zone sized by a frac

Indicator v6 VolumeSupport & resistance
Updated 8 days ago · GPL-3.0 GitHub repository of Delta Break and Retest Stage 2 POI Extraction

DEPV2 B1b - Günlük Open

by YuceSezar89
1 stars

This indicator tracks and plots the daily opening price based on a user-defined UTC hour setting. Plotted in a separate pane, it enables traders to benchmark intrabar price action against a specific daily open anchor. The primary setting adjusts the starting h

Indicator v6 Support & resistanceSessions & time
Updated 13 days ago · None stated GitHub repository of DEPV2 B1b - Günlük Open

SR+Trend v6 APT

by MuhammadMuhamid
1 stars

A long-only strategy preset tuned for one crypto pair, using multi-timeframe pivot support and resistance with tighter touch zones and shorter retest windows than the other versions. It can flip broken resistance into support and supports optional moving avera

Strategy v6 Support & resistanceTrend
Updated 13 days ago · None stated GitHub repository of SR+Trend v6 APT
1 stars

The Fractal Field Smoother calculates Williams Fractals based on price high and low pivot points over a user-defined period. It measures price distance and center points between consecutive fractals, using array storage to calculate smoothed field levels and b

Indicator v6 Support & resistanceTrend
Updated 7 weeks ago · None stated GitHub repository of Fractal Field Smoother
1 stars

A basic introductory indicator script from an educational Pine Script v6 course. It calculates and plots the closing price of each bar directly on the main price chart as a simple line. Designed as a foundational starting point, the script demonstrates essenti

Indicator v6
Updated 2 months ago · Custom licence GitHub repository of My First Pine Script

MAD Supertrend

by vedkanani123
1 stars

A separate-pane indicator that builds a Supertrend-style trailing channel from median absolute deviation instead of ATR, scaled to standard-deviation units. The centerline can be the source, a single median or a double median, and upper and lower multipliers a

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of MAD Supertrend
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 highest volume in a rolling window occurs within a chosen number of bars of a tier s

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

This indicator evaluates and scores trade signal quality using a four-layer filtering process drawn directly on the main chart. It evaluates volume spikes against a moving average, higher-timeframe EMA trend alignment, price breaches beyond ATR volatility band

Indicator v6 Volatility & bandsVolume Repaints
Updated 2 months ago · None stated GitHub repository of TeleNexus Fakeout Signal Quality
1 stars

This is a trimmed version of the Quantum Flow gold indicator that draws smart money zones on the price chart: order blocks, breakers, liquidity pools, equal high and low sweeps and break of structure retests. Signals pass through a hard bias gate, a chop gate,

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of Quantum Flow v20 Streamlined

STT SR TMA Scale Plan

by majohnst
1 stars

The STT SR TMA Scale Plan is an intraday trading strategy that overlays price charts to execute trades based on Triangular Moving Average (TMA) crossings, VWAP breakouts, and support/resistance levels like daily pivots or Anchored VWAP. Entries are restricted

Strategy v6 TrendMoving averages
Updated 4 months ago · None stated GitHub repository of STT SR TMA Scale Plan

Tên Indicator

by mrdungx2603
1 stars

This script provides a standardized boilerplate template for developing Pine Script version 6 indicators rendered directly on the price chart. It establishes input configurations for data source selection, period length, and visual signal toggling. The file is

Indicator v6
Updated 4 months ago · None stated GitHub repository of Tên Indicator

Supertrend

by riegodavid-git
1 stars

An overlay port of the classic Supertrend indicator. It builds upper and lower bands from a price source, by default hl2, plus or minus an ATR multiple, and flips the trend when the close crosses the opposite band. A green line is drawn under price in an uptre

Indicator v6 TrendVolatility & bands
Updated 4 months ago · None stated GitHub repository of Supertrend

MACD

by rubbermetal
1 stars

MACD is a standard moving average convergence divergence oscillator in a separate pane. It shows the MACD line, a signal line that can use EMA or SMA smoothing, and a histogram colored in four shades for rising and falling momentum above or below zero. Optiona

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

MTF RSI Confluence

by shubhamtaywade82
1 stars

A strategy that scores RSI across four timeframes, with weights falling from the chart timeframe to the 4-hour, and adds or subtracts points for RSI divergence at recent pivots. It enters long when the score rises above a threshold and short when it falls belo

Strategy v6 Oscillators & momentumDivergence Archived
Updated 5 months ago · None stated GitHub repository of MTF RSI Confluence

An overlay toolkit for crypto charts combining a volume profile, anchored VWAP, optional EMA lines, a higher-timeframe EMA bias and an order flow proxy from lower-timeframe delta, relative volume and cumulative delta, with price action checks from swing pivots

Indicator v6 VolumeSupport & resistance
Updated 5 months ago · MIT GitHub repository of Crypto AMT Toolkit v7.3 Auto Performance
1 stars

This intraday trading strategy combines fast, slow, and trend exponential moving averages with MACD, RSI, and ADX filters to generate trade signals during active trading sessions. It enters long positions when the fast EMA crosses above the slow EMA above the

Strategy v6 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Señales Intradía EMA + MACD v3
1 stars

Plots a standard 14-period RSI in a separate pane with 30, 50 and 70 reference lines and detects divergence between RSI and price. It compares confirmed pivot lows and highs of the RSI against price over a minimum and maximum bar range. Regular bullish and bea

Indicator v6 Oscillators & momentumDivergence
Updated 6 months ago · None stated GitHub repository of RSI Divergence Indicator
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-2
1 stars

An indicator on the price chart that draws a Supertrend-style band around a Kalman-type smoothed price. The Hurst exponent, estimated by variance scaling over a lookback, adjusts both the smoother gain and the ATR multiplier, so the band widens in choppy condi

Indicator v6 TrendVolatility & bands
Updated 6 months ago · None stated GitHub repository of Hurst Exponent Adaptive Supertrend
1 stars

A separate-pane indicator that ranks up to ten user-chosen symbols, preloaded with Chinese-listed ETFs for gold, Nasdaq and other indices, by daily momentum and tracks a rotation into the top few, with the count adjustable. An optional market filter compares a

Indicator v6 Oscillators & momentumScreeners & dashboards Repaints
Updated 7 months ago · None stated GitHub repository of ETF Rotation (Daily Momentum)

Stochastic Final Version

by gabriel-klettur
1 stars

This strategy combines Exponential Moving Averages and a Stochastic Oscillator to generate trading signals directly on the main price chart. Long positions enter when %K crosses above %D below an oversold threshold of 40, exiting on a crossunder above an overb

Strategy v6 Oscillators & momentumMoving averages
Updated 7 months ago · None stated GitHub repository of Stochastic Final Version
1 stars

Marks trend changes on the price chart using price against 20 and 50 period simple moving averages. A bullish trend needs the close above both and a bearish trend below both. A strict alternating rule allows a buy only after a sell and the reverse, so signals

Indicator v6 TrendMoving averages
Updated 9 months ago · None stated GitHub repository of RAPF v6.6 [Strict No-Repeat]

Hull Suite by InSilico

by turnupdigital
1 stars

An indicator that plots a Hull moving average on the price chart, with a choice of Hma, Thma or Ehma variants and an adjustable length and multiplier. The current value and the value two bars back form a band that is filled and coloured by trend direction, and

Indicator v6 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of Hull Suite by InSilico

TeeLek Hedging Ribbon

by theteelek
1 stars

An overlay indicator with no settings that draws coloured Hull moving average lines taken from 2-hour and 30-minute data, smoothed with EMAs. Lines turn grey, green or red depending on slope and on their position against a long-term floor derived from a 600-ba

Indicator v6 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of TeeLek Hedging Ribbon

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