Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 124)

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

114 stars

This indicator overlays two Hull Moving Average variations smoothed with an optional Kalman filter directly on the price chart. It fills the space between the two curves with dynamic trend colors and generates buy and sell signal labels when the curves cross.

Indicator v4 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of HMA-Kahlman Trend & Trendlines
99 stars

This indicator calculates the Ehlers Decycler Oscillator as the difference between two 2-pole Butterworth high-pass filters applied to a chosen price source. The long-period filter result is subtracted from the short-period filter result, and the oscillator is

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Decycler Oscillator (DECO)
65 stars

This educational example script demonstrates how to debug custom Pine Script functions by returning intermediate internal variables alongside main outputs using tuple destructuring. It defines a custom function that calculates an instant average price from the

Indicator v4 Moving averages
Updated 6 days ago · GPL-3.0 GitHub repository of Debugging from inside functions

Parabolic SAR

by mihakralj
47 stars

This indicator calculates J. Welles Wilder's classic Parabolic Stop and Reverse (PSAR) trailing stop levels to highlight trend direction and potential market reversals. It updates an acceleration factor whenever price makes new extreme highs or lows, bound by

Indicator v6 TrendSupport & resistance
Updated 8 months ago · MIT GitHub repository of Parabolic SAR

Session highs, lows & opens

by TamaraKGreen
46 stars

This indicator tracks and plots high, low, and opening levels for major trading sessions directly on the price chart. It calculates price boundaries across defined periods including London, New York, Asia, and New York afternoon sessions. The tool does not gen

Indicator v5 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of Session highs, lows & opens

Klinger Oscillator

by TWODS-CAPITAL
37 stars

The Klinger Oscillator evaluates long-term volume flow trends while staying responsive to short-term price movements. It calculates signed volume by determining whether the typical price (HLC3) increased or decreased relative to the previous bar. The main osci

Indicator v5 VolumeOscillators & momentum
Updated 3 years ago · MIT GitHub repository of Klinger Oscillator
7 stars

Range Oscillator (Zeiierman) plots a range-based oscillator in a separate pane. It qualifies a range box from a minimum number of bars and sizes that box vertically with an ATR width multiplier. A heatmap splits the recent high-low span into horizontal levels

Indicator v6 Oscillators & momentumVolatility & bands
Updated 3 months ago · None stated GitHub repository of Range Oscillator (Zeiierman)

CRT State Engine Complete

by alboogycOdR
6 stars

This indicator overlays an institutional Candle Range Theory (CRT) framework directly on the price chart. It analyzes session states across New York time models (1 AM, 5 AM, and 9 AM), detects market structure breaks, identifies order blocks, and tracks liquid

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT State Engine Complete
3 stars

The Heikin Ashi Buy Sell Arrows indicator calculates custom Heikin-Ashi values on the current chart to identify potential trend reversals. A buy signal is generated when a Heikin-Ashi candle forms with no lower wick following a sell sequence, while a sell sign

Indicator v5 Candlestick patternsTrend
Updated 5 months ago · None stated GitHub repository of Heikin Ashi Buy Sell Arrows
2 stars

The Probability Grid indicator calculates statistical probability distribution levels derived from historical pivot high and low points. It analyzes price movements over a configured swing length and maximum reversal count to project probability zones directly

Indicator v6 Support & resistanceVolatility & bands
Updated 8 months ago · None stated GitHub repository of Probability Grid [LuxAlgo]

PSMC - Stochastic & RSI

by Web3Degenerate
2 stars

This indicator calculates a Stochastic oscillator based on Relative Strength Index (RSI) values rather than standard price data, functioning like a custom Stoch RSI. It plots the raw RSI line alongside the derived %K and %D lines in a separate pane. The RSI pl

Indicator v4 Oscillators & momentum
Updated 2 years ago · None stated GitHub repository of PSMC - Stochastic & RSI

P_ver_int_as_bool

by GammaExpansion
1 stars

This minimal test indicator evaluates integer values as booleans within conditional statements in Pine Script v6. It assigns an integer to a variable, passes it into an if-else block to determine an output value, and plots the final result in a separate pane.

Indicator v6
Updated 7 days ago · MIT GitHub repository of P_ver_int_as_bool

DEPV2 Günlük Veri 2

by YuceSezar89
1 stars

This indicator requests the open, high, low and close of eight user-selected Binance perpetual symbols and plots each value in a separate pane. It is meant to run on a one-day Bitcoin perpetual chart so chart-data export can capture those extra daily series be

