Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 20)

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

MACD Crossover Strategy

by jaichaturvedi88
1 stars

This strategy plots on the price chart and trades long when the MACD line crosses above its signal line. It closes the long when the MACD line crosses back below the signal. Position size is the number of shares that a fixed ten thousand Indian rupees can buy

Strategy v6 Oscillators & momentum
Updated 3 months ago · None stated GitHub repository of MACD Crossover Strategy

Volume Profile (Free)

by mervinj3546
1 stars

A Pine v6 indicator that draws a horizontal volume-at-price profile to the right of price over a chosen number of recent bars. It marks the point of control and the value area high and low using an adjustable value area percentage, with settings for row count,

Indicator v6 VolumeSupport & resistance
Updated 3 months ago · None stated GitHub repository of Volume Profile (Free)

SPY Elliott Wave Count

by fededamis
1 stars

This indicator overlays a precomputed Elliott Wave count for SPY on the price chart. It draws primary and alternate impulse and corrective waves as colored lines and price labels, including optional subwaves, projected points, invalidation levels, and Fibonacc

Indicator v6 Support & resistance
Updated 3 months ago · None stated GitHub repository of SPY Elliott Wave Count
1 stars

Plots Ethereum options Max Pain levels sourced from Deribit as horizontal dashed lines on the price chart. Each line extends from the current bar to the settlement timestamp of its corresponding expiration date. Line thickness scales relative to total open int

Indicator v6 Support & resistance
Updated 3 months ago · MIT GitHub repository of ETH Max Pain (Deribit)

Buddha Bollinger Bands

by DarthBuddha
1 stars

A chart-overlay indicator that draws Bollinger-style envelopes from a daily, weekly or monthly anchor timeframe, so the bands stay fixed relative to a higher timeframe while viewing a lower one. It plots two standard deviation zones, a slower one at 2.0 and a

Indicator v6 Volatility & bands
Updated 3 months ago · MIT GitHub repository of Buddha Bollinger Bands

Macro Dashboard

by tthanhvu002sgu
1 stars

A two-part macro valuation display drawn over the price chart, calculated on weekly data. The PnL Matrix compares price with volume-weighted cost bases over one to four years and ranks the average gap as a percentile over a lookback in weeks. The Valuator fits

Indicator v6 Screeners & dashboardsMean reversion
Updated 3 months ago · None stated GitHub repository of Macro Dashboard

Fusion Cipher B Oscillator

by shahzaib-574
1 stars

The Fusion Cipher B Oscillator plots a multi-part momentum stack in a separate pane below the price chart. It calculates wave momentum with blue and white waves, money flow polarity, VWAP oscillator, RSI, Stochastic RSI, dots, and divergences. The script detec

Indicator v6 Oscillators & momentumDivergence
Updated 3 months ago · None stated GitHub repository of Fusion Cipher B Oscillator

Library Template

by maxenko
1 stars

A Pine v6 library template showing how to structure exported code. It defines a Pivot type holding bar index, price and direction, a higher timeframe request helper that reads the previous closed bar, a method that returns a confirmed swing pivot only after th

Library v6
Updated 3 months ago · MIT GitHub repository of Library Template

Saham: Papan Instrumen By. Akhmfz is a fundamental analysis dashboard tailored for Indonesian equities on the IDX. It calculates a multi-dimensional score across valuation, business quality, growth, financial health, dividend income, momentum, and an optional

Indicator v6 Screeners & dashboardsOscillators & momentum
Updated 3 months ago · MIT GitHub repository of Saham: Papan Instrumen By. Akhmfz
1 stars

This technical analysis dashboard aggregates market data across four dimensions: trend, momentum, volatility, and volume. It evaluates multiple technical indicators including exponential moving averages, SuperTrend, ADX, RSI, MACD, Stochastic, Bollinger Bands,

Indicator v6 Screeners & dashboardsTrend
Updated 3 months ago · MIT GitHub repository of Saham: Papan Gerak By. Akhmfz

Non-repainting HTF EMA

by ForexCodes-hq
1 stars

This indicator plots an exponential moving average calculated from a user-defined higher timeframe directly on the price chart. It avoids repainting and lookahead bias by applying a one-bar historical offset to the higher-timeframe data with lookahead disabled

