Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 17)

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

Stella's MACD Crossover

by stella-entry
3 stars

This strategy calculates the standard Moving Average Convergence Divergence oscillator and generates trade entries based on signal line crossovers. It opens long positions on bullish crossovers and short positions on bearish crossunders. An optional exponentia

Strategy v6 Oscillators & momentumTrend
Updated 8 months ago · MIT GitHub repository of Stella's MACD Crossover

JINADA Up

by cathxrsys
3 stars

JINADA Up is an all-in-one chart overlay indicator that combines support and resistance zones, multiple moving averages, candlestick body and wick ratio analysis, and dynamic stop levels. It identifies support and resistance levels across user-defined lookback

Indicator v6 TrendMoving averages
Updated 9 months ago · GPL-3.0 GitHub repository of JINADA Up

Macro Market Cycle Model

by LucasRibeiroCaetano
3 stars

The indicator estimates US and EU macro cycle conditions in a separate pane. It loads inflation, policy rates, yield spreads, credit spreads, and unemployment, then builds a neutral rate from user real r-star plus inflation expectations. A fixed logistic formu

Indicator v6
Updated 11 months ago · Custom licence GitHub repository of Macro Market Cycle Model

Coco

by IAMATOMIC001
3 stars

Coco plots several selectable moving averages in a separate pane and can show the percentage dispersion between them. Fast and slow averages default to a 3-period SMA and a 21-period WMA, with optional third and fourth averages. Supported types include SMA, WM

Indicator v6 Moving averagesVolume
Updated 12 months ago · None stated GitHub repository of Coco

Hedge Short Setup Finder

by shitcoding
3 stars

Hedge Short Setup Finder identifies potential short entry opportunities by combining multiple technical confluence conditions. It scans for momentum exhaustion using price surge percentage over a lookback period, overbought RSI with rollover confirmation, Boll

Indicator v6 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Hedge Short Setup Finder

Elliott Wave Crypto Analysis

by EngineeredSuccess
3 stars

The indicator draws Elliott Wave analysis on the price chart for cryptocurrency. It locates pivot highs and lows using a user-set length, counts waves one through five automatically, and allows a manual wave override. Optional Fibonacci retracement and extensi

Indicator v6 Support & resistanceTrend
Updated 1 year ago · Custom licence GitHub repository of Elliott Wave Crypto Analysis

Cipher B

by diehardyearone
3 stars

Cipher B is a multi-indicator plotting WaveTrend oscillator lines and signals alongside Stochastic RSI, MFI area with color bars, and buy sell marks. It draws all elements in a separate pane. WaveTrend calculates using SMMA and EMA on source like ohlc4 with ad

Indicator v6 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of Cipher B
2 stars

This indicator plots the relative strength index in a separate pane. It calculates RSI from the selected source and length with Wilder-style RMA smoothing, then draws the line against horizontal bands at 70, 50 and 30, with gradient fills in the overbought and

Indicator v6 Oscillators & momentumMoving averages
Updated 2 days ago · None stated GitHub repository of Relative strength index

Trade History Labels

by kaiku0125
2 stars

Plots historical trade records as visual buy and sell labels directly on the price chart. It matches recorded trade dates and symbols against the active instrument, calculating cumulative volume-weighted average buy and sell prices with horizontal reference li

Indicator v6 Support & resistance
Updated 4 days ago · None stated GitHub repository of Trade History Labels
2 stars

Gold Multi-TF NYSE Scalper v2 is an intraday trading strategy for XAUUSD that seeks momentum entries by aligning RSI and EMA bias across multiple timeframes. It filters trades using an optional NYSE session clock and an ATR volatility spike check. Entries exit

Strategy v6 Oscillators & momentumVolatility & bands
Updated 9 days ago · None stated GitHub repository of Gold Multi-TF NYSE Scalper v2

2x MA Moving Average

by piecioshka
2 stars

This indicator plots two customizable moving averages directly on the price chart. Users can select independent lengths, colors, and calculation types, including SMA, EMA, WMA, VWMA, and RMA. When the faster moving average crosses the slower moving average, th

