Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 46)

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

Blank Template

by TradersPost
228 stars

A minimal boilerplate script written in Pine Script v6 for creating overlay indicators directly on the main price chart. It serves as a foundational starter file generated by the PineScript Agents development environment, designed to be populated with custom t

Indicator v6
Updated 3 months ago · None stated GitHub repository of Blank Template
99 stars

Calculates the Archer Moving Averages Trends (AMAT) indicator by comparing fast and slow Exponential Moving Averages (EMAs) alongside their slope directions. A bullish trend (+1) is identified when the fast EMA exceeds the slow EMA with both rising, while a be

Indicator v6 TrendMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Archer Moving Averages Trends (AMAT)
57 stars

This strategy identifies trend reversals through market structure changes (CHoCH) filtered by MACD momentum. It initiates long positions on bullish structure breaks when MACD is positive and above its signal line, and short positions on bearish breaks when MAC

Strategy v6 SMC / ICT / price actionOscillators & momentum Repaints
Updated 1 year ago · Apache-2.0 GitHub repository of Market Structure MACD 4H + Trailing

MACD

by dcaoyuan
55 stars

This indicator plots a standard MACD oscillator in a separate pane. It calculates the MACD line, signal line, and histogram from the close using fixed lengths of 12, 26, and 9. It draws the MACD line in blue and the signal line in orange, plus a column histogr

Indicator v6 Oscillators & momentum
Updated 6 months ago · Apache-2.0 GitHub repository of MACD
53 stars

This strategy identifies long entry opportunities based on short-term price pullbacks below a major trend filter. It enters long when three consecutive lower closes occur below the 200-period simple moving average, followed by the current bar closing back abov

Strategy v6 TrendMoving averages
Updated 2 months ago · MPL-2.0 GitHub repository of Ivan Scherman Pattern - TP/SL

Noon Curve

by TamaraKGreen
47 stars

This overlay indicator maps a fixed New York session from 8:00 AM to 4:00 PM into an on-chart noon curve. It draws a range box, a solid noon line, and dashed quarter lines at 10:00 AM and 2:00 PM. It plots AM high and low lines plus offset likely AM levels at

Indicator v6 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of Noon Curve

Bollinger %B

by mihakralj
47 stars

This indicator calculates Bollinger %B in a separate pane. It tracks a simple moving average and population-style variance of the selected source with a circular buffer and running sums, then places the source between the lower and upper bands scaled by the st

Indicator v6 Volatility & bandsOscillators & momentum
Updated 8 months ago · MIT GitHub repository of Bollinger %B

Planetary Retrograde Dashboard

by blueprintresearch-dev
42 stars

This indicator plots retrograde periods for up to eight planets in a separate pane. It fills historical retrograde spans without a box limit and draws boxes for future projections out to a configurable number of bars. A histogram shows how many planets are ret

Indicator v6 Screeners & dashboards
Updated 2 weeks ago · None stated GitHub repository of Planetary Retrograde Dashboard

Relative Strength Table

by ChartsLector
41 stars

This indicator builds a table of relative strength for up to six user-chosen symbols against a benchmark, defaulting to SPY. It measures strength over four lookback periods, can average the visible periods, and can add relative volume as current volume divided

Indicator v6 Screeners & dashboardsVolume
Updated 4 days ago · None stated GitHub repository of Relative Strength Table
29 stars

This indicator detects price swing legs using a threshold-reversal algorithm scaled to a multiple of the prior day's average daily range (ADR). When a leg completes, it plots up to six customizable pullback percentage levels directly on the price chart. Users

Indicator v6 Support & resistanceVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Zen Leg Pullback Levels
26 stars

This indicator draws a two-by-two table in the top-right of the price chart and plots the close. On the last bar it writes labels into the first row and merges those two cells into one. There are no inputs and no trading signals, entries, exits, or risk rules.

Indicator v6 Screeners & dashboards
Updated 2 months ago · AGPL-3.0 GitHub repository of Feature Matrix - table merge
16 stars

This price-chart strategy trades Donchian channel breakouts in the style of a Seykota trend system. It enters long or short when price touches the entry channel, using the bar high or low when intrabar mode is on, and can add units after further moves of a set