Indicator v6 Moving averagesTrend
Updated 3 months ago · MIT GitHub repository of Non-repainting HTF EMA

This overlay indicator unifies three optional alert modules on the price chart. It plots a fast and a slow exponential moving average and an optional horizontal price level. On confirmed bars only, it sends webhook-ready JSON when the fast average crosses the

Indicator v6 Moving averagesOscillators & momentum
Updated 3 months ago · MIT GitHub repository of Multi-Condition Alert Manager [QuantForge]

Volumetric Regression Heatmap

by woodstock-tokyo
1 stars

An overlay indicator that fits a regression channel over a base period, optionally resizing the period with volatility, and fills parallel levels above and below it with a colour gradient based on traded volume. Optional mean reversion signals appear when pric

Indicator v6 VolumeMean reversion Repaints
Updated 3 months ago · None stated GitHub repository of Volumetric Regression Heatmap
1 stars

A starter template for a Pine v6 indicator in a separate pane, with comments in Chinese. It computes two exponential moving averages of a chosen source with different lengths, converts the first into a 0 to 100 rolling percentile, and offers show toggles and a

Indicator v6 Oscillators & momentumMoving averages
Updated 3 months ago · None stated GitHub repository of Template A Separate Pane Indicator

GEKO HYBRID MASTER

by grzegorzkowalskigk-jpg
1 stars

GEKO HYBRID MASTER is a custom oscillator indicator that merges RSI, Stochastic, MFI, MACD, and SATS volatility filters for signal confirmation. It calculates composite momentum with normalized MACD, body-proportional CVD, divergences, HTF EMA slope and ADX tr

Indicator v6 Oscillators & momentumVolatility & bands
Updated 3 months ago · Custom licence GitHub repository of GEKO HYBRID MASTER

Abhi's Live Price Action

by abhinaynatraj
1 stars

An overlay built around quarter theory for NQ and ES style futures. Each hour is split into four 15-minute quarters, and the script tints hours and three-hour blocks, draws quarter dividers, labels in-stat and out-of-stat extremes, marks sweepers, bias shifts

Indicator v6 Sessions & timeSupport & resistance
Updated 3 months ago · None stated GitHub repository of Abhi's Live Price Action

Dollar Cross Play

by majohnst
1 stars

The Dollar Cross Play strategy detects price breakouts above a user-defined dollar threshold. It qualifies long entries by verifying that the previous day's close was at or below a maximum ceiling, aiming to capture fresh crosses rather than overextended moves

Strategy v6 BreakoutSupport & resistance
Updated 4 months ago · None stated GitHub repository of Dollar Cross Play
1 stars

A Pine v6 strategy variant for 15-minute Bitcoin perpetual charts that trades RSI momentum breakouts. Entries use RSI levels with a gap, plus candle color, EMA 200, ATR and body-size filters, and an optional pullback re-entry. This version sets a tighter fixed

Strategy v6 Oscillators & momentumTrend
Updated 4 months ago · None stated GitHub repository of BTC RSI Momentum v21
1 stars

This overlay indicator maps smart-money market structure on the price chart. It labels swing points as higher highs, higher lows, lower highs, and lower lows, and draws Break of Structure and Change of Character lines when structure breaks. A multi-timeframe t

Indicator v6 SMC / ICT / price actionScreeners & dashboards
Updated 4 months ago · None stated GitHub repository of SMC Market Structure + MTF

An ICT-style overlay that detects a swing leg from confirmed pivots, then draws the 0.62, 0.705 and 0.79 optimal trade entry zone with a projected target. A signal needs a minimum confluence score built from structure shift, liquidity sweep at the leg origin,

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · None stated GitHub repository of OTE Optimal Trade Entry Confluence

Sentinel TA Score & Confluence

by FolahanWilliams
1 stars

An oscillator in a separate pane that combines RSI, MACD histogram, 50 and 200 SMA trend, Bollinger position, volume ratio and gap behaviour into a composite score from minus 100 to plus 100. It also plots long and short confluence readings from 0 to 100, an o

Indicator v6 Oscillators & momentumMean reversion
Updated 4 months ago · None stated GitHub repository of Sentinel TA Score & Confluence

