Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 91)

Open-source Pine Script indicators that draw on your TradingView chart or in their own pane. Copy one and paste it into the Pine Editor.

Pine scripts7,612
Code shown here3,783open licence
Updated in a year5,239
No repaint flag6,673

Indicators: All

Coin to CNY

by zhuzp98
1 stars

The script converts cryptocurrency prices to Chinese Yuan (CNY) by multiplying the open, high, low, and close prices of the selected coin with the corresponding USDCNY exchange rates. It plots candlestick data in a separate pane for the translated prices. User

Indicator v5 Candlestick patterns
Updated 1 year ago · None stated GitHub repository of Coin to CNY

Tuples

by fiji-solutions
1 stars

This Pine Script indicator demonstrates the use of tuples in Pine Script v5. It defines a function that generates a tuple containing the values 1, 2, and 3. The script then accesses the elements of the tuple and plots the first value on the chart. Additionally

Indicator v5 Oscillators & momentum
Updated 2 years ago · None stated GitHub repository of Tuples

KST Step Trend

by amico1234
1 stars

This indicator builds a Know Sure Thing oscillator from four rate-of-change readings of close, each smoothed with a custom EMA and combined with weights of one through four. It then draws a step line in a separate pane that updates only when the oscillator mov

Indicator v4 Oscillators & momentumTrend
Updated 2 years ago · None stated GitHub repository of KST Step Trend
1 stars

A Pine v4 oscillator in a separate pane based on the Coppock curve. It sums two rate-of-change values, smooths the result with a Hull moving average, then draws a smoothed line coloured green or red and filled as an area. A zero line and a 21-bar average of th

Indicator v4 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of QS Advanced Coppock Curve

MTB_10

by JohnsonHsiao
1 stars

This indicator calculates multi-layered Bollinger Bands based on a simple moving average baseline and standard deviation offsets. It projects 15 upper bands and 15 lower bands spaced at 0.2 standard deviation increments, spanning from 0.2 up to 3.0 standard de

Indicator v5 Volatility & bandsMoving averages
Updated 3 years ago · None stated GitHub repository of MTB_10

Cloud MM All MA

by rajatjpatel
1 stars

A two-line moving average cloud drawn on the price chart. Each line can use one of eleven types, including RMA, SMA, EMA, WMA, VWMA, SMMA, TMA, Hull, DEMA, TEMA and VWAP, with their own lengths, 30 and 74 by default. The space between the lines is filled green

Indicator v4 Moving averagesTrend
Updated 4 years ago · None stated GitHub repository of Cloud MM All MA

The Bullish/Bearish Candle Series Distribution indicator calculates the length of the current streak of consecutive bullish or bearish candles based on user-selected mode. It tracks streak lengths from 2 to 59 and plots a histogram in a separate pane showing t

Indicator v4 Candlestick patterns
Updated 13 days ago · GPL-3.0 GitHub repository of Bullish/Bearish Candle Series Distribution

This overlay indicator plots a Supertrend from an ATR length and factor, four exponential moving averages, and a selectable VWAP or TWAP taken from a chosen timeframe on the price chart. It also shows MACD and stochastic with adjustable lengths, smoothing, ver

Indicator v5 Oscillators & momentumMoving averages
Updated 1 year ago · MPL-2.0 GitHub repository of Momentum Setup: Vijay Thakare Option Buying Scalping Setup
330 stars

This indicator calculates the Directional Movement Index (DMI) and Average Directional Index (ADX) using configurable length and smoothing settings. Plotted in a separate pane, the ADX line changes color dynamically to green when DI+ exceeds DI- and red when D

Indicator v5 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of DMI Trade Zone [Alorse]

AKE Tracker

by Allen1212
303 stars

AKE Tracker overlays historical ARK Invest buying and selling activity directly onto the price chart for the target stock. It plots labels indicating buy or sell events alongside the count of ARK ETFs participating on specific dates. Users can filter trade rec

Indicator v4 Screeners & dashboards
Updated 2 years ago · None stated GitHub repository of AKE Tracker

Function - Logistic Equation

by ricardosantos79
261 stars

Calculates dynamic modeling values by applying a mathematical logistic differential equation to price change over a specified lookback length. It measures price momentum relative to the recent high-low price range. The script plots positive and negative logist

