Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 137)

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,283
No repaint flag6,673

Indicators: All

MSNR [Optimized]

by alboogycOdR
6 stars

The MSNR Optimized indicator identifies key market structure support and resistance levels directly on the price chart, including Apex/Valley (A/V) swings, price gaps, and Quasimodo (QM) patterns. It uses configurable pivot lengths to detect structural pivots

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of MSNR [Optimized]
3 stars

Lin Reg Simplified calculates a custom linear regression channel overlaid on the main price chart. It uses a combination of weighted moving average (WMA) and simple moving average (SMA) applied to HLC3 prices to compute the trend slope, middle line, and standa

Indicator v5 TrendSupport & resistance Repaints
Updated 5 months ago · None stated GitHub repository of Lin Reg Simplified
2 stars

The Fast Fourier Transform (FFT) Filter decomposes time series price data into frequency components using a discrete Fourier transform algorithm. It plots the frequency-domain power spectrum in a separate pane to highlight dominant market cycles. Users can dis

Indicator v5 TrendScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Fast Fourier Transform (FFT) Filter

Recursive Kernel Trend

by vedkanani123
1 stars

A trend line on the price chart from a recursive filter that corrects a fraction of its error against price on each bar. The correction rate is scheduled by efficiency and volatility weighting, can be biased by direction, and the filter structure can be Standa

Indicator v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of Recursive Kernel Trend

KC Combo Bull v4.7

by nishpa800
1 stars

Overlays a Keltner Channel and an ATR supertrend on the price chart and marks candles where several built-in detectors agree on the same bar. The detectors cover pullback patterns, displacement, relative volume and high-volume bars, shown as lettered markers.

Indicator v5 Volatility & bandsTrend
Updated 2 months ago · None stated GitHub repository of KC Combo Bull v4.7

This indicator calculates a smoothed momentum oscillator from price and plots many offset momentum lines in a separate pane as a colour-graded heat map. Moving average type, smoothing periods, the number of plotted lines and the colour theme are adjustable. It

Indicator v4 Oscillators & momentumDivergence
Updated 6 months ago · None stated GitHub repository of Angular Momentum Swing Heat Map Plot
1 stars

Pine v4 experiment that sketches a synthetic dollar index from weighted currency pairs, kept in comments, but the active code only plots the chart's close price. It also prints a label with the timeframe multiplier, period and high, and requests a 15-minute IB

Indicator v4
Updated 1 year ago · None stated GitHub repository of Bloomberg Dollar Spot Index

GH Tracker

by Allen1212
303 stars

GH Tracker plots historical buy and sell transactions executed by ARK Invest funds for Guardant Health directly on the price chart. It uses hardcoded execution timestamps to render green buy labels below price bars and red sell labels above price bars. Users c

Indicator v4
Updated 2 years ago · None stated GitHub repository of GH Tracker

Test 013 Global Array in Local

by ricardosantos79
261 stars

This script serves as a technical test demonstrating global array manipulation within custom functions in Pine Script. It initializes a global float array with ten elements set to the open price. On each bar execution, a user-defined function pops the last arr

Indicator v4
Updated 4 years ago · None stated GitHub repository of Test 013 Global Array in Local
99 stars

This indicator plots an exponential decay envelope on the price chart. Each bar it keeps the source value when it exceeds the previous result, otherwise it multiplies the previous result by (length minus one) divided by length so the line falls exponentially a

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Exponential Decay (EDECAY)

My Script

by be-thomas
65 stars

This indicator is a TradingView documentation example that places a single label on the price chart. It creates the label once and then updates its coordinates each bar so the label stays at the current bar index and the bar high. The label text is three lines

Indicator v4
Updated 6 days ago · GPL-3.0 GitHub repository of My Script

Relative Vigor Index

by TWODS-CAPITAL
37 stars

This indicator plots the Relative Vigor Index in a separate pane. It divides the length-period sum of symmetrically weighted close-minus-open values by the matching sum of high-minus-low ranges, then plots that line and a symmetrically weighted moving average

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Relative Vigor Index
9 stars

WaveTrend v2 [WavesUnchained] is a momentum oscillator displayed in a separate pane. It derives channel index values using configurable price sources and smooths them with selectable algorithms including EMA, HMA, WMA, or JMA approximation. Traders can toggle

Indicator v6 Oscillators & momentumVolatility & bands
Updated 3 days ago · MIT GitHub repository of WaveTrend v2 [WavesUnchained]
7 stars

This indicator plots Smart Money Concepts and price action components directly on the price chart. It highlights bullish and bearish order blocks, multi-timeframe pivot points, market structure swings with key Fibonacci retracement levels (0.618 and 0.786), zo

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 months ago · None stated GitHub repository of Cryptokazancev Strategy Pack

MSNR [OPTIMIZED]AI

by alboogycOdR
6 stars

This indicator detects and draws support and resistance structure levels directly on the price chart. It identifies Apex/Vortex (A/V) pivot levels, price gap levels, and Quasimodo (QM) pattern levels, tracking whether each level is fresh or previously tested.

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of MSNR [OPTIMIZED]AI
3 stars