LTF FractalsSweep + IFVG

by riegodavid-git
1 stars

An overlay indicator for lower timeframes that tracks the latest fractal highs and lows and draws a dotted line when price sweeps one, with an alert on bar close. It also detects fair value gaps, with optional filters for volume, ATR gap size and short-term tr

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · None stated GitHub repository of LTF FractalsSweep + IFVG

Unified Trade Signal

by ashishgkwd
1 stars

Unified Trade Signal is an overlay indicator that prints a buy or sell label only when several conditions agree on the same bar. For a buy, price must break above a Nadaraya-Watson envelope upper band, the fast EMA must be above the slow EMA, an adaptive trend

Indicator v6 TrendOscillators & momentum Repaints
Updated 4 months ago · None stated GitHub repository of Unified Trade Signal
1 stars

An oscillator in a separate pane that applies fractional differencing to price and converts it to a rolling Z-score for one-minute Nasdaq futures. It looks for snapback entries after a deep extreme beyond the band, with the price turning back, and can add pric

Indicator v6 Mean reversionOscillators & momentum
Updated 4 months ago · None stated GitHub repository of FracDiff Z NQ 1m Quality Setups

Bears and Bulls

by rubbermetal
1 stars

An overlay candlestick pattern detector that marks bullish and bearish patterns on the price chart. Patterns are grouped into single, double, triple and multi-candle categories that can each be switched on or off, and each is coloured by reliability level. An

Indicator v6 Candlestick patterns
Updated 4 months ago · MPL-2.0 GitHub repository of Bears and Bulls
1 stars

This Pine Script strategy tests type casting and mathematical operations using logarithmic scaling on price deviation. It calculates a simple moving average over a user-defined length, computes the absolute spread between price and the average, and scales it u

Strategy v6 TrendMoving averages
Updated 4 months ago · MIT GitHub repository of Cast And Log10 Support
1 stars

This overlay indicator fits a quadratic regression parabola to recent source prices to show a curved trend, its slope, and its curvature. Hyperbola bands use ATR and a curve-sensitivity multiplier so they widen when the trend bends and tighten when it is strai

Indicator v6 TrendVolatility & bands
Updated 5 months ago · None stated GitHub repository of Parabola & Hyperbola Structure

DST HMM v9 XAUUSD

by Javas128282
1 stars

DST HMM v9 XAUUSD classifies the market into hidden regimes such as Sideways, Bull and Bear using a hidden Markov model retrained on a rolling window with Baum-Welch iterations. It adds a Kalman filter line with confidence bands and an optional multi-bar Kalma

Indicator v6 AI / machine learningTrend
Updated 5 months ago · None stated GitHub repository of DST HMM v9 XAUUSD
1 stars

The script is an indicator that plots multiple moving averages on the price chart. It displays HMA 9, EMA 16, HMA 21, EMA 34 and EMA 50 lines with separate bullish and bearish colors plus optional band fills for each. Users toggle visibility of lines and fills

Indicator v6 Moving averages
Updated 5 months ago · None stated GitHub repository of EMA High/Low/Median Ribbon

AlphaTrend Pro

by shubhamtaywade82
1 stars

A multi-layer strategy for crypto futures that groups indicators into trend, momentum and volume layers. Trend uses Supertrend, KAMA and Ichimoku, momentum uses MACD, Stochastic RSI and PZO, and volume uses relative volume. A first-come-first-served queue lets

Strategy v6 TrendOscillators & momentum Repaints Archived
Updated 5 months ago · None stated GitHub repository of AlphaTrend Pro

Titan Edge Multi Strategy

by spfogels-web
1 stars

A futures strategy that bundles five entry styles, pivot rejection, dynamic zone rejection, opening range breakout, VWAP rejection and EMA bounce, each of which can be switched on or off. Trades pass optional filters for VWAP, EMA, RSI momentum, volume, a VIX

Strategy v6 BreakoutSupport & resistance
Updated 5 months ago · None stated GitHub repository of Titan Edge Multi Strategy

Fresh Supply & Demand Zones

by kvmafthab-pixel
1 stars

