Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 3)

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

6 stars

This strategy evaluates higher-timeframe four-hour ADX momentum and RSI conditions to generate long trades on lower timeframes like 15 minutes. Entries trigger when 15-minute RSI drops relative to four-hour RSI under specific directional strength conditions. P

Strategy v6 TrendOscillators & momentum Repaints
Updated 1 year ago · MIT GitHub repository of Basic Long Entry System

TurtleStrategy_Crypto

by OktayBogazkaya
6 stars

This strategy trades long breakouts of the highest high over a user-set period. It enters when the close is above that prior high and the position is flat, then sizes the order from account equity, a risk percentage, and ATR times a multiplier. It exits when t

Strategy v6 TrendBreakout
Updated 1 year ago · MIT GitHub repository of TurtleStrategy_Crypto

Simple Strategy

by TradersPost
6 stars

Simple Strategy is an educational strategy script designed to demonstrate automated order messaging and webhook alerts. It executes on the main price chart, entering long when the current bar closes above the previous close and entering short when it closes be

Strategy v6 Trend
Updated 1 year ago · None stated GitHub repository of Simple Strategy

Cross Levels (ES-SPY/SPX)

by 345-strategies
5 stars

Translates key reference levels between CME E-mini S&P 500 futures (ES) and cash equity equivalents (SPY or SPX), displaying them directly on the price chart. When applied to an ES chart, it projects cash session highs, lows, opens, prior period levels, and ga

Indicator v6 Support & resistanceSessions & time
Updated 3 days ago · MPL-2.0 GitHub repository of Cross Levels (ES-SPY/SPX)

The Xsodus Supertrend Strategy is a long-only Pine Script strategy that overlays the Supertrend indicator on the price chart to generate buy signals for long positions when the trend is up. It calculates the Supertrend line using a configurable length and mult

Strategy v6 TrendVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Xsodus Supertrend Strategy (Long Only)
5 stars

Combines trend-following moving average entries with an astronomical cycle filter. Entries trigger on a rising EMA filter and are gated by Vedic astronomical events like eclipse windows and Vishti karana. The strategy offers two distinct exit styles: a trend m

Strategy v6 TrendMoving averages
Updated 7 weeks ago · MIT GitHub repository of ChandraQuant - Kala-Chakra Strategy

Pivot Trendline Trading

by AllienNova
5 stars

Pivot Trendline Trading is an automated strategy that identifies pivot-constrained trendlines and calculates quality scores for potential setups. It uses an Efficiency Ratio and EMA cross count to determine trending regimes before entering on trendline breakou

Strategy v6 TrendBreakout
Updated 8 weeks ago · None stated GitHub repository of Pivot Trendline Trading

BPA [yohtza]

by forecho
5 stars

This indicator plots key session-based price action reference levels on the price chart. It calculates and displays the current session open, previous day close, Globex session high and low, weekly open, and higher-timeframe boundaries. It also supports bar co

Indicator v6 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of BPA [yohtza]

ORB Algo | Flux Charts

by vaskosmihaylov
5 stars

This indicator calculates and visualizes Opening Range Breakout (ORB) zones directly on the price chart. Breakout signals are identified when the close or an EMA crosses the opening range boundary, with entry sensitivity managed by retest requirements. It mode

Indicator v6 BreakoutSessions & time
Updated 2 months ago · GPL-3.0 GitHub repository of ORB Algo | Flux Charts
5 stars

This indicator screens many symbols for close-to-close inside bars, a stricter inside bar that also requires the close to continue in the prior candle's direction. It scans either a pasted symbol list or one page of a preset Nifty index list, with a hard limit

Indicator v6 Candlestick patternsScreeners & dashboards
Updated 3 months ago · MPL-2.0 GitHub repository of Close-to-Close (C2C) Inside Bar Screener

Breakout AVAAI BITGET

by tarasprystavskyj
5 stars

Breakout AVAAI BITGET is a cryptocurrency breakout strategy that identifies entry points using price channels alongside ATR, MACD, ADX, and volume trend filters. Long and short entries trigger when price breaches Donchian-style highest highs or lowest lows und

Strategy v6 BreakoutTrend
Updated 3 months ago · None stated GitHub repository of Breakout AVAAI BITGET
5 stars

