Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 39)

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

2 stars

Inside Bar Chain Detector identifies sequences of inside bars fully contained within the prior bar's high-low range on price charts. It marks each inside bar with a diamond below the bar and optionally shows labels with chain length and range contraction perce

Indicator v6 Volatility & bandsSupport & resistance Repaints
Updated 3 months ago · Apache-2.0 GitHub repository of Inside Bar Chain Detector

Lakshmi Strategy v1

by voletiramu
2 stars

This strategy draws supply and demand zones on the price chart based on manual inputs. It executes trades when price reaches zone levels and fires decoded signals from the Ghost Trade Pro methodology. Entries use percent-of-equity position sizing with a defaul

Strategy v6 Support & resistanceSMC / ICT / price action
Updated 6 months ago · None stated GitHub repository of Lakshmi Strategy v1

This indicator functions as a range-defining plugin for the Grid Bot system, calculating dynamic upper and lower grid boundaries based on a moving average and standard deviation offsets. It supports 17 different moving average algorithms, including EMA, SMA, H

Indicator v6 Moving averagesVolatility & bands Repaints
Updated 8 months ago · MIT GitHub repository of Grid Bot Moving Avarage StDev [psyll]

Chart VWAP

by regalouisei
2 stars

Chart VWAP calculates and plots an anchored volume-weighted average price across the visible chart window directly on the price chart. It supports optional upper and lower standard deviation bands adjusted by a multiplier. Additional settings allow users to di

Indicator v6 VolumeSupport & resistance Repaints
Updated 8 months ago · None stated GitHub repository of Chart VWAP

This indicator calculates Mansfield Relative Strength by comparing the current asset's close against a reference index, sector, or industry benchmark. It plots the resulting relative strength curve alongside an exponential moving average in a separate pane, hi

Indicator v6 TrendMoving averages
Updated 1 year ago · MPL-2.0 GitHub repository of Mansfield Relative Strength indicator

Volatility

by Electrified-Trading
2 stars

This library exports functions that measure volatility from true range and compare it with a recent normal level. It computes true range over one bar or a multi-bar span, optionally once per span, then removes outliers and derives a mean and standard deviation

Library v6
Updated 1 year ago · MPL-2.0 GitHub repository of Volatility
1 stars

The Moving Average Exponential indicator plots an EMA of the input source with a user-defined length on the price chart. It supports offset for shifting the plot. Additional smoothing options apply different MA types to the EMA output and optionally overlay Bo

Indicator v6 Moving averagesVolatility & bands
Updated 2 days ago · Custom licence GitHub repository of Moving Average Exponential
1 stars

An indicator that reads open, high, low, close and volume for a chosen symbol from a Pine Seeds repository, set by owner and repository inputs, and plots the seed close on the chart. It adds a simple moving average of the seed close with optional one standard

Indicator v6 Mean reversion
Updated 2 days ago · None stated GitHub repository of GitHub CSV Seed (Daily Refresh)
1 stars

Fits a rolling regression of the chart's close several bars ahead on z-scored macro inputs, then plots the fitted value shifted forward so the line leads price on the chart. One feature set uses rates and cross-asset series such as US yields, the dollar index

Indicator v6 AI / machine learning
Updated 2 days ago · None stated GitHub repository of Nasdaq Macro Lead - Fair Value

Rebalanced Allocation

by nvolpe2007-cell
1 stars

Simulates a portfolio of ten crypto assets, a gold-backed token and cash that is rebalanced on a fixed schedule, and plots the resulting equity curve against buy and hold in a separate pane. Target weights are 50 percent crypto, 25 percent gold and the rest ca

Indicator v6 Screeners & dashboards
Updated 2 days ago · None stated GitHub repository of Rebalanced Allocation

Ghost x Gemini

by mphinance
1 stars

A dashboard-style overlay meant to be added next to another indicator, showing a structured information panel of trend, volatility and momentum readings on the price chart. It draws on Hull trend, TRAMA, Keltner bands, swing structure, Williams %R exhaustion,

Indicator v6 Screeners & dashboardsTrend
Updated 3 days ago · Custom licence GitHub repository of Ghost x Gemini

AI Renko Supertrend

by ankurksoni
1 stars

