Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 123)

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

TD Sequential V2

by mikeyhu70
1 stars

A Pine Script v5 indicator on the price chart that counts consecutive closes against the close four bars earlier, separately for falling and rising markets, and adds a bonus count that compares closes with two bars earlier once the setup passes nine. The count

Indicator v5 Oscillators & momentum
Updated 6 months ago · None stated GitHub repository of TD Sequential V2

Chart CAGR

by ivansoft
1 stars

An indicator that reports the growth rate and compound annual growth rate between the first and last visible bars of the chart. It uses the open of the leftmost visible bar and the close of the rightmost visible bar, then shows both values as percentages in a

Indicator v5 Screeners & dashboards
Updated 1 year ago · None stated GitHub repository of Chart CAGR

The Zero Lag Exponential Moving Average indicator calculates and plots a moving average designed to minimize lag relative to price action. It achieves this by subtracting price data from a prior lag period prior to smoothing with an exponential moving average.

Indicator v4 Moving averagesTrend
Updated 12 days ago · GPL-3.0 GitHub repository of Zero Lag Exponential Moving Average

CGENM-tracker

by Allen1212
303 stars

CGENM-tracker marks recorded ARK Invest activity for the CGENM stock directly on the price chart. The visible code places three red downward labels reading Sell above the bars for 12, 13, and 16 November 2020, using bar timestamps and above-bar placement. It d

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

This indicator computes the Ehlers Correlation Cycle in a separate pane. It correlates a chosen price source with cosine and negative-sine waves of a fixed period, then converts those real and imaginary components into a phasor angle that cannot move backward.

Indicator v6 Oscillators & momentumTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Correlation Cycle (CCOR)
65 stars

This indicator walks a user-set lookback and compares the current true range with each earlier true range. It adds the sign of each difference into a running balance, plots that balance in a separate pane, and draws a zero line. For every step it also draws a

Indicator v4 Volatility & bandsSupport & resistance
Updated 6 days ago · GPL-3.0 GitHub repository of Debugging from inside for loops
47 stars

This indicator calculates the midpoint between each bar's open and close as half their sum and plots that series on the price chart. A small function multiplies the sum by one half instead of dividing, which the source notes as a performance choice. There are

Indicator v6
Updated 8 months ago · MIT GitHub repository of Open-Close Midpoint (OC2)
46 stars

This indicator summarizes higher-timeframe candle range statistics by time of day and shows them in a table in a separate pane. It groups candles into slots for 5-minute, 15-minute, 1-hour, 4-hour, 8-hour, or 12-hour periods over a chosen lookback in days, and

Indicator v5 Screeners & dashboardsSessions & time Repaints
Updated 8 weeks ago · None stated GitHub repository of HTF Candle Stats by Time of Day

Kicking - Bearish

by TWODS-CAPITAL
37 stars

This indicator identifies and highlights bearish kicking candlestick patterns directly on the price chart. It searches for a two-bar formation consisting of a bullish marubozu followed by a bearish marubozu that opens with a gap down below the prior candle's l

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

This indicator scores each pivot-to-pivot price leg from 0 to 100 and draws the result on the price chart. It combines path efficiency, time efficiency, and counter-pressure, then colors completed leg lines and optional labels. A live score updates on the unfi

Indicator v6 Support & resistanceTrend
Updated 3 days ago · MIT GitHub repository of Relative Leg Efficiency [WavesUnchained]

CRT State Engine

by alboogycOdR
6 stars

This indicator overlays a CRT state engine on the price chart using New York time. It tracks optional 1AM, 5AM and 9AM models, session states, market structure, liquidity pools, and a volume profile with point of control and value area. Live entry markers need

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

My script

by regalouisei
2 stars

This indicator calculates a 14-period Relative Strength Index on the close and turns the result into a directional signal. It sets a buy when RSI crosses above 40 and a sell when RSI crosses below 60, then stores plus one, minus one, or zero. The value is plot

Indicator v6 Oscillators & momentum
Updated 8 months ago · None stated GitHub repository of My script
2 stars

This indicator loads the Federal Reserve total-assets series through the Quandl FRED/WALCL feed and plots it in a separate pane. When the published balance-sheet value changes, it calculates the percentage change in that series and the percentage change in the

