Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 26)

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

The Valuator

by tthanhvu002sgu
1 stars

A long-term valuation oscillator in a separate pane. It fits a log-price regression over a lookback, takes the deviation of price from that fair-value line, and converts it to a Z-score using EMA-based mean and deviation. Zones labelled gift, cheap, fair, expe

Indicator v6 Mean reversionScreeners & dashboards
Updated 3 months ago · None stated GitHub repository of The Valuator
1 stars

This indicator is a position sizing calculator that shows its results in a table on the price chart. From an account size, risk percentage, leverage and fee estimate, plus a long or short direction, it works out position size, stop distance and a target at a c

Indicator v6
Updated 3 months ago · None stated GitHub repository of Fusion Cipher Risk Calculator

Strategy Template

by maxenko
1 stars

A Pine v6 starter template for a strategy rather than a ready-made system. Its setup uses percent-of-equity sizing, a commission and slippage assumption, no pyramiding and orders processed on bar close. Inputs cover fast and slow lengths, a risk percent per tr

Strategy v6
Updated 3 months ago · MIT GitHub repository of Strategy Template

This strategy calculates multiple technical indicators including EMAs, SuperTrend, ADX, RSI, MACD, Stochastic, and volume MA to generate entry signals for Indonesian stocks. It supports three entry trigger modes: Composite Score, Pullback, and Breakout, with f

Strategy v6 TrendOscillators & momentum
Updated 3 months ago · MIT GitHub repository of Saham: Papan Gerak Strategy By. Akhmfz

RSI

by ForexCodes-hq
1 stars

This Pine Script v6 indicator calculates and plots the standard Relative Strength Index (RSI) oscillator in a separate chart pane. It computes momentum using a configurable input source and length parameter. The indicator plots the resulting RSI value alongsid

Indicator v6 Oscillators & momentum
Updated 3 months ago · MIT GitHub repository of RSI
1 stars

This strategy plots an anchored volume-weighted average price and two standard-deviation bands on the price chart. It buys dips below the inner band when a short RSI is oversold and an optional EMA trend filter agrees, and it can sell rallies above the inner b

Strategy v6 Mean reversionMoving averages
Updated 3 months ago · MIT GitHub repository of VWAP Reversion Bands [QuantForge]

GEKO OpenRange

by grzegorzkowalskigk-jpg
1 stars

This indicator for index futures such as ES and NQ plots the regular-session opening range as a box with high and low lines. It offers two modes: a classic opening range breakout and a Noise Area model with volatility-based boundaries from the open and a VWAP

Indicator v6 Sessions & timeBreakout
Updated 3 months ago · Custom licence GitHub repository of GEKO OpenRange

Nested FVG Pro

by abhinaynatraj
1 stars

An indicator for a 1-minute chart that finds 5-minute fair value gaps and looks for a smaller 1-minute gap forming inside them. A nested gap triggers a bullish or bearish label and a trade plan with entry, stop, partial target, main target and extended target

Indicator v6 SMC / ICT / price actionScalping
Updated 3 months ago · None stated GitHub repository of Nested FVG Pro
1 stars

This strategy applies Gann swing lane signals to generate entries in micro futures instruments. It enforces compounding risk controls that scale take-profit targets upward after wins and downward after losses using configurable ratios. Additional risk manageme

Strategy v6 TrendSessions & time
Updated 4 months ago · None stated GitHub repository of Futures Compounding Machine
1 stars

A Pine v6 strategy variant for 15-minute Bitcoin perpetual charts that trades RSI momentum breakouts with no pyramiding. Entries need RSI to pass set levels plus a gap, with candle color, EMA 200, ATR range and body-size filters, and an optional pullback re-en

Strategy v6 Oscillators & momentumTrend
Updated 4 months ago · None stated GitHub repository of BTC RSI Momentum v22
1 stars

This indicator identifies Smart Money Concepts market structure directly on the price chart. It detects swing points to label higher highs, higher lows, lower lows, and lower highs based on pivot or session seed calculations. The script marks Break of Structur

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

A strategy version of an ICT optimal trade entry indicator. It finds a swing leg, applies a confluence score from structure shift, liquidity sweep, fair value gap, killzone and higher-timeframe bias, then places a limit entry inside the OTE zone, 0.705 by defa

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · None stated GitHub repository of OTE Strategy Confluence

