Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 38)

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

Adaptive Price Zone

by mihakralj
99 stars

The Adaptive Price Zone indicator calculates volatility bands around a double-smoothed exponential moving average baseline directly on the price chart. It calculates internal smoothing factors using the square root of the user-specified period, double-smoothin

Indicator v6 Volatility & bandsTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Adaptive Price Zone

Moon Dev SMA Ribbon 20/40

by moondevonyt
92 stars

Moon Dev SMA Ribbon 20/40 calculates two simple moving averages (default 20 and 40 periods) and overlays them directly on the price chart. The space between the moving averages is filled with a dynamic gradient that adapts in color and transparency based on tr

Indicator v6 TrendMoving averages
Updated 2 months ago · Custom licence GitHub repository of Moon Dev SMA Ribbon 20/40

EMA Ribbon MACD

by iamrichardD
57 stars

This strategy combines an EMA ribbon with MACD confirmation and plots in a separate pane. It enters when ribbon alignment, optional MACD zero or signal crosses, volume, smart-money, and multi-timeframe filters agree, then exits with percentage stop loss and ta

Strategy v6 TrendMoving averages
Updated 1 year ago · Apache-2.0 GitHub repository of EMA Ribbon MACD

Ichimoku & SuperTrend

by dcaoyuan
55 stars

This indicator draws a classic Ichimoku cloud on the price chart. It plots the Tenkan-sen and Kijun-sen as Donchian midpoints and fills the cloud between the two leading spans, displaced 26 bars ahead, green when Lead 1 is above Lead 2 and red otherwise. Conve

Indicator v6 Trend
Updated 6 months ago · Apache-2.0 GitHub repository of Ichimoku & SuperTrend
53 stars

This strategy trades EUR/USD on the price chart using a fast and slow exponential moving average crossover filtered by RSI. It enters long when the fast EMA crosses above the slow EMA while RSI is above 50 and below the overbought level, and enters short on th

Strategy v6 TrendMoving averages
Updated 2 months ago · MPL-2.0 GitHub repository of EUR/USD EMA9-21 + RSI Scalping Strategy
47 stars

The IB/ORB Statistical Mapper plots Initial Balance (IB) and Opening Range Breakout (ORB) ranges for 5-minute, 15-minute, and 60-minute windows relative to the New York session open. It renders colored boxes, midpoints, and open lines directly on the price cha

Indicator v6 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of IB/ORB Statistical Mapper (hardcoded)
47 stars

This indicator plots the Arnaud Legoux Moving Average on the price chart. It weights recent source bars with a Gaussian window whose peak is shifted by the offset and whose width is set by sigma. The period input sets the lookback, and the source input selects

Indicator v6 TrendMoving averages
Updated 8 months ago · MIT GitHub repository of Arnaud Legoux Moving Average (ALMA)

This indicator displays a customizable dashboard table on the price chart. It combines Market Action Pulse state, McClellan breadth z-score, VIX Mood Ring status, and Risk Assessment Model hazard score. Users select symbols such as NASDAQ:QQQE or VIX, toggle c

Indicator v6 Screeners & dashboardsOscillators & momentum Repaints

VN YieldCurveLab V3.4

by Thanhtran-165
38 stars

VN YieldCurveLab is a quantitative macro research indicator that analyzes Vietnam government bond yield curve dynamics and liquidity metrics. Plotted in a separate pane, it displays yield percentages, 20-session basis point changes, or relative pressure heuris

Indicator v6 Screeners & dashboards
Updated 5 weeks ago · None stated GitHub repository of VN YieldCurveLab V3.4
29 stars

This overlay indicator marks a four-bar bull or bear breakout follow-through sequence on the price chart. It requires a breakout bar and a follow-through bar that extend the prior extreme while holding the prior extreme, then treats a trade through the follow-

Indicator v6 Breakout
Updated 2 weeks ago · MIT GitHub repository of Zen Breakout Follow Through
26 stars

This indicator requests the current symbol's close from the 60-minute timeframe with request.security and plots that series in a separate pane. It does not overlay the price chart and exposes no user inputs, so the symbol and higher timeframe stay fixed in the