Indicator v4
Updated 2 years ago · None stated GitHub repository of PSMC - QUANDL Fed Balance Sheet

P_ver_duplicate_param

by GammaExpansion
1 stars

This minimal script serves as a parser test fixture within the OptiPine test suite. It runs in Pine Script v6 and plots the closing price in a separate pane while deliberately including duplicate title parameters in the plot call. The script contains no user-c

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

DEPV2 Debug Sigt

by YuceSezar89
1 stars

This indicator evaluates trading signals across up to twenty cryptocurrency pairs using four core analytical dimensions: trend, momentum, volatility, and volume. It generates signals based on configurable confluence modes, including single-category triggers, s

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 Debug Sigt

Internal Candle Strength

by vedkanani123
1 stars

An overlay indicator that splits each candle on the chart into horizontal rows and measures, using lower-timeframe candles, how bullish or bearish the price action was inside each row. Each row is labeled with a strength percentage and colored on a red to teal

Indicator v6 Volume Repaints
Updated 2 months ago · None stated GitHub repository of Internal Candle Strength
1 stars

A volume pattern indicator that draws toggleable signals on the price chart. It includes relative volume patterns such as SAAB, Kratos, Grand Slam, MOAB, Hiroshima and Nagasaki, several long and short setups, high-volume markers across a range of lookbacks, an

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

A Pine Script v5 indicator that approximates a Tom DeMark style count on the price chart. It compares each bar with the one four bars earlier, keeps a running count over a lookback window, and plots a green up triangle at nine and a red down triangle at thirte

Indicator v5 Oscillators & momentum
Updated 6 months ago · None stated GitHub repository of Tom DeMark 9 and 13 Buy/Sell Signals

Day High Low Test

by ivansoft
1 stars

Experimental overlay that marks the day's high and low and the session open on the price chart, with lines, labels and background shading. It includes special handling for Moscow Exchange futures sessions (main and evening) and uses lower-timeframe requests to

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Day High Low Test
947 stars

Moving Average Channel plots separate simple moving averages for upper and lower bands on the price chart. It fills the space between bands with semi-transparent color and colors bars green above the upper band, red below the lower band, or gray in between. Us

Indicator v4 Moving averagesSupport & resistance
Updated 12 days ago · GPL-3.0 GitHub repository of Moving Average Channel

CLDR-tracker

by Allen1212
303 stars

This indicator plots historical buy and sell transactions executed by ARK Invest for Cloudera directly on the price chart. It renders visual labels at specific bar timestamps to show transaction dates and trade counts across tracked funds. The primary setting

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

[RS]Function - Days in a Month

by ricardosantos79
261 stars

This utility indicator calculates and plots the total number of days in a specified calendar month and year. It plots a constant numeric value in a separate pane based on user-defined inputs for the year and month. The underlying function bounds the month inpu

Indicator v5
Updated 4 years ago · None stated GitHub repository of [RS]Function - Days in a Month
99 stars

This indicator plots John Ehlers' Cyber Cycle in a separate pane. It smooths the chosen source with a four-bar FIR filter, then applies a two-pole high-pass IIR filter to isolate the dominant cycle. A one-bar delayed trigger line supports crossover reading aga

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Cyber Cycle (CCYC)
65 stars

This overlay indicator shows how a value computed inside a function can be read outside it. A one-element float array stores the current average of high, low, close, and the previous average, falling back to close when that average is missing. The function the

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

This indicator calculates the arithmetic average of the open, high, and low prices for every bar and plots the resulting series directly on the main price chart. The calculation uses constant multiplication rather than division to optimize execution speed. It

Indicator v6
Updated 8 months ago · MIT GitHub repository of Open-High-Low Average (OHL3)

MTF Swing Highs and Lows

by TamaraKGreen
46 stars

This indicator plots multi-timeframe swing highs and lows on the price chart. It finds pivots with Bill Williams fractals or, when the filter is on, a stricter regular fractal, then stores the latest high and low. Users can show daily, four-hour, one-hour, 30-

Indicator v5 Support & resistance
Updated 8 weeks ago · None stated GitHub repository of MTF Swing Highs and Lows

Kicking - Bullish

by TWODS-CAPITAL
37 stars