ManipulationX + Liquidity Sentiment is an SMC chart overlay indicator for tracking liquidity, session ranges, and market structure. It detects multi-timeframe Fair Value Gaps (15m, 1h, 4h), inverted FVGs, liquidity sweeps, and Draw on Liquidity swing levels. I

Indicator v6 SMC / ICT / price actionSessions & time
Updated 4 months ago · None stated GitHub repository of ManipulationX + Liquidity Sentiment

Macros, Sessions, and Quarters

by riegodavid-git
1 stars

An indicator that draws time-based boxes for intraday timing. Macro boxes cover a set number of minutes before and after each hour and follow the high and low of that window. A session ribbon shows Asia, London and New York blocks using Singapore time, and qua

Indicator v6 Sessions & time
Updated 4 months ago · None stated GitHub repository of Macros, Sessions, and Quarters

Unified Trade Strategy

by ashishgkwd
1 stars

Unified Trade Strategy is the strategy version of a combined signal. It goes long when price breaks above a Nadaraya-Watson envelope band, the fast EMA is above the slow EMA, the trend channel slopes up and RSI is in a bullish rising band; shorts mirror this.

Strategy v6 TrendOscillators & momentum
Updated 4 months ago · None stated GitHub repository of Unified Trade Strategy

FracDiff Z NQ 5m Filter Lab

by qmqvt44stq-del
1 stars

A fractional differencing Z-score oscillator in a separate pane, set up for testing optional entry filters on five-minute Nasdaq futures charts. Signal modes include the base snapback, a volume-exhaustion mode, a conservative mode and an early mode. Filters co

Indicator v6 Mean reversionOscillators & momentum
Updated 4 months ago · None stated GitHub repository of FracDiff Z NQ 5m Filter Lab
1 stars

This strategy identifies Minervini Volume Confirmation Patterns fused with Smart Money Concepts for Bursa Malaysia stocks. It plots entry and exit signals with trend lines, boxes and labels directly on the price chart. The strategy enters long positions when v

Strategy v6 SMC / ICT / price actionVolatility & bands
Updated 4 months ago · None stated GitHub repository of Minervini VCP + SmartMCDX KLSE v8
1 stars

A separate-pane oscillator based on the centre of gravity calculation with an adjustable length, an optional RMA smoothing, and a trigger line made with an ALMA filter. It also computes a linear regression line, previous high and low levels of the oscillator a

Indicator v6 Oscillators & momentumDivergence
Updated 4 months ago · MPL-2.0 GitHub repository of Center Of Gravity Oscillator

This strategy trades long only on the price chart. It enters when price pulls back near the EMA20 and closes back above it, while the MACD line and signal stay above zero and the histogram is not falling. A longer trend EMA must sit below price and the EMA20,

Strategy v6 TrendOscillators & momentum
Updated 4 months ago · MIT GitHub repository of Doc01 MACD Zero Pullback EMA20 - Project Adapted
1 stars

Combines a volume check, a consolidation zone detector and Ichimoku lines on the price chart. Relative volume against a 20-bar average flags high and low volume, bar range and close position describe the candle, and a lookback range under a maximum percentage

Indicator v6 VolumeTrend
Updated 4 months ago · None stated GitHub repository of Wyckoff + Ichimoku IDX Analyzer
1 stars

A strategy that looks for mean-reversion entries when volume shows exhaustion, using wave comparison, volume rate of change or z-score detection plus several confluence checks, including a higher-timeframe volume ROC. It is designed for Renko charts, with Heik

Strategy v6 Mean reversionVolume Repaints
Updated 5 months ago · None stated GitHub repository of Volume Exhaustion Strategy (VES)

BB Squeeze Breakout

by shubhamtaywade82
1 stars

A strategy that trades the release of a Bollinger Band and Keltner Channel squeeze. When the bands move back outside the channel, it buys if momentum, measured against the Donchian midline, is positive and sells short if it is negative. An optional ATR-based s

Strategy v6 Volatility & bandsBreakout Archived
Updated 5 months ago · None stated GitHub repository of BB Squeeze Breakout
1 stars

The Institutional Levels Dashboard v7 indicator plots multi-timeframe key levels on the price chart including previous day, week, month and quarter highs and lows. It displays labeled lines for these levels plus round number grids, previous same-day high and l

Indicator v6 Support & resistanceScreeners & dashboards Repaints
Updated 5 months ago · Custom licence GitHub repository of Institutional Levels Dashboard v7
1 stars

An overlay indicator that follows the Asia, London and New York sessions in a chosen timezone, drawing session highs, lows and opening ranges. It marks sweeps and reclaims of earlier session levels, works out a session bias and lists it on a dashboard whose co

