Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 14)

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

A breakout strategy built for S50 futures on a 30-minute chart. It tracks confirmed swing highs and lows from pivot detection and places stop-order entries when price breaks the latest swing level. The stop sits one ATR beyond the opposite swing, the target is

Strategy v6 BreakoutSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of S50 TFEX Trend Following Breakout

IVY Indicator

by vinodliyanage
1 stars

A chart-overlay indicator that plots a 9-period EMA and converts the absolute distance between the close and the EMA into a confidence value using a sigmoid curve with fixed fitted constants. A buy triangle appears when price is above the EMA and the value mee

Indicator v6 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of IVY Indicator
1 stars

This indicator calculates the average high-to-low range of a user-selected number of prior candles on a chosen timeframe. It plots bullish and bearish target lines from the current candle range on the price chart and can extend those lines by a set number of b

Indicator v6 Volatility & bandsSupport & resistance Repaints
Updated 1 year ago · MIT GitHub repository of ACR(Average Candle Range) With Targets

ICT Levels

by JamestheBuildrCodes
1 stars

An overlay that marks the opening price at five New York clock times each day: 12 AM, 8:30 AM, 9:30 AM, 2 PM and 6 PM. For the current day only, each time gets a horizontal line at that bar's open and a text label to the right, and the previous day's lines are

Indicator v6 Sessions & timeSupport & resistance
Updated 1 year ago · None stated GitHub repository of ICT Levels

A strategy written for a 15-minute TRUMP perpetual swap chart. When a candle's high-to-low range exceeds a percentage threshold, it places a limit order against the candle's direction, short after a green candle and long after a red one, at a price between the

Strategy v6 Mean reversionVolatility & bands
Updated 1 year ago · None stated GitHub repository of TRUMP 15m Large Range Reversal v1
1 stars

An overlay indicator that marks price breaks confirmed by a volume surge. A break is when price moves past the recent high or low by a set percentage, direction selectable, on volume above its average. Optional confirmations are a retest, RSI and MACD momentum

Indicator v6 BreakoutVolume Archived
Updated 1 year ago · MIT GitHub repository of High Volume Momentum Strategy

Swing Trading Indicator

by armaandamani
1 stars

A separate-pane indicator built for crypto swing and day trading with an external bot. It plots a Stochastic RSI, a MACD with very long periods for the medium-term trend, and a Money Flow Index, and also uses two Bollinger Band sets for oversold entries and ex

Indicator v6 Oscillators & momentumVolatility & bands Repaints
Updated 1 year ago · None stated GitHub repository of Swing Trading Indicator

TAIndicators

by MarcosACH
1 stars

TAIndicators is a Pine Script library providing helper functions for technical analysis calculations. It features flexible moving average functions supporting SMA, EMA, SMMA, WMA, and VWMA options, along with secondary smoothing methods and Bollinger Band calc

Library v6
Updated 1 year ago · None stated GitHub repository of TAIndicators

Liquidity Zones

by MarcosACH
1 stars

Liquidity Zones highlights bars where volume is above a multiple of its moving average while short-term price volatility is below half of the average volatility. Matching bars are shaded as zones, with optional labels showing the zone volume in units or curren

Indicator v6 VolumeSupport & resistance
Updated 1 year ago · None stated GitHub repository of Liquidity Zones

Consolidation Zones

by MarcosACH
1 stars

Consolidation Zones draws boxes over periods when price stays inside a band around a simple moving average. A zone forms when every close in the last minimum-zone-length bars sits within one ATR of the average. Overlapping zones are extended and merged, and zo

Indicator v6 Volatility & bandsSupport & resistance
Updated 1 year ago · None stated GitHub repository of Consolidation Zones
1 stars

Three Bar Reversal Pattern marks bullish and bearish three-candle reversals. A bullish pattern is two down candles followed by an up candle closing above the first candle's open; the bearish pattern is the mirror image. Optional filters require volume above it

Indicator v6 Candlestick patternsVolume
Updated 1 year ago · None stated GitHub repository of Three Bar Reversal Pattern

Market Structure

by MarcosACH
1 stars

Market Structure plots swing highs and swing lows, found as the highest or lowest bar within a configurable window, and marks change of character events when the close breaks the latest swing level in the opposite direction. Pivot colors, visibility and the nu

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of Market Structure