Indicator v5 Oscillators & momentumVolatility & bands
Updated 4 years ago · None stated GitHub repository of Function - Logistic Equation
228 stars

This overlay indicator decomposes a chosen index move into approximate contributions from its largest members. It tracks NDX, SPX, DJIA, or RUT using hard-coded weights and a table of member percentage changes versus the prior daily close, the regular-hours op

Indicator v6 Screeners & dashboards
Updated 3 months ago · None stated GitHub repository of Index Concentration & Contribution

LeMan Trend Indicator

by capissimo
114 stars

LeMan Trend Indicator calculates buy and sell values using normalized differences between current and highest/lowest highs and lows over adjustable lookback periods. It plots a zero line signal in a separate pane and normalized buy and sell lines in colors. Ma

Indicator v4 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of LeMan Trend Indicator
99 stars

This indicator plots a Baxter-King symmetric band-pass filter in a separate pane. It estimates the cyclical component of a source series for periods between a minimum and a maximum bar length, using ideal band-pass weights shifted so they sum to zero and remov

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Baxter-King Band-Pass Filter
65 stars

This indicator calculates a 20-period RSI and plots it in a separate pane with a horizontal line at 50. It marks an upward cross of 50 as a long and a downward cross as a short, using small characters on the oscillator. Alerts fire only for the directions the

Indicator v5 Oscillators & momentum
Updated 7 days ago · GPL-3.0 GitHub repository of Selective alert() calls
56 stars

This indicator plots WaveTrend Oscillator values along with MFI and RSI areas on the chart. Colored circles and dots indicate buy and sell signals at wave crossings, overbought and oversold levels. Purple triangles mark regular and hidden divergences. It draws

Indicator v4 Oscillators & momentumDivergence
Updated 2 months ago · None stated GitHub repository of VuManChu B Divergences

Trend Analysis

by dcaoyuan
55 stars

Trend Analysis plots a 20-period and a 50-period exponential moving average on the price chart. It marks bars whose close is above the faster average with a green square below the bar and marks other bars with a red square above the bar. It also calculates a 1

Indicator v6 TrendMoving averages
Updated 6 months ago · Apache-2.0 GitHub repository of Trend Analysis

Double Weighted Moving Average (DWMA) calculates a double-smoothed moving average by applying two consecutive weighted moving average passes to a chosen price source. Implemented with circular array buffers and running state accumulators, it achieves O(1) time

Indicator v6 Moving averagesTrend
Updated 8 months ago · MIT GitHub repository of Double Weighted Moving Average (DWMA)

Bollinger Bands Width

by TWODS-CAPITAL
37 stars

Bollinger Bands Width plots the width of Bollinger Bands on a separate pane. It calculates the ratio of the band width using the formula of upper band minus lower band divided by the basis. The main settings let users change the length of the simple moving ave

Indicator v5 Volatility & bands
Updated 3 years ago · MIT GitHub repository of Bollinger Bands Width

Zen MIG Reversal

by Zen-Tim
29 stars

Zen MIG Reversal is a price action overlay indicator that identifies potential reversal setups using three-bar candlestick sequences, gap rules, and moving average filters. It checks for consecutive directional bars combined with either Al Brooks micro gaps or

Indicator v5 Candlestick patternsMoving averages
Updated 2 weeks ago · MIT GitHub repository of Zen MIG Reversal

Vector Candles

by benso87
24 stars

Vector Candles is an overlay indicator that recolors price candles using PVSRA volume rules taken from the Traders Reality concept. It compares each bar's volume with the average of the previous ten bars and also checks the product of spread and volume against

Indicator v5 VolumeCandlestick patterns
Updated 4 years ago · MPL-2.0 GitHub repository of Vector Candles

The indicator scores whether a counter-move against the dominant structure is maturing and whether price has started turning back. It plots a composite score in a separate pane from weighted context, correction maturity, and exhaustion, scaled by trigger and a

Indicator v6 TrendOscillators & momentum
Updated 4 days ago · MIT GitHub repository of Directional Probability Engine v2 [WavesUnchained]

Folded RSI

by MeridianAlgo
9 stars