Strategy v6 TrendBreakout Repaints
Updated 12 months ago · None stated GitHub repository of Seykota Alt 19: Intrabar Execution

Trend Compass 15m

by chris-c-thomas
14 stars

Trend Compass 15m is an intraday trend analysis overlay designed for 15-minute charts. It calculates a triple exponential moving average ribbon, higher-timeframe reference EMAs from 1H, 4H, and Daily periods, RSI and MACD divergences, On-Balance Volume trends,

Indicator v6 TrendMoving averages Repaints
Updated 6 months ago · MIT GitHub repository of Trend Compass 15m

Candle Pressure & Response (JMA) evaluates price action dynamics by calculating bidirectional candle pressure, upper and lower wick rejection fractions, body efficiency, and range expansion metrics relative to ATR. Each output series is smoothed using a Jurik

Indicator v6 Candlestick patternsVolatility & bands
Updated 3 days ago · MIT GitHub repository of Candle Pressure & Response (JMA)

QPulse

by JasonTeixeira
9 stars

QPulse is a multi-factor indicator that draws in a separate pane to evaluate market momentum, volume flow, and volatility dynamics. It calculates volume delta, a cumulative delta proxy, advanced adaptive ATR, and a hybrid volume-weighted RSI with overbought an

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 weeks ago · Custom licence GitHub repository of QPulse

LuckyFX RBtrader strategy

by MeridianAlgo
9 stars

LuckyFX RBtrader strategy is a price-chart candle filter. It marks a bullish condition when the current candle is bullish, the previous candle is bearish, and optional checks pass: body size between a minimum and maximum share of the previous body, prior candl

Indicator v6 Candlestick patterns
Updated 4 months ago · MIT GitHub repository of LuckyFX RBtrader strategy

LunarTick Trend

by lunarticktrading
7 stars

LunarTick Trend plots a cloud between a fast and a slow moving average on the price chart. The user chooses SMA or EMA and the two lengths, and both averages can be requested from a selected timeframe. Bullish and bearish colors mark the cloud, and optional re

Indicator v6 TrendMoving averages Repaints
Updated 2 weeks ago · None stated GitHub repository of LunarTick Trend
7 stars

This indicator compares the price movement of the current chart symbol against up to forty user-specified tickers across a configurable correlation window. It identifies the highest-correlated asset and projects its scaled or rotated price path directly onto t

Indicator v6 Screeners & dashboards
Updated 3 months ago · None stated GitHub repository of Match Finder [theUltimator5]

Impulse MACD

by s4mn0v
7 stars

The Impulse MACD indicator calculates a modified Moving Average Convergence Divergence to measure price momentum in a smoother and less noisy way than traditional MACD. It uses special moving averages with default lengths of 34 for the fast period and 9 for th

Indicator v6 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of Impulse MACD
6 stars

Capital41 Fusion Oscillator v3 measures multi-condition market confluence in a separate pane with a smoothed composite score ranging from 0 to 100. It evaluates four criteria: EMA trend direction, RSI oversold or overbought turns, Williams %R thresholds, and A

Indicator v6 Oscillators & momentumTrend
Updated 2 months ago · MIT GitHub repository of Capital41 Fusion Oscillator v3

TheStrat Suite

by 345-strategies
5 stars

TheStrat Suite is a multi-timeframe price action indicator implementing Rob Smith's TheStrat methodology. It calculates bar classifications for inside bars, hammers, shooters, failed 2s and outside bars across configurable timeframes. The indicator detects sig

Indicator v6 SMC / ICT / price actionCandlestick patterns Repaints
Updated 4 days ago · MPL-2.0 GitHub repository of TheStrat Suite
5 stars

The Quick Scan for Signal indicator calculates a custom market efficiency ratio by comparing net price displacement against total price movement over a specified lookback period or cumulatively from the chart start. It calculates statistical boundaries based o

Indicator v6 Oscillators & momentumVolatility & bands
Updated 8 months ago · None stated GitHub repository of Quick Scan for Signal

Stochastic

by SiegerTerpstra
5 stars

This indicator plots a Stochastic oscillator in a separate pane. It compares the selected source with the high-low range over the %K length, then applies separate smoothing to the %K line and the %D signal line. Adjustable lower and upper bands default to 20 a

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

AG TrendPullback Short