Indicator v6 Moving averagesTrend
Updated 12 days ago · MIT GitHub repository of 2x MA Moving Average

52-Week High

by vtnhqw
2 stars

The 52-Week High indicator plots the highest price over an adaptive lookback period of up to 252 trading bars on the price chart. It calculates the 52-week high using the highest high value and displays it as a line with optional label showing distance from th

Indicator v6 Support & resistanceTrend Repaints
Updated 12 days ago · None stated GitHub repository of 52-Week High

This multi-timeframe indicator combines higher-timeframe trend analysis, MACD divergence detection, and short-term oscillator timing to identify trading opportunities on GBPJPY. It evaluates trend direction using a 4-hour EMA, locates MACD divergences with Zig

Indicator v6 DivergenceOscillators & momentum

Trading - Automation

by vishnu-vardhan-d
2 stars

This indicator implements a trailing stop and breakout logic based on average true range calculations, similar to established UT Bot methods converted to Pine Script version six. It plots directional buy and sell labels directly on the price chart alongside a

Indicator v6 TrendVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Trading - Automation

Aurora KAMA Trend

by ZhijuCen
2 stars

This strategy plots Kaufman's Adaptive Moving Average on the price chart and trades when that average rises or falls for a set number of bars. Longs require the close above an optional long-term simple moving average; shorts require the close below it. Directi

Strategy v6 TrendMoving averages
Updated 2 weeks ago · MIT GitHub repository of Aurora KAMA Trend

EMA / SMA MP

by midngtpickle
2 stars

This indicator plots six exponential moving averages, three simple moving averages, and a session volume-weighted average price directly on the price chart. It signals through chart labels triggered by moving average crossovers, including fast and slow exponen

Indicator v6 Moving averagesTrend
Updated 4 weeks ago · Custom licence GitHub repository of EMA / SMA MP

Equity Trading Strategy

by AmjadSaidam
2 stars

This indicator draws a daily-anchored volume-weighted average price on the price chart and marks the first long or short reclaim of that level. A long needs a bar below the average whose high reaches it, a later close above it, and confirmation after at least

Indicator v6 VolumeSupport & resistance Repaints
Updated 5 weeks ago · MIT GitHub repository of Equity Trading Strategy
2 stars

Swing Trade Analyzer - S&R Levels identifies key support and resistance levels directly on the price chart using pivot high and low points. It filters duplicate price levels and offers optional multi-timeframe confluence analysis against higher timeframes like

Indicator v6 Support & resistanceTrend
Updated 5 weeks ago · None stated GitHub repository of Swing Trade Analyzer - S&R Levels

Algo

by TamTH-Dev
2 stars

Algo is an indicator that identifies and plots dynamic support and resistance zones directly on the price chart using pivot highs and lows. It calculates zone thickness using an Average True Range (ATR) multiplier and supports pivot detection from standard pri

Indicator v6 Support & resistanceVolatility & bands
Updated 6 weeks ago · None stated GitHub repository of Algo

This indicator plots gamma exposure levels, multi-timeframe breakout structure, and trading session ranges directly on the price chart. It parses input strings containing option metrics to display key levels such as Zero Gamma, Max Pain, Expected Move boundari

Indicator v6 Support & resistanceBreakout
Updated 6 weeks ago · MIT GitHub repository of GEX Levels + Breakout Structure + Session AVWAP — NQ/NDX/QQQ

Apex Swing System V2.5

by omharde42
2 stars

This indicator combines a 200-period simple moving average, relative strength index, and Ichimoku cloud components to evaluate market conditions and generate bullish and bearish signals. It plots fixed trade levels including entry, stop loss, and multiple targ

Indicator v6 TrendOscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of Apex Swing System V2.5
2 stars

GEO P Momentum Buy/Sell Signals is an indicator that identifies trade setups by combining Bollinger Band challenge logic with trendline or range breakouts. It evaluates price structure using multi-timeframe Tide and Wave hierarchy alongside RSI, DMI, ADX, EMA

Indicator v6 TrendOscillators & momentum
Updated 8 weeks ago · None stated GitHub repository of GEO P Momentum Buy/Sell Signals
2 stars

