Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 43)

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

Relative Strength Index

by SiegerTerpstra
5 stars

This indicator plots the Relative Strength Index, a momentum oscillator that measures the speed and magnitude of price changes using Wilder's RMA of gains and losses. It draws the oscillator and configurable upper and lower bands in a separate pane, with the l

Indicator v6 Oscillators & momentum
Updated 9 months ago · None stated GitHub repository of Relative Strength Index

AG Trend-Pullback

by eltonaguiar
4 stars

This strategy trades trend pullbacks on the price chart. It goes long when the 50-period EMA is above the 200-period EMA, price is above the slower average, RSI of length 2 is below 20, and ADX is above 15. Shorts mirror that in a downtrend with RSI above 80.

Strategy v6 TrendOscillators & momentum
Updated 2 days ago · None stated GitHub repository of AG Trend-Pullback

MTF MA bands + RSI

by InNoobWeTrust
4 stars

This indicator plots multi-timeframe moving average bands alongside a Relative Strength Index in a separate pane. It calculates up to four configurable moving averages across different timeframes, offering selectable types such as SMA, EMA, and WMA with colore

Indicator v6 Oscillators & momentumMoving averages
Updated 2 days ago · None stated GitHub repository of MTF MA bands + RSI
4 stars

This strategy builds Chandelier trailing stops from the highest high and lowest low over an ATR window, offset by an ATR multiple. The long stop only ratchets up and the short stop only ratchets down. Direction turns long when the close exceeds the prior short

Strategy v6 TrendVolatility & bands
Updated 2 months ago · MIT GitHub repository of Chandelier Strategy [trugurpala]

SMC Quant Engine - QuantAlgo

by thesenegalesehitch
4 stars

SMC Quant Engine is an intraday trading strategy that combines Smart Money Concepts with a quantitative scoring system. It identifies order blocks and fair value gaps aligned with higher-timeframe 240-minute moving averages, ADX trend strength, and volume. Ent

Strategy v6 SMC / ICT / price actionMoving averages
Updated 4 months ago · Custom licence GitHub repository of SMC Quant Engine - QuantAlgo

Volume Spike Alert

by degenview
3 stars

This indicator highlights unusually high trading volume relative to a moving average baseline. It calculates a volume threshold by multiplying a simple moving average of previous volume bars by a user-defined factor. Volume is plotted as a column chart in a se

Indicator v6 Volume
Updated 2 days ago · GPL-3.0 GitHub repository of Volume Spike Alert

TQQQ TSI Divergence

by yalili8521
2 stars

This strategy identifies hidden bullish and bearish divergences between price pivots and the True Strength Index (TSI) indicator. It incorporates an Exponential Moving Average (EMA) trend filter and a customizable trading session time window. Long positions en

Strategy v6 Oscillators & momentumDivergence
Updated 9 days ago · None stated GitHub repository of TQQQ TSI Divergence
2 stars

The GMMA indicator plots two groups of exponential moving averages on the price chart. The short-term group uses EMAs with periods 3, 5, 8, 10, 12 and 15. The long-term group uses EMAs with periods 30, 35, 40, 45, 50 and 60. The two groups are colored blue and

Indicator v6 Moving averagesTrend
Updated 12 days ago · MIT GitHub repository of GMMA = Guppy Multiple Moving Average
2 stars

This strategy identifies price consolidation ranges during Asia session hours and trades mean-reversion reclaims following liquidity sweeps. It marks an initial range box, measures sweep depths past box boundaries using ATR multiples, and enters trades when pr

Strategy v6 Sessions & timeDivergence
Updated 4 weeks ago · Custom licence GitHub repository of MP Asia Range Sweep & Reclaim

Oscillator

by TamTH-Dev
2 stars

Oscillator combines WaveTrend calculations, Money Flow Oscillator (MFO), VWAP metrics, and fractal-based divergence detection into a single separate pane indicator. It plots overbought and oversold threshold levels, identifies trend momentum waves, and highlig

Indicator v6 Oscillators & momentumVolume
Updated 6 weeks ago · None stated GitHub repository of Oscillator
2 stars

This indicator maps the Asia, London, and New York sessions on the price chart. It draws each developing session range as a translucent box and places dashed liquidity rails at prior session highs and lows. Those rails remain until price sweeps them, then they

Indicator v6 Sessions & timeSMC / ICT / price action
Updated 2 months ago · Custom licence GitHub repository of Session Liquidity Map [Vantrade]
2 stars

This indicator tracks multi-timeframe market structure across up to four user-defined timeframes in a separate pane. It identifies structural changes through Break of Structure (BoS) and Change of Character (CHoCH) events derived from pivot highs and lows. Use

Indicator v6 SMC / ICT / price actionTrend
Updated 2 months ago · None stated GitHub repository of Market Structure MTF Trend [Pt]