This indicator computes an adaptive Relative Strength Index whose length dynamically adjusts based on cycle correlation. It measures the Pearson correlation between price and synthetic sine and cosine waveforms at a target cycle period (and optional second har

Indicator v5 Oscillators & momentum
Updated 4 months ago · MIT GitHub repository of Folded RSI

Volume Average [UkutaLabs]

by eddiebelaval
7 stars

This indicator plots volume columns alongside an exponential moving average line of volume in a separate pane. It compares current bar volume against its 13-period average by default. When volume exceeds the exponential moving average, columns are colored gree

Indicator v6 VolumeMoving averages
Updated 3 months ago · None stated GitHub repository of Volume Average [UkutaLabs]

MACD %

by suyons
7 stars

The MACD % indicator calculates a percentage-normalized Moving Average Convergence Divergence oscillator plotted in a separate pane. Instead of displaying the standard absolute difference between fast and slow moving averages, it computes the spread as a perce

Indicator v5 Oscillators & momentumMoving averages
Updated 4 months ago · None stated GitHub repository of MACD %
5 stars

This research diagnostic indicator reconstructs fixed-range volume profiles on the main price chart using lower-timeframe bar data. It approximates TradingView native fixed-range volume profiles over a specified time range using configurable source timeframes

Indicator v6 VolumeSupport & resistance
Updated 5 days ago · MPL-2.0 GitHub repository of VP RSD Native-Like Bar Profile Diagnostic

Moving Centroid

by gorx1
5 stars

Calculates a density-weighted central price level over a user-defined lookback window and plots it directly on the main chart. For each bar in the lookback period, it computes how frequently historical high-low ranges overlap that bar's price, using this densi

Indicator v4 Moving averagesSupport & resistance
Updated 8 months ago · None stated GitHub repository of Moving Centroid
4 stars

This overlay indicator combines up to six optional signals and scores how many of them agree. It checks RSI-2 crosses of 30 and 70, MACD line crosses, Bollinger squeeze breakouts, volume spikes, triple EMA alignment, and price relative to the Ichimoku cloud. E

Indicator v5 Oscillators & momentumMoving averages
Updated 3 days ago · None stated GitHub repository of Ensemble Validator STEPFUN
4 stars

The Fakeout Filter indicator calculates a four-layer signal quality score ranging from 0 to 4 to evaluate trade setups. It assesses four conditions: volume expansion above a moving average multiple, alignment with a higher timeframe EMA trend, price move excee

Indicator v6 TrendVolume Repaints
Updated 2 months ago · MIT GitHub repository of Fakeout Filter [trugurpala]
4 stars

This indicator detects swing highs and lows with symmetric pivot lengths and draws horizontal support and resistance lines on the price chart. New pivots that fall within a user-set percentage of ATR of an existing level are merged into one zone. Resistance us

Indicator v5 Support & resistance
Updated 11 months ago · Custom licence GitHub repository of Support & Resistance Zones [Lab]
3 stars

This overlay indicator plots Parabolic SAR circles on the price chart and marks direction flips with optional start-point circles and Buy or Sell labels. Direction is long when SAR is below close and short when it is above. Alerts fire on a direction change an

Indicator v5 TrendScreeners & dashboards
Updated 3 days ago · None stated GitHub repository of Parabolic Sat Tarama Kripto

jash_GGMA_Granville

by jash-git
3 stars

jash_GGMA_Granville plots five exponential moving averages on the price chart using Fibonacci lengths 3, 13, 34, 55 and 144. It marks a reset when the shortest average crosses the 55-period average and the close is on the matching side of the short average. Co

Indicator v5 TrendMoving averages
Updated 5 weeks ago · None stated GitHub repository of jash_GGMA_Granville
3 stars

This indicator detects streaks of consecutive candles on a price chart and plots Fibonacci retracement levels based on their high-low range. Users set the streak length (default 3) to identify swing highs and lows. It calculates and displays customizable level

Indicator v5 Support & resistanceCandlestick patterns
Updated 5 months ago · None stated GitHub repository of Consecutive Candle Levels
3 stars

This indicator calculates and visualizes seasonal performance metrics in a separate pane. It queries higher-timeframe monthly closes to compute the average return of the current calendar month across a user-defined lookback window, alongside the year-to-date a

Indicator v5 Moving averages Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Stocks Seasonality Gauge

Volume Delta Histogram

by piecioshka
2 stars

Volume Delta Histogram calculates real volume delta (buy volume minus sell volume) from footprint data and displays it as a histogram in a separate pane. Positive delta columns represent buy dominance, while negative delta columns represent sell dominance. Use

Indicator v6 Volume
Updated 13 days ago · MIT GitHub repository of Volume Delta Histogram

MasterAlgo

by TamTH-Dev
2 stars

MasterAlgo is an overlay indicator that combines Ichimoku Kinko Hyo, session range highlights, and volume-based candle coloring into a single tool. It plots standard Ichimoku components—including Tenkan-Sen, Kijun-Sen, Chikou Span, and Kumo Cloud—and highlight

Indicator v5 Sessions & timeVolume
Updated 6 weeks ago · None stated GitHub repository of MasterAlgo
2 stars

This indicator calculates and plots the intraday percentage change of the current or a user-selected asset relative to its daily opening price in a separate pane. It color-codes positive and negative returns dynamically and draws vertical day separator dotted

Indicator v6 Sessions & time Repaints
Updated 8 months ago · None stated GitHub repository of Intraday Spark Chart [AstrideUnicorn]

This indicator plots a multi-timeframe ZigZag pattern alongside Fibonacci retracement levels directly on the price chart. It identifies swing highs and swing lows across a user-defined timeframe and period, storing recent swing coordinates in an array. From th

Indicator v4 Support & resistanceTrend Repaints
Updated 3 years ago · None stated GitHub repository of ZigZag Multi Time Frame with Fibonacci Retracement

Previous Day Levels

by jayadevrana
1 stars

The Previous Day Levels indicator plots yesterday's high and low as step lines on the price chart for any symbol and timeframe. It shades the daily trading range and draws triangular markers on breakout events when price crosses the high or low. Input settings

Indicator v6 Support & resistanceBreakout
Updated 5 days ago · MPL-2.0 GitHub repository of Previous Day Levels

P_err_import

by GammaExpansion
1 stars

P_err_import is a minimal Pine Script v6 indicator fixture designed to test script parsing and library imports. It demonstrates importing the official TradingView TA library version 8 alias and plots the close price series in a separate indicator pane. The scr

Indicator v6
Updated 8 days ago · MIT GitHub repository of P_err_import

DEPV2 DEBUG ALL

by YuceSezar89
1 stars

DEPV2 DEBUG ALL evaluates multi-asset market dynamics across up to 20 cryptocurrency symbols using four distinct analytical dimensions: trend, momentum, volatility, and volume. It computes and displays diagnostic signal outputs in a separate pane, allowing tra

Indicator v6 TrendOscillators & momentum Repaints
Updated 2 weeks ago · None stated GitHub repository of DEPV2 DEBUG ALL

Mirror Oscillator

by morindok
1 stars

The Mirror Oscillator indicator computes a central mirror level as the average of the highest high and lowest low over 500 bars, along with recent mirror levels based on the n-period highest high and lowest low. It calculates percentage deviations of the close

Indicator v6 Oscillators & momentumSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Mirror Oscillator

Smart Money Volume Tools

by vedkanani123
1 stars

A separate-pane volume indicator that combines fast and slow EMAs of price, a volume average and a lower-timeframe volume read, normalized with an adjustable steepness value. A signal type setting chooses between a trailing style and other readings, and the ou

Indicator v6 VolumeTrend Repaints
Updated 2 months ago · None stated GitHub repository of Smart Money Volume Tools
1 stars

Marks the bar where a volume order block zone is first confirmed, which is when the moving average crossover completes, so the marker does not move to an earlier bar later. A sensitivity bank input selects the set of six sensitivity lengths, or custom values c

Indicator v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Birth Bar Study v1.2 Tick

This indicator plots session-filtered bullish and bearish engulfing markers on the price chart. A long mark appears when the current candle engulfs the prior candle inside the New York window and volume exceeds 1.5 times its 20-bar average. A short mark uses a

Indicator v6 Candlestick patternsSessions & time Repaints
Updated 2 months ago · None stated GitHub repository of TeleNexus Sovereign ORB Multi-Model

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