Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 144)

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

Calculates and plots a multi-band envelope on the price chart based on mean reversion principles and Keltner Channel concepts. Instead of standard moving averages, it uses advanced filters such as Ehlers SuperSmoother, Butterworth, Gaussian, or traditional ave

Indicator v5 Mean reversionVolatility & bands
Updated 5 months ago · None stated GitHub repository of Mean Reversion Channel - MRI Variant

The Linear Regression Oscillator [ChartPrime] calculates a slope and intercept using linear regression over a specified lookback period, normalizing the values with a 100-period z-score calculation. It plots the normalized oscillator in a separate pane with dy

Indicator v5 TrendOscillators & momentum Repaints
Updated 8 months ago · None stated GitHub repository of Linear Regression Oscillator [ChartPrime]
1 stars

This indicator detects pivot highs and lows on the price chart using configurable left and right bars. It extends lines from recent pivots in green for lows and red for highs with Fibonacci 1.618 ratio projection. It calculates crossing points of the extended

Indicator v5 Support & resistance Repaints
Updated 7 weeks ago · None stated GitHub repository of Painting Of Price by BITMOON618

Extrapolated Previous Trend

by vedkanani123
1 stars

An overlay indicator that fits a linear regression to closing prices of the previous period on a chosen timeframe, such as the prior day, and extends that line into the current period. The line is teal when the slope was up and red when it was down, candles ar

Indicator v5 TrendSupport & resistance
Updated 2 months ago · None stated GitHub repository of Extrapolated Previous Trend

Squarify HTF v1

by nishpa800
1 stars

Overlays up to 46 buy and sell marker signals on the price chart, built from standard deviation displacement, pullback pockets, relative volume tiers and fair value gap structures. Inputs set three displacement multipliers, a first-bar-only switch and per-sign

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Squarify HTF v1

INCY Tracker

by Allen1212
303 stars

INCY Tracker visualizes historical buy and sell transactions executed by ARK Invest funds for INCY stock directly on the price chart. The script generates green buy labels below price bars and red sell labels above bars at specific historical timestamps corres

Indicator v4
Updated 2 years ago · None stated GitHub repository of INCY Tracker
99 stars

The Intraday Momentum Index calculates an oscillator bounded between 0 and 100 based on intraday price movement. It measures gains when the close is higher than the open and losses when the close is lower than the open over a set lookback period. Computed usin

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Intraday Momentum Index (IMI)

My Script

by be-thomas
65 stars

This minimal demonstration script is an example from TradingView documentation illustrating basic drawing functionality in Pine Script v4. It creates a new drawing label on the price chart at each bar's high price using the bar index as the horizontal coordina

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

Tweezer Top - Bearish

by TWODS-CAPITAL
37 stars

This overlay indicator marks a two-candle Tweezer Top bearish reversal on the price chart. It looks for a prior long bullish candle in an uptrend followed by a bearish candle whose high is nearly the same as the previous high, using an EMA of candle body size

Indicator v5 Candlestick patterns
Updated 3 years ago · MIT GitHub repository of Tweezer Top - Bearish

The LOWESS indicator applies locally weighted scatterplot smoothing to price data to reduce noise and highlight trends. It calculates a smoothed line based on user-defined length. Additionally, it identifies pivot highs and lows using specified bar counts and

Indicator v5 Moving averages
Updated 8 months ago · None stated GitHub repository of LOWESS (Locally Weighted Scatterplot Smoothing)
1 stars

The Parallel Lines Live indicator draws geometric Fibonacci-based horizontal lines on the price chart. It computes a fractal phi ratio using the user-set Fibonacci expansion multiplier and tracks historical price touches along with bullish and bearish outcomes

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Parallel Lines Live by BITMOON618

Grok Apex Flip Engine v1

by vedkanani123
1 stars

An always-in flip indicator on the price chart, written in Pine version 5, where BUY exits a short and enters long and SELL does the reverse. It uses a wide Supertrend-style ATR trail with a cap on how far the trail can move per bar, plus an optional volume-we

Indicator v5 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Grok Apex Flip Engine v1

INMD Tracker

by Allen1212
303 stars

INMD Tracker overlays historical ARK Invest buy and sell trade transactions directly onto the price chart using labeled markers. It places visual labels above or below price bars at specific historical timestamps to indicate institutional transaction activity

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

This indicator reconstructs a low-pass filtered series from the selected source using a discrete Fourier transform. It applies a Hann window over a fixed window of 32, 64, or 128 bars, keeps only the chosen number of lowest-frequency harmonics, and adds their

Indicator v6 Trend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Inverse Fast Fourier Transform (IFFT)

