Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 2)

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 overlay indicator plots a SuperTrend-style band on the price chart using ATR length, a selectable source, and a base factor. Optional settings enable an adaptive factor driven by rate of change, a volatility filter, K-means clustering, and an LSTM layer w

Indicator v6 TrendVolatility & bands
Updated 4 months ago · MIT GitHub repository of ML SuperTrend (Ultimate) - Auto-Optimized AI with LSTM

ORB Multi-Model Indicator

by Mrshahidali420
16 stars

This indicator plots several New York opening-range breakout models on the price chart and can also show a combined confidence-scored signal. Enabled models include classic Crabel, a five-minute scalper, a standard fifteen-minute breakout, and a gold variant,

Indicator v6 BreakoutSessions & time Repaints
Updated 3 months ago · None stated GitHub repository of ORB Multi-Model Indicator

NWOG + ORG

by traderdiegox
16 stars

This overlay indicator draws the new week opening gap and the opening range gap on the price chart. It paints each gap as a colored zone with optional borders, a dashed midpoint line, and a text label. Users can hide either gap, change colors and border style,

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 6 months ago · None stated GitHub repository of NWOG + ORG

Seykota / Turtle Core

by trustdan
16 stars

This strategy trades Donchian channel breakouts on the price chart. It enters long or short when price breaks the prior entry channel, sizes each unit from a percentage of equity and ATR, and adds units at fixed ATR steps up to a set maximum. It exits on the o

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota / Turtle Core

Kalman Percentile Bands

by NQ-stats-MX
15 stars

Kalman Percentile Bands plots a volatility-adaptive Kalman mean along with three empirical percentile bands on each side of the price chart. It calculates a local-level Kalman filter as the fair value mean, normalizes price deviations by an EWMA of volatility,

Indicator v6 Mean reversionVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Kalman Percentile Bands
14 stars

This indicator calculates intrabar Cumulative Volume Delta (CVD) using lower timeframe data and applies linear regression to determine market bias. It evaluates regression slope and R-squared values across a chosen anchor period to identify volume-driven trend

Indicator v6 VolumeTrend
Updated 2 weeks ago · None stated GitHub repository of Alighten CVD Regression Bias
14 stars

Self-Aware Trend System calculates volatility-adaptive ATR trailing bands using a Trend Quality Index engine that evaluates market efficiency, momentum persistence, and structural pivots. It plots adaptive trend bands and character-flip trend signals directly

Indicator v6 TrendVolatility & bands
Updated 3 weeks ago · MIT GitHub repository of Self-Aware Trend System [WillyAlgoTrader]

Bottom Level Finder

by chris-c-thomas
14 stars

Bottom Level Finder is a support identification indicator designed to locate correction and re-entry zones directly on the price chart. It calculates horizon-adaptive Fibonacci retracements, drawdown percentage levels, moving averages, and integrated VIX volat

Indicator v6 Support & resistanceMoving averages
Updated 6 months ago · MIT GitHub repository of Bottom Level Finder

CC Test

by saket3395
13 stars

This script calculates and plots a standard Exponential Moving Average on the main price chart. It evaluates the average closing price over a configurable lookback period, which defaults to 14 bars. The calculated moving average is rendered as a blue line dire

Indicator v6 Moving averagesTrend
Updated 7 weeks ago · MIT GitHub repository of CC Test

Strategy-Picker

by hintheman
13 stars

Strategy-Picker evaluates market trend, momentum, and volatility across multiple timeframes (5m, 15m, and 60m) to recommend suitable options trading structures. It combines MACD, an 8-period EMA, and ADX readings with external VIX levels to suggest Put Credit

Indicator v6 TrendVolatility & bands
Updated 2 months ago · Custom licence GitHub repository of Strategy-Picker
13 stars

The Adaptive Trend Finder calculates logarithmic linear regression channels overlaid on the price chart. Operating on the most recent historical bar, it fits a log-transformed regression line and standard deviation bands. It evaluates linear correlation using

Indicator v6 TrendSupport & resistance Repaints
Updated 6 months ago · MIT GitHub repository of Adaptive Trend Finder (log)