Anchored Volume Profile indicator builds a volume-by-price histogram over a lookback window by proportionally distributing each bar's volume across its high-low range. It plots horizontal boxes for volume, highlights the POC, and draws Value Area (VAH/VAL) rai

Indicator v6 VolumeSupport & resistance
Updated 2 months ago · Custom licence GitHub repository of Anchored Volume Profile [Vantrade]

Qtus SMC-Sniper AutoTrader v2 is an automated trading strategy plotted on the price chart that combines Smart Money Concepts (SMC), ICT frameworks, price action patterns, and technical indicators into a multi-factor scoring engine. It enters long or short posi

Strategy v6 SMC / ICT / price actionTrend
Updated 2 months ago · Custom licence GitHub repository of Qtus SMC-Sniper AutoTrader v2

API Integration Examples

by danielbodnar
2 stars

This indicator demonstrates Pine Script data requests and draws them on the price chart. It plots a four-hour simple moving average plus the daily high and low as step lines, and it plots twenty-bar relative performance versus SPY. It also requests QQQ, VIX, v

Indicator v6 Moving averagesSupport & resistance Repaints
Updated 2 months ago · MIT GitHub repository of API Integration Examples
2 stars

This indicator draws higher time frame sweeps on the price chart. It displays sweeps from multiple timeframes such as 15, 60, 240 minutes, 1 day, 1 week and 1 month. Users can enable or disable each timeframe, specify the number of sweeps to show, and map them

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of CandelaCharts - HTF Sweeps

Chart Watermark

by major
2 stars

This overlay indicator draws a watermark at the top of the price chart showing the ticker and timeframe, plus an optional instrument description, sector, or industry. Display mode chooses description only, sector and industry, or both. Separate colors set the

Indicator v6
Updated 3 months ago · Apache-2.0 GitHub repository of Chart Watermark
2 stars

This indicator detects market structure points, Break of Structure (BOS), and Change of Character (CHOCH) for Smart Money Concepts (SMC) analysis. It calculates swing highs and lows based on a user-defined swing length, classifying them as higher highs, higher

Indicator v6 SMC / ICT / price actionSupport & resistance

Kell + Minervini VCP

by mirkothepirko
2 stars

This price-chart indicator combines Oliver Kell moving-average phases with Minervini volatility contraction. It plots EMA 10, 20, 50 and 200 and can require the SMA 50, 150 and 200 trend template. It flags a wedge pop above EMA 10 after an EMA 20 cross, pullba

Indicator v6 TrendMoving averages
Updated 3 months ago · Custom licence GitHub repository of Kell + Minervini VCP
2 stars

MTF Divergence Scanner detects regular and hidden divergences in RSI or MACD oscillators across multiple timeframes. It scans up to three timeframes simultaneously using request.security with confirmed-bar logic to identify reversal or continuation signals. Th

Indicator v6 Oscillators & momentumDivergence Repaints
Updated 3 months ago · MPL-2.0 GitHub repository of MTF Divergence Scanner
2 stars

Calculates 20-day Average Daily Range percentage, multi-month performance metrics, opening gap size, and relative volume to identify Kristjan Kullamägi style Breakout and Episodic Pivot setups. When conditions are satisfied on the price chart, it flags candles

Indicator v6 BreakoutVolume
Updated 4 months ago · Custom licence GitHub repository of Qullamaggie Breakout / EP Flags

StdDev Anchor AI

by teaceo-debug
2 stars

The StdDev Anchor AI indicator plots swing high and low points on the price chart using pivot functions. It detects displacement legs based on minimum range and confirmation ratio settings, then applies standard deviation logic to identify anchor levels. MTF c

Indicator v6 Support & resistanceVolatility & bands Repaints
Updated 4 months ago · None stated GitHub repository of StdDev Anchor AI

SMC Major Pairs Strategy

by middlechild0
2 stars

This strategy identifies trend alignments and Smart Money Concept (SMC) setups across major currency pairs and gold. It calculates a customized Q-Trend filter combined with higher-timeframe trend confirmation, liquidity sweep detection, swing points, and fair