My Script

by be-thomas
65 stars

This indicator draws a text label directly on the main price chart above each bar at the bar high. It calculates and displays the current bar index coordinates alongside the exact high price level on separate text lines without background styling. There are no

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

Ultimate Oscillator

by TWODS-CAPITAL
37 stars

The Ultimate Oscillator combines short-term, medium-term, and long-term price momentum into a single bounded oscillator. It calculates buying pressure and true range across three configurable period lengths, defaulting to 7, 14, and 28 bars. By applying higher

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Ultimate Oscillator
6 stars

This multi-timeframe indicator combines Smart Money Concepts (SMC) with customizable session killzones for London and New York trading. It identifies market structure points such as Break of Structure (BOS) and Change of Character (CHoCH), alongside Points of

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

MFI Divergences

by g-moe
3 stars

This indicator plots price data and is designed to detect divergences between price action and the Money Flow Index (MFI). It uses pivot highs and lows to identify potential regular and hidden bullish or bearish divergence signals. By evaluating momentum shift

Indicator v5 Oscillators & momentumDivergence
Updated 5 months ago · None stated GitHub repository of MFI Divergences

This indicator calculates a volatility-adaptive SuperTrend by applying k-means clustering to ATR values over a user-defined training period. It segments historical volatility into high, medium, and low clusters to dynamically adjust the SuperTrend bands to shi

Indicator v5 TrendVolatility & bands
Updated 8 months ago · None stated GitHub repository of Machine Learning Adaptive SuperTrend [AlgoAlpha]
1 stars

This indicator plots dynamic parallel lines based on logarithmic fractal price grid levels adjusted by a phi ratio multiplier. It scores price levels using a weighted quantitative model incorporating estimated order flow delta, kinetic volatility energy, liqui

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 7 weeks ago · None stated GitHub repository of Parallel Lines Live V2
1 stars

An overlay indicator that detects pivot highs and lows and marks bullish and bearish market structure breaks with dotted or dashed lines. After a break it trails a stop level that follows price, with an increment factor controlling how fast it tightens. The st

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of Market Structure Trailing Stop

TNT Opening Drive OD

by nishpa800
1 stars

Detects opening drive moves on the price chart by combining displacement, swing structure and return-to-level checks into named bull and bear signals. Inputs set sensitivity, swing length, the displacement deviation length and multiplier, and return percentage

Indicator v5 Sessions & timeVolatility & bands
Updated 2 months ago · None stated GitHub repository of TNT Opening Drive OD

INO-tracker

by Allen1212
303 stars

This indicator marks historical ARK Invest purchases and sales of Innoviva on the price chart. It draws hardcoded labels at fixed dates: red Sell labels above bars and green Buy labels below bars, each marked X1. An ETF setting exists but only offers ALL, so i

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

Jarque-Bera Test (JB)

by mihakralj
99 stars

Jarque-Bera Test evaluates whether price data follows a normal distribution. It constructs a rolling array of recent bars to compute sample mean, variance, skewness, and excess kurtosis through central statistical moments. The calculated statistic quantifies d

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Jarque-Bera Test (JB)

My Script

by be-thomas
65 stars

This minimal Pine Script code example demonstrates how loop iterations and conditional branches evaluate historical series functions. It iterates through a short loop based on the current bar index, conditionally retrieving the lowest value of the bar index ov

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

Up/Down Volume

by TWODS-CAPITAL
37 stars

This indicator calculates and visualizes buying versus selling volume by aggregating lower timeframe data onto the current chart. It uses intrabar price movement to classify volume as positive or negative, plotting positive volume as green columns and negative

Indicator v5 Volume
Updated 3 years ago · MIT GitHub repository of Up/Down Volume

SMC Luxmod Nuburo0

by alboogycOdR
6 stars

This indicator maps Smart Money Concepts (SMC) directly onto the price chart. It detects both internal and swing market structure breakouts, labeling Changes of Character (CHoCH) and Breaks of Structure (BOS). It also highlights bullish and bearish internal an

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of SMC Luxmod Nuburo0
3 stars

This indicator plots the Money Flow Index in a separate pane and marks bullish and bearish divergence from pivot highs and lows. It stores recent pivot prices, MFI values, and bar indexes, then checks regular or hidden divergence across a chosen number of dots

Indicator v5 Oscillators & momentumDivergence
Updated 5 months ago · None stated GitHub repository of MFI Divergences Lower
2 stars

This indicator calculates a custom RSI oscillator enhanced with machine learning using the K-nearest neighbors algorithm. It combines the standard RSI with KNN predictions for improved signal generation. The script applies smoothing using ALMA and Kalman filte

