Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 140)

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

Lower Forecast

by g-moe
3 stars

Lower Forecast is an oscillator indicator drawn in a separate pane based on the Market Forecast framework. It calculates three momentum curves—Intermediate, Nearterm, and Momentum—using fast stochastic formula variations across short and medium lookback window

Indicator v5 Oscillators & momentumDivergence
Updated 5 months ago · None stated GitHub repository of Lower Forecast

Heat Map Seasons

by regalouisei
2 stars

Heat Map Seasons plots a linear regression of typical price and colors each price bar by how far close sits from that line. It normalizes the gap with standard deviation, clamps extreme values, and maps them from aqua through yellow to red using a heat-sensiti

Indicator v5 TrendVolatility & bands
Updated 8 months ago · None stated GitHub repository of Heat Map Seasons

The Mirror Oscillator Pro indicator computes a custom oscillator by mapping RSI values to the range between detected pivot highs and lows on the selected timeframe. It offers multiple baseline choices including HH/LL extremes, ATR bands, Bollinger Bands, Ichim

Indicator v5 Oscillators & momentumSupport & resistance

Naga Disp v1

by nishpa800
1 stars

Marks a candle when a very high volume reading and a large displacement happen on the same bar. Volume tiers compare the bar against lookbacks of 1000, 2000, 3000 and 4000 bars, and displacement compares the candle range to a standard deviation multiple with a

Indicator v5 VolumeSessions & time
Updated 2 months ago · None stated GitHub repository of Naga Disp v1
1 stars

A Pine Script v4 indicator that draws daily and weekly levels on the price chart, built from a volume-profile style calculation. It works out the point of control and value area (default share 68.3 percent for the first timeframe, 86.6 percent for the second)

Indicator v4 Support & resistanceVolume Repaints
Updated 6 months ago · None stated GitHub repository of Daily Weekly Monthly Level

HDB Tracker

by Allen1212
303 stars

The HDB Tracker indicator visualizes historical buy and sell transactions made by ARK Invest funds in HDB stock. It plots colored labels directly on the price chart at specific trade dates, displaying the operation type and the count of participating ARK funds

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

Test-016-Matrices

by ricardosantos79
261 stars

This script demonstrates matrix operations in Pine Script v4 using one-dimensional arrays before native matrix types were introduced. It provides custom functions to initialize pseudo-matrices, perform matrix multiplication, and compute matrix transpositions.

Indicator v4
Updated 4 years ago · None stated GitHub repository of Test-016-Matrices
99 stars

Gann High-Low Activator plots a trend line on the price chart from simple moving averages of highs and lows. Close above the high average sets a bullish trend and the line follows the low average; close below the low average sets a bearish trend and the line f

Indicator v6 TrendMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Gann High-Low Activator

My Script

by be-thomas
65 stars

This indicator tracks and plots the cumulative highest and lowest closing prices recorded across the entire chart history. Using custom recursive functions, it continuously compares the current bar close against historical state variables to maintain running e

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

Spinning Top White

by TWODS-CAPITAL
37 stars

Spinning Top White is a price-chart indicator that marks a bullish spinning top. It treats a candle as a match when both shadows are at least 34 percent of the range, the body is not a doji, and the close is above the open. On a match it draws an STW label bel

Indicator v5 Candlestick patterns
Updated 3 years ago · MIT GitHub repository of Spinning Top White

NY SMC Suite Pro v2.1

by alboogycOdR
6 stars

The NY SMC Suite Pro v2.1 is a TradingView indicator that plots Order Blocks and Fair Value Gaps directly on the price chart to visualize Smart Money Concepts. It also displays customizable trading sessions including 714AM, NY Open, and 714PM with adjustable t

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of NY SMC Suite Pro v2.1

Lower Labels

by g-moe
3 stars

Lower Labels is a cross-asset market structure indicator that plots candles and swing structure labels for a selected secondary symbol in a separate pane. It calculates pivot highs and pivot lows to classify market structure patterns including higher highs, hi

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 5 months ago · None stated GitHub repository of Lower Labels

HH-LL ZZ

by regalouisei
2 stars

This indicator detects higher highs and lower lows on the price chart by counting a user-specified number of breaches in the chosen source value. When the count reaches the threshold, it plots a horizontal line and a label at the new level. It also draws suppo

Indicator v5 Support & resistance
Updated 8 months ago · None stated GitHub repository of HH-LL ZZ

Mirror Oscillator Pro is a custom momentum indicator displayed in a separate pane. It projects mirrored price calculations using recent pivot highs, pivot lows, and a selectable baseline anchor such as Golden Cloud, ATR, Bollinger Bands, or Ichimoku. An RSI ca

Indicator v5 Oscillators & momentumMoving averages

Strong Gold Signals

by vedkanani123
1 stars

A gold-oriented price-chart indicator that looks for liquidity sweeps followed by a rejection wick. Swept levels can come from macro pivots, the previous higher-timeframe bar, or session highs and lows for Asia, London and New York. Each signal draws a stop be

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of Strong Gold Signals

