Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 50)

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

1 stars

This overlay indicator requests footprint volume rows for the current bar and reads the point of control, value-area high, and value-area low. It draws a purple box over the point-of-control price range when the mode is point of control or both, and on the las

Indicator v6 VolumeSupport & resistance
Updated 2 months ago · None stated GitHub repository of TeleNexus Footprint Explorer v6
1 stars

This indicator extends the streamlined Quantum Flow gold build with a confirmation layer between a pending setup and a validated one. While a setup is pending it scores confirmation events such as volume spikes, delta flips, wick rejection, micro breaks of str

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of Quantum Flow v21 AI Approval Engine
1 stars

This TradingView strategy detects directional trades on the price chart using multiple entry triggers including TMA-Crossing, Breakout, and VWAP-Crossing with price types like Close or Open. It applies optional logical combinations of triggers and enforces tim

Strategy v6 TrendBreakout
Updated 4 months ago · None stated GitHub repository of STT Trade Plan Directional

Momentum Swing

by rubbermetal
1 stars

Momentum Swing is an indicator, not a strategy, that marks Long and Short signals when a MACD cross coincides with an oversold or overbought RSI reading and ADX above 25. It plots fast and slow EMAs, colors bars when volume exceeds a multiple of its 50-bar ave

Indicator v6 Oscillators & momentumTrend
Updated 4 months ago · MPL-2.0 GitHub repository of Momentum Swing

MTF Trend Alignment Strategy

by shubhamtaywade82
1 stars

A strategy that goes long when price is above a moving average on all four timeframes and short when it is below on all four. The defaults are 15 minutes, 1 hour, 4 hours and 1 day, using an SMA, EMA or WMA. An option closes the position as soon as the alignme

Strategy v6 TrendMoving averages Archived
Updated 5 months ago · None stated GitHub repository of MTF Trend Alignment Strategy

Crypto AMT v6.1 Risk

by latifangren
1 stars

The Crypto AMT Toolkit v6.1 - Conservative Risk is a Pine Script indicator that overlays Volume Profile with customizable value area boxes and right-side visuals on the price chart, along with VWAP bands, EMA trend filters, higher-timeframe bias, lower-timefra

Indicator v6 VolumeSupport & resistance
Updated 5 months ago · MIT GitHub repository of Crypto AMT v6.1 Risk
1 stars

This compact 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 correcti

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

Price Action Toolkit Lite

by Focal-QuantAI
1 stars

An indicator on the price chart that bundles several price action overlays. It can show zigzag market structure, liquidity sweeps over a set length, recent order blocks and fair value gaps, with limits on how many of each remain on screen. It also detects tren

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of Price Action Toolkit Lite
1 stars

A separate-pane indicator that ranks four user-chosen ETFs, preloaded with gold, Nasdaq, ChiNext and Nikkei funds, by momentum over a set number of weeks, and tracks a rotation into the top few. Settings choose the weekday that ends each week, rebalance at the

Indicator v6 Oscillators & momentumScreeners & dashboards
Updated 7 months ago · None stated GitHub repository of ETF Rotation (Weekly Momentum)

Trend Surfer

by gabriel-klettur
1 stars

Trend Surfer is a multi-timeframe trend-following indicator overlay. It calculates short and long Exponential Moving Averages from a configurable higher timeframe to determine the main market trend direction. The indicator highlights current-interval RSI overb

Indicator v6 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of Trend Surfer

LeBeau

by turnupdigital
1 stars

LeBeau is a trend-following overlay indicator based on Charles Le Beau's Chandelier Exit strategy. It calculates trailing stop-loss levels using the Average True Range (ATR) applied to standard price data or smoothed Heikin Ashi bars. When the price crosses ab

Indicator v6 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of LeBeau

TeeLek KAMA

by theteelek
1 stars

An overlay indicator that computes Kaufman's Adaptive Moving Average using a ten-bar efficiency ratio, then requests it from daily, 12-hour, 6-hour, 4-hour, 2-hour and 1-hour data and smooths each with a short EMA. The lines are coloured by direction in green