Triple SMA

by ceteongvanness
1 stars

This Pine Script v6 indicator calculates and plots three simple moving averages directly on the main price chart. It displays a 20-period short-term SMA, a 50-period medium-term SMA, and a 200-period long-term SMA using distinct line colors. The script offers

Indicator v6 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Triple SMA
1 stars

Dynamic Anchored VWAP calculates a volume-weighted average price starting from a selected dynamic or manual anchor point, such as the chart start, daily start, weekly start, monthly start, or a specific timestamp. It calculates and plots the anchored VWAP alon

Indicator v6 VolumeSupport & resistance
Updated 1 year ago · GPL-3.0 GitHub repository of Dynamic Anchored VWAP

Options MA Bollinger

by ShadowBrokersDevs
1 stars

An indicator on the price chart that draws a 20 period and a 50 period EMA together with Bollinger Bands, 20 period and 2 standard deviations by default, and fills the band area. It marks a buy triangle when the fast EMA crosses above the slow EMA or price clo

Indicator v6 Moving averagesVolatility & bands
Updated 1 year ago · MIT GitHub repository of Options MA Bollinger

Adaptive SuperTrend Strategy

by yagyesh-bobde
1 stars

The Adaptive SuperTrend Strategy is a custom trading strategy that calculates an adaptive SuperTrend value using volatility-adjusted factors. It determines high or low volatility by comparing ATR to its 100-period SMA and adjusts the SuperTrend factor accordin

Strategy v6 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Adaptive SuperTrend Strategy

FusionBell Pro

by saleh-ato
1 stars

This indicator combines four technical tools into a unified scoring system directly on the price chart. It evaluates an exponential moving average trend crossover, relative strength index levels, MACD line positioning against its signal line, and Bollinger Ban

Indicator v6 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of FusionBell Pro

Crown Club Strategy

by GigantePT
1 stars

Crown Club Strategy is an overlay indicator that plots two simple moving averages, 50 and 200 by default, together with the previous week's and yesterday's high and low. For each period it adds Fibonacci levels and a golden zone, oriented by a long or short bi

Indicator v6 Support & resistanceMoving averages Repaints
Updated 1 year ago · Custom licence GitHub repository of Crown Club Strategy
1 stars

This Pine Script indicator identifies potential trade entries for the USDJPY pair exclusively on 5-minute and 15-minute charts. It plots three Exponential Moving Averages: 9-period fast, 20-period slow, and 200-period trend filter. Signals trigger on EMA 9 cro

Indicator v6 Moving averagesVolatility & bands

AAPL Best Position

by theteelek
1 stars

A long-only strategy that accumulates a fixed quantity by buying near the lower edge of a smoothed channel. The channel is an EMA of the highest high and lowest low over an adjustable range. A buy fires when price touches the lower line while RSI is rising out

Strategy v6 Mean reversion
Updated 1 year ago · None stated GitHub repository of AAPL Best Position

Draw-On-Liquidity

by harshaldulera
1 stars

Draw-On-Liquidity is an overlay indicator that marks liquidity on the price chart. It reads highs and lows from a chosen higher timeframe and draws extended lines with buy-side and sell-side liquidity labels when consecutive values fall within a percentage thr

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 1 year ago · None stated GitHub repository of Draw-On-Liquidity

Adaptive Strategy

by Studentcodee
1 stars

This adaptive strategy combines multiple classic technical indicators into a unified framework to generate trading signals on the price chart. It evaluates conditions across Moving Average crossovers, Donchian channel breakouts, MACD, RSI, Bollinger Bands, Par

Strategy v6 TrendOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of Adaptive Strategy
1 stars

A strategy meant for one-minute charts that buys when price is near a recent pivot low, RSI is below an oversold level, a hammer or bullish engulfing candle appears and price is above an EMA. Sells mirror this near pivot highs with overbought RSI, bearish patt

Strategy v6 Candlestick patternsSupport & resistance

Raj Reversion Strategy

by LongVu219
1 stars

Measures how far price sits from an Arnaud Legoux moving average, shown as a percentage in a separate pane. The average length is scaled by the ratio between a chosen higher timeframe, 60 minutes by default, and the chart timeframe so values stay comparable ac

Indicator v6 Mean reversionOscillators & momentum
Updated 1 year ago · Apache-2.0 GitHub repository of Raj Reversion Strategy

