Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 94)

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

CSW Auto Fib

by g-moe
3 stars

CSW Auto Fib draws Fibonacci retracement and extension levels on the price chart from the high and low of a selected time period. It tracks that period's extremes and plots horizontal lines at user-defined ratios, with optional labels and colors. Period choice

Indicator v5 Support & resistance Repaints
Updated 5 months ago · None stated GitHub repository of CSW Auto Fib

Criptom4N(r)

by IAMATOMIC001
3 stars

This indicator plots SuperTrend lines and SMA values on the price chart. It generates buy and sell signals from crossovers between close price and SuperTrend. Additional features include ATR-based stop loss and take profit levels, candlestick coloring, and swi

Indicator v5 TrendMoving averages Repaints
Updated 1 year ago · None stated GitHub repository of Criptom4N(r)

Smart Money Concepts

by TamTH-Dev
2 stars

This indicator maps market structure and session activity directly on the price chart. It detects and labels internal and swing structures with customizable confluence filters and candle coloring. Additionally, it highlights major trading killzones including N

Indicator v5 SMC / ICT / price actionSessions & time Repaints
Updated 6 weeks ago · None stated GitHub repository of Smart Money Concepts

Magnificent 7 Oscillator

by regalouisei
2 stars

Calculates smoothed momentum across the primary Magnificent 7 mega-cap tech stocks (AAPL, MSFT, GOOGL, AMZN, NVDA, TSLA, META) and optional additional tickers. It aggregates their performance either through equal weighting or market comparison modes against be

Indicator v6 Oscillators & momentumScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Magnificent 7 Oscillator

RSI Swing Signal

by Web3Degenerate
2 stars

This indicator plots an RSI oscillator in a separate pane and marks long and short setups when RSI is oversold or overbought and a swing low or swing high fractal forms with a reversing candle. It sizes a stop from the recent extreme plus an ATR multiple, then

Indicator v5 Oscillators & momentumCandlestick patterns
Updated 2 years ago · None stated GitHub repository of RSI Swing Signal

ZigZag Supertrend

by WISEPLAT
2 stars

This overlay indicator draws a ZigZag from recent pivot highs and lows and feeds those extremes into a Supertrend-style calculation that uses ATR. Pivot length, stored history, and ATR period and multiplier change how swings and the trend band form. Optional w

Indicator v4 TrendVolatility & bands Repaints
Updated 3 years ago · None stated GitHub repository of ZigZag Supertrend

RSI Zones

by jayadevrana
1 stars

Calculates the Relative Strength Index (RSI) based on close prices over a customizable period length. Plots the resulting oscillator in a separate chart pane alongside fixed horizontal lines at the standard 70 overbought and 30 oversold thresholds. When the RS

Indicator v6 Oscillators & momentum
Updated 5 days ago · MPL-2.0 GitHub repository of RSI Zones

SMC Orderflow Overlay

by skipp-dev
1 stars

SMC Orderflow Overlay is a separate-pane order flow indicator designed to complement Smart Money Concepts strategies. It plots relative volume, delta proxy values, ATS state and spike indicators, and flow direction confirmation markers. Traders can enable an o

Indicator v6 SMC / ICT / price actionVolume
Updated 5 days ago · None stated GitHub repository of SMC Orderflow Overlay

P_err_input_defval_series

by GammaExpansion
1 stars

This script serves as a test fixture within the OptiPine parser suite to test error handling when assigning a series integer to an input default value. It attempts to declare an integer input using the current bar index as its default value and plots the resul

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

DEPV2 DEBUG DAY

by YuceSezar89
1 stars

This debug version of the DEPV2 indicator tests multi-method signal logic. It evaluates four categories—TREND, MOMENTUM, VOLATILITY and VOLUME—across 20 cryptocurrency symbols including BTCUSDT, ETHUSDT, SOLUSDT and others. Users select signal modes for simult

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

SR v5

by 7b809
1 stars

An overlay indicator that marks support and resistance from pivot lows and highs filtered by a volume delta, with zones sized by ATR. Each signal is numbered and given a status of allowed or ignored, depending on whether it repeats the previous allowed type, a

