Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 29)

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

Volume Profile Plus

by btankutt
2 stars

Volume Profile Plus is a session-based or fixed-lookback volume profile indicator that plots a horizontal volume histogram on the price chart. It identifies the Point of Control (POC) as the highest-volume price level, computes the Value Area (VAH/VAL) using a

Indicator v6 VolumeSupport & resistance
Updated 3 months ago · MPL-2.0 GitHub repository of Volume Profile Plus
2 stars

This indicator draws support and resistance channels on the price chart from hourly pivot highs and lows. It clusters confirmed pivots that fall inside a maximum width, scores each cluster by how many pivots it contains, and keeps channels that meet a minimum

Indicator v6 Support & resistance
Updated 6 months ago · None stated GitHub repository of SR Channels (Hourly)
2 stars

This indicator plots demand and supply zones computed from volume profile with 30-56 bins, fair value gaps on 4H, and equal highs/lows. It draws a magic line using ATR(14) x 1.618 golden ratio anchored to the 00:00 UTC close. Signals identify liquidity vacuum

Indicator v6 SMC / ICT / price actionVolume
Updated 6 months ago · None stated GitHub repository of Ghost Zone v9 — GTI Signals v18a

This indicator calculates dynamic grid trading boundaries derived from Bollinger Bands to define upper, lower, and middle range levels. It computes moving average basis lines and standard deviation bands, applying user-defined offsets, smoothing, and minimum o

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

Bernoulli

by regalouisei
2 stars

This indicator plots a binary entropy series from a Bernoulli process applied to percent-ranked measurements in a separate pane. Measurement modes include raw value, moving average, change, momentum, acceleration, contribution, percent change, volatility, and

Indicator v6 Oscillators & momentumVolume
Updated 8 months ago · None stated GitHub repository of Bernoulli

MA Oscillator Map

by mushroom-men-Trading
2 stars

MA Oscillator Map calculates momentum and trend oscillations relative to configurable moving average baselines. It supports multiple moving average types, including SMA, EMA, HMA, VWMA, SMMA, WMA, and Adaptive Least Squares Moving Average (ALSMA). Operating in

Indicator v6 Moving averagesOscillators & momentum
Updated 9 months ago · None stated GitHub repository of MA Oscillator Map

This indicator plots multiple moving averages including SMA10, SMA50, SMA100, SMA200, Ichimoku conversion and lead lines, and 52-week high and low levels on the price chart. It detects breakouts using volume multiplier, optional gaps, and strong candle require

Indicator v6 BreakoutMoving averages Repaints
Updated 10 months ago · MIT GitHub repository of Ede – MA + Breakout Strategie (Dynamic MAs)
2 stars

This indicator combines Qualitative Quantitative Estimation (QQE), the AK Trend Line, and Elder's Force Index (EFI) into a single separate pane tool. It calculates QQE using smoothed RSI and Wilder's ATR, computes AK Trend values with dynamic scale factors mat

Indicator v6 Oscillators & momentumVolume
Updated 11 months ago · MPL-2.0 GitHub repository of QQE + AK Trend + EFI Combined
2 stars

Calculates standard Darvas Box high and low levels based on price pivots over a specified lookback period. The indicator identifies box formations and plots shape markers above and below bars representing the top and bottom boundaries of the active box on the

Indicator v6 Support & resistanceBreakout
Updated 1 year ago · MPL-2.0 GitHub repository of Darvas Box - Last Box Only

MovingAverages

by Electrified-Trading
2 stars

This library exports utilities for calculating moving averages rather than drawing them on a chart. It provides a volume-adjusted weighted moving average that combines volume weighting with triangular recent-bar emphasis, and a coefficient moving average that

Library v6 Moving averagesVolume
Updated 1 year ago · MPL-2.0 GitHub repository of MovingAverages

Tik 1 JPY

by keiru517
2 stars

Tik 1 JPY is a visual reference indicator that plots horizontal level grid lines, midpoint lines, and sub-interval lines tailored for Japanese Yen currency pairs. Users can configure the start and end price levels, which default to 130 and 165. It draws solid

