Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 131)

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

47 stars

This indicator plots a trimmed mean moving average of the close on the price chart. It sorts each lookback window, drops a user-set percentage of the lowest and highest values from each tail, and averages the remaining middle portion. Period sets the window le

Indicator v6 Moving averages
Updated 8 months ago · MIT GitHub repository of TRIM: Trimmed Mean Moving Average

Moving Average Weighted

by TWODS-CAPITAL
37 stars

This indicator calculates a weighted moving average of a chosen price source and plots the result on the price chart. It uses TradingView's built-in weighted moving average function, so more recent bars receive greater weight than older bars. Length sets the n

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

This overlay indicator detects a trading range from clustered pivots, falling back to the highest and lowest prices over a lookback, and scores it with eight weighted factors. The score moves the range through Inactive, Building, Confirmed, Mature, and Breakin

Indicator v6 Support & resistanceVolatility & bands
Updated 3 days ago · MIT GitHub repository of Trading Range State Machine [WavesUnchained]

ICT State Machine

by alboogycOdR
6 stars

This overlay indicator walks price through a configurable ICT state sequence on the chart. It can require a four-hour CRT bias, an Asian range, manipulation, a New York macro window, a liquidity sweep, a market structure shift, CISD, a fair value gap, and a re

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

Imagegpt Test 1

by g-moe
3 stars

Imagegpt Test 1 is a comprehensive chart overlay indicator that plots buy, sell, and reversal signals along with supply and demand zones. It calculates key levels using volume pivots and features integrated Bollinger Bands alongside entry, exit, stop-loss, and

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 5 months ago · None stated GitHub repository of Imagegpt Test 1
2 stars

This indicator draws an equity factor dashboard in a separate pane. It can show a correlation table over a chosen length and a performance table based on rate of change or Sharpe ratio. Optional implied correlation plots, including single and double normalizat

Indicator v5 Screeners & dashboardsOscillators & momentum
Updated 8 months ago · None stated GitHub repository of CE - 42MACRO Equity Factor Table

Wilder's Moving Average (RMA)

by mushroom-men-Trading
2 stars

This script calculates and plots Wilder's Relative Moving Average (RMA) of a chosen source over a user-defined period. It applies an optimized exponential warmup compensator to ensure accurate early bar values while maintaining O(1) computational complexity. T

Indicator v6 Moving averages
Updated 9 months ago · None stated GitHub repository of Wilder's Moving Average (RMA)

Language support probe r1

by GammaExpansion
1 stars

This indicator acts as a test probe to verify Pine Script v5 language features within an offline engine. It tests custom enum declarations, enum inputs, string formatting, functions, collections, and historical enum referencing. In addition, it constructs symm

Indicator v5
Updated 7 days ago · MIT GitHub repository of Language support probe r1

Golden Spiral

by morindok
1 stars

This overlay indicator draws golden and optional symmetric spirals between two user-selected time and price anchors on the price chart. It measures the selected range, counts green, red, and total candles, and sums their high-to-low heights, then uses the chos

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Golden Spiral

NO.1 Major Daily Signal v2

by vedkanani123
1 stars

A price-chart indicator that prints buy and sell labels aimed at one larger intraday price move per UTC day, with the target size set in price units. A first signal can come from a trend breakout or a completed Asia range break, optionally preferring the day-o

Indicator v6 TrendBreakout Repaints
Updated 2 months ago · None stated GitHub repository of NO.1 Major Daily Signal v2
1 stars

Overlay indicator that looks for co-occurrence of high-volume displacement candles and a PBJ trend filter, then marks the result on the price chart. Both bullish and bearish pattern families are included, with toggles for UUUU, UUU, UU and Omega variants. Sett

Indicator v5 VolumeBreakout
Updated 2 months ago · None stated GitHub repository of HV+D PBJ PPD v1 (No HTF)

RSI Cyclic Smoothed v2

by mikeyhu70
1 stars

This indicator plots a cyclic smoothed RSI in a separate pane, with a dominant cycle length, a maximum cycle and a divider as inputs, plus vibration and leveling values. Two signal lines use selectable moving average types with automatic or manual lengths, and

Indicator v5 Oscillators & momentumMoving averages
Updated 6 months ago · None stated GitHub repository of RSI Cyclic Smoothed v2

ATR Delta

by ivansoft
1 stars

Draws step-line bands around each candle on the price chart, sized from a rolling median of previous true range or candle body range. Two divisors set the band width for the high and low range and for the body range; the body version is shown by default and th

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

DSY-tracker

by Allen1212
303 stars