Indicator v5 Support & resistanceVolume
Updated 2 weeks ago · None stated GitHub repository of SR v5
1 stars

The Mirror Oscillator Morindok calculates a bounded momentum oscillator in a separate chart pane. It computes dynamic price reflection levels using a moving average and high-low channels over a specified lookback window. The script normalizes the current closi

Indicator v6 Oscillators & momentumMoving averages
Updated 7 weeks ago · None stated GitHub repository of Mirror Oscillator Morindok

SR Breakout Auto TP/SL

by vedkanani123
1 stars

An overlay indicator that detects pivot highs and lows and draws the latest resistance and support as extended lines. A buy signal fires when the close crosses above resistance, and a sell when it crosses below support. Each signal draws entry, stop loss and t

Indicator v6 Support & resistanceBreakout
Updated 2 months ago · None stated GitHub repository of SR Breakout Auto TP/SL
1 stars

Marks the bar where a volume order block zone is first confirmed, at the completion of the moving average crossover, so the marker does not shift to an earlier bar afterwards. A sensitivity bank input selects the six sensitivity lengths, or custom values can b

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

FUTURES-IWBADT Reference

by GreyssonEnterprises
1 stars

A reference copy of a Pine v4 indicator that reads trend from 9 and 18 period EMAs on three higher timeframes (1 hour, 4 hour and daily by default), with an option to include the chart timeframe. Colours on the price chart show when all or only some timeframes

Indicator v4 TrendMoving averages Repaints
Updated 3 months ago · MIT GitHub repository of FUTURES-IWBADT Reference

Stochastic RSI

by rubbermetal
1 stars

Stochastic RSI plots smoothed K and D lines of a stochastic calculation in a separate pane, using smoothed moving average smoothing instead of a plain average. The K line shifts color from green to red by level. Overbought and oversold zones are filled, K/D cr

Indicator v6 Oscillators & momentum
Updated 4 months ago · MPL-2.0 GitHub repository of Stochastic RSI
1 stars

This indicator marks swing highs and lows from pivot bars on the price chart and projects dates ahead using Gann and Hurst cycle timing ideas. The first version uses one pivot setting and tables show the pivot dates and nearby future dates, with colours for bu

Indicator v5 Support & resistance
Updated 6 months ago · None stated GitHub repository of Gann Hurst Pivot HL 2024 V1
1 stars

This indicator overlays several optional trend tools on the price chart. It draws a ZigZag from a deviation setting and can plot a multi-timeframe Tillson T3, a Jurik moving average, an ALMA, and a Range Filter. Users switch each tool on or off and change leng

Indicator v6 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of Quad Trend Master & KalmanOSC

V5 Combination by yzz

by webcrack4
1 stars

Combines multiple analytical tools on the main price chart, prominently featuring an interactive Volume Profile and Market Profile alongside an overlaid MACD indicator. It calculates volume or price distribution over visible, anchored, or full ranges, plotting

Indicator v5 VolumeSupport & resistance
Updated 9 months ago · None stated GitHub repository of V5 Combination by yzz
1 stars

An indicator in a separate pane that measures how far the average of open and close has moved from the day's opening price. The difference is plotted as an area, green above the open and red below, and the day open is drawn on the price chart. Percentile lines

Indicator v6 Volatility & bands
Updated 1 year ago · None stated GitHub repository of DayOpen Delta Volatility
1 stars

An indicator that measures historical volatility from the standard deviation of log returns, annualised, then compares it with its own EMA. The result is normalised by a Bollinger-style deviation multiplier and plotted in a separate pane against dashed hot-mar

Indicator v5 Volatility & bands
Updated 1 year ago · None stated GitHub repository of Historical Volatility

Vortex Indicator

by amico1234
1 stars

The Vortex Indicator calculates positive (VI+) and negative (VI-) directional movement lines to help identify trend direction and momentum. It measures the sum of upward and downward price movements relative to the true range over a specified lookback period.

Indicator v4 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Vortex Indicator