Indicator v6 Sessions & timeSupport & resistance
Updated 5 months ago · MIT GitHub repository of Crypto AMT Session Bias v2 Companion

Forex EMA Trend with ATR Risk

by PETERSAMUELOPS12
1 stars

A forex strategy that follows a fast and slow EMA crossover, filtered by a 200-period EMA so longs trade only above it and shorts only below. An RSI filter blocks longs when overbought and shorts when oversold, and a session filter limits trading to a chosen w

Strategy v6 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of Forex EMA Trend with ATR Risk

BVortex SP500 4H

by Alberto082544
1 stars

BVortex SP500 4H is a momentum-based trend strategy designed for 4-hour charts. It calculates a scaled Vortex Indicator to detect extreme overbought and oversold zones. Long or short entry signals trigger when exiting these extreme levels with a confirming can

Strategy v6 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of BVortex SP500 4H

This indicator draws horizontal lines and labels on the price chart for pre-market, prior-day, current-day, after-hours, prior-week and current-week highs, lows, opens and closes. Each level has its own switch, and a separate set of switches controls which pri

Indicator v6 Support & resistanceSessions & time Repaints
Updated 6 months ago · None stated GitHub repository of Price Levels Prior Current Day and Week
1 stars

A strategy with BTC, gold and custom presets that enters in the direction of the trend when a strong candle breaks the latest swing high or low. Filters include a higher-timeframe trend check, a volume surge, body and range thresholds, a prior consolidation, a

Strategy v6 BreakoutTrend
Updated 6 months ago · None stated GitHub repository of PA Trend Breakout Strategy

AlgoBot GC Mean-Reversion Strategy

by ghostnathan30-ops
1 stars

A gold futures strategy meant for the micro contract on the 30-minute chart. It records the first New York hour range from 9:30 to 10:30, then fades the first breakout between 10:30 and 13:00, taking the opposite direction of the break. ATR-based stop and targ

Strategy v6 Mean reversionSessions & time
Updated 6 months ago · None stated GitHub repository of AlgoBot GC Mean-Reversion Strategy

Algo3.0

by dtheran1
1 stars

A combined overlay for the price chart that joins an ATR Trend module with a smart money concepts module. The trend line is built from an ATR band with ten smoothing types, a fast trend, an optional smoothed range channel and buy and sell markers on trend flip

Indicator v6 TrendSMC / ICT / price action Repaints
Updated 6 months ago · None stated GitHub repository of Algo3.0
1 stars

This indicator labels Elliott Wave counts on the price chart. It runs a zig-zag at several depths, chooses the depth that gives the best fit, and applies Elliott Wave rules, with a strict mode that forces an A-B-C count when the rules break. A correction mode

Indicator v6 Support & resistance Repaints
Updated 6 months ago · None stated GitHub repository of Elliott Wave Predictor 2026

Elliott Wave Advanced v3

by Focal-QuantAI
1 stars

An indicator on the price chart that labels Elliott Wave structures from swing points. Primary and optional sub-wave swings are detected with length and minimum percentage move settings, then labelled as impulse waves 1 to 5 and corrective A-B-C patterns, with

Indicator v6 Support & resistanceTrend
Updated 6 months ago · None stated GitHub repository of Elliott Wave Advanced v3
1 stars

This indicator calculates the percentile rank of the current daily close price compared to the prior windowDays daily closes for Bitcoin. It plots the resulting 0-100 value in a separate pane. Users adjust the window length with the windowDays input ranging fr

Indicator v6 Support & resistance
Updated 7 months ago · None stated GitHub repository of BTC Daily Percentile

Crypto Harami Pattern Detector

by gabriel-klettur
1 stars

This indicator detects bullish and bearish harami candle patterns and plots them on the price chart. It compares three bars: a prior opposite candle, a smaller middle candle, and a confirming candle in the new direction. Green upward triangles mark bullish set

Indicator v6 Candlestick patternsScreeners & dashboards Repaints
Updated 7 months ago · None stated GitHub repository of Crypto Harami Pattern Detector

A strategy variant, described by its file name as optimized for long trades only, that sends orders to MetaTrader through a connector service via alert messages. Inputs cover symbol prefix, suffix and mapping, lot size, a magic number, a pip multiplier and a b

Strategy v6 Breakout
Updated 7 months ago · None stated GitHub repository of Energy Block V11 Auto Strategy Long Only