Indicator v6
Updated 2 months ago · AGPL-3.0 GitHub repository of Feature Matrix - request.security

Test Named Args

by jpantsjoha
23 stars

This script serves as a test file that verifies named arguments and member expressions in Pine Script v6. It plots the closing price in a separate pane using a gray line. The script includes no user-configurable input settings, generates no trading signals, an

Indicator v6
Updated 4 weeks ago · Custom licence GitHub repository of Test Named Args

Symbols

by ferranbt
21 stars

Symbols is a simple test fixture indicator used for language server testing in Pine Script v6. The script defines a custom function that multiplies the closing price by two and plots the output series in a separate indicator pane. It serves as a minimal syntax

Indicator v6
Updated 7 weeks ago · MPL-2.0 GitHub repository of Symbols

Bandz STDV & CISD

by samuelharting
18 stars

This overlay indicator tracks liquidity sweeps, CISD confirmation, and anchor invalidation, then projects numbered standard-deviation levels from zero through minus four on the price chart. It draws ratio lines and labels, optional CISD lines, and fills select

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 weeks ago · MPL-2.0 GitHub repository of Bandz STDV & CISD
16 stars

This strategy implements a trend-following Donchian breakout system with pullback-based pyramiding. It initiates trades on Donchian channel breakouts and sizes positions based on ATR volatility risk. Instead of immediately adding units when the trend advances

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 14: Pullback Pyramid

Pocket Scout - SPY/QQQ

by chris-c-thomas
14 stars

Pocket Scout - SPY/QQQ is a mobile-optimized intraday bias indicator designed for major US equity ETFs and indices. It overlays a 9/21/50 EMA ribbon, session VWAP, prior day high/low/close levels, and intraday high/low lines directly on the main price chart. T

Indicator v6 TrendOscillators & momentum Repaints
Updated 6 months ago · MIT GitHub repository of Pocket Scout - SPY/QQQ

Time and schedule

by JoelPasapera
11 stars

This strategy opens a long or short position on a chosen weekday when the chart hour falls inside a user-defined start and end window. With the buy toggle on, it enters long near the window start and short near the window end; turning the toggle off reverses t

Strategy v6 Sessions & time Repaints
Updated 5 months ago · Apache-2.0 GitHub repository of Time and schedule
9 stars

This indicator calculates Average True Range across four presentation modes: raw ATR, percentage of price, normalized z-score, and percentile rank. It plots the transformed ATR line alongside a smoothed signal line, an ATR-versus-signal histogram, and optional

Indicator v6 Volatility & bands
Updated 3 days ago · MIT GitHub repository of ATR Advanced [WavesUnchained]

Nexural Pressure Pro

by JasonTeixeira
9 stars

Nexural Pressure Pro is a composite pressure indicator that measures directional market momentum using volume-weighted directional movement, order flow delta, aggression, and efficiency ratio metrics. It filters out low-activity bars using configurable volume

Indicator v6 Oscillators & momentumVolume
Updated 2 weeks ago · Custom licence GitHub repository of Nexural Pressure Pro

Golden Pocket Zones

by MeridianAlgo
9 stars

Golden Pocket Zones draws fixed-height Fibonacci zones on the price chart. It reads daily highs, lows, and a 10-day average range, then centers a band on the midpoint of the 50 percent and 61.8 percent retracement of each qualifying daily candle. Lookback leng

Indicator v6 Support & resistance
Updated 4 months ago · MIT GitHub repository of Golden Pocket Zones

TR Macro Backdrop

by Enesp4rl4k
7 stars

This indicator overlays a static Turkish macro snapshot on the price chart. It shows the TCMB one-week repo rate, the overnight lending and borrowing corridor, and annual CPI in a top-right table, together with the snapshot date and the count of embedded PPK m

Indicator v6 Screeners & dashboards
Updated 7 days ago · MIT GitHub repository of TR Macro Backdrop

LunarTick ADX

by lunarticktrading
7 stars

LunarTick ADX calculates the Average Directional Index (ADX) along with positive (+DI) and negative (-DI) directional indicators in a separate pane. It identifies trend direction by tracking crossovers between +DI and -DI, plotting crossover markers directly o