Indicator v6 Screeners & dashboards
Updated 13 days ago · None stated GitHub repository of DEPV2 Günlük Veri 2
1 stars

A volume pattern indicator that draws toggleable signals on the price chart, with displacement tuned to a nine standard deviation multiplier. It includes relative volume patterns such as SAAB, Kratos, Grand Slam, Hiroshima and Nagasaki, long and short setups,

Indicator v5 Volume
Updated 2 months ago · None stated GitHub repository of Heavy Weapons Single v3.3 DISP 9
1 stars

A Pine Script v5 indicator that draws bullish and bearish order block zones on the price chart with volume shown inside, and adds lower-timeframe blocks within range. Swing length, maximum ATR multiplier, zone count and invalidation method shape the main zones

Indicator v5 SMC / ICT / price actionVolume
Updated 6 months ago · None stated GitHub repository of Volumized Order Blocks 2026-3

CMLF Tracker

by Allen1212
303 stars

CMLF Tracker overlays historical buy and sell transaction records of ARK Invest funds directly onto the price chart for CMLF. It plots green upward labels for buy dates and red downward labels for sell dates, indicating how many ARK ETFs traded the asset on th

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

Function - Compound Interest

by ricardosantos79
261 stars

The script is an indicator that calculates compound interest. It provides a function f_compound_interest which takes principle, rate and duration as inputs. The function applies the compound interest formula using math.pow to return the future value. This valu

Indicator v5
Updated 4 years ago · None stated GitHub repository of Function - Compound Interest

Calculates John Ehlers' Detrended Synthetic Price by taking the difference between a quarter-cycle and a half-cycle exponential moving average of the input source. It includes initial warm-up coefficient adjustments to stabilize early values and plots the resu

Indicator v6 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Detrended Synthetic Price (DSP)
65 stars

Debugging from Inside Functions is an educational Pine Script demonstration script that illustrates how stateful calculations and custom functions operate. It defines a function that calculates an average combining the current bar high, low, close, and a persi

Indicator v4 Moving averages
Updated 6 days ago · GPL-3.0 GitHub repository of Debugging from Inside Functions
47 stars

This indicator calculates the Pearson correlation coefficient between a chosen source series on the current chart and a secondary external symbol across a user-specified lookback period. It processes streaming inputs efficiently using a circular buffer to upda

Indicator v6
Updated 8 months ago · MIT GitHub repository of Pearson's Correlation (CORRELATION)
46 stars

This overlay indicator marks Asia, London and New York sessions using New York clock times. It draws a session candle plus an optional vertical line at the session open, horizontal open, high, mid and low lines, and a 25 percent level of the session range. Use

Indicator v5 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of Session Range Candles + 25% Level

Know Sure Thing

by TWODS-CAPITAL
37 stars

This indicator calculates the Know Sure Thing oscillator in a separate pane. It builds four rate-of-change series from the close, smooths each with a simple moving average, and adds them with weights of one, two, three, and four. It plots that composite as the

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Know Sure Thing

This overlay indicator scores liquidity-sweep reversals on the price chart. It looks for a swing high or low violation followed by a recovery close, then grades optional conditions such as RSI and structure into a 0–2 quality score with separate long and short

Indicator v6 SMC / ICT / price actionOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Reversal Engine Score v1 [WavesUnchained]

CRT State Engine v6

by alboogycOdR
6 stars

This overlay indicator tracks an institutional CRT state machine on the price chart. It can plot draw-on-liquidity lines from pivot strength, session boxes for CBDR, Asia, London, London lunch and New York, and key levels colored for consolidation, manipulatio

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT State Engine v6

This indicator plots buy and sell labels on the price chart. A buy appears when a short stochastic crosses up from below 20 while a slow MACD histogram is positive and a faster MACD histogram is negative. A sell uses the opposite stochastic and MACD alignment.

Indicator v5 Oscillators & momentumCandlestick patterns
Updated 5 months ago · None stated GitHub repository of Heikin Ashi with MACD Signals

SuperTrend Toolkit

by mushroom-men-Trading
2 stars

SuperTrend Toolkit plots ATR-based SuperTrend bands and direction on the price chart. It calculates upper and lower bands using a configurable source, length, and factor multiplier. Contrarian signals generate buy and sell labels with alerts when the trend rev

Indicator v6 TrendVolatility & bands
Updated 9 months ago · None stated GitHub repository of SuperTrend Toolkit

P_ver_udt_field_history

by GammaExpansion
1 stars