Naga Disp v1 (Tick)

by nishpa800
1 stars

Marks a candle when a very high volume reading and a large displacement happen on the same bar. Volume tiers compare the bar against lookbacks of 1000, 2000, 3000 and 4000 bars, and displacement compares the candle range to a standard deviation multiple with a

Indicator v5 VolumeSessions & time
Updated 2 months ago · None stated GitHub repository of Naga Disp v1 (Tick)
1 stars

This indicator draws Future Line of Demarcation lines on the price chart: the price source is shifted forward by half a cycle for up to three cycle periods, with automatic or manual periods and bar multipliers based on the chart timeframe. Projected forward an

Indicator v4 Support & resistance Repaints
Updated 6 months ago · None stated GitHub repository of FLD with Projection Simple V2

HEI-tracker

by Allen1212
303 stars

This indicator marks historical ARK Invest purchases and sales of HEI on the price chart. It places green buy labels below bars and red sell labels above bars at fixed calendar dates, with text such as Buy X1 or Sell X1 for the number of ETFs trading that day.

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

Test-017-zz

by ricardosantos79
261 stars

This indicator draws a zigzag overlay on the price chart. It offers four reversal methods: a manual percent move from parameters X and Y, a percent of ATR, a running maximum true range, or confirmed high and low pivots. The function tracks extremes since the l

Indicator v4 Support & resistance
Updated 4 years ago · None stated GitHub repository of Test-017-zz
99 stars

This indicator plots a Gaussian filter of a chosen price source on the price chart. It builds a normalized Gaussian kernel whose width follows the sigma setting, then convolves that kernel with recent bars to produce a smoothed value. Sigma controls how wide t

Indicator v6 Trend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Gaussian Filter (GAUSS)

My Script

by be-thomas
65 stars

This Pine Script v4 educational indicator demonstrates dynamic label creation directly on the price chart. On every bar, the script instantiates a chart label and evaluates whether the bar closed higher than or equal to its open. For bullish bars, it renders a

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

Stochastic

by TWODS-CAPITAL
37 stars

This indicator plots a classic stochastic oscillator in a separate pane. It calculates %K from the close relative to the high-low range over a set length, then smooths that value, and calculates %D as a moving average of %K. It draws the %K and %D lines plus h

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Stochastic

Mizan Trinity Oscillator

by eddiebelaval
7 stars

The Mizan Trinity Oscillator synthesizes normalized Commodity Channel Index (CCI), Chaikin Money Flow (CMF), and On-Balance Volume Rate of Change (OBV ROC) into a single composite oscillator plotted in a separate pane. Each component is scaled from 0 to 100 an

Indicator v5 Oscillators & momentumVolume
Updated 3 months ago · None stated GitHub repository of Mizan Trinity Oscillator

M&M Trading

by g-moe
3 stars

M&M Trading is an overlay indicator that combines momentum calculations with moving averages and a visual dashboard. It calculates a modified Chande Momentum Oscillator with adjustable multipliers to identify bullish and bearish momentum triggers, optionally c

Indicator v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of M&M Trading
2 stars

Calculates and displays a miniature higher timeframe candlestick chart directly on the price chart using a TradingView table element. It retrieves OHLC data for a user-selected timeframe and symbol via security calls, rendering bodies and wicks onto an adjusta

Indicator v5 Screeners & dashboards
Updated 8 months ago · None stated GitHub repository of Higher Time Frame Chart Overlay

Naga Disp v2

by nishpa800
1 stars

Marks a candle when a very high volume reading and a large displacement happen on the same bar. Volume tiers compare the bar against lookbacks of 1000, 2000, 3000 and 4000 bars, and displacement compares the candle range to a standard deviation multiple with a

Indicator v5 VolumeSessions & time
Updated 2 months ago · None stated GitHub repository of Naga Disp v2
1 stars

This indicator draws Future Line of Demarcation lines on the price chart: the price source is shifted forward by half a cycle for up to three cycle periods, with automatic or manual periods and bar multipliers based on the chart timeframe. Projected forward an

Indicator v4 Support & resistance Repaints
Updated 6 months ago · None stated GitHub repository of FLD with Projection Simple V2a

HEN-tracker

by Allen1212
303 stars

HEN-tracker marks historical ARK Invest activity for the HEN stock directly on the price chart. The visible script places one green buy label below the bar at a fixed January 2020 date, with text showing a single buy. The only input is an ETF selector that off

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

test-018-error_input_ITEM_AT

by ricardosantos79
261 stars

This indicator is a Pine Script v4 test of updating a global float array from inside a function. It stores a one-element seed array and a local generator that pops the seed, mixes it with fixed constants, and pushes a new seed back. It calls the generator twic

Indicator v4
Updated 4 years ago · None stated GitHub repository of test-018-error_input_ITEM_AT
99 stars