A price-chart overlay that builds Renko-style bricks from an adaptive ATR and runs a Supertrend on them. ATR length is blended from short, base, long and slow readings, and the band factor and brick size widen or narrow depending on whether volatility is high

Indicator v6 TrendVolatility & bands
Updated 3 days ago · None stated GitHub repository of AI Renko Supertrend

DIY Volume Profile

by jayadevrana
1 stars

DIY Volume Profile is an indicator that calculates the point of control and value area using volume distribution across price rows based on the last specified lookback bars. It plots horizontal lines for the value area high and low along with the POC on the pr

Indicator v6 VolumeSupport & resistance
Updated 4 days ago · MPL-2.0 GitHub repository of DIY Volume Profile

SMC Bus Private

by skipp-dev
1 stars

This utility library provides exported helper functions for packing, encoding, and resolving state variables into compact numerical bitmasks and floating-point representations. It processes Smart Money Concepts data structures, such as trend states across time

Library v6
Updated 4 days ago · None stated GitHub repository of SMC Bus Private

Week 03

by moonyroy
1 stars

Week 03 is an overlay indicator that groups price into fifteen-minute blocks and tracks each group's open, high, and low. It records which side of the previous range breaks first, then draws line segments connecting the prior structure point to those highs and

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 days ago · None stated GitHub repository of Week 03

CCI Momentum

by pineforge-4pass
1 stars

A strategy built on the Commodity Channel Index, plotted in a separate pane with overbought, oversold and zero lines. It enters long when the CCI crosses up through the oversold level and short when it crosses down through the overbought level. Open positions

Strategy v6 Oscillators & momentum
Updated 7 days ago · Apache-2.0 GitHub repository of CCI Momentum

I_ma

by GammaExpansion
1 stars

This indicator calculates and plots a wide selection of moving averages across multiple lookback lengths, including simple, exponential, running, weighted, volume-weighted, Hull, Arnaud Legoux, and linear regression curves. It also computes chained and volume-

Indicator v6 Moving averagesTrend
Updated 7 days ago · MIT GitHub repository of I_ma

EMA1-EMA2 Analiz

by engtuncay
1 stars

This indicator plots two exponential moving averages and two moving averages on the price chart. It calculates bullish and bearish crossovers between the primary moving averages to generate signals, displaying transition markers above and below bars as well as

Indicator v6 Moving averagesTrend
Updated 7 days ago · None stated GitHub repository of EMA1-EMA2 Analiz

Kinetic Kalman Breakout

by kanylbullen
1 stars

A strategy that fits a two-state Kalman filter, tracking position and velocity, to the close price, then builds bands around the filtered price using a multiple of the mean absolute error. It goes long when the close crosses above the upper band and short when

Strategy v6 TrendBreakout
Updated 8 days ago · None stated GitHub repository of Kinetic Kalman Breakout

A strategy that trades the trend flips of a volatility band trend line, either on the original flip or on a close crossing the trend level, with entries confirmed on bar close. It can reverse on an opposite signal, filter by session or higher timeframe trend,

Strategy v6 TrendVolatility & bands
Updated 8 days ago · GPL-3.0 GitHub repository of Adaptive Trend Flow Strategy Optimized v6

DEPV2 A5 · HACİM

by YuceSezar89
1 stars

DEPV2 A5 plots volume participation in a separate pane. It divides current volume by its simple moving average, estimates directional flow from a close-location delta, and measures how much recent volume sits inside a price band around the close, scaled by ATR

Indicator v6 VolumeVolatility & bands
Updated 13 days ago · None stated GitHub repository of DEPV2 A5 · HACİM

MTF Overlay Suite

by MuhammadMuhamid
1 stars

A price-chart overlay that collects many modules in one script: four SMAs, four EMAs, three Supertrends, VWAP, Bollinger Bands, standard pivot points, support and resistance zones, trendlines and an automatic Fibonacci retracement. Each moving average can use

Indicator v6 Moving averagesSupport & resistance Repaints
Updated 13 days ago · None stated GitHub repository of MTF Overlay Suite

This indicator calculates and plots key market profile structure from previous sessions, including Value Area High, Value Area Low, Point of Control, and session High/Low levels, alongside the current session's Opening Range. User settings allow customization

Indicator v6 Sessions & timeSupport & resistance
Updated 2 weeks ago · MPL-2.0 GitHub repository of Taught to Trade - Session Range & Value Area Map