DSY-tracker is an overlay indicator that marks recorded ARK Invest purchases of DSY on the price chart. When the ETF input is set to ALL, it places green buy labels below bars on a fixed list of dates beginning in November 2019. The ETF setting switches the di

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

Function K-Means Clustering

by ricardosantos79
261 stars

This indicator implements a K-means clustering algorithm in Pine Script to partition two-dimensional data points into user-defined clusters. It features an internal pseudo-random number generator for centroid initialization and computes Euclidean distances acr

Indicator v4 AI / machine learning
Updated 4 years ago · None stated GitHub repository of Function K-Means Clustering

Sequential Indicator

by capissimo
114 stars

Sequential Indicator normalizes price data within a configurable lookback window using min-max scaling and applies linear regression smoothing. It tracks the number of bars elapsed since the smoothed values crossed upper, middle, or lower threshold conditions.

Indicator v4 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Sequential Indicator

Calculates John Ehlers' Recursive Median Filter, a nonlinear filter combining a 5-bar running median with exponential smoothing to reduce impulsive noise while maintaining responsiveness. The smoothing factor is calculated from the cycle period setting using E

Indicator v6 Moving averagesTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Recursive Median Filter (RMED)

TRIX

by mihakralj
47 stars

The TRIX indicator calculates the percentage rate of change of a triple-smoothed exponential moving average (EMA) applied to a selected price source. It incorporates explicit warm-up logic to ensure stable runtime initialization without relying on uncompensate

Indicator v6 Oscillators & momentumMoving averages
Updated 8 months ago · MIT GitHub repository of TRIX

Trend Persistence Score calculates a composite trend-efficiency oscillator plotted in a separate pane, grading trend strength and durability on a 0 to 100 scale. It integrates four distinct metrics: linear regression R-squared, Kaufman Efficiency Ratio, ADX wi

Indicator v6 TrendVolatility & bands
Updated 3 days ago · MIT GitHub repository of Trend Persistence Score [WavesUnchained]
6 stars

This indicator tracks a configurable ICT sequence on the price chart. It advances through optional stages: Asian range bias, manipulation, New York macro windows, liquidity sweep, market structure shift, CISD, fair value gap, and retracement into that gap. Pre

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of ICT State Machine Sequential Entry
3 stars

Inner Outer Risk Zones plots horizontal price levels and risk boundary zones directly on the main price chart. The indicator allows traders to input manual target and support levels—including Outer Top, Inner Top, Inner Bottom, and Outer Bottom—along with risk

Indicator v5 Support & resistance
Updated 5 months ago · None stated GitHub repository of Inner Outer Risk Zones
2 stars

This indicator visualizes recent market price action on a circular polar coordinate system in a separate pane. It normalizes bar open, high, low, and close values across a specified lookback length into angular degrees and renders circular candlestick bodies a

Indicator v5
Updated 8 months ago · None stated GitHub repository of Circular Candlestick Chart

M_time

by GammaExpansion
1 stars

M_time is a utility test script designed to evaluate Pine Script built-in time and environment variables. It calculates and plots various date components, timestamps, session flags, timeframe properties, symbol metadata, and bar state indicators in a separate

Indicator v5
Updated 7 days ago · MIT GitHub repository of M_time

NO.1 Perfect Buy/Sell

by vedkanani123
1 stars

A price-chart indicator that stays always in one direction after the first confirmed mark: a buy exits shorts and holds long until the next sell, and the reverse. It uses a causal trail, trend, range and shock regime detection, a score threshold and an optiona

Indicator v6 TrendVolatility & bands Repaints
Updated 2 months ago · None stated GitHub repository of NO.1 Perfect Buy/Sell
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns. An algorithm mode setting switches between looser and strict engulfing definitions, and a threshold separates big from small candles. Other settings set the maximum number of engu

Indicator v5 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones V2

ATR Range

by ivansoft
1 stars

Plots two step-line levels on the price chart at the previous bar's midpoint plus and minus a moving average of ATR measured over about 15 minutes of bars. When price closes beyond a level while making a new extreme, the matching line is drawn thicker in red.

Indicator v5 Volatility & bandsBreakout
Updated 1 year ago · None stated GitHub repository of ATR Range

DYNS-tracker

by Allen1212
303 stars

This overlay indicator marks historical ARK Invest purchases and sales of DYNS on the price chart. It places green buy labels below bars and red sell labels above bars at fixed calendar dates, with an X1 count of how many ARK ETFs traded that day. An ETF input

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

Function Polynomial Regression

by ricardosantos79
261 stars

This script defines a function that performs polynomial regression on arrays of points. It maintains two arrays of size given by the length input, storing recent high prices and bar indices at pivot highs as well as low prices and bar indices at pivot lows. Th