Fractal Reclaim Strength

by selimgrsoy0-commits
12 stars

The indicator tracks four-bar fractal sweep and reclaim setups on chart timeframes of 15 minutes and above. It calculates Reclaim Strength based on where C2 closes relative to C1's range and plots level lines for the swept C1 extreme and C2 extreme. An on-scre

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Fractal Reclaim Strength
12 stars

This strategy is titled for Bitcoin on the four-hour chart and is set to draw on the price chart. It detects three-candle fair value gaps and inverted gaps, and it defines a check for price near a gap midpoint within a percentage tolerance. An optional filter

Strategy v6 SMC / ICT / price actionTrend
Updated 4 months ago · None stated GitHub repository of BTC 4h FVG/iFVG Automated Strategy

ICT HTF Candles (fadi)

by dbruce1990
12 stars

ICT HTF Candles displays higher timeframe candle structures directly on the price chart using customized boxes and lines. It tracks up to six user-defined higher timeframes, plotting historical body, wick, and imbalance zones alongside optional price level tra

Indicator v6 SMC / ICT / price actionCandlestick patterns
Updated 1 year ago · None stated GitHub repository of ICT HTF Candles (fadi)
11 stars

This indicator identifies and visualizes key support and resistance zones directly on the price chart using historical 1-hour bar evidence. It calculates zone strength by weighting price rejections, support-resistance flips, relative volume spikes, price gaps,

Indicator v6 Support & resistanceVolatility & bands
Updated 7 weeks ago · MIT GitHub repository of 1-Hour Key Level Heatmap
11 stars

This overlay indicator marks volume-driven buying and selling pressure on the price chart. It compares volume with a simple moving average scaled by a volatility-based multiplier, and it uses a trend simple moving average plus RSI thresholds to color bars. Swi

Indicator v6 VolumeSupport & resistance
Updated 2 months ago · Apache-2.0 GitHub repository of Institutional Insight Indicator

This indicator implements a full Chanlun pipeline on the price chart. It merges contained bars, marks top and bottom fractals, and connects alternating fractals into strokes. Overlapping strokes form pivot boxes, and MACD area ratios flag trend or consolidatio

Indicator v6 Support & resistanceDivergence
Updated 2 months ago · GPL-3.0 GitHub repository of 缠论 - 分型与笔 [Chanlun Core]

Breakout Strategy

by JoelPasapera
11 stars

This strategy implements a channel breakout system directly on the main price chart. It calculates highest highs and lowest lows over configurable entry and exit periods using historical candles. A long entry triggers when the close breaks above the entry chan

Strategy v6 BreakoutTrend
Updated 5 months ago · Apache-2.0 GitHub repository of Breakout Strategy

LqEMABB

by idrode
10 stars

This indicator estimates cryptocurrency liquidation levels and liquidation density using open interest delta data fetched from Binance USDT perpetual futures. It identifies spikes in open interest relative to a simple moving average and plots estimated liquida

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 6 weeks ago · AGPL-3.0 GitHub repository of LqEMABB

This overlay indicator marks Wyckoff-style buying and selling climaxes on the price chart. It filters trend with an exponential moving average and a higher-timeframe EMA, then flags accumulation or distribution when price and ATR sit relative to their swing av

Indicator v6 TrendVolatility & bands
Updated 1 year ago · MIT GitHub repository of Ultimate Wyckoff Indicator V3 (Refined)

Calculates adaptive arithmetic candles by blending price data with Kaufman Efficiency Ratio smoothing and a linear regression anchor. It measures trend health using a zero-to-hundred Quality Score derived from market efficiency, regression slope, and normalize

Indicator v6 TrendCandlestick patterns
Updated 2 days ago · MIT GitHub repository of Adaptive Arithmetic Candles + Quality Score [WavesUnchained]

Nexural Flow Pro

by JasonTeixeira
9 stars

Nexural Flow Pro plots real order flow data in a separate pane as stacked buy and sell volume columns. It highlights imbalances at 3:1 ratios with glow effects, detects absorption patterns, and marks unfinished auction continuations. Session filtering optional