Indicator v6 TrendOscillators & momentum
Updated 2 weeks ago · None stated GitHub repository of LunarTick ADX
7 stars

This indicator calculates a lag-compensated SuperSmoother based on John Ehlers' filter techniques, combining hybrid Butterworth filters with dynamic lag adjustment. It computes adaptive trend metrics and lag-compensated momentum, plotting them in a separate pa

Indicator v6 TrendOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Ehlers Adaptive Trend Filter

This indicator plots three exponential moving averages and a Bollinger Band envelope on the price chart. The band basis can be an SMA, EMA, SMMA, WMA, or VWMA, with adjustable length, source, standard-deviation multiplier, and horizontal offset. Default EMA le

Indicator v6 Moving averagesVolatility & bands
Updated 5 months ago · None stated GitHub repository of EMA 21, 50, 200 & Bollinger Bands
6 stars

This indicator detects market stress in cryptocurrency perpetual futures by measuring the spot-to-perp basis, open interest impulses, and liquidation wicks. It signals long-squeeze risks, short-squeeze risks, cascade starts, and market reset completions when b

Indicator v6 Volatility & bandsVolume
Updated 2 months ago · MIT GitHub repository of Capital41 Crypto Perp Stress
6 stars

Institutional Bias Scanner draws a multi-symbol dashboard on the price chart together with optional session overlays. It watches sixteen user-selected symbols that default to major forex pairs, gold, the dollar index, equity indices, oil and crypto. Theme and

Indicator v6 Screeners & dashboardsSessions & time
Updated 7 months ago · None stated GitHub repository of Institutional Bias Scanner

TheStrat Suite

by 345-strategies
5 stars

TheStrat Suite plots Rob Smith's TheStrat price-action method on the price chart across up to six configurable timeframes. It classifies bars, detects inside bars, hammers, shooters, outside bars and Failed 2 range reclaims, and marks magnitude and exhaustion

Indicator v6 Candlestick patternsSupport & resistance Repaints
Updated 4 days ago · MPL-2.0 GitHub repository of TheStrat Suite

ZigZag Swing Cycle Average

by chaise-cogent
5 stars

The ZigZag Swing Cycle Average indicator measures and analyzes the average duration of bullish and bearish price swings. It utilizes TradingView's built-in ZigZag library to detect pivot legs based on configurable percentage deviation thresholds and depth para

Indicator v6 Screeners & dashboardsTrend Repaints
Updated 7 months ago · MIT GitHub repository of ZigZag Swing Cycle Average

Momentum

by SiegerTerpstra
5 stars

The Momentum indicator measures the rate of change in price by comparing the current source value to its level a specified number of periods ago. Calculated across custom lengths, it plots in a separate pane with optional moving average smoothing and lookback

Indicator v6 Oscillators & momentum
Updated 9 months ago · None stated GitHub repository of Momentum

Simpleton v0.01_Claude is a multi-strategy trading engine designed for crypto markets that plots directly on the main price chart. It allows traders to execute individual strategies or combine signals into a multi-consensus model from up to twelve systems, inc

Strategy v6 TrendOscillators & momentum
Updated 2 days ago · None stated GitHub repository of Simpleton v0.01_Claude [12-Strategy Engine]

MTF Abnormal Price Zones

by InNoobWeTrust
4 stars

The MTF Abnormal Price Zones indicator identifies potential supply and demand zones across multiple timeframes. It detects abnormal volume activity relative to a customizable moving average threshold and applies an RSI momentum filter to validate signals. High

Indicator v6 VolumeSupport & resistance Repaints
Updated 2 days ago · None stated GitHub repository of MTF Abnormal Price Zones

BTC Trend Pullback

by trugurpala
4 stars

This strategy enters long when price and a fast EMA sit above a slower trend EMA and RSI crosses back above a pullback level. Shorts use the opposite RSI cross only when long-only mode is off. It sizes each order as a percentage of equity and places an ATR-bas

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · MIT GitHub repository of BTC Trend Pullback

PropFirm Ultra Strategy - QuantAlgo

by thesenegalesehitch
4 stars

This strategy overlays the price chart and combines Smart Money Concepts with prop-firm account limits. It scores setups using break of structure, fair value gaps, order blocks, volume spikes, and optional London or New York killzones. Entries use a minimum sc

