Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 16)

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

ATR Values

by lunarticktrading
7 stars

This indicator calculates the Average True Range over a user-defined lookback period and reference offset, displaying the resulting values alongside multiple selectable ATR multipliers. Instead of plotting line curves, it presents current volatility metrics in

Indicator v6 Volatility & bandsScreeners & dashboards
Updated 2 weeks ago · None stated GitHub repository of ATR Values
7 stars

The Average Sentiment Oscillator (ASO) measures bullish and bearish market sentiment by evaluating intrabar and group price ranges over a specified period. It plots bull and bear sentiment lines in a separate pane along with optional shifted lead or lag lines

Indicator v6 Oscillators & momentumVolatility & bands
Updated 3 months ago · None stated GitHub repository of Average Sentiment Oscillator

A trend-following strategy that combines Bollinger Bands, RSI momentum, triple exponential moving average alignment, and volume filters directly on the price chart. It calculates standard Bollinger Bands, RSI, three EMAs (50, 100, 200), and customized ranging

Strategy v6 TrendOscillators & momentum
Updated 4 months ago · None stated GitHub repository of Bollinger + RSI + SMA Trend Filter
7 stars

Custom EMA Crossover Strategy calculates two Exponential Moving Averages to identify trend direction on the main price chart. It enters a long position when the fast EMA crosses above the slow EMA during a specified backtest period. The strategy closes the lon

Strategy v6 Moving averagesTrend
Updated 5 months ago · None stated GitHub repository of Custom EMA Crossover Strategy

Candle Breaks 1v1 L+S

by chargersfan47
7 stars

This indicator detects 1v1 candle break setups for both long and short directions directly on the price chart. It identifies when the current candle closes beyond the open of the prior opposite-color candle, calculates a 1.618 Fibonacci extension target based

Indicator v6 BreakoutCandlestick patterns
Updated 5 months ago · None stated GitHub repository of Candle Breaks 1v1 L+S
7 stars

This indicator serves as a starter template calculating an exponential moving average (EMA) directly on the price chart. It detects price crossovers relative to the moving average and plots green triangle-up markers when price crosses above, or red triangle-do

Indicator v6 Moving averagesTrend
Updated 9 months ago · None stated GitHub repository of Template Indicator
7 stars

This strategy plots DeMark pivot, support, and resistance levels on the price chart. It can keep several historical daily pivots, draw labels and prices, and mark crosses of the pivot. When strategy trading is enabled, it sizes trades from a risk-per-trade per

Strategy v6 Support & resistanceBreakout Repaints
Updated 1 year ago · MPL-2.0 GitHub repository of DeMark Pivot Points Strategy

Input metadata

by pineforge-4pass
6 stars

This strategy declares many input types and plots a simple moving average of the chosen source in a separate pane. Length sets the average period and source selects the price series. Other inputs cover a numeric threshold, an enable flag, a long or short side,

Strategy v6 Moving averages
Updated 2 days ago · Custom licence GitHub repository of Input metadata

Calculates price projection ranges over a specified horizon using Monte Carlo simulations via empirical bootstrap or parametric normal distributions. It plots projected price range boundaries directly on the price chart alongside a distribution profile histogr

Indicator v6 Support & resistanceVolatility & bands

C41 Key Calendar

by damianpitt
6 stars

Identifies and highlights recurring key market calendar dates directly on the price chart. It plots visual lines and labels for month, quarter, and year opens and closes, as well as monthly and quarterly options expiration (OPEX), OPEX week starts, earnings se

Indicator v6 Sessions & time
Updated 2 months ago · MIT GitHub repository of C41 Key Calendar
6 stars

This indicator detects and visualizes Candle Range Theory (CRT) setups directly on the price chart across defined session windows. It tracks 1-hour and 4-hour key ranges for Asian, London, and New York sessions using higher-timeframe data. The script draws hor

Indicator v6 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT All-Models Visual Suite v6
6 stars

MarketMerge Data Panel is a Pine Script indicator that overlays a customizable data panel on price charts to display company fundamentals. It shows ratings including composite, RS, EPS, SMR, Acc/Dis, P/E, ROE and Minervini trend template checks. The panel pres