This indicator calculates and plots a linear regression line alongside upper and lower deviation bands directly on the price chart. It determines linear regression slope and channel width using weighted and simple moving average formulas across a user-specifie

Indicator v5 TrendSupport & resistance
Updated 5 months ago · None stated GitHub repository of Linear Regression

Financial Growth

by regalouisei
2 stars

This indicator plots financial growth metrics in a separate pane as a customizable table. It calculates year-over-year and quarter-over-quarter changes plus CAGR for user-selected items including revenue, net income, EBITDA, EPS, dividends, total assets, liabi

Indicator v5 Screeners & dashboards Repaints
Updated 8 months ago · None stated GitHub repository of Financial Growth

Live Tick Counter

by morindok
1 stars

This indicator calculates and plots a multi-factor order-flow analysis using tick counts, volume ratios, big player volume, recent delta momentum, and a K-nearest neighbors pattern matching algorithm. It evaluates bull and bear thresholds across multiple weigh

Indicator v5 VolumeScreeners & dashboards Repaints
Updated 7 weeks ago · None stated GitHub repository of Live Tick Counter

Self-Aware Trend System

by vedkanani123
1 stars

An adaptive trend indicator on the price chart. It draws ATR bands whose width reacts to an efficiency-based trend quality index that blends efficiency, volatility regime, structure and momentum persistence. Options include asymmetric bands, an efficiency-weig

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Self-Aware Trend System

KC Combo Bull v4.7.1

by nishpa800
1 stars

Overlays a Keltner Channel and an ATR supertrend on the price chart and marks candles where several built-in detectors agree on the same bar. The detectors cover pullback patterns, displacement, relative volume and high-volume bars, shown as lettered markers.

Indicator v5 Volatility & bandsTrend
Updated 2 months ago · None stated GitHub repository of KC Combo Bull v4.7.1
1 stars

This indicator builds a Detrended Rhythm Oscillator in a separate pane. It uses a detrended price oscillator with fast and slow lengths to find zig-zag swings, then draws dashed or dotted lines and labels showing the bar distance between successive highs. The

Indicator v4 Oscillators & momentum
Updated 6 months ago · None stated GitHub repository of Detrended Rhythm Oscillator Peak
1 stars

An educational Pine Script v4 indicator that demonstrates how higher timeframe requests behave with each combination of the gaps and lookahead settings of security(). It draws lines for the current and previous higher timeframe value on the price chart, with l

Indicator v4 Repaints
Updated 1 year ago · None stated GitHub repository of Avoid Repainting With security()

GLBE-tracker

by Allen1212
303 stars

This indicator marks historical ARK Invest purchases and sales of GLBE on the price chart. Green labels sit below bars for buys and red labels sit above bars for sells, each showing a same-day ETF count such as X1. An ETF setting switches between all recorded

Indicator v4
Updated 2 years ago · None stated GitHub repository of GLBE-tracker

Test 014 Array Functions

by ricardosantos79
261 stars

This script is a technical demonstration of custom array manipulation functions in Pine Script v4. It identifies pivot highs and pivot lows and dynamically manages their values and corresponding bar indices inside fixed-size float and integer arrays. It also d

Indicator v4 Support & resistance
Updated 4 years ago · None stated GitHub repository of Test 014 Array Functions

This indicator calculates the Cumulative Distribution Function (CDF) of an exponential distribution applied to a price series. It normalizes source values into a zero-to-one range using a min-max window over a specified lookback period, then computes the expon

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Exponential Distribution CDF (EXPDIST)

My Script

by be-thomas
65 stars

This indicator demonstrates how the history-referencing operator behaves inside user-defined functions versus a direct series reference. It plots the previous close returned by a function argument and by a function that reads close, but only on every other bar

Indicator v4
Updated 6 days ago · GPL-3.0 GitHub repository of My Script

Relative Volatility Index

by TWODS-CAPITAL
37 stars

This indicator plots the Relative Volatility Index in a separate pane. It measures the standard deviation of the close and splits that volatility into upward and downward price changes, then smooths each side with a fixed 14-period exponential moving average a

Indicator v5 Volatility & bandsOscillators & momentum
Updated 3 years ago · MIT GitHub repository of Relative Volatility Index

Cyberpunk MACD Pulse Engine

by eddiebelaval
7 stars

The Cyberpunk MACD Pulse Engine is a momentum indicator displayed in a separate pane. It calculates MACD line, signal line, and histogram values using configurable parameters or preset modes tailored for scalping, swing trading, and custom setups. The indicato

Indicator v5 Oscillators & momentumDivergence
Updated 3 months ago · None stated GitHub repository of Cyberpunk MACD Pulse Engine
6 stars

MSNR Ultimate detects and plots horizontal support and resistance structures directly on the price chart. It combines swing apex and valley (A/V) pivot levels, gap detection, and Qualified Move (QM) levels. Users can filter levels to display only fresh, unmiti

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of MSNR Ultimate [KingdomFinancier]
3 stars

This indicator calculates a TTM-style squeeze by comparing Bollinger Bands with Keltner Channels alongside a linear regression momentum oscillator. It measures volatility compression when Bollinger Bands contract within the Keltner Channels and tracks the dura