EA

by equitymarkets
1 stars

This Pine Script strategy provides a basic moving average crossover trading template. It calculates and plots a fast simple moving average and a slow simple moving average directly on the price chart. The strategy enters a long position when the fast average c

Strategy v6 Moving averagesTrend
Updated 1 year ago · MIT GitHub repository of EA
1 stars

Draws Bollinger Bands from up to three user-chosen timeframes at once on the price chart. For each timeframe it can show the basis line and bands at one, two and three standard deviations, with its own period, offset and colours. The average type can be SMA, E

Indicator v6 Volatility & bandsMean reversion
Updated 1 year ago · None stated GitHub repository of MTF Bollinger Bands TT (3BB)

Supertrend Strategy

by meetghodasara
1 stars

A long-only strategy built on the built-in Supertrend indicator. It enters long when Supertrend flips to an uptrend and closes the position when it flips back to a downtrend, with orders processed on bar close. ATR length and factor are adjustable. Green and r

Strategy v6 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Supertrend Strategy

A pivot breakout strategy for the S50 futures on a 30-minute chart. Swing highs and lows are found from left and right bar counts, with stop entries placed beyond them. Each entry has an exit order with a stop one ATR past the pivot and a limit set by a risk t

Strategy v6 BreakoutSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of S50 TFEX Strategy LeftBar RightBar
1 stars

An overlay that draws a ribbon of moving averages with lengths from 20 to 50 in steps of five, plus optional 100 and 200 length lines. A switch chooses exponential or simple averages, and the price source can be changed. The area between the 100 and 200 lines

Indicator v6 Moving averagesTrend
Updated 1 year ago · MIT GitHub repository of Moving Average Ribbon

BTC Fair Value Levels

by PitzTech
1 stars

An indicator that plots a 200-period simple moving average on the price chart and builds colour-filled bands from multiples of it: half, one and a half, two, two and a half and three times the average. The length is adjustable, and the intended use is the 200-

Indicator v6 Support & resistanceMoving averages
Updated 1 year ago · None stated GitHub repository of BTC Fair Value Levels

ETHBTC MTPI V2.0

by Mikelkulla
1 stars

This strategy detects whether Ethereum outperforms Bitcoin relative to the overall market using MTPI signals. It combines outputs from DEMA Adaptive Fractal Range, DEMA Supertrend, Schaff Trend Cycle, RMI Trend Sniper, and FDI-Adaptive Supertrend indicators. L

Strategy v6 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of ETHBTC MTPI V2.0
1 stars

A small test strategy used to exercise a browser automation project rather than to trade. It goes long when a 14-period simple moving average crosses above a 28-period one and short on the opposite cross, with no stop loss or take profit. It also defines sampl

Strategy v6 Moving averages
Updated 1 year ago · None stated GitHub repository of Automation Tests Strategy Script
1 stars

This strategy plots several exponential moving averages and an optional VWAP on the price chart. It defines a long setup when the short EMA crosses above the long EMA, price is above the short EMA, and, if enabled, above VWAP. A short setup uses the opposite c

Strategy v6 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of EMA Crossover Strategy

MACD Divergence Analysis

by fuyuanyuan
1 stars

This indicator calculates the MACD line, signal line, and color-coded histogram in a separate pane below the chart. It includes a specialized divergence detection algorithm that splits a lookback period into recent and older segments to compare price extremes

Indicator v6 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of MACD Divergence Analysis

Liquidation Levels

by mrgunkin
1 stars

This indicator calculates estimated long and short liquidation prices from a manually entered base price and five leverage settings. A maintenance-margin factor shifts each level, and a nonlinear option changes the leverage used for inverse-style contracts. It

Indicator v6 Support & resistance
Updated 1 year ago · MIT GitHub repository of Liquidation Levels

Trade Value

by barnett-yuxiang
1 stars

This indicator calculates a trade value for each bar by multiplying volume by the average of open, high, low, and close. It plots that series on the price chart with a fully transparent line so the chart stays visually clear while the value remains readable in

Indicator v6 Volume
Updated 1 year ago · None stated GitHub repository of Trade Value

COT Disaggregated

by ivansoft
1 stars