by eltonaguiar
4 stars

The AG TrendPullback Short strategy identifies short pullback opportunities in downtrending markets. It calculates EMA50 and EMA200 crossovers, RSI2 overbought signals above 90, and ADX trend strength above 20. When these align, it enters a short position size

Strategy v6 TrendOscillators & momentum
Updated 2 days ago · None stated GitHub repository of AG TrendPullback Short

Plot Lib

by InNoobWeTrust
4 stars

This library supplies reusable drawing helpers rather than its own indicator output. It draws take-profit and stop-loss levels around an entry price, with translucent fills between those levels and the close, and it can remove those drawings. It also plots a t

Library v6
Updated 2 days ago · None stated GitHub repository of Plot Lib
4 stars

This strategy trades crude oil futures only during the New York session from 09:00 to 14:30. It enters long when a fast EMA crosses above a slow EMA and short on the opposite cross, and only while that session is open. Each entry sets an ATR-based stop loss an

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of Crude Oil CL Strategy [trugurpala]

Hourly Seasonality

by piecioshka
2 stars

This indicator colors the chart background on intraday timeframes based on the current hour of the day. It applies a continuous 24-color daily gradient transitioning across dawn, day, dusk, and night to help traders visually track time progression. Users can f

Indicator v6 Sessions & time
Updated 12 days ago · MIT GitHub repository of Hourly Seasonality
2 stars

This trend-following strategy plots on the price chart and identifies continuation trades during established trends. It calculates dual exponential moving averages alongside an average directional index filter. Entries trigger when price pulls back into the mo

Strategy v6 TrendMoving averages
Updated 4 weeks ago · Custom licence GitHub repository of MP EMA 9/21 Pullback Continuation

Oscillator

by TamTH-Dev
2 stars

This indicator calculates price midpoints derived from the highest high and lowest low over a customizable base period. It evaluates these range boundaries across the current chart timeframe as well as dynamically scaled 2x and 4x higher timeframes via multi-t

Indicator v6 Oscillators & momentumSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of Oscillator
2 stars

Squeeze Momentum Pro plots a TTM-style volatility squeeze in a separate pane. It compares Bollinger Bands with three Keltner Channel widths to mark wide, normal, and tight compression, and it flags the bar when a normal squeeze releases. A linear-regression mo

Indicator v6 Volatility & bandsOscillators & momentum
Updated 2 months ago · Custom licence GitHub repository of Squeeze Momentum Pro [Vantrade]

MirPapa_Handler_HTF

by alvinng214
2 stars

MirPapa_Handler_HTF is a Pine Script v6 utility library designed for handling higher timeframe conversions and multi-timeframe data retrieval. It converts standard timeframe strings into minute counts, computes the numerical ratio between higher and lower time

Library v6
Updated 2 months ago · None stated GitHub repository of MirPapa_Handler_HTF

The Market Tail Risk Detector evaluates market fragility and compression to identify environments preceding volatile price moves. It calculates a composite tail risk score ranging from 0 to 100 based on realized volatility percentiles, volatility of volatility

Indicator v6 Volatility & bandsBreakout Repaints
Updated 3 months ago · Apache-2.0 GitHub repository of Market Tail Risk Detector (Quiet → Explosive)

Lakshmi Zones v1

by voletiramu
2 stars

Lakshmi Zones v1 is an indicator that plots demand and supply zones on the price chart. It calculates volume profile zones with user-defined bin counts and lookback periods, fair value gaps from the 4H timeframe, and equal highs and lows using tolerance percen

Indicator v6 VolumeSupport & resistance
Updated 6 months ago · None stated GitHub repository of Lakshmi Zones v1
2 stars

This Pine Script indicator calculates Z-Score based bands for grid trading using a user-selectable moving average. It computes the MA from chosen type, length and source then derives upper and lower bands offset by stddevs. Grid ranges are set by min and max w

Indicator v6 Support & resistanceMean reversion Repaints
Updated 8 months ago · MIT GitHub repository of Grid Bot Z-Score [psyll]

Crowding Model BullVision

by regalouisei
2 stars

This indicator monitors market-wide positioning across major cryptocurrency benchmarks and top altcoins. It calculates the Relative Strength Index and Z-scores across up to 19 assets, mapping them into quadrant zones to identify overbought or oversold crowding