Strategy v6 SMC / ICT / price actionTrend
Updated 5 months ago · None stated GitHub repository of SMC Major Pairs Strategy
2 stars

This overlay indicator maps a US equity day-trading framework of levels, trend, and patience candles onto the price chart. It plots 8 and 21 SMAs, higher-timeframe 200 SMAs, VWAP, the last five days of premarket highs and lows, and the 9:30–9:45 opening range.

Indicator v6 TrendMoving averages Repaints
Updated 6 months ago · None stated GitHub repository of Day Trading Strategy v2
2 stars

Ghost Zone v9 plots chart overlay signals and key structural levels derived from reverse-engineered price action, volume spread analysis, and momentum filters. It identifies specific trading patterns including Low Volume Test (LVT), Signal Test (ST), Bull Trap

Indicator v6 VolumeCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Ghost Zone v9 - GTI Signals v18a

Liquidity Sweep Scalper v2

by godlesscherry
2 stars

Liquidity Sweep Scalper v2 is a scalping strategy that detects liquidity sweeps using Supertrend trend filters, Bollinger Bands for volatility, Williams Fractals for pivots, and MACD momentum. It enters on rejection candle breaks after sweeps and exits via sto

Strategy v6 TrendOscillators & momentum
Updated 7 months ago · None stated GitHub repository of Liquidity Sweep Scalper v2

This indicator plugin for grid trading systems calculates dynamic upper, middle, and lower channel boundaries based on historical highest highs and lowest lows. Users can adjust the lookback period, toggle candle wicks, apply moving average smoothing, add pric

Indicator v6 Support & resistance Repaints
Updated 8 months ago · MIT GitHub repository of Grid Bot [Grid range plugin] HighLow [psyll]

ATR Rope

by regalouisei
2 stars

This overlay indicator smooths a chosen price source with a rope-style range filter. It moves the line only when price travels beyond an ATR length multiplied by a user multiplier, then colors the rope up, down, or flat from its slope and from source crosses.

Indicator v6 TrendVolatility & bands
Updated 8 months ago · None stated GitHub repository of ATR Rope

CT Reverse MACD Cross

by mushroom-men-Trading
2 stars

This indicator calculates and displays a Moving Average Convergence Divergence (MACD) oscillator alongside EMA and SMA signal lines and histograms in a separate pane. It offers reverse signal line calculations and detailed visual styling, including directional

Indicator v6 Oscillators & momentumMoving averages
Updated 9 months ago · None stated GitHub repository of CT Reverse MACD Cross

This strategy enters long positions on volume-backed breakout setups with moving average confirmation. It plots the 10, 50, 150, and 200 simple moving averages directly on the price chart. Users can select between three breakout modes: gap only, strict gap wit

Strategy v6 BreakoutMoving averages
Updated 10 months ago · MIT GitHub repository of Ede - Breakout Strategie (mit MA und ATR Exit)

QQE + AK Trend + EFI

by realanthonyc
2 stars

This indicator computes and plots a QQE histogram using RSI of the chosen source smoothed with Wilder's ATR method, alongside an AK Trend line derived from fast EMAs with dynamic scale factors adjusted by timeframe. It also calculates Elder Force Index with ad

Indicator v6 TrendOscillators & momentum
Updated 11 months ago · MPL-2.0 GitHub repository of QQE + AK Trend + EFI

Trend Analyzer EMA Only

by panzmoravylab
2 stars

Trend Analyzer EMA Only compares a fast and a slow exponential moving average on the price chart and labels the state uptrend, downtrend, or neutral. A buy or sell signal appears when the fast average crosses the slow average while both slopes agree and their

Indicator v6 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Trend Analyzer EMA Only

Calculates a long-term Exponential Moving Average as a baseline for fair value alongside a Relative Strength Index. Generates long entry signals when the close price trades at least five percent below the moving average while the RSI is oversold. Exits trades

Strategy v6 TrendOscillators & momentum
Updated 1 year ago · MIT GitHub repository of Buffett-Inspired Value Strategy

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