Indicator v6 Support & resistance
Updated 1 year ago · None stated GitHub repository of Tik 1 JPY
2 stars

PriceCatch Opensource CPR calculates and displays Central Pivot Range levels based on daily high, low, and close values. It plots colored boxes and channel boundaries directly on the price chart to visualize current and previous daily CPR zones. The indicator

Indicator v6 Support & resistance
Updated 1 year ago · MPL-2.0 GitHub repository of PriceCatch Opensource CPR

Trend Score History

by ryangaraygay
2 stars

Trend Score History calculates a composite trend metric ranging between -5 and +5 by evaluating session VWAP, EMA alignment, price-volume flow, lower-timeframe Donchian channel breakouts, and Opening Range breakouts. It plots the cumulative score as histogram

Indicator v6 TrendOscillators & momentum Repaints
Updated 1 year ago · MIT GitHub repository of Trend Score History
1 stars

A test indicator on the price chart that combines optional entry filters with adaptive exit sizing. Filters include a moving average, a confirmation moving average, a higher-high higher-low market structure check using pivots and a MACD direction check. Take p

Indicator v6 Volatility & bandsMoving averages
Updated 2 days ago · None stated GitHub repository of USE Adaptive Kelly Test
1 stars

This indicator calculates and plots the standard Commodity Channel Index (CCI) in a separate pane alongside upper, middle, and lower threshold reference levels. It includes an optional smoothing moving average with selectable types including SMA, EMA, SMMA, WM

Indicator v6 Oscillators & momentum
Updated 2 days ago · Custom licence GitHub repository of Commodity Channel Index
1 stars

This indicator identifies institutional liquidity pool zones using swing high and low pivots adjusted by ATR width. It confirms liquidity sweeps through multi-layer criteria, including volume spikes, wick rejections, absorption bars, and swing failure patterns

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 days ago · None stated GitHub repository of Shark Hunt | Anonycryptous

ZeroDTE Wave v2

by xynkro
1 stars

A Pine version 6 overlay that marks reversal entries and exits for same-day index option trades on five-minute bars. Entries need a stochastic reversal cross, an EMA trend filter, a cooldown and a time window, and must pass a confluence score, a VIX stand-asid

Indicator v6 Mean reversionSessions & time
Updated 2 days ago · None stated GitHub repository of ZeroDTE Wave v2
1 stars

A long-or-cash strategy using the same entry rule as a plain trend filter: the close must be above a 100-bar simple moving average and above the close 20 bars earlier. Position size scales with momentum strength, from a minimum fraction of equity to a maximum

Strategy v6 TrendOscillators & momentum
1 stars

Market Lab is a static market workbench for inspecting OHLCV paths, cost anchors, volatility bands, formula research outputs, and candidate order plans in one compact interface. It features three-panel layout with instrument navigation, main chart, and facts a

Indicator v6 Support & resistanceVolatility & bands
Updated 2 days ago · AGPL-3.0 GitHub repository of DEPRECATED - use canonical Market Lab
1 stars

A separate-pane indicator that measures how far price sits from a weekly midline (average of a weekly EMA and SMA), scales the gap by daily and weekly ATR ratios, and converts it into a heat value from 0 to 100. Columns are coloured by heat level and faded whe

Indicator v6 Volatility & bandsSupport & resistance
Updated 3 days ago · None stated GitHub repository of Structural Heat Map (V3)

Ghost Alpha

by mphinance
1 stars

A price-chart overlay that blends a Hull moving average band, an optional higher timeframe Hull, a TRAMA line, Keltner bands, 50 and 200 SMAs and an intraday VWAP. It also covers swing structure detection with levels and supply and demand zones, a two-line Wil

Indicator v6 TrendMoving averages
Updated 3 days ago · Custom licence GitHub repository of Ghost Alpha

PE Ratio and TTM EPS

by ankurksoni
1 stars

A separate-pane indicator, short title PE/EPS, that styles a price to earnings view after a screener chart. It plots the trailing price to earnings ratio as a line and trailing twelve-month earnings per share, diluted or basic, as quarter-wide blocks, with a d