Unicorn Model

by Just-beyond-z
1 stars

An ICT-style overlay that looks for a breaker block combined with a fair value gap after a liquidity sweep of a higher-timeframe level. Confirmed setups draw a breaker box, a gap box and the swept level, and can add an entry, an invalidation level and a reward

Indicator v6 SMC / ICT / price action
Updated 2 weeks ago · None stated GitHub repository of Unicorn Model
1 stars

A signal-only indicator that looks for exhaustion after a run of consecutive same-colour candles ending in a doji. A top needs bullish candles with RSI overbought and a new high versus recent bars; a bottom mirrors this. A separate news mode flags unusually la

Indicator v6 Mean reversionCandlestick patterns
Updated 2 weeks ago · None stated GitHub repository of Top Bottom Reversal
1 stars

This Pine Script strategy detects pin bar patterns on the price chart using body size relative to ATR and shadow conditions for long and short signals. It applies engulfing candle confirmation and filters by EMA trend direction with volatility bands. Multiple

Strategy v6 TrendVolatility & bands
Updated 3 weeks ago · None stated GitHub repository of Pin Bar Strategy Developed

VWAP Signal Suite

by JACKZHOU0521
1 stars

This indicator calculates a session-resetting Volume Weighted Average Price (VWAP) along with inner and outer standard deviation bands plotted directly on the price chart. It provides bar-close confirmed visual signals for VWAP crossovers, pullback reclaims fo

Indicator v6 Moving averagesVolatility & bands
Updated 5 weeks ago · None stated GitHub repository of VWAP Signal Suite

VWAP

by DEVfancybear
1 stars

This indicator calculates and plots the Volume Weighted Average Price (VWAP) directly on the main price chart using typical price values. It serves as a benchmark representing the average price weighted by volume throughout the session. Users can customize the

Indicator v6 Moving averagesVolume
Updated 7 weeks ago · MIT GitHub repository of VWAP
1 stars

BMoon System Order Block is an overlay indicator that projects Fibonacci price levels and timing zones based on user-selected range points. It features an Auto Fib range calculator alongside an optional Smart Dynamic Engine that evaluates post-range breakout a

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 7 weeks ago · None stated GitHub repository of BMoon System Order Block
1 stars

This script acts as a reference template for testing assertion blocks in Pine Script. It calculates pass and fail counts for assertions and displays them in a table dashboard at the bottom left of the chart. When test mode is enabled, it runs assertions on val

Indicator v6 Screeners & dashboards
Updated 8 weeks ago · MPL-2.0 GitHub repository of Test Block Pattern Reference
1 stars

Custom Signal Example is an educational Pine Script v6 indicator designed to demonstrate signal logic and on-chart plotting. Built as an introductory learning exercise, the script highlights how to construct custom conditions and display visual cues directly o

Indicator v6
Updated 2 months ago · Custom licence GitHub repository of Custom Signal Example

Kalman Flow

by vedkanani123
1 stars

An overlay indicator that runs price through a Kalman filter and builds adaptive noise bands from the tracking error around the estimate. The trend flips bullish when price closes above the upper band with positive velocity, and bearish when it closes below th

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Kalman Flow
1 stars

Pine v6 overlay indicator that builds volume order block zones from fast and slow EMA crossovers at six sensitivity tiers, from 1000 to 2500 bars. Bullish zones form around the lowest bar and bearish zones around the highest, and zones are removed when price c

Indicator v6 Support & resistanceVolume
Updated 2 months ago · None stated GitHub repository of VOB Asym T3 x6 MutEx Lines

India CCF Nifty

by raybird
1 stars

A futures strategy for NSE Nifty that requires agreement from SuperTrend, a 3 and 13 EMA cross with a 21 EMA trend, MACD, RSI, ADX, volume and relative strength against a benchmark. Entries come in two stages with a larger setup ladder, so it can add to a posi

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of India CCF Nifty
1 stars

This long-only strategy buys short-term oversold dips only inside a strong uptrend: price above a rising 200-period SMA and within a set percentage of its one-year high. Entry needs a two-period RSI below a threshold, then an up-close, and volatility below an

Strategy v6 Mean reversionTrend
Updated 2 months ago · Custom licence GitHub repository of Regime-Gated Dip Reversion

Quantum Flow Lean

