Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 18)

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

ADR label

by etnt
2 stars

This indicator calculates and displays the Average Daily Range percentage alongside a Mark Minervini Trend Template score in an on-screen table. It evaluates moving average alignments, 52-week price extremes, and moving average slope criteria to generate a Tre

Indicator v6 Screeners & dashboardsTrend
Updated 1 year ago · MPL-2.0 GitHub repository of ADR label
2 stars

This indicator identifies and plots dynamic support and resistance levels on the price chart using pivot highs and pivot lows. It evaluates historical pivot clusters over a multi-bar lookback window to construct key horizontal levels, with options to render bu

Indicator v6 Support & resistance
Updated 1 year ago · None stated GitHub repository of Support/Resistance Levels

GapDetect

by Electrified-Trading
2 stars

This library determines opening gap severity by calculating the standard deviation of overnight gaps. It exports functions for today's gap value as open minus previous close, gap percent change, and normal daily standard deviation of the gap using a rolling wi

Library v6 Volatility & bandsSessions & time
Updated 1 year ago · MPL-2.0 GitHub repository of GapDetect

DrawLevels

by ashwagamma
2 stars

This indicator draws predefined support and resistance levels, price range boxes, and key value area markers directly on the price chart. It visualizes hardcoded horizontal price levels, support and resistance zones, and value area references such as prior day

Indicator v6 Support & resistance
Updated 1 year ago · None stated GitHub repository of DrawLevels

Tik 2 JPY

by keiru517
2 stars

This indicator plots horizontal lines on the price chart at ratios ranging from 120 to 170 in steps of 10. It draws main red lines at each ratio and aqua and yellow subdivisions at quarter and half points. The lines extend rightward from past bar index minus 1

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

PriceCatch Intraday Range plots key daily price levels and projections on intraday price charts. It calculates daily open, high, low, and close values using higher-timeframe data requests, drawing reference lines for custom percentage change thresholds and dai

Indicator v6 Support & resistanceSessions & time
Updated 1 year ago · MPL-2.0 GitHub repository of PriceCatch Intraday Range

Custom Session VWAP

by ryangaraygay
2 stars