Indicator v4
Updated 4 years ago · None stated GitHub repository of Function Polynomial Regression
99 stars

Calculates John Ehlers' Reflex indicator to measure price cycle reversal tendencies and trend direction with low lag. The script pre-filters price data using a two-pole Super Smoother Filter, measures linear extrapolation slope deviations over a lookback windo

Indicator v6 Oscillators & momentumTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Reflex Indicator

f_print()

by be-thomas
65 stars

This debugging utility script demonstrates how to create a print helper function in Pine Script using persistent labels. It defines a function that creates a single label on the first bar and continuously updates its coordinates and text content on subsequent

Indicator v4
Updated 6 days ago · GPL-3.0 GitHub repository of f_print()

TTM Trend

by mihakralj
47 stars

This indicator calculates a short-term trend filter based on an exponential moving average and its slope. It identifies upward, downward, or neutral states by evaluating bar-to-bar changes in the average, coloring the plotted line accordingly. It also calculat

Indicator v6 TrendMoving averages
Updated 8 months ago · MIT GitHub repository of TTM Trend

This indicator scans price action for symmetric, ascending, and descending triangle chart patterns using a sliding window of confirmed swing pivots. It fits upper and lower boundary trend lines across swing highs and lows, rating each pattern with a composite

Indicator v6 BreakoutSupport & resistance
Updated 3 days ago · MIT GitHub repository of Triangle Compression Scanner Pro [WavesUnchained]

Institutional CRT Engine

by alboogycOdR
6 stars

Calculates Candle Range Theory (CRT) ranges using specific one-hour or four-hour New York session candles. The indicator draws CRT range boxes directly on the price chart and plots entry signals based on Market Structure Shifts (MSS) with Fair Value Gaps (FVG)

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

Inside Extended

by g-moe
3 stars

Inside Extended tracks inside bar patterns and projects their initial breakout ranges on the price chart. When a candle body falls completely within the high-low range of the prior candle, the indicator marks the inside bar in yellow and establishes the mother

Indicator v5 Candlestick patternsBreakout
Updated 5 months ago · None stated GitHub repository of Inside Extended

Cup & Handle Final

by regalouisei
2 stars

This overlay indicator searches price history for cup and handle shapes using left and right pivot lengths and a lookback of prior pivots. It draws the cup fill, border, and retrace on the price chart. Settings limit how steep the top line may be, how tall the

Indicator v5 BreakoutSupport & resistance
Updated 8 months ago · None stated GitHub repository of Cup & Handle Final

Mincontract Version Probe

by GammaExpansion
1 stars

The Mincontract Version Probe indicator measures and plots the minimum contract size allowed for the current symbol using the syminfo.mincontract variable. Rendered in a separate pane below the main price chart, this utility script serves as a test probe to in

Indicator v5
Updated 7 days ago · MIT GitHub repository of Mincontract Version Probe

HTF Sessions

by morindok
1 stars

Splits the chart into periods of a chosen higher timeframe, daily by default, and draws on the price chart. At each new period it adds a vertical line, a box around the most volume-heavy stretch of recent candles, and an orange running average of closes since

Indicator v5 Sessions & timeVolume Repaints
Updated 7 weeks ago · None stated GitHub repository of HTF Sessions

NO.1 Perfect Buy/Sell v2

by vedkanani123
1 stars

A price-chart indicator for lower timeframes that draws EMA 9, 21, 50 and SMA 200 clouds and prints always-in buy and sell flips. Signals combine EMA stack or cross, RSI, ADX and DI, relative volume and a lock that blocks tiny sideways ranges. The higher-timef

Indicator v6 TrendMoving averages Repaints
Updated 2 months ago · None stated GitHub repository of NO.1 Perfect Buy/Sell v2
1 stars

Overlay indicator that combines many named combo signals on the price chart. Groups include relative volume extremes, double displacement and stack patterns, Katana session signals, whale high-volume markers with pocket pivot combos, SAAB and KRATOS squared pa

Indicator v5 VolumeSessions & time
Updated 2 months ago · None stated GitHub repository of Jumbo CIA First Bar Only Fauna
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns. Algorithm modes range from looser to strict engulfing, with a threshold separating big from small candles. Settings limit how many zones and how much history are kept, with a sepa

Indicator v5 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones V2

ATR Test

by ivansoft
1 stars

Shows bar range statistics in a separate pane: one-bar true range, candle body range and rolling percentile levels such as the median, 75th, 90th and 95th percentiles of true range. The lookback length is chosen from the chart timeframe. Blue columns mark bars

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

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