Indicator v6 Oscillators & momentumScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Crowding Model BullVision

Average True Range (ATR)

by mushroom-men-Trading
2 stars

The Average True Range indicator calculates volatility by averaging the true range over a user-defined length. It plots the ATR value as a line in a separate pane below the price chart. The length input sets the period for the calculation, defaulting to 14 bar

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Average True Range (ATR)

The script plots the Volume Weighted Average Price on the price chart. It calculates VWAP using a specified source such as hlc3 and an anchor period like Session, Week, Month or Quarter. The main settings control whether to hide the VWAP on daily or weekly tim

Indicator v6 VolumeSupport & resistance
Updated 2 days ago · Custom licence GitHub repository of Volume Weighted Average Price
1 stars

An indicator that detects cup and handle patterns from pivots, with inputs for rim similarity, handle retracement range, an invalidation retrace level and a target set as a multiple of cup depth. A Bayesian probability update using a Bollinger squeeze as evide

Indicator v6 Support & resistanceBreakout
Updated 2 days ago · None stated GitHub repository of XRP Breakout Matrix Bayesian GC

TSMOM SMA200 + Band

by nvolpe2007-cell
1 stars

A low-turnover long-or-cash strategy on daily closes. It goes long when the close is above a 200-bar SMA by more than a percentage band, moves to cash when the close is below it by more than the band, and otherwise keeps the existing position. The band reduces

Strategy v6 TrendMoving averages
Updated 2 days ago · None stated GitHub repository of TSMOM SMA200 + Band

Minervini Pressure

by ankurksoni
1 stars

A separate-pane indicator that measures buying versus selling pressure from volume. Over a chosen lookback, default 20 bars, it sums volume on up candles and on down candles and plots the difference as a share of the total on a scale from minus 100 to plus 100

Indicator v6 VolumeOscillators & momentum
Updated 3 days ago · None stated GitHub repository of Minervini Pressure

Expectancy Lab

by jayadevrana
1 stars

Expectancy Lab plots fast and slow exponential moving averages on the price chart to generate crossover signals. It simulates one trade at a time using an ATR-based stop loss and a risk-to-reward target multiplier. The script tracks historical trade outcomes t

Indicator v6 Moving averagesTrend
Updated 4 days ago · MPL-2.0 GitHub repository of Expectancy Lab

SMC Context Overlay

by skipp-dev
1 stars

SMC Context Overlay ingests context data inputs to render Smart Money Concepts elements directly on the price chart. It visualizes market structure events such as Break of Structure (BOS), Change of Character (CHOCH), support and resistance levels, as well as

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 days ago · None stated GitHub repository of SMC Context Overlay

Courier UDT Return Method

by pineforge-4pass
1 stars

A long-only strategy that builds a volatility envelope from an EMA centre and an ATR width using a custom type and a method. It enters long when the close crosses above the centre plus a multiple of the width. It exits when the close falls below the centre, or

Strategy v6 Volatility & bandsBreakout
Updated 7 days ago · Apache-2.0 GitHub repository of Courier UDT Return Method

Limit Verification Probe R2

by GammaExpansion
1 stars

This strategy probes limit order verification across four modes in a cycling pattern. It opens positions using resting limits, marketable limits, stop-limits, or exit limits with an offset. The script runs cycles to verify order behavior and plots probe values

Strategy v6 Screeners & dashboardsSupport & resistance
Updated 7 days ago · MIT GitHub repository of Limit Verification Probe R2

An indicator that estimates per-bar delta from open, high, low, close and volume, scaling volume by where the close sits within the bar range. It rebuilds a session profile binned by price and draws it as teal and orange horizontal bars to the right of price,

Indicator v6 Volume
Updated 8 days ago · GPL-3.0 GitHub repository of Delta Break and Retest Stage 1 Delta Engine
1 stars

DEPV2 B1 Seviyeler calculates and plots key high-timeframe price levels across weekly, monthly, and yearly periods. For each period, it tracks the current open, high, and low, along with the previous period's high, low, and close values. The indicator uses cus

Indicator v6 Support & resistance
Updated 13 days ago · None stated GitHub repository of DEPV2 B1 Seviyeler (W/M/Y)

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