Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 8)

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

Session Levels

by allanninal
1 stars

This indicator draws the Asia, London and New York sessions as boxes on the price chart, with the session high and low as the edges, in New York time with daylight saving handled. It also draws the previous day high and low, previous week high and low and toda

Indicator v6 Sessions & timeSupport & resistance
Updated 7 days ago · Custom licence GitHub repository of Session Levels

SMC Zones

by allanninal
1 stars

SMC Zones is an overlay indicator that identifies Smart Money Concepts structure on the price chart using closed-bar logic. It calculates and plots order blocks, fair value gaps, BOS and CHoCH break lines, and optional liquidity sweeps. Users can adjust swing

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 7 days ago · Custom licence GitHub repository of SMC Zones

Gann HiLo Swing

by allanninal
1 stars

This indicator draws two tools from W.D. Gann on the price chart. The HiLo Activator line follows the average of recent lows in an uptrend and recent highs in a downtrend, changing colour as the side flips. A dotted line connects confirmed swing highs and lows

Indicator v6 Trend
Updated 7 days ago · Custom licence GitHub repository of Gann HiLo Swing

Prior Day Breakout

by allanninal
1 stars

This strategy plots the previous trading day's high and low on the price chart and enters on the first close beyond either level, once per side per day, between 01:00 and 20:00 server time. A long starts above the high and a short below the low. The stop sits

Strategy v6 BreakoutSupport & resistance
Updated 7 days ago · Custom licence GitHub repository of Prior Day Breakout

Harmonic Signal Alerts

by allanninal
1 stars

This indicator finds ABCD, Gartley and Bat harmonic patterns from confirmed swing points and draws the XABCD legs, a dotted reversal zone and point labels on the price chart. It marks the closed bar where price reaches the reversal zone and can send one alert

Indicator v6 Support & resistance
Updated 7 days ago · Custom licence GitHub repository of Harmonic Signal Alerts

Risk Position Tool

by allanninal
1 stars

This indicator calculates position sizing and risk parameters directly on the price chart. Users set entry, stop loss, and take profit levels interactively or via inputs, and the script computes broker lot sizes based on specified account balance and risk pref

Indicator v6 Screeners & dashboardsSupport & resistance
Updated 7 days ago · Custom licence GitHub repository of Risk Position Tool
1 stars

This indicator marks thirteen classic candlestick patterns on the price chart, including engulfing, hammer and hanging man, inverted hammer and shooting star, doji, morning and evening star, harami, piercing line and dark cloud cover. Marks appear only on the

Indicator v6 Candlestick patterns
Updated 8 days ago · Custom licence GitHub repository of Candlestick Signal Alerts

Worldwide Events

by piecioshka
1 stars

Worldwide Events is an overlay indicator that marks historical world events on the price chart, from the 1930s to recent years. Events cover wars, financial crises, monetary policy decisions and trade measures. Each is shown at its date, with the date availabl

Indicator v6
Updated 11 days ago · Custom licence GitHub repository of Worldwide Events

This strategy trades the New York open on the price chart using an ICT workflow. It sets a higher-timeframe bias from an EMA, structure and session VWAP, requires SMT divergence against a correlated symbol, then waits for an inverse fair value gap and enters o

Strategy v6 SMC / ICT / price actionSessions & time
Updated 11 days ago · MIT GitHub repository of NY Open ICT: HTF Bias + SMT + IFVG Retrace

A Pine v6 day trading research strategy for crypto charts. It blends RSI, Fibonacci Bollinger Bands, trend and higher timeframe filters, pivot support and resistance zones, Ichimoku and pattern modules into a weighted score for entries. A session filter, auto-

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

DEPV2

by YuceSezar89
1 stars

DEPV2 is a multi-symbol indicator for cryptocurrency trading. It aggregates signals from trend, momentum, volatility, and volume methods across 20 crypto pairs. Users select confirmation modes including simultaneous, sequential, or automatic per symbol. The in

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

This strategy identifies an Opening Price Range during a specified time window and trades breakouts above or below the established range during the New York trading session. Entries can be filtered using optional RSI extremes and EMA trend direction, restricte