An indicator in a separate pane that plots Commitment of Traders disaggregated report metrics for the chart symbol, such as open interest, producer merchant, swap, managed money and other reportable positions. Settings pick the metric, the direction (long, sho

Indicator v6
Updated 1 year ago · None stated GitHub repository of COT Disaggregated

MA50 Trend Signals

by mkdir700
1 stars

A price-chart overlay built on a 50-bar simple moving average. A green circle marks the bar where the close crosses above it and a red circle where it crosses below, and a small coloured dot at the top of the pane shows the current state, green after an upward

Indicator v6 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of MA50 Trend Signals

Kotegawa Pump Tracker

by davccavalcante
1 stars

Kotegawa Pump Tracker is an overlay indicator aimed at volatile crypto markets. It combines an adaptive SuperTrend with a clustering step that sorts recent volatility into high, medium and low levels over an analysis window, and it also uses RSI. According to

Indicator v6 Volatility & bandsTrend
Updated 1 year ago · None stated GitHub repository of Kotegawa Pump Tracker

TICK.US Status Box

by BrayFlex
1 stars

TICK.US Status Box is an overlay indicator that reads the NYSE TICK index (TICK.US) on the chart's timeframe and shows its value in a small box. The box text reads very low, normal, high or very high depending on three adjustable level inputs, and the box colo

Indicator v6 Screeners & dashboardsOscillators & momentum
Updated 1 year ago · MPL-2.0 GitHub repository of TICK.US Status Box

This indicator combines Fibonacci Golden Zone retracements, VWAP-based divergence detection, and RSI optimized with Kernel Density Estimation (KDE). It identifies high and low swing points to overlay key Fibonacci retracement levels directly on the main price

Indicator v6 Support & resistanceOscillators & momentum

Shows a table on the price chart with swing trading data such as average daily range percent, relative volume, price volume, shares float, market cap and average dollar volume. Settings choose which rows appear, the table position and size, text colour, alignm

Indicator v6 Screeners & dashboardsVolume
Updated 1 year ago · None stated GitHub repository of Swing Data ADR RVol PVol Float Avg Dollar Volume
1 stars

A Pine v6 strategy on the price chart that applies a range filter to smooth price and detect direction, optionally on Heikin Ashi candles, with sampling period and multiplier settings. It also draws pivot-based support and resistance levels. Trades can be limi

Strategy v6 TrendSupport & resistance
Updated 1 year ago · MIT GitHub repository of Range Filter Buy and Sell

Bullish Indicator Strategy v2

by MuhammadHussain07
1 stars

Bullish Indicator Strategy v2 is a multi-indicator panel drawn in a separate pane. It calculates RSI, MACD, four simple moving averages (20, 50, 100 and 200), Bollinger Bands, ADX, a stochastic oscillator, OBV, a cumulative volume delta, Chaikin Money Flow and

Indicator v6 Oscillators & momentumTrend
Updated 1 year ago · None stated GitHub repository of Bullish Indicator Strategy v2
947 stars

Calculates the Corrected Moving Average (CMA) alongside a standard Simple Moving Average (SMA) over a specified period. The indicator dynamically adjusts the average based on sample variance and deviation from price. Both lines plot directly on the price chart

Indicator v6 Moving averagesTrend
Updated 12 days ago · GPL-3.0 GitHub repository of Corrected Moving Average
575 stars

This indicator scans multiple stock symbols for ICT Displacement Candles. It detects strong price moves characterized by long candles and minimal wicks that exceed a minimum bar count and a set deviation percentage from average range. Signals for bullish and b

Indicator v6 Screeners & dashboardsSMC / ICT / price action
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Displacement Candles Scanner

This trend-following strategy executes a classic Donchian channel breakout system designed to cross-validate backtest results against external framework benchmarks. It triggers a long entry when the closing price breaks above the highest high of the prior entr

Strategy v6 BreakoutTrend
Updated 2 days ago · AGPL-3.0 GitHub repository of Forven S01509 - Simple Donchian 20/10 Breakout

This indicator identifies and plots key options expiration dates on the price chart. It calculates monthly OpEx (the third Friday of each month), quarterly OpEx (March, June, September, December), and corresponding VIX expiration dates, drawing vertical lines

Indicator v6 Sessions & time
Updated 2 months ago · MIT GitHub repository of Expiration Highlights: Opex, Quarterly Opex & VIX with Vanna/Charm

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