Indicator v6 Screeners & dashboardsMoving averages
Updated 8 months ago · MIT GitHub repository of MarketMerge Data Panel
6 stars

Basic Long Entry System 2 is a long-only price-chart strategy that reads one-hour ADX and an exponential moving average, then looks for a 15-minute RSI pullback under the hourly RSI. It sets the hourly bias when ADX is above a threshold, declining, and price i

Strategy v6 Oscillators & momentumTrend Repaints
Updated 1 year ago · MIT GitHub repository of Basic Long Entry System 2

HTF Recon Probe v2

by 345-strategies
5 stars

HTF Recon Probe v2 is a throwaway diagnostic indicator that checks higher-timeframe reconstruction for TheStrat bar classification. It requests monthly, quarterly, and yearly time, high, and low with lookahead enabled, and when the chart is above daily it load

Indicator v6 Screeners & dashboards Repaints
Updated 4 days ago · MPL-2.0 GitHub repository of HTF Recon Probe v2
5 stars

ChandraQuant Kala-Chakra is an overlay indicator for Indian equity indices. It calculates Sun and Moon ecliptic longitudes from Meeus periodic series, converts them to the sidereal zodiac with the Lahiri ayanamsa, and marks nakshatra changes, Purnima and Amava

Indicator v6 TrendMoving averages
Updated 7 weeks ago · MIT GitHub repository of ChandraQuant — Kāla-Chakra
5 stars

RG Structure Break-Retest Strategy estimates pivot-constrained support and resistance trendlines and evaluates market regimes. It enters trades upon two-stage break and retest confirmation, scoring setup quality to dynamically scale position sizing between tie

Strategy v6 TrendSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of RG Structure Break-Retest Strategy

PA Indicators

by forecho
5 stars

This indicator plots price action tools directly on the main price chart. It shades candles according to Internal Bar Strength (IBS) and optional wick-length thresholds to differentiate trend bars from trading ranges. The script tracks session bar counts durin

Indicator v6 Candlestick patternsMoving averages
Updated 8 weeks ago · None stated GitHub repository of PA Indicators

TradeKit

by tanishq-rocks
5 stars

TradeKit is an all-in-one technical analysis indicator that consolidates multiple chart overlays into a single script on the price chart. It plots up to four customizable moving averages (SMA, EMA, SMMA, WMA, or VWMA), Bollinger Bands, VWAP, and reference leve

Indicator v6 Moving averagesCandlestick patterns
Updated 3 months ago · MPL-2.0 GitHub repository of TradeKit

SA-TEST 03

by durdenbtc
5 stars

This strategy calculates a 14-period RSI of close and plots it in a separate pane with horizontal lines at 30 and 70. It opens a long when RSI crosses above the oversold level and closes that long when RSI crosses below the overbought level. There are no short

Strategy v6 Oscillators & momentumMean reversion Repaints
Updated 5 months ago · MIT GitHub repository of SA-TEST 03
5 stars

This indicator calculates and plots virtual daily candlestick OHLC values shifted forward by several hours relative to the current time. By aggregating four-hour bar data from higher-timeframe requests, it constructs custom 24-hour periods and renders them as

Indicator v6 Candlestick patternsSessions & time
Updated 7 months ago · MIT GitHub repository of Day Candle Closed Hour(s) Ago

Double Smoothed Stochastic

by SiegerTerpstra
5 stars

This indicator calculates the Double Smoothed Stochastic oscillator and plots it in a separate pane below the price chart. It applies dual exponential smoothing to stochastic values to filter market noise while tracking momentum changes. Rising and falling val

Indicator v6 Oscillators & momentumMoving averages
Updated 9 months ago · None stated GitHub repository of Double Smoothed Stochastic

Antigravity Elite

by eltonaguiar
4 stars

Antigravity Elite is an overlay strategy that switches among seven named engines or auto-detects one, including Connors RSI, EMA stack, Supertrend, volatility-spike reversal, multi-sigma Bollinger reversal, and a weighted consensus. It enters long by default,

Strategy v6 TrendOscillators & momentum
Updated 2 days ago · None stated GitHub repository of Antigravity Elite

BB Remix

by InNoobWeTrust
4 stars

This indicator plots a quadruple Bollinger Band overlay on the price chart by combining fast and slow period lengths with inner and outer standard deviation multipliers. It calculates average upper and lower band boundaries, tracks band directional momentum, a