Indicator v5 AI / machine learningOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Machine Learning RSI BullVision

Nexus Prime Engine v1

by vedkanani123
1 stars

An overlay always-in flip indicator where a buy closes a short and enters long, and a sell does the reverse. It uses a zero-lag EMA trail sized by ATR, smoothed price, an ADX regime read with trending and sideways thresholds, RSI and Stochastic RSI checks, and

Indicator v5 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Nexus Prime Engine v1
1 stars

Detects opening drive moves on the price chart by combining displacement, swing structure and return-to-level checks into named bull and bear signals. Inputs set sensitivity, swing length, the displacement deviation length and multiplier, and return percentage

Indicator v5 Sessions & timeVolatility & bands
Updated 2 months ago · None stated GitHub repository of TNT Opening Drive OD v2

INTU-tracker

by Allen1212
303 stars

INTU-tracker visualizes historical trade records from ARK Invest for Intuit (INTU) directly on the price chart. It creates buy and sell labels at specific timestamps based on historical trading data from ARK's actively managed ETFs. Users can filter display la

Indicator v4
Updated 2 years ago · None stated GitHub repository of INTU-tracker
99 stars

This overlay indicator plots Jurik Adaptive Envelope Bands around price. It calculates a Jurik moving average as the middle line and builds upper and lower bands from that filter’s adaptive envelope. A ten-bar window tracks local deviation from the bands, and

Indicator v6 Moving averagesVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Jurik Adaptive Envelope Bands

My Script

by be-thomas
65 stars

This Pine Script indicator extracts and plots the hour integer from a fixed UNIX timestamp using a specified timezone offset. Created as a minimal documentation example for Pine Script v4 time functions, it calculates the hour value corresponding to GMT+1 for

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

Volatility Stop

by TWODS-CAPITAL
37 stars

This indicator plots a Volatility Stop on the price chart. It trails a stop from the running high or low of the source, offset by the average true range times a multiplier, and flips the trail when the source crosses the stop. An uptrend colors the stop one wa

Indicator v5 Volatility & bandsTrend
Updated 3 years ago · MIT GitHub repository of Volatility Stop

SMC Luxmod Nuburo4

by alboogycOdR
6 stars

This indicator identifies Smart Money Concepts (SMC) structure directly on the price chart. It detects and plots internal and swing market structures, including Break of Structure (BOS) and Change of Character (CHoCH). The script highlights order blocks, stron

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of SMC Luxmod Nuburo4
3 stars

This indicator calculates the Money Flow Index (MFI) and detects regular and hidden divergences between price action and the MFI oscillator in a separate pane. It identifies high and low pivot points using a configurable lookback length and evaluates trade con

Indicator v5 Oscillators & momentumDivergence Repaints
Updated 5 months ago · None stated GitHub repository of MFI Divergences Lower
2 stars

This indicator applies a k-Nearest Neighbors machine learning algorithm to calculate price predictions and direction on the main chart. It analyzes sequences of historical price data points to locate similar patterns and averages nearest neighbor matches. User

Indicator v5 AI / machine learningTrend Repaints
Updated 8 months ago · None stated GitHub repository of Machine Learning: kNN (New Approach)
1 stars

An overlay indicator that uses a wide SuperTrend-style trail with a zero-lag bias to print always-in buy and sell flips while ignoring small moves. Settings set the trail factor, price smoothing, minimum bars between flips, a break buffer and a minimum adverse

Indicator v5 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Nexus Prime Engine v2.1 Anti-Noise
1 stars

Overlay indicator for detecting extreme opening-drive anomalies, drawing swing-based zones and many combined markers. Version three adds a conditional gate requiring a relative volume, Grand Slam, unified combo, all-time high volume, HCT or large displacement

Indicator v5 BreakoutSessions & time
Updated 2 months ago · None stated GitHub repository of TNT Opening Drive OD v3

IPOB-Tracker

by Allen1212
303 stars

IPOB-tracker is an overlay indicator that visualizes historical stock purchase and sale transactions made by ARK Invest funds. It plots chart labels directly on the price chart at specific historical timestamps, marking buy actions with green upward labels bel

Indicator v4 Screeners & dashboards
Updated 2 years ago · None stated GitHub repository of IPOB-Tracker
99 stars

The Jurik Composite Fractal Behavior indicator computes a weighted average of efficient trend lengths as a composite fractal behavior value, also known as the trend duration index. It processes a user-specified source series using a max lookback length and cal

Indicator v6 TrendOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Jurik Composite Fractal Behavior

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