by Jitheandra98
1 stars

This indicator draws gold-oriented smart money concepts on the price chart: a higher-timeframe EMA bias, swing break of structure, order blocks, fair value gaps and sweeps of the previous day high and low. A signal needs bias, a sweep, a zone touch and a displ

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

Buddha Squeeze

by DarthBuddha
1 stars

A separate-pane momentum and volatility indicator in the style of the TTM Squeeze. It plots a linear-regression oscillator as columns coloured by direction and by whether momentum is rising or falling, with yellow marks on the zero line while Bollinger Bands s

Indicator v6 Oscillators & momentumVolatility & bands
Updated 3 months ago · MIT GitHub repository of Buddha Squeeze

Fusion DBSI

by shahzaib-574
1 stars

The Fusion DBSI indicator calculates a momentum score for each candle by combining oscillators, wave momentum, VWAP, money flow, RSI, Stoch RSI, divergences, and an EMA ribbon. Positive scores indicate bullish conditions while negative scores flag bearish reve

Indicator v6 Oscillators & momentum
Updated 3 months ago · None stated GitHub repository of Fusion DBSI

Pivot Breakout

by majohnst
1 stars

Pivot Breakout is an intraday strategy that identifies breakout opportunities using standard daily floor trader pivot points. It enters trades when price breaks above the calculated daily pivot, provided the prior daily close was within a defined approach dist

Strategy v6 BreakoutSupport & resistance Repaints
Updated 4 months ago · None stated GitHub repository of Pivot Breakout
1 stars

The SMC Market Structure Indicator tracks market structure on the price chart using Smart Money Concepts. It identifies trend points including Higher Highs, Higher Lows, Lower Highs, and Lower Lows, while flagging Break of Structure and Change of Character eve

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · None stated GitHub repository of SMC Market Structure Indicator
1 stars

A strategy that rests a limit order at the session VWAP when a higher-timeframe 50 and 100 EMA stack shows an uptrend, VWAP is rising and price is above it, with the mirror image for shorts. The stop is an ATR multiple beyond VWAP and the target is a fixed rew

Strategy v6 Mean reversionTrend
Updated 4 months ago · None stated GitHub repository of VWAP Pullback Strategy MNQ

XAUUSD-Asia Reversion

by riegodavid-git
1 stars

An overlay indicator written for gold during a morning window in Philippine time. It combines a short-period RSI with fractal sweep detection, where price takes out recent fractal highs or lows, and fair value gap boxes with optional volume, ATR and trend filt

Indicator v6 SMC / ICT / price actionMean reversion
Updated 4 months ago · None stated GitHub repository of XAUUSD-Asia Reversion

EMA Cloud

by rubbermetal
1 stars

EMA Cloud draws a ribbon of eighteen exponential moving averages from 5 to 200 periods, with fills between neighbouring lines colored by which average sits higher. It adds a 120-period RMA line, markers where the fastest EMA crosses the 200 EMA, golden and dea

Indicator v6 TrendMoving averages
Updated 4 months ago · MPL-2.0 GitHub repository of EMA Cloud
1 stars

This strategy identifies liquidity sweep scalp entries on lower timeframes by analyzing 15-minute higher-timeframe candles. It verifies a valid range candle using an EMA trend filter, average body size comparison, and wick balance thresholds. In an uptrend, it

Strategy v6 TrendMoving averages
Updated 4 months ago · MIT GitHub repository of M15 Liquidity Sweep Scalp

Deep Trades Whales LuxAlgo

by shubhamtaywade82
1 stars

A cleaner display version of a volume-based whale detector on the price chart. It uses a volume percentile and z-score gate, scales ATR thresholds by a low, normal or high volatility regime, and marks price impact bars, iceberg-style absorption, clusters and e

Indicator v6 VolumeVolatility & bands Archived
Updated 5 months ago · None stated GitHub repository of Deep Trades Whales LuxAlgo
1 stars

An overlay toolkit for crypto charts that mixes a volume profile and value area, a daily, weekly or monthly anchored VWAP with bands, EMA trend lines, a higher-timeframe EMA bias, and an order flow proxy from lower-timeframe delta, relative volume and cumulati

Indicator v6 VolumeSupport & resistance
Updated 5 months ago · MIT GitHub repository of Crypto AMT Toolkit v5 Signal Engine

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