Indicator v6 VolumeSessions & time
Updated 13 days ago · Custom licence GitHub repository of Nexural Flow Pro

RSI Divergence

by paulieb89
9 stars

This indicator plots RSI in a separate pane and marks regular divergences between confirmed price pivots and RSI pivots. A bullish signal requires a lower price low, a higher RSI low, and an RSI reading in the oversold zone, within a set bar gap. Bearish detec

Indicator v6 Oscillators & momentumDivergence
Updated 2 months ago · MIT GitHub repository of RSI Divergence

3D MACD Bar Plot [LuxAlgo]

by MeridianAlgo
9 stars

This indicator projects a three-dimensional surface plot of multiple MACD calculations in a separate indicator pane. It calculates exponential moving averages across ranges of fast and slow periods defined by user-selected minimum, maximum, and step parameters

Indicator v6 Oscillators & momentumMoving averages
Updated 4 months ago · MIT GitHub repository of 3D MACD Bar Plot [LuxAlgo]

This indicator detects and visualizes Smart Money Concepts (SMC) and Inner Circle Trader (ICT) structures directly on the price chart. It performs multi-timeframe analysis across customizable trend (H1), entry (M15), and micro (M5) timeframes to identify bulli

Indicator v6 SMC / ICT / price actionSupport & resistance

Block Comment Probe

by folknor
8 stars

A minimal test script from a Pine Script linter project that checks a block comment placed in the middle of a line. It sets a variable to two, with an inline comment after the value, and plots that constant in a separate pane. It has no inputs, signals or mark

Indicator v6
Updated 4 weeks ago · Custom licence GitHub repository of Block Comment Probe
8 stars

This utility indicator exports historical OHLCV market data into formatted CSV text using Pine Logs on the latest chart bar. It iterates through historical bars from oldest to newest, logging timestamps, open, high, low, close, and volume values. Users can spe

Indicator v6
Updated 7 weeks ago · None stated GitHub repository of Data Exporter for Optimizer

Larper Suite

by DeolinNaidoo
8 stars

Larper Suite is an overlay indicator for ICT and quarterly-theory analysis. It plots true session, daily, weekly, monthly, and yearly opens plus prior and current high-low liquidity levels. It tracks multi-asset SMT, swing divergence, fair-value-gap fills, and

Indicator v6 SMC / ICT / price actionDivergence Repaints
Updated 3 months ago · GPL-3.0 GitHub repository of Larper Suite

GainzAlgo V2 Alpha

by Bakomebandias
8 stars

This overlay indicator scores breakouts of recent highs and lows against failed-breakout checks, EMA trend alignment, RSI momentum, and an ATR volatility band. It plots green buy and red sell labels when conditions pass a minimum score, and it prints ATR-based

Indicator v6 TrendOscillators & momentum
Updated 6 months ago · None stated GitHub repository of GainzAlgo V2 Alpha

PA Stats

by Enesp4rl4k
7 stars

This indicator displays a compact trade metrics table in the top-right corner of the price chart. Built as a template script for automated MCP server workflows, it populates and presents trade setup details including risk percentage, calculated position units,

Indicator v6 Screeners & dashboards
Updated 6 days ago · MIT GitHub repository of PA Stats

Natural Squares

by NQ-stats-MX
7 stars

This indicator plots Gann natural squares and fractional Square of Nine levels as horizontal lines on the price chart. It scales price, takes the square root, and draws a chosen number of levels above and below the close, with optional root, angle, price, and

Indicator v6 Support & resistance
Updated 10 days ago · MIT GitHub repository of Natural Squares

Arrows Off BB

by lunarticktrading
7 stars

This indicator plots standard Bollinger Bands and identifies potential mean-reversion setup signals directly on the main price chart. A bullish signal triggers when a bullish candlestick follows a bearish candlestick while both consecutive bars' lows drop belo

Indicator v6 Volatility & bandsMean reversion
Updated 2 weeks ago · None stated GitHub repository of Arrows Off BB

1-Min Gold Taylor Technique