A Pine v4 overlay that plots three simple moving averages of 50, 100 and 200 periods on a chosen source. The 50 and 100 lines turn green when rising and red when falling, while the 200 line changes colour depending on whether the close is above it. An optional

Indicator v4 Moving averagesTrend
Updated 3 years ago · None stated GitHub repository of QS Institutional Moving Averages

MTM Metric EMA

by JohnsonHsiao
1 stars

This indicator plots momentum bias metrics using three exponential moving averages (EMAs) of periods 20, 60, and 180. It calculates short_bias as the difference between the fast and mid EMAs, and mid_bias as the difference between the mid and long EMAs. These

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · None stated GitHub repository of MTM Metric EMA

TMA RSI Divergence

by rajatjpatel
1 stars

A separate-pane RSI divergence tool written in Pine v4. It plots a 14-period RSI in yellow with a 50-period smoothed average and a 50 midline, then detects pivot lows and highs of the RSI within a lookback range of 5 to 60 bars. Labels mark regular bullish, hi

Indicator v4 DivergenceOscillators & momentum
Updated 4 years ago · None stated GitHub repository of TMA RSI Divergence

This indicator calculates the distribution of close-to-close percentage changes using rate of change on closing prices. It bins percentage changes into intervals of 0.25 percent increments from negative to positive values and plots a normalized cumulative hist

Indicator v4 Volatility & bands
Updated 13 days ago · GPL-3.0 GitHub repository of Close-to-Close % Change Distribution

This indicator scans a pasted list of symbols and shows matching long and short setups in a table in a separate pane. It uses a Supertrend crossover, then applies an ATR or fixed-point volatility range so quiet, sideways conditions can be skipped. Optional fil

Indicator v5 TrendVolatility & bands
Updated 1 year ago · MPL-2.0 GitHub repository of Trend Following Setup - Sideways Market Skipper Scanner

ALLT Tracker

by Allen1212
303 stars

ALLT Tracker is an overlay indicator that plots historical buying and selling transactions from ARK Invest directly onto the price chart. It uses color-coded labels placed relative to price bars to display trade actions and the count of participating ETFs on s

Indicator v4
Updated 2 years ago · None stated GitHub repository of ALLT Tracker
261 stars

This script provides a collection of utility functions to handle complex numbers and compute a Discrete Fourier Transform (DFT) in Pine Script. It implements array-based mathematical structures to perform operations on real and imaginary components, facilitati

Indicator v5
Updated 4 years ago · None stated GitHub repository of Function Discrete Fourier Transform

Liquidity Zones - ICT

by TradersPost
228 stars

The Liquidity Zones - ICT indicator identifies and highlights potential buyside and sellside liquidity areas directly on the price chart. It tracks recurring price levels within a specified lookback period, grouping price touches that fall within a configurabl

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of Liquidity Zones - ICT
114 stars

This indicator applies a logistic regression binary classification model trained via gradient descent directly on chart data. On every bar, the model updates weights over a configurable number of training iterations and passes them through a sigmoid function t

Indicator v4 AI / machine learningTrend Repaints
Updated 1 year ago · None stated GitHub repository of Machine Learning: Logistic Regression

Beta Function (BETA)

by mihakralj
99 stars

This indicator calculates a rolling financial beta that compares percentage returns of a selected source with percentage returns of a second symbol, defaulting to SPY. It keeps a circular buffer of returns over a user-set period and plots the result as a yello

Indicator v6 Volatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Beta Function (BETA)

Smoothed candles

by be-thomas
65 stars

This indicator draws smoothed candlesticks on the price chart. It applies a simple moving average of a user-set length, defaulting to nine, separately to open, high, low, and close, then plots those four values with plotcandle. Wick color is green when the raw

Indicator v5 Moving averagesCandlestick patterns
Updated 7 days ago · GPL-3.0 GitHub repository of Smoothed candles
55 stars

Calculates dynamic trendlines and horizontal support and resistance levels using pivot highs and pivot lows with a fixed length of 10 bars. When a new pivot high or low is confirmed, the script updates extended trendlines connecting the two most recent pivots,