Indicator v6
Updated 3 days ago · None stated GitHub repository of PE Ratio and TTM EPS
1 stars

Prints manual long and short signal labels on the price chart using an adaptive method trained on recent settled trade paths. It works on standard time-based charts, scaling stop limits with the chart's bar length, and uses the previous closed candles. Options

Indicator v6 AI / machine learning
Updated 4 days ago · None stated GitHub repository of TopBot Adaptive (Three-Candle)
1 stars

This indicator plots fast and slow EMAs on the price chart with a fill between them to show trend direction. It ranks ATR volatility over the past 200 bars to define three regimes: quiet (trade only), wild (high volatility), and neutral. The background shades

Indicator v6 TrendVolatility & bands
Updated 4 days ago · MPL-2.0 GitHub repository of Complete System: Regime + Edge + Risk

Skipp Scoring

by skipp-dev
1 stars

Skipp Scoring is a Pine Script v6 utility library that provides quantitative scoring functions for technical analysis scripts. It calculates normalized market state scores ranging between -1 and +1, evaluating trend strength, discrete regimes (bullish, bearish

Library v6
Updated 4 days ago · None stated GitHub repository of Skipp Scoring

J14-E1 Adv

by moonyroy
1 stars

The j14-E1 adv indicator plots a dynamic ZigZag on the price chart by detecting swing highs and lows. It draws orange and aqua trend lines marking pivot points, with boxes showing candle shadows and bodies. The script identifies potential trend shifts via CHoC

Indicator v6 TrendSupport & resistance Repaints
Updated 6 days ago · None stated GitHub repository of J14-E1 Adv

Webhook Test

by Jakub-Pinkowski
1 stars

Webhook Test is a minimal utility indicator designed to test automated webhook integration. It overlays the main price chart and triggers an alert condition on every bar close. The triggered alert outputs a formatted JSON payload containing the current ticker

Indicator v6
Updated 7 days ago · None stated GitHub repository of Webhook Test

ATR Trailing Stop

by pineforge-4pass
1 stars

This Pine Script strategy generates entry signals from an EMA of length 20 crossed by close price. Long crossover enters long position and sets initial trailing stop below close using ATR multiplied by 2.0. Short crossover enters short and sets trailing stop a

Strategy v6 TrendVolatility & bands
Updated 7 days ago · Apache-2.0 GitHub repository of ATR Trailing Stop

I Volume

by GammaExpansion
1 stars

This indicator plots multiple volume-related metrics on a separate pane below the price chart. It calculates and displays various VWAP versions including standard, close-based, HLC3 with session filters, and anchored sessions, along with OBV, accumulation dist

Indicator v6 Volume
Updated 7 days ago · MIT GitHub repository of I Volume

EMA-Volume

by engtuncay
1 stars

EMA-Volume plots two exponential moving averages on the price chart and tints the background when the faster average crosses above or below the slower one. It also builds simple moving averages of raw and scaled dollar volume, then compares a 30-bar volume ave

Indicator v6 Moving averagesVolume
Updated 7 days ago · None stated GitHub repository of EMA-Volume

Division Candle Overlay

by ElroyvOuwerkerk
1 stars

A bar-colouring indicator that splits each candle's high-to-low range into a chosen number of divisions, from 2 to 10. A bar is coloured green when its close is in the top division and red when it is in the bottom division; bars matching neither, or both, stay

Indicator v6 Candlestick patternsOscillators & momentum
Updated 8 days ago · None stated GitHub repository of Division Candle Overlay
1 stars

A strategy for one-minute charts that trades a breakout of a short opening probe at the cash open in a chosen time zone. It limits entries to the first breakout of the day within a time window and offers fixed risk-multiple, ATR bracket, time-based or session-

Strategy v6 Sessions & timeBreakout
Updated 8 days ago · GPL-3.0 GitHub repository of Academia TORB v1.5 Volatility-Regime ORB
1 stars

A price-chart indicator that shows two tables. A focus panel runs a trend-flip and oscillator engine on one chosen futures contract across five timeframes and reports an alignment score. A board runs the same engine across a list of futures markets on one scan

Indicator v6 Screeners & dashboardsTrend
Updated 8 days ago · Custom licence GitHub repository of Phantom Flow Futures Screener

A Pine v6 strategy for crypto charts that evaluates RSI, a trend moving average with higher timeframe filter, Fibonacci Bollinger Bands and Ichimoku in a fixed order. Each indicator can be switched on for visuals, for backtesting or both, and entry and exit si

Strategy v6 Oscillators & momentumTrend
Updated 12 days ago · MIT GitHub repository of Crypto TA Pro Phase 1 Weighted Indicators

DEPV2 A2 TREND

by YuceSezar89
1 stars

The indicator computes the normalized deviation of close price from HLC3 SMA using ATR for trend measurement. It plots deviation Z-score, trend state (1 bullish, -1 bearish, 0 neutral via state machine), and strength level (0-2) in a separate pane. Settings ad

Indicator v6 TrendMoving averages
Updated 13 days ago · None stated GitHub repository of DEPV2 A2 TREND

Master Trading Strategy

by MuhammadMuhamid
1 stars

A heavily modular long strategy for crypto spot pairs in which every filter and exit has its own switch. Entries centre on pivot-based support and resistance across several timeframes with retest confirmation, plus optional moving average, volume, ATR spike, s

Strategy v6 Support & resistanceTrend
Updated 13 days ago · None stated GitHub repository of Master Trading Strategy
1 stars

This indicator calculates the total transaction cost hurdle comprising commission, slippage, and spread as a percentage, price value, and fraction of ATR. It samples historical price moves across four user-defined holding periods over a configurable lookback w

Indicator v6 Screeners & dashboardsVolatility & bands
Updated 2 weeks ago · MPL-2.0 GitHub repository of Taught to Trade - Cost Hurdle

Just C3

by Just-beyond-z
1 stars

An overlay that shows 4-hour, 7-hour and daily candles beside the current bars and follows a three-candle framework, marking where the second candle closes and raising an alert for the third. It can draw session dividers with short or long labels, a table of h

Indicator v6 SMC / ICT / price actionSessions & time
Updated 2 weeks ago · None stated GitHub repository of Just C3
1 stars

Plots long and short signals on the price chart from a smoothed Hull moving average of price change, firing when momentum crosses its value two bars earlier. Each signal projects five target levels spaced by an average candle range, and a simulated position us

Indicator v6 Oscillators & momentumTrend Repaints
Updated 2 weeks ago · None stated GitHub repository of Momentum Shift Positions

Moon Phases

by AkashSasikumar47
1 stars

A Pine v6 indicator that calculates lunar phases from the date and shows them on the price chart. It marks new and full moons and tints the waxing and waning halves of each cycle in two colors that can be changed. It is a calendar tool for people who study cyc

Indicator v6 Sessions & time
Updated 2 weeks ago · MIT GitHub repository of Moon Phases

On-Balance Volume

by AkashSasikumar47
1 stars

A Pine v6 indicator in a separate pane that plots On-Balance Volume, a running total that adds a bar's volume when the close rises and subtracts it when the close falls. A smoothing line can be built from SMA, EMA, SMMA, WMA or VWMA with an adjustable length,

Indicator v6 Volume
Updated 2 weeks ago · MIT GitHub repository of On-Balance Volume
1 stars

This strategy identifies trend phases using consecutive directional candle sequences, tracks the trend extreme, and monitors for order blocks confirmed by candle displacement. When price returns to test the identified order block, it enters long or short on a

Strategy v6 SMC / ICT / price actionCandlestick patterns
Updated 3 weeks ago · None stated GitHub repository of Höhlenmensch Strategie

Opening Range Breakout

by JACKZHOU0521
1 stars

The Opening Range Breakout indicator identifies high, low, and midpoint levels established during a customizable initial window of the trading day. Once the opening window ends, the range boundaries are frozen and drawn directly on the main price chart. The sc

Indicator v6 BreakoutSupport & resistance
Updated 5 weeks ago · None stated GitHub repository of Opening Range Breakout

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