BTC ATH Golden Cycle

by ymlee1104
1 stars

This strategy overlays Bitcoin cycle timing, an all-time-high rise and drop model, and optional chart studies on the price chart. It sizes positions as a percentage of equity and allows up to five stacked entries in the same direction. Users can show an EMA ra

Strategy v6 TrendMoving averages Repaints
Updated 7 months ago · None stated GitHub repository of BTC ATH Golden Cycle
1 stars

A single indicator that combines two systems and enables each only on its own timeframe. On a fifteen-minute chart it runs a volatility squeeze breakout using an ATR percentile and a regime filter. On a four-hour chart it runs a VWAP mean reversion with standa

Indicator v6 BreakoutMean reversion
Updated 7 months ago · None stated GitHub repository of V19 (15M) + V21 (4H) Hybrid

Supply & Demand Zones v6

by nexobanks-prep
1 stars

A Pine v6 rewrite of a supply and demand zone indicator, drawn on the price chart. It classifies candles as impulse or base using ATR multiples, then marks a zone when one or more base candles sit between two impulse candles. The direction of the two impulses

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of Supply & Demand Zones v6

VSA Smart Signals

by abhidp
1 stars

A price-chart indicator for volume spread analysis that marks No Demand and No Supply bars. A signal needs the current volume to be lower than recent bars, by an all-lower or average-lower rule, and optionally a rejection wick of a minimum ratio. Further filte

Indicator v6 Volume
Updated 7 months ago · None stated GitHub repository of VSA Smart Signals
1 stars

This strategy identifies Initial Balance periods on NQ and ES futures charts using user-defined start and end hours in Eastern Time. It classifies days as narrow or wide based on average range lookback and skips narrow or trending days per settings. Entries tr

Strategy v6 Mean reversionSupport & resistance
Updated 7 months ago · MIT GitHub repository of IB Mean Reversion Fade
1 stars

A strategy that trades MACD line and signal line crossovers within a chosen date range and compares three position sizing methods: a fixed dollar risk, a fixed percentage of equity risk, or a fixed quantity. Stop loss and take profit distances are set in ticks

Strategy v6 Oscillators & momentum
Updated 9 months ago · None stated GitHub repository of MACD Money Management Strategy
1 stars

A long-only strategy generated from the TrendLab research project, drawn on the price chart. It calculates the Parabolic SAR with acceleration start 0.05, step 0.01 and maximum 0.33. It buys when the close crosses above the SAR and closes the position when the

Strategy v6 Trend
Updated 9 months ago · MIT GitHub repository of Parabolic SAR 0.05/0.01/0.33

Draw on Liquidity

by Ahmed1926
1 stars

An overlay indicator that draws liquidity levels at pivot highs and lows, filtered by volume. A level appears when the pivot bar's volume exceeds a multiple of its moving average. High and low levels have separate colours, and a display mode shows either all h

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 9 months ago · None stated GitHub repository of Draw on Liquidity

TrendHorizon Suite

by Corbanistan
1 stars

This indicator combines three trend tools on the price chart. Smart signals colour candles and place labels by trend direction, with a time horizon setting from fast to slow and an option to show only strong signals. A fair value trail draws an ATR-based cloud

Indicator v6 TrendVolatility & bands
Updated 9 months ago · MPL-2.0 GitHub repository of TrendHorizon Suite
1 stars

A chart-overlay indicator for lower timeframes that draws a fast ATR trailing stop and marks buy and sell triangles when price breaks it, with a volatility sensitivity filter. A configurable dashboard reports market state using the Choppiness Index, RSI above

Indicator v6 Volatility & bandsScalping
Updated 9 months ago · None stated GitHub repository of Gemini Scalping Dashboard

SFA Impulse Origin v1

by genesisgrubio39
1 stars

This library from the SFA framework detects structural flow points using break of structure (BOS) and change of character (CHOCH) events. It calculates impulse origins by comparing close prices against ATR-based high and low extremes, filtered by volume percen

Library v6 SMC / ICT / price actionTrend
Updated 10 months ago · None stated GitHub repository of SFA Impulse Origin v1

CodonTimeFilter

by codon-pro
1 stars

This Pine Script v6 utility library provides a reusable function to filter backtest date ranges. It evaluates whether the current bar timestamp falls between a specified start time and end time, returning a boolean value. Although configured as an overlay on t

Library v6
Updated 10 months ago · MIT GitHub repository of CodonTimeFilter

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