Indicator v5 TrendSupport & resistance
Updated 6 months ago · Apache-2.0 GitHub repository of AAPL Dynamic Line Analysis

Session Stat Map

by TamaraKGreen
47 stars

This indicator maps session ranges, opening prices, and derived projections directly onto the price chart. It calculates high and low boundaries during a defined reference session, such as pre-market hours, and overlays session open lines, range boxes, standar

Indicator v6 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of Session Stat Map
47 stars

This indicator calculates John Ehlers' Autocorrelation Periodogram to estimate the dominant cycle length of a market. It pre-filters price data using high-pass and smoothing filters, then computes Pearson correlation coefficients across a spectrum of lag perio

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Ehlers Autocorrelation Periodogram

Chaikin Oscillator

by TWODS-CAPITAL
37 stars

This script is a momentum indicator that calculates the Chaikin Oscillator. It measures the difference between the short and long period exponential moving averages of the Accumulation Distribution Oscillator. The indicator plots the oscillator values in a sep

Indicator v5 Oscillators & momentumVolume
Updated 3 years ago · MIT GitHub repository of Chaikin Oscillator

This indicator implements swing chart construction rules based on Perry Kaufman's Trading Systems and Methods. It runs up to three swing models simultaneously across two, three, and four-bar reversal thresholds, plotting swing lines directly on the price chart

Indicator v5 Support & resistanceTrend
Updated 2 weeks ago · MIT GitHub repository of Zen TSaM Swing Chart Multi-Mode 2/3/4

Elliott Wave Radar identifies and validates Elliott Wave impulse (1-5) and corrective (A-B-C) patterns using a dual-degree ZigZag pivot engine with an ATR noise filter. It checks structural rules and Fibonacci guidelines, scoring counts and projecting price ta

Indicator v6 TrendSupport & resistance
Updated 4 days ago · MIT GitHub repository of Elliott Wave Radar [WavesUnchained]

Multi Timeframe MA

by suyons
7 stars

Calculates and overlays up to ten moving averages from custom timeframes directly onto the main price chart. Each moving average line allows individual configuration of its timeframe, period length, and average type, supporting Simple Moving Average (SMA), Exp

Indicator v5 Moving averagesTrend Repaints
Updated 4 months ago · None stated GitHub repository of Multi Timeframe MA

VP Source Bundle Exporter

by 345-strategies
5 stars

This overlay indicator is a headless export aid for a frozen Volume Profile source bundle. It performs no profile calculation and draws no chart objects. It checks that the chart is a standard ES or MES futures contract matching a typed ticker and a 0.25 minti

Indicator v6
Updated 5 days ago · MPL-2.0 GitHub repository of VP Source Bundle Exporter

Rolling summary

by gorx1
5 stars

Rolling summary calculates a rolling statistical box over a chosen source and plots it on the price chart. It shows the simple moving average, median, first and third quartiles, interquartile range whiskers, and four extra percentiles. A log-space option trans

Indicator v4 Volatility & bands
Updated 8 months ago · None stated GitHub repository of Rolling summary

Volume Profile Lite [Lab]

by mitchell-917
4 stars

This indicator calculates an approximate volume profile over a specified lookback period or current intraday session. It divides the high-low range into a configured number of price bins, assigns each bar's volume to the corresponding bin based on its closing

Indicator v5 VolumeSupport & resistance
Updated 11 months ago · Custom licence GitHub repository of Volume Profile Lite [Lab]

Jash_test

by jash-git
3 stars

Jash_test is a price-chart overlay that plots five exponential moving averages using Fibonacci lengths: 3 and 13 as the fast pair, 34 and 55 as the slow pair, and 144 as a longer filter. It colors them red, orange, blue, purple, and black. On the current bar a

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

CSW Breakout Signals plots breakout buy and sell labels on the price chart when price breaks support or resistance after a trend change. Each signal can show a numbered confirmation score built from a moving-average cross, momentum, opening-range alignment, re

Indicator v5 BreakoutTrend
Updated 5 months ago · None stated GitHub repository of CSW Breakout Signals

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