Fresh Supply & Demand Zones is a Pine Script v6 indicator that detects and plots fresh supply and demand zones on the price chart. It identifies momentum candles based on ATR period and body size threshold, then scans back for base candles to form zones. Zones

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · Custom licence GitHub repository of Fresh Supply & Demand Zones
1 stars

An overlay indicator that tracks the Asia, London and New York sessions in a chosen timezone and draws each session's high, low and opening range. It marks sweeps of the previous session's high or low and reclaims back inside, derives a bullish or bearish sess

Indicator v6 Sessions & timeSupport & resistance
Updated 5 months ago · MIT GitHub repository of Crypto AMT Session Bias v1

Buy the Dip Futures 1000x

by PETERSAMUELOPS12
1 stars

A long-only dip-buying strategy for leveraged futures. Entries fire when price falls a set share of its recent high, with the depth optionally scaled to the asset's own historical maximum dip, when price sits below an EMA by a set percentage, or after a MACD c

Strategy v6 Mean reversion
Updated 5 months ago · None stated GitHub repository of Buy the Dip Futures 1000x
1 stars

This indicator plots the Parabolic Stop and Reverse (SAR) on the price chart with customizable acceleration start, increment, and maximum values. It highlights trend reversals where the price crosses the SAR line, marking flip points with directional triangula

Indicator v6 TrendScreeners & dashboards
Updated 5 months ago · None stated GitHub repository of SAR with tweakable aparameter

BVortex Multi

by Alberto082544
1 stars

The BVortex Multi strategy combines a Vortex indicator with an ADX filter to detect trend changes. It calculates Vortex values scaled for stronger signals and confirms trend direction using swing pivots on high and low prices. Buy triggers occur when Vortex cr

Strategy v6 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of BVortex Multi
1 stars

An indicator that combines several normalised oscillators, namely RSI, CCI, Fisher, DMI, Z-Score and a moving-average ratio, into one composite, then groups values into clusters over a rolling lookback. Lower and upper percentile settings mark extreme zones, a

Indicator v6 AI / machine learningOscillators & momentum
Updated 6 months ago · MIT GitHub repository of Simplified Percentile Clustering

FPL Cheatcode

by onlyspx
1 stars

This indicator draws up to six configurable moving averages on the price chart. Each has its own type (SMA, EMA, SMMA, WMA or VWMA), length, source, offset and optional higher timeframe. Defaults are 50 and 200 averages on the chart timeframe plus hourly 21 EM

Indicator v6 Moving averagesTrend
Updated 6 months ago · None stated GitHub repository of FPL Cheatcode

PA Strategy Backtest

by Chovy-King
1 stars

A strategy version of a price-action signal set with eleven switchable entry setups, such as trend breakout, trend pullback, false breakout of a key level, range edge, breakout retest and double top or bottom. Levels come from clustered swing points, with 20,

Strategy v6 Support & resistanceTrend
Updated 6 months ago · None stated GitHub repository of PA Strategy Backtest

AlgoBot FHB Strategy Long Only

by ghostnathan30-ops
1 stars

A long-only first-hour breakout strategy for Nasdaq futures on the 15-minute chart. It records the 9:30 to 10:30 New York range, then enters at the close of the first bar after 10:30 that closes above it while price is above a 50-period EMA. The stop is an ATR

Strategy v6 BreakoutSessions & time
Updated 6 months ago · None stated GitHub repository of AlgoBot FHB Strategy Long Only

Algo2.0

by dtheran1
1 stars

A combined overlay for the price chart that joins an ATR Trend module with a smart money concepts module. The trend line is built from an ATR band with ten smoothing types, a fast trend, an optional smoothed range channel and buy and sell markers on trend flip

Indicator v6 TrendSMC / ICT / price action Repaints
Updated 6 months ago · None stated GitHub repository of Algo2.0
1 stars

An overlay indicator that shades four trading sessions, New York, London, Tokyo and Sydney, with editable hours, colours, labels, range boxes and dividers. It also detects pivot-based order blocks and draws them on the chart, with a mitigation setting that dec

Indicator v6 Sessions & timeSMC / ICT / price action
Updated 6 months ago · None stated GitHub repository of Sessions + Order Blocks

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