Indicator v5 Oscillators & momentumVolatility & bands
Updated 5 months ago · None stated GitHub repository of Linear Regression

Financials on Chart

by regalouisei
2 stars

Financials on Chart displays fundamental company financial metrics in a tabular overlay directly on the price chart. It retrieves statement items such as income statement and balance sheet data across reporting periods including fiscal year, financial quarter,

Indicator v5 Screeners & dashboards
Updated 8 months ago · None stated GitHub repository of Financials on Chart

Live Tick Counter

by morindok
1 stars

Live Tick Counter tracks up and down ticks on each price movement while weighting them against volume. It calculates a cumulative probability of upward movement by combining tick counts and volume totals from the last lookback bars plus the current bar. The in

Indicator v5 Volume Repaints
Updated 7 weeks ago · None stated GitHub repository of Live Tick Counter
1 stars

A session-based swing structure indicator drawn on the price chart. For three configurable sessions, by default Asian, London and New York, it finds the highest and lowest pivots and labels them HH or LH and HL or LL. It then draws one Fibonacci or standard-de

Indicator v6 Sessions & timeSupport & resistance
Updated 2 months ago · None stated GitHub repository of Session 2 Swings HH HL LL LH + SD v3

KC Combo SR Ext Tick

by nishpa800
1 stars

Tick-chart extension study for a Keltner Channel combo indicator, carrying eighteen extra bullish and bearish markers on the price chart. They combine PB, RS and RC members with relative volume or Grand Slam and MOAB tiers, and high-volume ranks from 500 to 49

Indicator v5 Volatility & bandsVolume
Updated 2 months ago · None stated GitHub repository of KC Combo SR Ext Tick
1 stars

This indicator builds a Detrended Rhythm Oscillator in a separate pane. It uses a detrended price oscillator with fast and slow lengths to find zig-zag swings, then draws dashed or dotted lines and labels showing the bar distance between successive lows. The a

Indicator v4 Oscillators & momentum
Updated 6 months ago · None stated GitHub repository of Detrended Rhythm Oscillator Trough

GLEO Tracker

by Allen1212
303 stars

GLEO Tracker overlays historical ARK Invest buy and sell transactions directly onto the main price chart. It uses hardcoded transaction records to place green labels below price bars for buys and red labels above price bars for sells on specific trading dates.

Indicator v4
Updated 2 years ago · None stated GitHub repository of GLEO Tracker

Test 019 Tuple Security

by ricardosantos79
261 stars

This script plots multi-timeframe OHLC candlesticks in a separate chart pane using tuple security data fetching. It extracts open, high, low, and close prices from a user-specified timeframe, defaulting to Monthly, using a tuple-returning function. Traded valu

Indicator v4 Candlestick patterns Repaints
Updated 4 years ago · None stated GitHub repository of Test 019 Tuple Security
99 stars

The Exponential Transformation indicator applies the natural exponential function y = e^x to the input source series. The transformed series is plotted as a line in a separate pane. The main setting allows selecting the input source with close as default. This

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Exponential Transformation (EXP)

My Script

by be-thomas
65 stars

This overlay indicator draws a single text label above the price bar. On the first bar it creates a persistent label with the fixed text Colored label, then each bar it moves that same label to the current bar index and colors it with the user-chosen main colo

Indicator v4
Updated 6 days ago · GPL-3.0 GitHub repository of My Script
37 stars

This overlay indicator detects the bullish Rising Three Methods continuation pattern on the price chart. It looks for a long white candle, three small black candles whose bodies stay inside the first candle’s range, and a long white candle that closes above th

Indicator v5 Candlestick patternsTrend Repaints
Updated 3 years ago · MIT GitHub repository of Rising Three Methods - Bullish
6 stars

NY SMC Suite Multi-Killzone is a Smart Money Concepts indicator that plots session killzones and structural supply and demand zones directly on the price chart. It identifies Order Blocks, Fair Value Gaps, Change in State of Delivery levels, and wick rejection

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of NY SMC Suite Multi-Killzone

This indicator plots linear regression bands on the price chart for multiple timeframes. It calculates regression lines with standard deviation bands for up to three timeframes, each configurable with length, deviation, color, width, and background transparenc

Indicator v5 TrendVolatility & bands
Updated 5 months ago · None stated GitHub repository of Linear Regression MTF + Bands

This indicator fits a trigonometric series to historical prices and projects future price movement directly on the price chart. Using the Quinn and Fernandes algorithm alongside least-squares fitting, it identifies dominant cycle frequencies across a user-defi

Indicator v5 Trend
Updated 8 months ago · None stated GitHub repository of Fourier Extrapolator of Price w/ Projection Forecast [Loxx]

Live Tick Counter

by morindok
1 stars

Live Tick Counter tracks real-time upward and downward tick price movements on active candles using intrabar variable updates. It accumulates directional tick statistics during live market execution and calculates directional probabilities over a customizable

Indicator v5 Volume Repaints
Updated 7 weeks ago · None stated GitHub repository of Live Tick Counter

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