Indicator v6 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of TeeLek KAMA

TechnicalRating

by ivansoft
1 stars

TechnicalRating is a Pine Script library that calculates composite technical rating scores ranging from -1 to +1. It aggregates market conditions across 26 technical indicators, including moving averages, RSI, Stochastic, MACD, Ichimoku, and DMI, into overall,

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

SuperTrend

by everget
947 stars

SuperTrend is a trend-following indicator that detects trend direction by computing ATR-based stop levels. It plots long and short stop lines on the price chart and fills the region between the mid-price and the active stop line to show the current trend state

Indicator v6 TrendVolatility & bands
Updated 12 days ago · GPL-3.0 GitHub repository of SuperTrend

ATR Bands (ATRBANDS)

by mihakralj
99 stars

This indicator calculates volatility envelope bands around a moving average center line on the price chart. It computes the middle line using a rolling moving average of the input source, while band width is derived from an Average True Range calculated via RM

Indicator v6 Volatility & bandsMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of ATR Bands (ATRBANDS)

PositionSizing

by iamrichardD
57 stars

This Pine Script v6 library calculates trade position sizes and provides risk management functions for external scripts. It computes position sizes from account equity, percentage risk, and stop-loss distance, and offers dynamic sizing adjustments based on vol

Library v6
Updated 1 year ago · Apache-2.0 GitHub repository of PositionSizing

RSI

by dcaoyuan
55 stars

This indicator calculates the Relative Strength Index of the closing price using a fixed length of 14. It plots the RSI line in a separate pane and draws dashed horizontal levels at 70 and 30 to mark overbought and oversold zones. There are no user inputs, so

Indicator v6 Oscillators & momentum
Updated 6 months ago · Apache-2.0 GitHub repository of RSI

This indicator analyzes price action using Smart Money Concepts (SMC) to detect market structure breaks (BOS) and changes of character (CHoCH) based on customizable fractal lengths. It identifies bullish and bearish Fair Value Gaps (FVG) along with Consequent

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · MPL-2.0 GitHub repository of Market Structure CHoCH/BOS LEO - Ahmed Edition

Pivot Order Blocks - Lines

by TamaraKGreen
47 stars

Pivot Order Blocks - Lines identifies bullish and bearish order block levels using pivot high and pivot low detection on the price chart. Users can base calculations on candle wicks or bodies and customize left and right lookback lengths for pivot points. The

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 8 weeks ago · None stated GitHub repository of Pivot Order Blocks - Lines
47 stars

The Chande Forecast Oscillator measures the percentage difference between the actual price and its linear regression forecast. It calculates an incremental linear regression slope and intercept over a specified period to estimate expected price levels. The ind

Indicator v6 Oscillators & momentumTrend
Updated 8 months ago · MIT GitHub repository of Chande Forecast Oscillator

Zen Toolkit ETH

by Zen-Tim
29 stars

This indicator plots intraday reference levels, projection targets, and opening range boundaries tailored for continuous electronic trading session instruments such as gold. It calculates Average Bar Range targets in bullish and bearish multiples, previous day

Indicator v6 Support & resistanceSessions & time
Updated 2 weeks ago · MIT GitHub repository of Zen Toolkit ETH

MathX

by heyphat
26 stars

MathX is a Pine Script v6 library that exports a z-score function. It measures how far a source series sits from its simple moving average, divided by the standard deviation over the same length. A private mean helper wraps the built-in simple moving average a

Library v6
Updated 2 months ago · AGPL-3.0 GitHub repository of MathX
16 stars

This strategy implements the classic Turtle System 1 fast breakout model on the price chart. It calculates 20-bar Donchian channel highs and lows for trade entries and 10-bar bands for exits, utilizing ATR for position sizing and trailing stops. The strategy e