This script is a simple exponential moving average crossover strategy designed as an example test script. It calculates a 14-period fast EMA and a 28-period slow EMA, plotting both lines directly on the price chart. The strategy triggers a long position entry

Strategy v6 TrendMoving averages Repaints
Updated 5 months ago · MIT GitHub repository of [SA-TEST 02] EMA Crossover

I2.0 SM Radar

by CedInvest
5 stars

I2.0 SM Radar plots Smart Money Concepts zones on the price chart for crypto. It marks bullish and bearish Order Blocks, Fair Value Gaps with age-based fading, liquidity zones at equal highs and lows, and previous day week month highs and lows. It also detects

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · Custom licence GitHub repository of I2.0 SM Radar

CSI based on RSI, BB and Vol

by chaise-cogent
5 stars

This indicator calculates a custom CSI value using price body ratio, volume score, and range z-score normalized by ATR. It generates bull and bear sentiment signals when CSI, RSI below 60, and Bollinger Band conditions align simultaneously. Bull signals trigge

Indicator v6 Oscillators & momentumVolatility & bands
Updated 7 months ago · MIT GitHub repository of CSI based on RSI, BB and Vol
5 stars

The Adaptive Window Size indicator computes a quadratic signal from the chosen source series using absolute differences normalized by total variation. This signal feeds into an exponential formula to produce an adaptive window size value. The script plots both

Indicator v6 Volatility & bandsMoving averages
Updated 8 months ago · None stated GitHub repository of Adaptive Window Size

Chande Momentum Oscillator

by SiegerTerpstra
5 stars

This indicator calculates the Chande Momentum Oscillator by comparing the sum of price gains to the sum of price losses over a defined lookback period. It plots the resulting oscillator line in a separate pane alongside configurable upper, lower, and zero refe

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

This indicator implements Tom DeMark's TD Sequential methodology on the price chart to detect trend exhaustion and reversal zones. It counts the Setup phase of nine consecutive bars comparing closes to four bars prior, tracks setup perfection, and advances int

Indicator v6 TrendMean reversion
Updated 1 year ago · None stated GitHub repository of TD Sequential - Official DeMark
5 stars

This indicator detects classic price structure on the chart by finding swing pivot highs and lows over a user-defined period. It draws connecting lines and labels for lower lows, lower lows with lower highs, higher highs, and higher highs with higher lows, plu

Indicator v6 TrendSupport & resistance
Updated 1 year ago · None stated GitHub repository of Chart Patterns [ActiveQuants]

This indicator identifies trend reversal signals on the price chart by combining exponential moving average crossovers with momentum and volatility filters. It calculates fast, slow, and long-term filter EMAs, along with RSI and ATR. A bullish reversal trigger

Indicator v6 TrendOscillators & momentum
Updated yesterday · None stated GitHub repository of Advanced Trend Reversal Emoji Indicator

[innoobwetrust] Key Gaps

by InNoobWeTrust
4 stars

This indicator detects large price gaps by comparing each candle’s high-to-low range with the previous ATR and requiring a minimum body percentage. Qualifying candles are stored in a rolling buffer and drawn as price zones on the chart, limited to the most rec

Indicator v6 Support & resistanceVolatility & bands
Updated yesterday · None stated GitHub repository of [innoobwetrust] Key Gaps
4 stars

This indicator calculates a short-period Relative Strength Index and monitors crosses around a center threshold. It triggers buy signals when the RSI crosses above the level and sell signals when it crosses below. Signal shapes are plotted directly on the main

Indicator v6 Oscillators & momentum
Updated 2 days ago · MIT GitHub repository of OptionX Noisy Test Alertcondition
4 stars

Lucid 100K is an automated evaluation strategy tailored for micro futures contracts such as MES, MGC, and MNQ on lower timeframes. It operates a two-phase state machine that moves from an initial risk-averse lock-in phase to an expanded payout phase once targe

Strategy v6 TrendMean reversion
Updated 2 days ago · None stated GitHub repository of Lucid 100K (MES/MGC/MNQ)
4 stars

This strategy enters a long position when a short RSI falls below a user threshold and price is above a simple moving average trend filter. It closes the long when RSI rises above a second threshold and does not set a stop loss. Position size defaults to full