Indicator v6 Volatility & bandsTrend
Updated 2 days ago · None stated GitHub repository of BB Remix
4 stars

This indicator calculates a short RSI and treats a cross above or below a center level as a raw buy or sell. On the live bar it sends alerts that mark the signal active, cancel it, or confirm it when the bar closes, and it increments a revision each time the s

Indicator v6 Oscillators & momentum Repaints
Updated 3 days ago · MIT GitHub repository of OptionX Noisy Test Lifecycle
4 stars

This strategy executes trades on 5-minute index futures using Exponential Moving Averages, RSI, ADX, and volume filters across multiple timeframes. It supports trend pullback and VWAP reversion regimes with entry confirmation on breakout of prior high or low p

Strategy v6 TrendMean reversion
Updated 3 days ago · None stated GitHub repository of Lucid 100K Prop Bot (MES 5m)
4 stars

This strategy plots a fast and a slow simple moving average on the price chart and trades long only. It enters when the fast average crosses above the slow average and closes the position when the fast average crosses back below. There is no stop loss or take

Strategy v6 TrendMoving averages
Updated 2 weeks ago · MIT GitHub repository of SMA cross + TokIO check
4 stars

This indicator calculates and plots predicted future Bollinger Bands mid, upper, and lower lines for 300 bars ahead using linear extrapolation. It draws these prediction lines in a separate pane below the price chart. Users can adjust the prediction horizon in

Indicator v6 Volatility & bandsMoving averages Repaints
Updated 2 weeks ago · MIT GitHub repository of GOM BB Prediction (300 bars)
4 stars

JoppanFX | Forex Sessions highlights four major global trading sessions—Sydney, Tokyo, London, and New York—directly on the price chart. The indicator calculates active market hours by converting time into each region's specific IANA timezone, ensuring automat

Indicator v6 Sessions & time
Updated 3 weeks ago · None stated GitHub repository of JoppanFX | Forex Sessions
4 stars

Meridian Futures Levels plots session structure for US index futures on the price chart. It marks the full futures session, overnight high and low, an optional overnight midpoint, and the regular-trading-hours open. It draws a configurable opening range with m

Indicator v6 Sessions & timeSupport & resistance
Updated 7 weeks ago · MPL-2.0 GitHub repository of Meridian - Futures Levels

Alert Examples

by trugurpala
4 stars

This indicator calculates fast and slow exponential moving averages along with RSI for detecting crossovers and overbought/oversold conditions. It plots the two EMAs on the price chart with dynamic coloring and displays triangle shapes on crossovers. Bullish c

Indicator v6 TrendOscillators & momentum
Updated 2 months ago · MIT GitHub repository of Alert Examples

This indicator calculates a smoothed, volume-weighted MACD oscillator displayed in a separate pane. It offers several moving average algorithms, including Ehlers SuperSmoother, DEMA, TEMA, RMA, and standard EMA, alongside an optional volume scaling factor to d

Indicator v6 Oscillators & momentumDivergence
Updated 4 months ago · MPL-2.0 GitHub repository of MACD Integration for GemHunter (Smoothed)

Confluence Pivot Zones [FEELS]

by VolodymyrFilias
4 stars

Confluence Pivot Zones identifies recent high and low swing pivots and clusters nearby levels into support and resistance zones based on ATR distance. It scores these confluence zones by strength and volume details while filtering out zones that do not meet th

Indicator v6 Support & resistance
Updated 4 months ago · MIT GitHub repository of Confluence Pivot Zones [FEELS]

Hedge Fund SMC Strategy - QuantAlgo

by thesenegalesehitch
4 stars

This overlay strategy combines EMA trend following with simple Smart Money Concepts filters. It reads H4 and H1 bias, then looks for a liquidity sweep plus a displacement candle in that direction, gated by ADX, ATR, and volume. Entries are allowed only in Lond

Strategy v6 SMC / ICT / price actionTrend Repaints
Updated 4 months ago · Custom licence GitHub repository of Hedge Fund SMC Strategy - QuantAlgo

DCA Long Nonstop

by Jaden300
4 stars