Strategy v6 BreakoutTrend
Updated 12 months ago · None stated GitHub repository of Seykota Alt 1: Fast Breakout (S1)

Trend Compass Daily

by chris-c-thomas
14 stars

Trend Compass Daily is a chart overlay indicator designed to evaluate market trend structure, momentum, and volatility. It calculates a multi-EMA ribbon with an anchor level, higher-timeframe reference lines, RSI and MACD divergences, OBV volume context, and A

Indicator v6 TrendMoving averages
Updated 6 months ago · MIT GitHub repository of Trend Compass Daily
9 stars

CCI Advanced is a versatile momentum oscillator displayed in a separate pane. It calculates a smoothed Commodity Channel Index (CCI) paired with a signal line, offering multiple smoothing algorithms like EMA, SuperSmoother, KAMA, and JMA. Traders can select be

Indicator v6 Oscillators & momentum
Updated 3 days ago · MIT GitHub repository of CCI Advanced [WavesUnchained]
9 stars

Peak Trading Activity Graphs displays historical market activity across cyclical timeframes directly on the main chart using an on-screen dashboard table. It evaluates volume or volatility across selected periods, including hours of the day, days of the week,

Indicator v6 VolumeVolatility & bands
Updated 4 months ago · MIT GitHub repository of Peak Trading Activity Graphs [LuxAlgo]

Static Lines

by lunarticktrading
7 stars

Static Lines calculates and draws key daily price levels directly on the main price chart. It plots horizontal lines for the previous daily open, high, low, and close, as well as the current daily open. Traders can customize individual line colors, toggle spec

Indicator v6 Support & resistanceSessions & time Repaints
Updated 2 weeks ago · None stated GitHub repository of Static Lines

This indicator calculates a price efficiency ratio by dividing the net close change over a lookback by the sum of absolute bar-to-bar moves, then scales the result from 0 to 100. An optional volume weight and a simple moving average can smooth or reweight the

Indicator v6 Oscillators & momentumTrend
Updated 3 months ago · None stated GitHub repository of Price Efficiency Ratio (PER) [SharpStrat]
7 stars

This indicator calculates the Relative Strength Index, the Money Flow Index, and a smoothed moving average of the RSI line. It plots these oscillators in a separate pane alongside upper and lower threshold bands. The script identifies momentum shifts by detect

Indicator v6 Oscillators & momentumVolume
Updated 5 months ago · None stated GitHub repository of RSI + MFI + TMA + Divergencias

This indicator detects bullish and bearish fair value gaps and liquidity imbalances on the chart, with optional higher-timeframe tracking. It plots imbalance zones directly on the price chart using colored boxes and tracks zone age, fill percentage, and breake

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · MIT GitHub repository of Capital41 Liquidity Void + Imbalance Map

Shved Supply and Demand

by alboogycOdR
6 stars

This indicator draws support and resistance supply and demand zones on the price chart. It classifies zones as weak, untested, verified, proven, or broken, and can merge overlapping zones, extend them forward, and label them with retest counts. The ATR factor

Indicator v6 Support & resistance
Updated 7 months ago · None stated GitHub repository of Shved Supply and Demand

TheStratGrammar

by 345-strategies
5 stars

This library calculates TheStrat price action states, classifying candles by directional break structure, close relative to open, and rejected break conditions. It draws demo bar labels directly on the price chart using standard or glyph notation. User inputs

Library v6 Repaints
Updated 4 days ago · MPL-2.0 GitHub repository of TheStratGrammar
5 stars

This indicator calculates and plots a customizable weighted moving average directly on the price chart. Users can configure the anchor period across fixed lengths, daily sessions, cumulative bars, or custom session intervals. Weighting options allow adjustment

Indicator v6 Moving averagesTrend
Updated 8 months ago · None stated GitHub repository of Universal Moving Average

Triangular Moving Average

by SiegerTerpstra
5 stars