Strategy v6 BreakoutSessions & time
Updated 12 days ago · None stated GitHub repository of NQ NY Session OPR Breakout Strategy

AlphaTrend Scalping

by MuhammadMuhamid
1 stars

A strategy designed for a fifteen-minute chart that takes one trade per AlphaTrend buy signal. Entries need price above 15-minute and 1-hour moving averages, plus filters for sideways markets (stacked rising averages, ADX floor, breakout above recent highs). A

Strategy v6 TrendScalping
Updated 12 days ago · None stated GitHub repository of AlphaTrend Scalping

Calculates an Average True Range (ATR) trailing stop that trails price by a configurable distance multiplier. It draws the trailing stop line on the price chart and marks flip points when price crosses the line. The indicator allows confirmation of flips on ba

Indicator v6 TrendVolatility & bands
Updated 13 days ago · MPL-2.0 GitHub repository of Taught to Trade - ATR Trailing Stop with Flip Audit

CISD with Projections

by Just-beyond-z
1 stars

An ICT-style overlay that marks a change in state of delivery, drawing a line at the open of the opposing candles once price closes through it, in blue for bullish and red for bearish. The direction can be set to both, bullish only or bearish only, and the num

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 13 days ago · None stated GitHub repository of CISD with Projections

Session Sweep Model

by kxngHADES
1 stars

Detects liquidity sweeps of the Asian or London session range, followed by a reclaim and a break of structure, on the 5-minute chart. It plots entry, stop and take-profit levels with a reward-to-risk target, skips setups whose stop exceeds a multiple of ATR, a

Indicator v6 SMC / ICT / price actionSessions & time
Updated 13 days ago · Custom licence GitHub repository of Session Sweep Model

This indicator marks key reversal candles that print a new high or low versus the prior lookback window. A bullish signal needs a lower low, a close above the previous close, and a bullish candle; a bearish signal is the opposite. Double reversals also compare

Indicator v6 Candlestick patternsSupport & resistance
Updated 2 weeks ago · None stated GitHub repository of Key Reversals with 20-Bar High/Low Lines

This strategy demonstrates a decoupled architecture where external Python optimization feeds parameters into Pine Script through a formatted configuration payload. The script parses the payload to set the SMA length, ATR length, take profit percentage, and ATR

Strategy v6 TrendMoving averages
Updated 2 weeks ago · MIT GitHub repository of Off-Chain Python-Pine Architecture [The Quant Science]
1 stars

Visualises a 15-minute opening range breakout routine for the cash session open. It marks the first 15-minute range, waits for a candle close beyond it, then simulates one trade per day by default with the stop at the breakout candle extreme. Exits can trail s

Indicator v6 BreakoutSessions & time
Updated 2 weeks ago · None stated GitHub repository of Patrick 15m Opening Range
1 stars

A Pine v6 indicator that puts intraday reference points on the price chart. It draws Asia, London, New York AM and PM session boxes and kill zones, session highs and lows that extend until swept, period opens with previous highs and lows, fair value gaps, and

Indicator v6 SMC / ICT / price actionSessions & time Repaints
Updated 2 weeks ago · Custom licence GitHub repository of Arnoldd Key Levels, Gaps and Kill Zones

Trend Sniper Mini

by kasutu
1 stars

A multi-engine indicator that marks historical trade setups on the price chart. It combines trend entries filtered by a 200 EMA bias and higher timeframe, range breakouts from compressed ranges, and fades or reclaims after large news-style candles. Stops use A

Indicator v6 TrendBreakout Repaints
Updated 2 weeks ago · None stated GitHub repository of Trend Sniper Mini

GOD Conviction Engine

by Oluwacutyp
1 stars

A large all-in-one overlay aimed at gold and Bitcoin charts. It combines trend EMAs, an HMA baseline, an elastic EMA, order blocks, fair value gaps, breaker blocks, liquidity sweeps, an Asian range box, key levels, VWAP, market structure and several tables inc

Indicator v6 SMC / ICT / price actionTrend
Updated 2 weeks ago · Unlicense GitHub repository of GOD Conviction Engine

Key Levels + Multi-Period VWAP

by RealTrueReality
1 stars