by eddiebelaval
7 stars

This intraday strategy implements session-based trading rules tailored for gold on short timeframes. It tracks the Asian session price range, VWAP, 20-period EMA, and previous day high and low levels to identify liquidity sweeps during London and New York trad

Strategy v6 Sessions & timeSupport & resistance
Updated 3 months ago · None stated GitHub repository of 1-Min Gold Taylor Technique

ATR Renko

by suyons
7 stars

ATR Renko generates reversal signals on standard price charts by requesting synthetic Renko bar data calculated with an Average True Range box size. It tracks changes in Renko block direction and plots buy labels when a down block transitions to an up block, a

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

Bullish Engulfing Low

by chargersfan47
7 stars

Bullish Engulfing Low is an overlay indicator that marks a two-candle pattern: a bullish bar whose close is above the prior bar open and whose low stays above the prior low, after a bearish bar. When that condition is true it draws a right-extended horizontal

Indicator v6 Candlestick patternsSupport & resistance Repaints
Updated 5 months ago · None stated GitHub repository of Bullish Engulfing Low
7 stars

This indicator calculates a simple moving average over a specified lookback period using a custom summation loop. It plots the moving average directly on the price chart as a blue line. An alert condition triggers whenever the chosen source price crosses above

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

This strategy plots dynamic pivot-based support and resistance trendlines on the price chart and trades breakouts beyond those lines. By default it allows longs only when EMA 50 is above EMA 200 and an RSI-SMA momentum filter is met, with an ATR entry buffer.

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Easy Trendline - XAUUSD 30m

Backtest Adapter

by SynergOps
7 stars

This strategy adapts an external numeric source into backtest orders on the price chart. It opens a long when the source equals 1 and closes that long when it equals 2. It opens a short at -1 and closes it at -2. An optional start-date filter blocks trades bef

Strategy v6
Updated 1 year ago · MPL-2.0 GitHub repository of Backtest Adapter
7 stars

Calculates volume profile levels over a lookback window to identify support, resistance, and Point of Control (POC) lines on the price chart. It executes trades based on price interaction with these low-volume zones, featuring customizable signal inversion and

Strategy v6 ScalpingVolume
Updated 1 year ago · None stated GitHub repository of Enhanced NQ1 Scalping Strategy

CG-ISMARKET Session Flags

by pineforge-4pass
6 stars

This diagnostic strategy inspects and records TradingView session built-in flags on each chart bar. It alternates between long and short entries on every bar, encoding the state of regular market, premarket, postmarket, and boundary flags into the order commen

Strategy v6 Sessions & time
Updated yesterday · Custom licence GitHub repository of CG-ISMARKET Session Flags
6 stars

This overlay indicator scores a bull, bear, or neutral game state from an auditable decision-forest probability rather than a fitted machine-learning model or live API. It compares the smoothed probability with bull and bear thresholds, then shifts it when a s

Indicator v6 Screeners & dashboardsAI / machine learning Repaints
Updated 7 days ago · None stated GitHub repository of Regime Game Probability Forest

C41 Core Strategy v2

by damianpitt
6 stars

This strategy plots an EMA or SMA on the price chart and enters long when price is above the average and both RSI and Williams %R meet the long condition, or short when price is below the average and both oscillators meet the short condition. An optional turn

Strategy v6 TrendOscillators & momentum
Updated 8 weeks ago · MIT GitHub repository of C41 Core Strategy v2

FxHD Strategy v2.0

by alboogycOdR
6 stars

FxHD Strategy v2.0 is a Fibonacci multi-timeframe strategy drawn on the price chart. It reads a higher timeframe, defaulting to four hours, and sets bias with CRT kill zones, the last two candles, dynamic CRT, or market structure, plus a fallback method. It pl

Strategy v6 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of FxHD Strategy v2.0

MarketMerge

by mgnyc11
6 stars

MarketMerge generates an on-chart MarketSurge-style data panel featuring CANSLIM analysis, fundamental metrics, relative strength ratings, and key technical overlays. It calculates composite ratings based on multi-timeframe relative strength against a benchmar

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

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