This indicator calculates and plots a Volume Weighted Average Price (VWAP) restricted to a user-defined trading session on the price chart. It uses the specified source (default hlc3) to compute the VWAP only while the market is in the custom session (default

Indicator v6 VolumeSupport & resistance
Updated 1 year ago · MIT GitHub repository of Custom Session VWAP

Gamma/X Killzone Sweeps (strategy)

by OverleveragedWhale
1 stars

A strategy version of the killzone sweep idea. In the Asia, London, New York AM and PM windows it waits for the previous killzone's high or low to be swept and reclaimed, then enters on the close with a stop just past the wick and a fixed point target for ES o

Strategy v6 SMC / ICT / price actionSessions & time

Asif Dip v2 Daily

by Asifali549
1 stars

A long-only daily strategy for crypto that buys short-term dips inside an uptrend. It requires the close above a long EMA, a medium EMA above the long one, an optional Bitcoin trend filter, and a very low three-period RSI. Entry is at the next open. The stop i

Strategy v6 Mean reversion
Updated 2 days ago · None stated GitHub repository of Asif Dip v2 Daily
1 stars

A separate-pane indicator that runs a percentage-deviation ZigZag state machine on up to eight timeframes, from one minute to daily, and shows whether each is currently in an up leg after a swing low or a down leg after a swing high. Settings choose the deviat

Indicator v6 Trend Repaints
Updated 2 days ago · None stated GitHub repository of BD ZigZag MTF Consensus

Flat Zone Detector

by xopromo
1 stars

An indicator on the price chart that detects sideways ranges and flags breakouts from them. For each bar it counts how many of the previous N completed bars overlapped a zone of plus or minus a multiple of ATR around the current close, giving a flat score from

Indicator v6 BreakoutVolatility & bands
Updated 2 days ago · None stated GitHub repository of Flat Zone Detector
1 stars

This indicator calculates the classic Awesome Oscillator by subtracting a 34-period simple moving average from a 5-period simple moving average of median prices. It plots the resulting values as a color-coded column histogram in a separate pane, turning green

Indicator v6 Oscillators & momentumMoving averages
Updated 2 days ago · Custom licence GitHub repository of Awesome Oscillator
1 stars

A separate-pane oscillator that plots a z-score, the distance of price from its rolling mean measured in standard deviations, smoothed over a few bars. Dots mark turns that happen outside a chosen zone around zero. An AR(1) half-life readout and optional regim

Indicator v6 Mean reversionOscillators & momentum
Updated 2 days ago · None stated GitHub repository of Mean Reversion (z-score)

Auto Trend Lines

by majixai
1 stars

An indicator that finds small and large pivot highs and lows and automatically draws trend lines through them on the price chart. A line proximity filter based on ATR reduces clutter, and a breakout is flagged after a set number of consecutive closes beyond a

Indicator v6 Support & resistanceBreakout
Updated 2 days ago · None stated GitHub repository of Auto Trend Lines
1 stars

A research strategy for the price chart, meant for a five-minute chart with Moscow time. It measures the price move between two time points of the same day, and if the move exceeds a threshold it opens a position at the end of the second slot, either with the

Strategy v6 Sessions & timeMean reversion
Updated 2 days ago · None stated GitHub repository of Session Triples - 5 Stocks

RSI 30 Turbo Swing

by vriken
1 stars

A long-only strategy that buys stocks after the daily 14-period RSI closes below an oversold level, optionally only above the 200-day average and in a bullish market regime based on an index and VIX. Trades close after a set number of days or earlier when the

Strategy v6 Mean reversionOscillators & momentum Repaints
Updated 2 days ago · None stated GitHub repository of RSI 30 Turbo Swing
1 stars

Draws confluence zones and options open interest levels on the price chart from a text block pasted into a settings box. Zones are coloured by how many layers of levels overlap (two, three, or four and more), and can be limited to volume-anchored zones. Open i

Indicator v6 Support & resistance
Updated 2 days ago · None stated GitHub repository of C.og - Confluence Zones + OI v2
1 stars

An overlay that builds a skewed same-day iron condor on the S&P 500 index or its ETF and mini equivalents. After an opening observation window it measures price drift and range, then places short strikes at a base distance, shifted asymmetrically when drift is

Indicator v6 Sessions & timeVolatility & bands
Updated 2 days ago · None stated GitHub repository of ZeroDTE Iron Condor v2
1 stars

A rule-based smart money confluence indicator for the price chart, with a recommended 15-minute chart. It scores a higher timeframe EMA bias, break of structure, liquidity sweep, fair value gap point of interest and rejection candle, then grades setups by scor

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 days ago · None stated GitHub repository of TraderWatch SMC/ICT Confluence v6

Strategy Template

by Jahanzaib211
1 stars

A strategy template that enters long when a fast EMA crosses above a slow EMA while price is above a higher-timeframe EMA, and short on the opposite setup, optionally limited to a session window. Entries happen only on a confirmed bar with no open position. Ea

Strategy v6 Moving averagesTrend
Updated 2 days ago · MIT GitHub repository of Strategy Template

Confluence Trend + Momentum

by nvolpe2007-cell
1 stars

A long-or-cash strategy that holds a position only when two conditions agree: the close is above a 100-bar simple moving average and above the close from 20 bars earlier. Otherwise it stays in cash. By default it requests daily bars whatever the chart timefram

Strategy v6 TrendMoving averages
Updated 2 days ago · None stated GitHub repository of Confluence Trend + Momentum
1 stars

This indicator overlays rolling cost anchors, volatility-derived GetDelta bands, and liquidity provider ranges onto the price chart alongside pinbar candlestick detection. It calculates market valuation zones, shading discount and premium areas while tracking

Indicator v6 Candlestick patternsVolatility & bands
Updated 2 days ago · AGPL-3.0 GitHub repository of BL-ESW Pinbar Market Lab Pro

ML Strategy Webhook

by GeekRabbit007
1 stars

A simple strategy built to feed a server with alert data. It plots a fast and a slow EMA, 12 and 26 by default, goes long when the fast crosses above the slow, and on the opposite cross closes the long and opens a short. There is no stop loss or take profit, s

Strategy v6 TrendMoving averages
Updated 3 days ago · None stated GitHub repository of ML Strategy Webhook

Dip Mafia HODL

by 0xCaretaker
1 stars

A long-only strategy that buys dips and never sells during the test. A buy needs a lower Bollinger Band touch, by default with a close below the midline, plus a MACD or Impulse MACD crossover. Position size is a percent of equity or a fixed cash amount per buy

Strategy v6 Mean reversionOscillators & momentum
Updated 3 days ago · None stated GitHub repository of Dip Mafia HODL

RCCE Scanner v6

by cianfru
1 stars

A strategy that combines four engines into one signal: a Z-score regime classifier, a weekly midline heat score, an exhaustion detector for absorption and climax bars, and a synthesizer that weighs them using confidence thresholds. Entries and exits appear as

Strategy v6 TrendVolatility & bands Repaints
Updated 3 days ago · None stated GitHub repository of RCCE Scanner v6

Bounce 2.0

by mphinance
1 stars

Overlays five EMAs at 8, 21, 34, 55 and 89 on the price chart and marks a Bounce 2.0 pullback setup. The setup needs the shorter EMAs in bullish order, ADX at or above 25, a stochastic reading at or below 40 and price within a band around the 21 EMA. A label a

Indicator v6 TrendMoving averages
Updated 3 days ago · Custom licence GitHub repository of Bounce 2.0

IQ Trend Beams

by ankurksoni
1 stars

A price-chart overlay that fits trend support and resistance channel lines using a Kalman-filter based engine fed by intrabar volume and price data. Lines are shown forming, then lock in place and are later restyled as broken history. A tempo mode of fast, med

Indicator v6 Support & resistanceTrend
Updated 3 days ago · None stated GitHub repository of IQ Trend Beams

TopBot Adaptive

by drewstake
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 and scales stop limits with chart bar length. Positions exit only at the stop or target, stay o

Indicator v6 AI / machine learning
Updated 4 days ago · None stated GitHub repository of TopBot Adaptive

Alerts & Automation

by jayadevrana
1 stars

This indicator plots a fast and a slow exponential moving average on the price chart and marks a buy when the fast average crosses above the slow average and a sell when it crosses below. It builds a plain-text price message and a JSON order message that inclu

Indicator v6 Moving averages
Updated 4 days ago · MPL-2.0 GitHub repository of Alerts & Automation

Skipp Labels

by skipp-dev
1 stars

Skipp Labels is a Pine Script v6 helper library designed to assist with label creation and memory management on price charts. It exports functions for string safety and buffer control. The safe label text function truncates long strings to a maximum of 120 cha

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

Sleep Zone BG

by jometa9
1 stars

A simple time-based background shader for intraday charts. It colors the chart background inside or outside a chosen daily time range, by default 22:00 to 07:00 in an Argentina timezone, with options for active weekdays, fill mode and colors. Optional dotted v

Indicator v6 Sessions & time
Updated 5 days ago · None stated GitHub repository of Sleep Zone BG

ES1! Short 1D MA200 MA5

by luifertorres
1 stars

A short-only daily strategy for E-mini S&P futures, the mirror of the long version. It enters short when the 200-period SMA is falling, the candle is bullish and the whole bar sits above the 5-period SMA, and it closes the position when price closes below the

Strategy v6 Mean reversionMoving averages
Updated 6 days ago · MIT GitHub repository of ES1! Short 1D MA200 MA5

j14-E1 adv

by moonyroy
1 stars

j14-E1 adv is an overlay indicator that maps higher-timeframe price structure on the chart. It builds a developing higher-timeframe candle as a wick box and a body box, tracks whether the last bar is inside the previous range, and draws aqua and orange zigzag

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 6 days ago · None stated GitHub repository of j14-E1 adv

Indicator RSI

by Jakub-Pinkowski
1 stars

This indicator calculates the Relative Strength Index (RSI) and displays buy and sell labels directly on the main price chart. A buy label triggers when the RSI crosses below the user-defined oversold threshold, while a sell label appears when the RSI crosses

Indicator v6 Oscillators & momentum
Updated 7 days ago · None stated GitHub repository of Indicator RSI

Advanced Trade Metrics

by pineforge-4pass
1 stars

Advanced Trade Metrics is an overlay breakout strategy that uses a 20-bar Donchian channel to generate trade signals. It opens long positions when the closing price breaches the prior 20-bar high and short positions when it drops below the 20-bar low. Position

Strategy v6 BreakoutTrend
Updated 7 days ago · Apache-2.0 GitHub repository of Advanced Trade Metrics

I Lang Series

by GammaExpansion
1 stars

This Pine Script test fixture indicator evaluates and plots various Pine Script language execution behaviors. It tracks short-circuit evaluation call counts, conditional technical calculations like RSI inside conditional statements, function-level persistent v

Indicator v6 Repaints
Updated 7 days ago · MIT GitHub repository of I Lang Series

EMA-Volume

by engtuncay
1 stars

EMA-Volume calculates two Exponential Moving Averages alongside volume moving averages derived from scaled USD volume. It draws directly on the price chart, plotting both moving averages with bullish and bearish crossover markers and colored background highlig

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

ATAS Levels

by ElroyvOuwerkerk
1 stars

An indicator that redraws levels exported from an ATAS workspace onto a TradingView chart. The user pastes a text feed of lines, rectangles and full-width zones, and the script draws those matching the chart's ES or NQ family with their labels, colours and tim

Indicator v6 Support & resistance
Updated 8 days ago · None stated GitHub repository of ATAS Levels

RSI Above 70 Buy

by kanylbullen
1 stars

A simple long-only strategy that buys when the RSI rises above a chosen level, 70 by default, and closes the position when the RSI crosses back below that level. The RSI length and the level are adjustable. The RSI line and the level are drawn in a separate pa

Strategy v6 Oscillators & momentum
Updated 8 days ago · None stated GitHub repository of RSI Above 70 Buy

GridWB3 V6

by cckmchiu-gapps
1 stars

This indicator draws a price and time grid on the price chart with automatically calculated bounds. It takes the highest and lowest close since a chosen start date, falls back to the first available bar when the symbol's history starts later, and uses an end d

Indicator v6
Updated 8 days ago · None stated GitHub repository of GridWB3 V6

A strategy that defines a 30-minute range, waits for a breakout, then looks for a retracement into a configurable percentage band before entering on a lower-timeframe trigger. The range can be each closed 30-minute candle, the session opening range, or a matur

Strategy v6 BreakoutSupport & resistance Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of 30m Range Retracement + 5m Entry Strategy

Phantom Flow Core

by darup67
1 stars

A price-chart indicator that combines an ATR trend line, similar to a SuperTrend with a configurable multiplier and source, with market structure tools. The trend line switches colour and prints buy and sell labels when the trend flips, with an optional backgr

Indicator v6 TrendSMC / ICT / price action Repaints
Updated 8 days ago · Custom licence GitHub repository of Phantom Flow Core

An earlier Pine v6 version of a day trading research strategy for crypto charts. It combines RSI, Fibonacci Bollinger Bands, trend moving average, Ichimoku, pivot support and resistance, candlestick and chart pattern modules into a weighted score. A trading se

Strategy v6 Support & resistanceSessions & time
Updated 12 days ago · MIT GitHub repository of Crypto TA Pro Day Trading S/R Execution v2

DEPV2

by YuceSezar89
1 stars

DEPV2 is a multi-symbol Pine Script v6 indicator for cryptocurrency trading. It analyzes 20 Binance symbols including BTC, ETH, SOL, and others using four signal classes: TREND, MOMENTUM, VOLATILITY, and VOLUME. The indicator supports multiple modes including

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2

MA + R:R Strategy

by MuhammadMuhamid
1 stars

A strategy that combines optional multi-timeframe moving average trend filters, SuperTrend, linear regression, VWMA, volume and higher-high structure checks to trigger entries on crypto spot pairs. Risk is set with a swing-low stop and a take profit at a chose

Strategy v6 TrendMoving averages Repaints
Updated 13 days ago · None stated GitHub repository of MA + R:R Strategy

This indicator measures underlying chart and market data properties to highlight conditions that may produce unreliable backtest results. It evaluates trading costs like commission and slippage against median bar ranges, detects zero-volume bars, and flags pri

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

Fractal

by Just-beyond-z
1 stars

An overlay that draws a projection of higher-timeframe candles next to the chart and tracks a sweep, confirmation and change-in-state-of-delivery sequence between a lower and a higher timeframe. The pair can be set automatically or by hand, with a bias option,

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 weeks ago · None stated GitHub repository of Fractal
1 stars

Williams Swings V2 plots short-term, intermediate-term and long-term swing zigzags on the price chart and marks key and critical levels for each horizon. It flags break-of-structure events and optional critical-break and key-warning alerts. Settings control st

Indicator v6 Support & resistanceSMC / ICT / price action

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