A Pine v6 indicator that draws key reference levels on the price chart as lines with right-edge labels. Levels include period opens, previous highs, lows and midpoints for day, week, month and quarter, a Monday range, and daily, weekly and monthly anchored VWA

Indicator v6 Support & resistanceVolume Repaints
Updated 2 weeks ago · MPL-2.0 GitHub repository of Key Levels + Multi-Period VWAP

Awesome Oscillator

by AkashSasikumar47
1 stars

A Pine v6 indicator in a separate pane that plots the Awesome Oscillator as columns. It subtracts a 34-bar simple moving average of each bar's midpoint from a 5-bar one. Columns are green when the value is rising from the previous bar and dark red when it is n

Indicator v6 Oscillators & momentum
Updated 2 weeks ago · MIT GitHub repository of Awesome Oscillator

Aroon Oscillator

by AkashSasikumar47
1 stars

The Aroon Oscillator calculates the difference between the Aroon Up and Aroon Down indicators to measure trend strength and direction over a user-defined lookback length. Drawn in a separate pane below the price chart, it plots a single line oscillating betwee

Indicator v6 TrendOscillators & momentum
Updated 2 weeks ago · MIT GitHub repository of Aroon Oscillator

LASTRO Risk Overlay

by arthur1535
1 stars

A monthly macro monitor that pulls two FRED series, the Baa credit spread and the NFCI financial conditions index, and converts each into a rolling z-score. Each axis flips into a stress state above an entry threshold and back out below an exit threshold. The

Indicator v6 Volatility & bands Repaints
Updated 2 weeks ago · None stated GitHub repository of LASTRO Risk Overlay
1 stars

A prototype indicator that bins recent price interaction into a right-side profile of buy-side and sell-side bands drawn as boxes on the price chart. In Reaction mode it weights candle volume and body size over a lookback window; in Liquidity mode it follows u

Indicator v6 Support & resistanceVolume Repaints
Updated 3 weeks ago · None stated GitHub repository of Reaction Heatmap Prototype
1 stars

A test script that plots dozens of built-in Pine calculations in a separate pane, each on its own line, so a converter can compare its output against exported chart data. It covers moving averages, RSI, CCI, MFI, MACD, stochastic, ADX with directional lines, B

Indicator v6 Oscillators & momentumVolatility & bands
Updated 3 weeks ago · Apache-2.0 GitHub repository of AlphaResin Conformance 1

Swing Failure Pattern

by jericoquek
1 stars

This indicator marks swing failure patterns on the price chart: a wick takes out a standing structural high or low and a later 15-minute candle closes back inside. It then tracks a short-term and an intermediate-term market structure shift, and the intermediat

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 weeks ago · None stated GitHub repository of Swing Failure Pattern

And Detector

by moonyroy
1 stars

The indicator detects the three largest rises and three largest declines in a symbol's price over the last N years. It tracks price movements by identifying when price exceeds a percentage threshold T in the opposite direction from the current leg, then record

Indicator v6 TrendSupport & resistance
Updated 3 weeks ago · None stated GitHub repository of And Detector
1 stars

Unsupported Request is a minimal Pine Script indicator that calls the request.economic function to retrieve economic data, specifically fetching United States gross domestic product metrics. It then plots the resulting data series directly in a separate indica

Indicator v6
Updated 3 weeks ago · MIT GitHub repository of Unsupported Request

Smart Money Concepts Engine

by quantumalgo-official
1 stars

Smart Money Concepts Engine automatically identifies and plots key SMC price levels directly on the main price chart. It detects swing and internal market structure events such as breaks of structure and changes of character. The script highlights bullish and

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 weeks ago · MIT GitHub repository of Smart Money Concepts Engine

Adaptive Signals V17

by Matthew-Eucaristo
1 stars

A crypto futures signal indicator in a separate pane that scores setups and only flags those passing a validity gate. It has a trend pullback engine using limit-order style entries and a range engine that fades stretched moves back toward the mean. Filters inc

Indicator v6 TrendMean reversion
Updated 3 weeks ago · MIT GitHub repository of Adaptive Signals V17
1 stars

This indicator draws a developing current-day point of control, value area high, and value area low on the price chart for intraday timeframes. It builds an approximate volume profile by distributing each stored chart bar's volume across a configurable number