This indicator calculates the geometric mean of a user-selected source over a lookback window and plots the result on the price chart. It sums the natural logs of positive values, then exponentiates their average. Missing and non-positive values are skipped, a

Indicator v6 Moving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Geometric Mean (GEOMEAN)

My Script

by be-thomas
65 stars

This indicator plots the closing price of each bar in a separate pane. It is a minimal Pine Script version 4 study titled My Script, used as a language-structure example. There are no input settings and no calculated series beyond the raw close. It does not ge

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

Stochastic RSI

by TWODS-CAPITAL
37 stars

This indicator calculates and plots the standard Stochastic RSI oscillator in a separate pane. It derives a Relative Strength Index from the selected price source, applies the Stochastic oscillator formula to those RSI values, and smooths the results into %K a

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Stochastic RSI

Higher-timeframe requests

by regalouisei
2 stars

This indicator calculates and plots higher-timeframe source data directly on the main price chart. It allows users to request higher-timeframe values using either a fixed timeframe setting or a dynamic multiplier of the chart's current timeframe. Users can tog

Indicator v5 Repaints
Updated 8 months ago · None stated GitHub repository of Higher-timeframe requests
1 stars

Mirror Oscillator Pro is a momentum oscillator plotted in a separate pane. It detects pivot highs and lows on a user-selected timeframe and price source using specified pivot lengths. The indicator builds multiple bands including highest-lowest ranges, ATR ban

Indicator v5 Oscillators & momentumVolatility & bands
Updated 7 weeks ago · None stated GitHub repository of Mirror Oscillator Pro by Morindok

SuperTrend Recovery

by vedkanani123
1 stars

A SuperTrend variant for the price chart using ATR bands around the midpoint of each bar. When price moves against the level where the trend last switched by more than a threshold in ATRs, the band moves toward price by a small percentage weight, so the trend

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of SuperTrend Recovery

Naga Disp v2 (Tick)

by nishpa800
1 stars

Marks a candle when a very high volume reading and a large displacement happen on the same bar. Volume tiers compare the bar against lookbacks of 1000, 2000, 3000 and 4000 bars, and displacement compares the candle range to a standard deviation multiple with a

Indicator v5 VolumeSessions & time
Updated 2 months ago · None stated GitHub repository of Naga Disp v2 (Tick)

MD Range Finder 2

by mikeyhu70
1 stars

A Pine Script v4 indicator that finds a recent price range over a set period and draws its baselines at 0, 0.5 and 1 on the price chart, then projects Fibonacci-style extension lines from it at ratios such as 0.382, 0.618, 2, 3 and 4. The timeframe can be auto

Indicator v4 Support & resistance
Updated 6 months ago · None stated GitHub repository of MD Range Finder 2

HEXAB Tracker

by Allen1212
303 stars

HEXAB Tracker plots historical buy and sell transactions from ARK Invest funds as labels directly on the price chart. It marks specific dates when ARK ETFs traded the asset, indicating transaction activity and aggregated counts across multiple funds. Users can

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

Test-020-Freq

by ricardosantos79
261 stars

This indicator counts how often rounded high-low ranges appear. After the first 100 bars, it measures the highest high and lowest low for every lookback from 1 to 100 bars, converts each range into bins of ten minticks, and stores a hit count in a large intege

Indicator v4 Volatility & bands
Updated 4 years ago · None stated GitHub repository of Test-020-Freq

Granger Causality Test

by mihakralj
99 stars

Calculates the Granger Causality F-statistic with lag 1 to test whether a secondary symbol helps predict a primary price series. The script computes rolling means, variances, and covariances over a specified lookback period using circular buffers. It outputs t

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Granger Causality Test

My Script

by be-thomas
65 stars

My Script is a Pine Script v4 indicator that overlays the price chart. It compares each bar's open with its close and plots a bear character when the open is greater than the close, marking bearish candles. It does not calculate an oscillator, moving average,

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

The Per Bak Self-Organized Criticality indicator calculates a composite fragility score by blending weights for tail risk from the SKEW index, volatility regimes from VIX terms, credit stress from HYG and LQD, and positioning from short volume data. It plots t

Indicator v5 Volatility & bandsSupport & resistance
Updated 3 months ago · None stated GitHub repository of Per Bak Self-Organized Criticality
6 stars

The ORB + Fib + MACD Indicator combines Opening Range Breakout mechanics with Fibonacci retracement levels and MACD momentum filtering. It determines the high and low bounds of a user-defined initial session window, projects Fibonacci entry zones, and calculat

Indicator v5 Sessions & timeSupport & resistance
Updated 7 months ago · None stated GitHub repository of ORB + Fib + MACD Indicator
3 stars

This indicator calculates standard MACD line, signal line, and histogram values while evaluating swing high and swing low pivot points on price and MACD to detect divergence. It compares recent pivot levels to identify higher highs, lower lows, and trend state

Indicator v5 Oscillators & momentumDivergence Repaints
Updated 5 months ago · None stated GitHub repository of MACD - Divergence

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