The Triangular Moving Average (TMA) indicator calculates a double-smoothed moving average by applying a simple moving average to an existing simple moving average. It plots the resulting line directly on the price chart with dynamic coloring to indicate whethe

Indicator v6 Moving averagesTrend
Updated 9 months ago · None stated GitHub repository of Triangular Moving Average

Signal Engine ANTIGRAVITY

by eltonaguiar
4 stars

This indicator generates buy and sell signals on the price chart by combining RSI, MACD, Bollinger Bands, EMA crossovers, Stochastic, ADX, VWAP, volume confirmation and momentum oscillators. A non-repainting mode option is available along with ATR-based TP and

Indicator v6 Oscillators & momentumMoving averages
Updated 2 days ago · None stated GitHub repository of Signal Engine ANTIGRAVITY
4 stars

Relative Structure Strength Index is an oscillator indicator that plots in a separate pane. It calculates the Relative Strength Index (RSI) using bar structure power derived from an external library, then smooths the resulting values with a customizable moving

Indicator v6 Oscillators & momentumMoving averages
Updated 2 days ago · None stated GitHub repository of Relative Structure Strength Index

EMA Cross [trugurpala]

by trugurpala
4 stars

This indicator calculates fast and slow exponential moving averages (EMAs) and plots them directly on the price chart. It detects bullish crossovers and bearish crossunders, marking them with colored triangles above or below price bars. The background dynamica

Indicator v6 Moving averagesTrend Repaints
Updated 2 months ago · MIT GitHub repository of EMA Cross [trugurpala]

This indicator calculates the Moving Average Convergence Divergence (MACD) line, signal line, and histogram in a separate pane. It allows users to select from five moving average types (SMA, EMA, WMA, VWMA, or RMA) for the fast, slow, and signal calculations.

Indicator v6 Oscillators & momentumMoving averages
Updated 12 days ago · MIT GitHub repository of MACD = Moving Average Convergence Divergence

RSI

by TamTH-Dev
2 stars

This indicator calculates a Percentage Price Oscillator using fast and slow exponential moving averages to evaluate price momentum in a separate pane. It identifies dynamic pivot highs and lows along the oscillator line and constructs a zigzag array to determi

Indicator v6 Oscillators & momentumMoving averages
Updated 6 weeks ago · None stated GitHub repository of RSI

This indicator identifies ICT trading setups by detecting Order Blocks, Fair Value Gaps, and Change in State of Delivery levels directly on the price chart. It highlights supply and demand zones alongside specific time windows such as the New York AM and PM se

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of One Trading Setup ICT [TradingFinder] Sweep Session FVG
2 stars

This indicator plots volume as a percentage of a simple or exponential moving average of volume. It shows a column only when volume is above that average and at or above a minimum percentage; other bars stay hidden. Users set the average length and type, the d

Indicator v6 Volume
Updated 3 months ago · Apache-2.0 GitHub repository of Volume Percent of MA

Lakshmi Zones v4

by voletiramu
2 stars

Lakshmi Zones v4 is an overlay indicator that calculates volume profile high volume nodes and fair value gaps on 4H data to plot demand and supply zones on the price chart. It draws a Magic Line based on ATR(14) multiplied by the golden ratio and anchored to t

Indicator v6 VolumeSupport & resistance
Updated 6 months ago · None stated GitHub repository of Lakshmi Zones v4
2 stars

This indicator plots drawdown distribution statistics in a separate pane. It measures price drawdowns over a chosen lookback, smooths them, and overlays percentile bands and standard deviation bands. Optional calculations add Sharpe, Sortino and Calmar style r

Indicator v6 Volatility & bandsScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Drawdown Distribution Analysis (DDA)

Bollinger Band Width (BBW)

by mushroom-men-Trading
2 stars

The Bollinger Band Width indicator calculates the width between the upper and lower Bollinger Bands based on a chosen source series, lookback period, and standard deviation multiplier. It plots this BBW value in a separate pane to visualize volatility changes

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Bollinger Band Width (BBW)

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