Launch Pad Setup

by major
2 stars

This indicator identifies consolidation by checking if the closing price stays within a user-defined percentage of three moving averages: a 21-period SMA, a 50-period SMA, and a 65-period EMA. When the condition holds, it plots a green X marker below the candl

Indicator v6 Moving averagesBreakout Repaints
Updated 3 months ago · Apache-2.0 GitHub repository of Launch Pad Setup

This indicator calculates predictive volatility boundaries and support/resistance range channels for grid trading configurations. It determines grid envelopes using an ATR-based step algorithm across a configurable length and multiplier factor, with customizab

Indicator v6 Volatility & bandsSupport & resistance Repaints
Updated 8 months ago · MIT GitHub repository of Grid Bot Predictive Ranges [psyll]

This indicator plots a multi-asset correlation heatmap in a separate pane to measure statistical relationships between assets. It calculates Pearson correlation coefficients over a user-specified lookback period between a chosen primary symbol and up to twenty

Indicator v6 Screeners & dashboardsSessions & time
Updated 8 months ago · None stated GitHub repository of Correlation HeatMap Sessions Data Science Stats
2 stars

This indicator tracks and displays open portfolio positions in an on-chart table overlay. It monitors up to ten user-defined symbols alongside their respective buy prices, retrieving current market prices and calculating the unrealized percentage change for ea

Indicator v6 Screeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of Portfolio Tracker

SMC+OB+FVG_PH

by mydcc
1 stars

This indicator plots smart money concept structures directly on the price chart. It detects and visualizes market structure elements including change of character, break of structure, swing points, inducements, and liquidity sweeps. Additionally, it identifies

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 days ago · Custom licence GitHub repository of SMC+OB+FVG_PH

OI Profile

by rellis3
1 stars

Shows an options book as a picture on the price chart, from an export pasted into a settings box. It draws reaction levels and optional zones, an expected-move box, and a set of profile columns in the empty space right of the last bar: dealer gamma by strike,

Indicator v6 Support & resistanceVolatility & bands
Updated 2 days ago · None stated GitHub repository of OI Profile

Trend Signal (Honest)

by nvolpe2007-cell
1 stars

A simple trend indicator that compares the close with a long moving average, 100 bars by default, and a hysteresis band of two percent to reduce whipsaws. A buy appears when price closes above the band and a sell to cash when it closes below. The moving averag

Indicator v6 TrendMoving averages
Updated 2 days ago · None stated GitHub repository of Trend Signal (Honest)

Date Highlighter

by ankurksoni
1 stars

A price-chart overlay that tints the chart background on up to five calendar dates chosen in the settings. Each slot has its own show toggle, year, month, day and colour, with a light yellow default. The dates are compared with the calendar date of each bar in

Indicator v6 Sessions & time
Updated 3 days ago · None stated GitHub repository of Date Highlighter

EMA Trend Strategy

by jayadevrana
1 stars

Calculates a 9-period fast EMA, 21-period slow EMA, and 200-period trend EMA overlaid on the price chart. It enters long positions when the fast EMA crosses above the slow EMA while price is above the 200 EMA, and short positions when the fast EMA crosses belo

Strategy v6 TrendMoving averages
Updated 4 days ago · MPL-2.0 GitHub repository of EMA Trend Strategy

SMC Context Bus

by skipp-dev
1 stars

This indicator builds a smart-money context frame in a separate pane by calling a private context engine. It exposes hidden numeric plots for schema version, readiness, bias, quality, market structure including break of structure and change of character, imbal

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 days ago · None stated GitHub repository of SMC Context Bus

Close Cross SMA 152

by pineforge-4pass
1 stars

A minimal strategy that trades the close crossing a 152-period simple moving average. It enters long when the close crosses above the average and short when it crosses below, reversing the position each time. The length is fixed with no adjustable inputs, and

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

I_strings_ops

by GammaExpansion
1 stars

This Pine Script v6 indicator plots results from string functions including length, position, substring, replace, trim, split, upper, match, and contains. It also demonstrates type conversions with int, float, and tonumber, plus operator precedence examples su

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

Oleg Aryukov Strategy

by kanylbullen
1 stars

This strategy combines multiple technical indicators into a unified trading system, including RSI, Williams %R, TSI, KDJ, Bollinger Bands %B, Nadaraya-Watson filter, and an RCI Ribbon. Traders can individually toggle each indicator module on or off while custo

Strategy v6 Oscillators & momentumTrend
Updated 8 days ago · None stated GitHub repository of Oleg Aryukov Strategy

A strategy based on the accumulation, manipulation, distribution idea. It finds a compressed Donchian range, waits for it to mature, then looks for a sweep of one boundary followed by a close back inside the range. A low sweep goes long and a high sweep goes s