Calculates and plots the historical value of a user-defined type field in a separate indicator pane. The script instantiates a custom object storing the current closing price and references its field on the previous bar using historical indexing. Designed as a

Indicator v6
Updated 7 days ago · MIT GitHub repository of P_ver_udt_field_history
1 stars

This Pine Script indicator probes the tie-breaking behavior of array.sort_indices in Pine Script v6. It creates two arrays of size 5 and 20 using seeded hash functions based on bar_index, then sorts them in descending order. The script plots the original array

Indicator v6
Updated 13 days ago · None stated GitHub repository of DEPV2 P1 · SIRALAMA SONDASI
1 stars

Fibo Boxes projects price and time step zones directly on the chart starting from a designated target start time. It steps through historical data using an initial bar count and step multiplier, establishing high and low bounding boxes across calculated step r

Indicator v5 Support & resistanceMoving averages
Updated 7 weeks ago · None stated GitHub repository of Fibo Boxes by BITMOON618

Kenyon Legacy

by vedkanani123
1 stars

A price-chart indicator that combines two independent parts. The first is a Q-Trend line built from the midpoint of a long highest-lowest range, shifted by an ATR multiple, with buy, sell and strong signals, bar colouring and two signal modes. The second finds

Indicator v6 SMC / ICT / price actionTrend
Updated 2 months ago · None stated GitHub repository of Kenyon Legacy
1 stars

Tick-chart-safe overlay indicator of single-bar detections on the price chart, titled as a non-repainting version. It covers relative volume tiers named SAAB, Kratos, Grand Slam and MOAB, regular-at-time volume tiers, momentum LONG and SHORT tiers, high-volume

Indicator v5 VolumeOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Heavy Weapons Singles Uncapped
1 stars

A Pine Script v5 indicator that draws bullish and bearish order block zones on the price chart with volume information inside each zone. Swing length, maximum ATR multiplier, zone count, zone combining and invalidation by close or wick control how zones form a

Indicator v5 SMC / ICT / price actionVolume
Updated 6 months ago · None stated GitHub repository of Volumized Order Blocks LTF 2026

Polarity Divergences

by ivansoft
1 stars

An indicator on the price chart that compares the direction of each chart bar with the net direction of the smaller intrabars inside it, fetched from a lower timeframe chosen by the chart timeframe. When the two disagree, the candle is coloured orange. Optiona

Indicator v5 Divergence
Updated 1 year ago · None stated GitHub repository of Polarity Divergences

CMPS-tracker

by Allen1212
303 stars

This indicator plots historical buy and sell transactions executed by ARK Invest on CMPS directly on the price chart. It displays green upward labels below price bars for purchase dates and red downward labels above price bars for sales, showing transaction fr

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

This indicator calculates John Ehlers' Deviation-Scaled Oscillator (DSO) and plots it in a separate pane. It whitens the source price series by taking its two-bar difference, applies a two-pole Super Smoother filter, and normalizes the output using a rolling R

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Deviation-Scaled Oscillator (DSO)

Distance from High

by be-thomas
65 stars

This indicator measures the number of bars since the highest high over a user-defined lookback period. It divides the lookback duration into five segments and applies a progressively lighter background color to the main price chart as the distance from the pea

Indicator v4 Support & resistance
Updated 6 days ago · GPL-3.0 GitHub repository of Distance from High
47 stars

This indicator calculates the percentage change of a chosen source over a user-set lookback length and plots that value in a separate pane with a percent format. It compares the current source with the value that many bars earlier, returning no value when the

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Percentage Change (CHANGE)
46 stars

This overlay indicator projects higher-timeframe open, high, and low statistics onto the price chart. It can show one or two selected timeframes, with an optional New York midnight session start, and uses a lookback window to draw average and median levels. Pl

Indicator v5 Support & resistanceSessions & time
Updated 8 weeks ago · None stated GitHub repository of Statistical OHLC Projections

Least Squares Moving Average

by TWODS-CAPITAL
37 stars

This indicator plots a least-squares moving average on the price chart. It fits a linear regression to the selected source over a chosen lookback and draws that value as a single line. The length setting changes how many bars enter the regression, the offset s

Indicator v5 Moving averages
Updated 3 years ago · MIT GitHub repository of Least Squares Moving Average

This ex-post diagnostic indicator identifies confirmed pivot highs and lows, classifying subsequent price action into four outcome types: Snapback, Grind, Fake/Pullback, or Chop. It evaluates forward performance across an ATR-based risk window, factoring in Wa

Indicator v6 Support & resistanceOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Reversal Type Classifier [WavesUnchained]

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