Indicator v6 VolumeSupport & resistance
Updated 3 weeks ago · MIT GitHub repository of [ad] Current Day POC / VAH / VAL

FVG Prob TW Strategy

by gplee789-afk
1 stars

This strategy trades Taiwan-stock fair value gaps on the price chart. It marks gaps that pass an ATR size and displacement filter, tracks inverse FVGs, internal order-block retests and sweeps, and scores enabled triggers with fixed weights. A signal confirms o

Strategy v6 SMC / ICT / price actionSessions & time
Updated 3 weeks ago · MPL-2.0 GitHub repository of FVG Prob TW Strategy
1 stars

A top-down order block indicator that reads market structure breaks on a 12-hour timeframe to set a directional bias, then looks for a lower-timeframe structure shift as the trigger. It draws order block and breaker zones, a 50 percent fib of the bias swing, s

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 weeks ago · MIT GitHub repository of Roman Trade Setup (H12 to H1)
1 stars

Opposing Tick Zones identifies supply and demand areas based on swing high and low bars using a configurable swing strength setting. The indicator marks the high of the lowest bar as demand and the low of the highest bar as supply. When price sits between both

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 4 weeks ago · None stated GitHub repository of Opposing Tick Zones

Gap and Go

by JACKZHOU0521
1 stars

This overlay indicator measures the opening gap between the session open and the prior daily close, then checks whether price continues to hold beyond that close. After a user-defined opening window in minutes, it marks an up signal when an up gap holds and th

Indicator v6 BreakoutSupport & resistance
Updated 5 weeks ago · None stated GitHub repository of Gap and Go

ORB + ICT Backtest Strategy v1

by mccallister-dev
1 stars

A Strategy Tester script for opening range breakouts during Asian, London or New York sessions. The range length is selectable, and entries use a close breakout, a break with retest, or a fuller sequence including a liquidity sweep and reclaim. Direction, bias

Strategy v6 BreakoutSessions & time
Updated 5 weeks ago · None stated GitHub repository of ORB + ICT Backtest Strategy v1
1 stars

This indicator overlays an EMA stack, Supertrend, and ATR range bands on the price chart and scores long or short confluence from trend, WaveTrend, StochRSI, confirmed divergence, and volume. Labels mark when the score meets the long or short threshold, with A

Indicator v6 TrendOscillators & momentum
Updated 5 weeks ago · MIT GitHub repository of Momentum Confluence Suite [MCS]

Kernal Cipher

by kdricha0602
1 stars

Kernal Cipher is a custom TradingView Pine Script v6 indicator that overlays multiple technical components on the price chart for discretionary momentum trading. It calculates trend using EMA fast, slow, and long lengths with slope filters, regime detection vi

Indicator v6 TrendOscillators & momentum
Updated 5 weeks ago · MIT GitHub repository of Kernal Cipher
1 stars

Marks a 15-minute opening range window on the chart and looks for a manipulation candle whose range is at least a set percentage of the daily ATR. When one appears, it draws position-tool style boxes showing a pending entry, a stop placed beyond the wick plus

Indicator v6 Sessions & timeBreakout
Updated 5 weeks ago · None stated GitHub repository of ORB Strategy Solid Position Boxes
1 stars

This indicator marks fair value gaps and new day and new week opening gaps on the price chart. Inside a New York session window it looks for the first presented gap, optionally requiring a displacement candle, and can also draw later gaps. Boxes expire after u

Indicator v6 SMC / ICT / price actionSessions & time
Updated 5 weeks ago · MIT GitHub repository of Bullseye FVG & Opening Gaps

A Pine v6 overlay that maps smart money concepts on the price chart. It detects internal and external swing structure with break of structure and change of character, equal highs and lows with sweep detection, order blocks, fair value gaps, imbalances and gaps

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 5 weeks ago · None stated GitHub repository of DC ALPHA Market Cognition Engine

Investment Master Indicator

by diwakarsingh01-tech
1 stars

A multi-module overlay aimed at stock investing, with a master toggle panel for each part. Modules include a percentage envelope, 52-week high and low, Bollinger Bands, Knoxville divergence, a set of four SMA lines, automatically merged support and resistance

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

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