Strategy v6 Oscillators & momentumMoving averages
Updated 2 weeks ago · MIT GitHub repository of RSI(2) pullback + TokIO check
4 stars

This indicator overlays an order flow intelligence suite directly on the price chart. It renders a liquidity heatmap across configured price zones, alongside an on-chart information panel displaying volume delta, cumulative volume delta, a momentum compass bas

Indicator v6 VolumeScreeners & dashboards
Updated 2 weeks ago · MIT GitHub repository of GHOST — OrderFlow Intelligence

Webhook Test

by beydah
4 stars

Webhook Test generates standard alert conditions designed to verify webhook integrations between TradingView and external automated trading bots. It evaluates conditions on the latest price bar to trigger simulated open long, close long, open short, and close

Indicator v6
Updated 3 weeks ago · MIT GitHub repository of Webhook Test
4 stars

JoppanFX Candlestick Patterns identifies classic single-candle and multi-candle price patterns directly on the main price chart. It checks for bullish patterns (Hammer, Inverted Hammer, Bullish Engulfing) and bearish patterns (Shooting Star, Hanging Man, Beari

Indicator v6 Candlestick patterns
Updated 3 weeks ago · None stated GitHub repository of JoppanFX | Candlestick Patterns
4 stars

Breakout Follow Trend is a quantitative trend-following strategy designed to capture volatility expansion. It triggers entries when price breaks out of Bollinger Bands, filtered by an EMA trend filter, optional candle overlap rules, and a volume moving average

Strategy v6 TrendVolatility & bands
Updated 3 weeks ago · None stated GitHub repository of Breakout Follow Trend
4 stars

Meridian - Futures Context is an intraday analysis indicator designed for US index futures. It measures volume participation using relative volume, calculates rolling realized volatility, and evaluates trend context through VWAP slope and EMA structures. Displ

Indicator v6 VolumeVolatility & bands
Updated 7 weeks ago · MPL-2.0 GitHub repository of Meridian - Futures Context
4 stars

This strategy enters long when the fast EMA crosses above the slow EMA while ADX is at least the minimum and DI plus exceeds DI minus. It enters short on the opposite cross with DI minus above DI plus. Each entry sets an ATR-based stop and take profit using th

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of ADX Trend Strategy [trugurpala]

GemHunter v4

by Finland93
4 stars

GemHunter v4 classifies market conditions into bullish, bearish, or neutral regimes using a multi-indicator voting system. It combines exponential moving average alignment, MACD momentum, and RSI strength, optionally gated by ADX trend strength and higher-time

Indicator v6 TrendOscillators & momentum
Updated 4 months ago · MPL-2.0 GitHub repository of GemHunter v4

Air Pocket Profile [FEELS]

by VolodymyrFilias
4 stars

Air Pocket Profile builds a range-distributed volume profile over a user-set lookback and draws it on the price chart, extending it by a projection length. Rows below a fraction of peak volume form air-pocket zones, while the heaviest row is the volume anchor

Indicator v6 VolumeSupport & resistance
Updated 4 months ago · MIT GitHub repository of Air Pocket Profile [FEELS]
4 stars

This strategy overlays asymmetric Bollinger Bands built on a Weighted Moving Average of hlc3. It opens long positions on an upside breakout above the upper band, confirmed by positive momentum and candle structure filters. Positions exit only when the closing

Strategy v6 BreakoutMoving averages
Updated 5 months ago · None stated GitHub repository of Bollinger WMA (Long Only)

SHODAN9 Katana

by Narymunt
4 stars

SHODAN9 Katana is a trend-following strategy that generates trading signals using Heikin-Ashi candle color transitions. It enters long positions on the first green Heikin-Ashi candle after a series of red candles and enters short positions on the first red can

Strategy v6 TrendCandlestick patterns
Updated 5 months ago · BSD-3-Clause GitHub repository of SHODAN9 Katana

Template

by 1zerolog
4 stars

This strategy serves as a modular foundation for developing custom trading systems in Pine Script v6. It provides leverage-adjusted position sizing, date range filtering, and trade execution handlers, while leaving entry conditions open for user-defined logic.

Strategy v6
Updated 5 months ago · None stated GitHub repository of Template
4 stars

Christian Qullamaggie Strategy is a trend-following and breakout strategy overlay designed to identify high-momentum trading opportunities directly on the price chart. It evaluates market conditions using fast, mid, and slow EMAs, average true range (ATR), and

Strategy v6 BreakoutTrend
Updated 7 months ago · None stated GitHub repository of Christian Qullamaggie Strategy

Bollinger Bands

by YooooungLee
4 stars

This indicator plots Bollinger Bands on the price chart. It uses a lookback length and a multiplier, the usual controls for the middle band and the distance of the upper and lower bands. The length setting changes how many bars enter the calculation, and the m

Indicator v6 Volatility & bands
Updated 10 months ago · Apache-2.0 GitHub repository of Bollinger Bands
4 stars

This indicator computes the Watchtower Axis as a 257-period weighted moving average of closing prices to establish the main trend baseline. It defines volatility gates using the highest high and lowest low over 463 periods, along with a 377-period exponential

Indicator v6 TrendMoving averages
Updated 10 months ago · MIT GitHub repository of Miela Labs | John Dee's Watchtower

VAMO Crossover Strategy

by TPTBusiness
4 stars

The VAMO Crossover Strategy is a scalping system that combines momentum and volatility into a Volatility-Adjusted Momentum Oscillator (VAMO). It calculates momentum using Rate of Change divided by ATR and generates trade signals when VAMO crosses its EMA signa

Strategy v6 Oscillators & momentumVolatility & bands
Updated 12 months ago · MIT GitHub repository of VAMO Crossover Strategy

Color Preview Test

by weaming
4 stars

Color Preview Test is an overlay indicator that samples Pine Script color expressions and applies them to the price chart. It assigns hexadecimal literals, built-in color constants, color.rgb values, and color.new transparency, then plots the close in blue, ti

Indicator v6
Updated 1 year ago · Custom licence GitHub repository of Color Preview Test
4 stars

This strategy executes trades based on simple moving average crossovers. It calculates a 10-period and a 30-period SMA, opening a long position and closing any short position when the fast SMA crosses above the slow SMA. Conversely, it opens a short position a

Strategy v6 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Advanced Buy/Sell Strategy

Multi-Timeframe Moving Averages is an overlay indicator that calculates and plots moving averages across multiple timeframes directly on the main price chart. It supports various moving average types including SMA, EMA, WMA, HMA, RMA, and VWMA, with customizab

Indicator v6 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of Multi-Timeframe Moving Averages

This strategy executes trades on gold based on a confluence of Supertrend, RSI, MACD, Bollinger Bands, and volume spikes. It enters long or short positions when trend direction aligns with momentum and price positioning relative to volatility bands, filtered b

Strategy v6 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of XAUUSD High Probability Strategy
4 stars

High Volume Points draws circles at confirmed pivot highs and lows when summed volume exceeds a normalized threshold. It sums volume over twice the pivot length, compares that sum with a high percentile of recent volume, and skips quieter pivots. Circle size f

Indicator v6 VolumeSupport & resistance
Updated 1 year ago · Custom licence GitHub repository of High Volume Points [BigBeluga]

Bollinger Squeeze

by degenview
3 stars

This indicator calculates standard Bollinger Bands using a simple moving average basis along with upper and lower volatility bands. It measures normalized band width to detect squeeze conditions where the bands contract to their narrowest point over a specifie

Indicator v6 Volatility & bandsMoving averages
Updated yesterday · GPL-3.0 GitHub repository of Bollinger Squeeze

OPTD ORB Strategy

by drewautomates
3 stars

The OPTD ORB Strategy detects an opening range from a user-defined session window on the chart timeframe. It waits for a specified number of consecutive closes beyond the range high or low on a separate signal timeframe to generate a long or short entry. The d

Strategy v6 BreakoutSessions & time
Updated yesterday · Custom licence GitHub repository of OPTD ORB Strategy

Zig Zag Labeler

by northis
3 stars

Calculates and plots zigzag swing lines directly on the price chart based on user-defined deviation and depth settings. It allows traders to number recent swing segments and assign specific Elliott Wave structural models, including impulses, zigzags, and diago

Indicator v6 Support & resistanceTrend Repaints
Updated 4 days ago · MIT GitHub repository of Zig Zag Labeler

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