Strategy v6 SMC / ICT / price actionSessions & time
Updated 8 days ago · GPL-3.0 GitHub repository of AMD Po3 Reversal Strategy v1.0.3 Trend Veto
1 stars

The script calculates a weighted average of Heikin Ashi score values across four multi-timeframe periods derived from the signal timeframe. It also counts bullish and bearish signals from each timeframe and checks whether the required number of confirming sign

Indicator v6 TrendOscillators & momentum
Updated 13 days ago · None stated GitHub repository of DEPV2 A7 · MTF GÜÇ + TF ONAYI

SR+Trend v10

by MuhammadMuhamid
1 stars

A long-only crypto spot strategy that finds support and resistance from pivots on four timeframes (5 minutes to 4 hours) and enters on a retest of support within a set number of bars. It blocks entries where price pierced support and reclaimed it, can treat br

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

Calculates retracement grid levels on the price chart using confirmed swing pivot highs and lows based on a user-defined pivot lookback. It allows traders to compare traditional Fibonacci levels against alternative ratio sets, such as thirds or an arbitrary 0.

Indicator v6 Support & resistance
Updated 2 weeks ago · MPL-2.0 GitHub repository of Taught to Trade - Swing Ratio Grid

TradeModeLibrary

by moonyroy
1 stars

TradeModeLibrary is a helper Pine Script library providing standardized trade state management logic for custom trading strategies. It exports functions representing different execution modes that accept position active status and signal directions. Based on t

Library v6
Updated 3 weeks ago · None stated GitHub repository of TradeModeLibrary

First Line

by Alaamo7
1 stars

First Line is an introductory Pine Script v6 indicator that draws a constant horizontal value of 50 in a separate pane. It does not calculate price, volume, or oscillator data and does not generate buy or sell signals, entries, exits, or alerts. There are no i

Indicator v6
Updated 2 months ago · Custom licence GitHub repository of First Line

Kinetic Trend Envelope

by vedkanani123
1 stars

An adaptive trailing-stop indicator on the price chart from the GoemonYae trading system community edition. It estimates price with a selectable filter, measures volatility with a choice of estimators such as Yang-Zhang, and builds an envelope that trails pric

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Kinetic Trend Envelope
1 stars

Detects volume order blocks, zones formed when a fast and slow exponential average cross and volume builds around the extreme price, and draws them on the price chart as support or resistance lines. Six sensitivity tiers each give Tier 3 buy and sell markers w

Indicator v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Asym T3 x6 MutEx Lines v9.1
1 stars

This strategy executes mean-reversion trades using the Relative Strength Index combined with Bollinger Band boundary audits. It enters long when the RSI crosses above the oversold threshold while the bar low touches or breaches the lower Bollinger Band. Conver

Strategy v6 Mean reversionOscillators & momentum
Updated 2 months ago · None stated GitHub repository of RSI Mean Reversion Sovereign v6
1 stars

The SMC Market Structure Indicator identifies swing points and market structure on the price chart using Smart Money Concepts. It detects higher highs, higher lows, lower lows, and lower highs based on seed mode settings and pivot length. The script plots Brea

Indicator v6 SMC / ICT / price action
Updated 4 months ago · None stated GitHub repository of SMC Market Structure Indicator

No Wick + TQ Strategy

by riegodavid-git
1 stars

A strategy that places limit orders at the midpoint of a candle with no wick on the entry side, when a trend quality measure is above a bull threshold or below a bear threshold. Further filters cover close position within the candle, minimum body size relative

Strategy v6 TrendCandlestick patterns
Updated 4 months ago · None stated GitHub repository of No Wick + TQ Strategy

Fear and Greed Indicator

by rubbermetal
1 stars

Fear and Greed Indicator combines five proxies into one 0 to 100 sentiment score in a separate pane: RSI with rate of change, inverted ATR, a market index read from a daily request, price position within Bollinger Bands, and distance from the recent high. Each

Indicator v6 Oscillators & momentumVolatility & bands
Updated 4 months ago · MPL-2.0 GitHub repository of Fear and Greed Indicator
1 stars

Multi Variable Declaration is a strategy designed to demonstrate multiple variable declaration syntax within a trading model. It calculates a 12-period price channel midpoint alongside an exponential moving average spread (EMA 9 minus EMA 21) to establish tren

Strategy v6 TrendMoving averages
Updated 4 months ago · MIT GitHub repository of Multi Variable Declaration

Fair Value Gaps Basic

by shubhamtaywade82
1 stars

Marks three-candle fair value gaps on the price chart as shaded boxes, using green for bullish gaps and red for bearish gaps. A gap is drawn once the bar is confirmed, and each box extends twenty bars to the right. Settings toggle each direction, change colour

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

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