DCA Long Nonstop runs a perpetual dollar-cost averaging ladder on any ticker. It opens a base order at market entry then adds safety orders when price drops soStep percent below the base price, with each subsequent safety order sized larger by 5 percent. When

Strategy v6 Mean reversion
Updated 5 months ago · None stated GitHub repository of DCA Long Nonstop
4 stars

This strategy draws on the price chart and is set up for daily ETF trading. It can enter through a classic surge-and-consolidation breakout, a pullback toward stacked EMAs, a relative-volume spike with price momentum, or a pause inside a strong trend. EMA leng

Strategy v6 BreakoutTrend
Updated 7 months ago · None stated GitHub repository of Qullamaggie Breakout Strategy

KDJ Indicator

by YooooungLee
4 stars

This indicator calculates the standard KDJ oscillator lines using the raw stochastic value (RSV) smoothed with exponential moving averages. It plots the K, D, and J lines alongside horizontal overbought (80) and oversold (20) levels in a separate pane. The scr

Indicator v6 Oscillators & momentumDivergence
Updated 10 months ago · Apache-2.0 GitHub repository of KDJ Indicator

This indicator plots a Volatility-Adjusted Momentum Oscillator in a separate pane. It divides the rate of change of close by the average true range, scales the result by 100, and overlays an exponential moving average as a signal line. Horizontal lines and bac

Indicator v6 Oscillators & momentumVolatility & bands
Updated 12 months ago · MIT GitHub repository of Volatility-Adjusted Momentum Oscillator (VAMO)

EMA Cross

by degenview
3 stars

This indicator plots two exponential moving averages of a chosen price source on the price chart. A green upward triangle marks when the fast average crosses above the slow average, and a red downward triangle marks the opposite cross. Both events are also exp

Indicator v6 Moving averagesTrend
Updated 2 days ago · GPL-3.0 GitHub repository of EMA Cross

OPTD — Opening Range (ORB)

by drewautomates
3 stars

This indicator plots an opening-range high, low, and midpoint on the price chart. The levels build during a user-defined opening window and remain visible through the regular session before resetting the next day. A breakout marker appears after a chosen numbe

Indicator v6 BreakoutSessions & time
Updated 2 days ago · Custom licence GitHub repository of OPTD — Opening Range (ORB)
3 stars

Zigzag Impulse Stats calculates statistical metrics across dynamic zigzag segments overlayed on the price chart. It measures segment ratio, depth, heterogeneity, uniformity, trendline deviation, candle deviations, and envelope area. An optional Impulse Mode hi

Indicator v6 TrendSupport & resistance Repaints
Updated 5 days ago · MIT GitHub repository of Zigzag Impulse Stats

ATR Pip Control

by ricksimpsontrading
3 stars

ATR Pip Control is a volatility indicator that plots adaptive upper and lower bands based on ATR calculations. It draws signal triangles, labels, and bar colors on the price chart for breakout direction. Local end support and resistance lines appear on both si

Indicator v6 Volatility & bandsBreakout Repaints
Updated 10 days ago · None stated GitHub repository of ATR Pip Control

Chandelier Exit

by AkashSasikumar47
3 stars

This indicator plots a Chandelier Exit trailing stop on the price chart. It subtracts a multiple of ATR from the highest high or highest close for the long stop and adds the same distance to the lowest low or lowest close for the short stop. The active stop ra

Indicator v6 Volatility & bandsTrend
Updated 2 weeks ago · MIT GitHub repository of Chandelier Exit

Drawing Scaffold

by jpantsjoha
3 stars

Drawing Scaffold calculates the highest high and lowest low over a customizable lookback period. It plots these boundaries on the main price chart and dynamically renders extended support and resistance lines, a price label, and an optional visual range box on

Indicator v6 Support & resistanceScreeners & dashboards
Updated 4 weeks ago · Custom licence GitHub repository of Drawing Scaffold
3 stars

This indicator calculates Williams' Variable Accumulation/Distribution (WVAD) pressure alongside a signal line in a separate pane. It incorporates optional filters such as higher-timeframe confirmation, an ADX strength filter, and various adaptive smoothing ch

Indicator v6 VolumeOscillators & momentum
Updated 5 weeks ago · MIT GitHub repository of Williams Variable A/D Pressure

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