Strategy v6 SMC / ICT / price actionSessions & time
Updated 4 months ago · Custom licence GitHub repository of PropFirm Ultra Strategy - QuantAlgo
4 stars

This long-only strategy overlays a slow simple moving average and Bollinger bands on the price chart and uses RSI as a filter. It enters when the close is at or below the lower band and RSI is at or below the oversold input, and it closes when the close is at

Strategy v6 Mean reversionVolatility & bands
Updated 5 months ago · None stated GitHub repository of Tetrad Elektro BB (Long Only)

动量策略-连续开单

by YooooungLee
4 stars

This strategy pairs dual exponential moving averages with a price momentum calculation to identify trend direction. It initiates long entries when the fast EMA trades above the slow EMA while momentum is positive, and enters short positions when the fast EMA f

Strategy v6 TrendOscillators & momentum
Updated 10 months ago · Apache-2.0 GitHub repository of 动量策略-连续开单

RSI Zones

by degenview
3 stars

This indicator plots the Relative Strength Index on a separate pane using a purple line. It calculates RSI based on a user-defined length and source. Horizontal lines mark overbought at 70 in red, the midline at 50 in gray, and oversold at 30 in green. The bac

Indicator v6 Oscillators & momentumSupport & resistance
Updated 2 days ago · GPL-3.0 GitHub repository of RSI Zones
3 stars

This indicator compares each bar's volume with a simple moving average of volume and flags a spike when volume exceeds that average by a user-set multiplier. An up candle is treated as bullish and a down candle as bearish. It paints the chart background and op

Indicator v6 VolumeBreakout
Updated 8 months ago · MIT GitHub repository of Stella's Volume Spike Detector

SMC+WWAP+FVG+TBT

by IAMATOMIC001
3 stars

This overlay indicator maps market structure and a volume-weighted average on the price chart. It plots bullish and bearish structure from a pivot period, with an optional response length for shorter or longer structure. Premium and discount areas can be shade

Indicator v6 SMC / ICT / price actionVolume Repaints
Updated 12 months ago · None stated GitHub repository of SMC+WWAP+FVG+TBT

TQQQ MA+TSI

by yalili8521
2 stars

The TQQQ MA+TSI strategy executes trades based on triple simple moving average alignment combined with True Strength Index (TSI) divergence or momentum filters. Designed primarily for intraday stock trading, it evaluates price accumulation across fast, mid, an

Strategy v6 TrendOscillators & momentum
Updated 9 days ago · None stated GitHub repository of TQQQ MA+TSI

Delta Footprint Bubble

by piecioshka
2 stars

Calculates volume delta and market profile metrics directly on the price chart using TradingView footprint data. It identifies the Point of Control (POC), Value Area, and stacked buy or sell imbalances based on tick row settings. Visual outputs include POC bub

Indicator v6 VolumeSupport & resistance
Updated 12 days ago · MIT GitHub repository of Delta Footprint Bubble

PVSR Vector Zones MP

by midngtpickle
2 stars

PVSR Vector Zones MP identifies climax and above-average volume vector candles using Price Volume Spread Analysis and draws dynamic supply and demand boxes on the price chart. Bullish vector candles establish demand support zones, while bearish vector candles

Indicator v6 VolumeSupport & resistance
Updated 4 weeks ago · Custom licence GitHub repository of PVSR Vector Zones MP

On Balance Volume

by TamTH-Dev
2 stars

Calculates On Balance Volume (OBV) and displays it in a separate pane alongside optional exponential moving averages. Traders can toggle and configure three distinct EMAs with default lengths of 21, 55, and 144. The indicator provides extensive visual settings

Indicator v6 VolumeMoving averages
Updated 6 weeks ago · None stated GitHub repository of On Balance Volume

Liquidity & Inducements

by alvinng214
2 stars

This Pine Script indicator plots market structure pivots and liquidity inducements on the price chart. It identifies grabs, big grabs, sweeps, and turtle soups as potential liquidity zones where price may reverse. Equal highs and lows can trigger both liquidit

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of Liquidity & Inducements

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