This indicator detects a bullish kicking candlestick pattern on the price chart. It marks a two-candle sequence in which the prior candle is a black marubozu and the current candle is a white marubozu that gaps above the prior high. A K label is drawn below th

Indicator v5 Candlestick patterns
Updated 3 years ago · MIT GitHub repository of Kicking - Bullish

This indicator measures the relative strength of a chart symbol compared to a benchmark symbol, such as SPY or QQQ. It plots either a raw relative strength ratio or a Mansfield RS oscillator in a separate pane. Confluence signals trigger when relative strength

Indicator v6 TrendOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Relative Strength Line [WavesUnchained]

Predictive Moving Average Convergence Divergence - Ryder calculates a classic MACD oscillator with customizable fast, slow, and signal lengths. In addition to plotting the standard MACD line, signal line, and histogram in a separate pane, it calculates forward

Indicator v6 Oscillators & momentumMoving averages

Heikin Ashi

by g-moe
3 stars

This indicator combines a standard relative strength index (RSI) with a Heikin Ashi moving average trend visualization in a separate pane. It calculates the RSI along with a customizable moving average overlay supporting SMA, EMA, SMMA, WMA, and VWMA types. Ad

Indicator v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of Heikin Ashi

NIG Probability Table

by regalouisei
2 stars

This indicator estimates a normal-inverse Gaussian distribution from recent log returns and approximates the probability of price falling in each return bin. It measures mean, standard deviation, skewness, and kurtosis over a rolling window, then sets the bin

Indicator v6 Volatility & bandsScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of NIG Probability Table

Simple Moving Average (SMA)

by mushroom-men-Trading
2 stars

This script calculates and plots a Simple Moving Average on the price chart. It uses a custom function with circular buffer and running sum for efficient computation of the SMA value from the chosen source, defaulting to close prices. The primary setting allow

Indicator v6 Moving averagesTrend
Updated 9 months ago · None stated GitHub repository of Simple Moving Average (SMA)

PSMC - Splitting Alerts

by Web3Degenerate
2 stars

This indicator demonstrates how to configure and separate multiple alert triggers using input toggles. It calculates a 7-period RSI to identify overbought and oversold conditions, alongside candlestick confirmations when price closes against the extreme. Signa

Indicator v4 Oscillators & momentumCandlestick patterns
Updated 2 years ago · None stated GitHub repository of PSMC - Splitting Alerts

P_ver_ema_series_length

by GammaExpansion
1 stars

This indicator plots an exponential moving average of the close price in a separate pane. The average length is not a user setting. On each bar it equals the bar index modulo ten, plus one, so the length cycles through the integers from one to ten. Because the

Indicator v6 Moving averages
Updated 7 days ago · MIT GitHub repository of P_ver_ema_series_length

DEPV2 Günlük Veri 1

by YuceSezar89
1 stars

This indicator plots open, high, low, and close for eleven user-selected symbols in a separate pane, using the chart timeframe. The chart symbol supplies the first series, while the others are requested from Binance USDT perpetual pairs by default. Symbol inpu

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

A trend indicator drawn on the price chart that plots EMA 9, 21, 50 and SMA 200 with shaded clouds between them. Buy and sell conditions are filtered by RSI thresholds, a minimum and rising ADX, relative volume, and a smart range filter that skips small or cho

Indicator v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of JL2 EMA RSI ADX Volume Smart Range

A Pine Script v5 indicator that draws bullish and bearish order block zones on the price chart, with volume information shown inside each zone. Swing length sets how pivots are found, zones can be combined, sized with a maximum ATR multiplier and limited to a

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

CLLS-tracker

by Allen1212
303 stars

This indicator plots historical buy and sell transactions executed by ARK Invest for Cellectis S.A. (CLLS) directly on the price chart. It renders green upward labels below price bars for purchase dates and red downward labels above price bars for sales dates,

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

[RS]Signal to Noise Bands

by ricardosantos79
261 stars

This overlay indicator plots a simple moving average of close as a center line and two pairs of bands around it. Width equals the standard deviation of close times the base-ten log of the ratio of the powered signal to the powered deviation. A second pair keep

Indicator v5 Volatility & bandsMoving averages
Updated 4 years ago · None stated GitHub repository of [RS]Signal to Noise Bands

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