Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 98)

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

1 stars

This indicator draws geometric ruler lines on the price chart from a user-chosen base time. It stores confirmed pivot highs and lows using left and right bar counts, and can use highs, lows, or both. Settings set colors and width for upper-shadow, lower-shadow

Indicator v6 Support & resistanceVolatility & bands
Updated 7 weeks ago · None stated GitHub repository of Ruler V2 Morindok by BITMOON618

Volatility Adjusted Cloud

by vedkanani123
1 stars

An overlay indicator that draws a cloud around a VIDYA, a volatility-adaptive moving average. Cloud width comes from the standard deviation of price over a history window, with separate positive and negative multipliers for the upper and lower edges. The cloud

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Volatility Adjusted Cloud

Draws volume order block zones with asymmetric signals on the price chart, then adds a proximity layer that checks how close those signals sit to high-volume, displacement and tier conditions. Version 1 is a tick-friendly build. It is an indicator only.

Indicator v6 SMC / ICT / price actionVolume

GitLemon Trailer

by GreyssonEnterprises
1 stars

An indicator that searches for W and M reversal shapes in price and optionally in OBV, Williams %R, MFI, RSI and directional movement, using one shared maximum width and offset. It can also test whether price sits within a Fibonacci retracement zone of the rec

Indicator v4 DivergenceOscillators & momentum
Updated 3 months ago · MIT GitHub repository of GitLemon Trailer

Trade Worthy

by rubbermetal
1 stars

Trade Worthy is a large multi-tool overlay indicator written in Pine v5. It shows a configurable dashboard of indicator readings, volume information and stats, with Pi moving averages on by default. Many other layers are off by default and can be switched on,

Indicator v5 Screeners & dashboardsMoving averages
Updated 4 months ago · MPL-2.0 GitHub repository of Trade Worthy

Goertzel Algorithm

by mikeyhu70
1 stars

This indicator applies the Goertzel algorithm, a signal-processing method for measuring a single frequency component, to price in a separate pane. A period length and a measurement block length set the cycle to test, and a training percentage and shift setting

Indicator v5 AI / machine learning
Updated 6 months ago · None stated GitHub repository of Goertzel Algorithm

V5 Combination by YZZ

by webcrack4
1 stars

This indicator combines multiple technical tools into a single price chart overlay, designed to optimize space and indicator limits. It features an overlay MACD visualizer with selectable calculation methods (Traditional, AS Histogram, Leader, or Source), cust

Indicator v5 TrendOscillators & momentum
Updated 9 months ago · None stated GitHub repository of V5 Combination by YZZ

For Loop Examples

by ivansoft
1 stars

Small teaching script showing how for loops work in Pine. One plot counts how many of the previous bars closed above the current close over a 14-bar lookback, and a second plot sums array elements using a loop step of five. It appears in a separate pane and ha

Indicator v6
Updated 1 year ago · None stated GitHub repository of For Loop Examples

Trendlines - JD

by nvFede
1 stars

A Pine v4 overlay by Joris Duyck that draws trendlines through pivot points and extends them forward. Lines can start from wicks or candle bodies, run indefinitely or for a limited number of bars, and be coloured by direction or in monochrome. Trendline breaks

Indicator v4 Support & resistanceTrend Repaints
Updated 3 years ago · None stated GitHub repository of Trendlines - JD

SMR

by JohnsonHsiao
1 stars

This indicator calculates a triple-smoothed Relative Strength Index oscillator and displays it in a separate pane. It evaluates momentum by applying the RSI calculation iteratively across three stages using a user-defined period. The script plots the resulting

Indicator v5 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of SMR

Calculates an Elastic Volume Weighted Moving Average (EVWMA), incorporating trading volume to dynamically adjust moving average responsiveness over a specified lookback length. It plots directly on the price chart as a single moving average line. Optional colo

Indicator v4 Moving averagesVolume
Updated 13 days ago · GPL-3.0 GitHub repository of Elastic Volume Weighted Moving Average
330 stars

This indicator calculates the MACD oscillator from a configurable source with fast and slow lengths, then plots the histogram, MACD line, and signal line in a separate pane. It detects regular bullish divergences (price lower lows with oscillator higher lows),

Indicator v5 Oscillators & momentumDivergence
Updated 2 months ago · None stated GitHub repository of MACD + Divergences [Alorse]

AMD-tracker

by Allen1212
303 stars

This indicator plots historical buy and sell transactions executed by ARK Invest funds directly onto the price chart for Advanced Micro Devices. It creates visual labels at specific historical timestamps, marking buys below bars in green and sells above bars i

Indicator v4
Updated 2 years ago · None stated GitHub repository of AMD-tracker
228 stars

This indicator maps market structure and supply and demand zones on the price chart. It marks validated and optional unvalidated swing highs and lows using a pivot length and extra confirmation bars. Consolidation and impulse moves are measured against ATR to

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 months ago · None stated GitHub repository of Market Structure + Supply/Demand
114 stars

Polarized Fractal Efficiency plots a custom efficiency oscillator in a separate pane. It compares net price movement over a lag with the path of successive moves, signs the result by recent direction, and smooths it with an exponential moving average. Readings

Indicator v4 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Polarized Fractal Efficiency

This indicator plots the binomial cumulative distribution function in a separate pane. It min-max normalizes the selected source over a lookback window into a probability between zero and one, then sums the chance of k or fewer successes across n trials. Log-g

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Binomial Distribution CDF (BINOMDIST)

V5 Concepts Alerts 09

by be-thomas
65 stars

This indicator calculates a 14-period relative strength index and detects when that oscillator crosses above 50. It defines an alert condition whose message includes the current RSI value through a plot placeholder. The RSI series is plotted with display set t

Indicator v5 Oscillators & momentum
Updated 7 days ago · GPL-3.0 GitHub repository of V5 Concepts Alerts 09

Auto Pivot Trendlines

by dcaoyuan
55 stars

This indicator draws trendlines between confirmed swing points on the price chart. It finds pivot highs and pivot lows with a fixed ten-bar lookback on each side, then connects successive highs with red lines and successive lows with green lines. There are no

Indicator v5 Support & resistanceTrend
Updated 6 months ago · Apache-2.0 GitHub repository of Auto Pivot Trendlines

Confluence Suite

by TamaraKGreen
47 stars

The Confluence Suite indicator draws multiple trading signals and tools directly on the price chart. It generates entry and exit signals based on selected modes and filters, with an AI signal classifier rating quality from 1-4. Additional features include smar

Indicator v5 TrendSMC / ICT / price action
Updated 8 weeks ago · None stated GitHub repository of Confluence Suite
47 stars

This indicator plots an Endpoint Moving Average on the price chart. It calculates a linearly weighted average of the selected source over a lookback window, assigning the largest weight to the newest bar and smaller weights to older bars. The period input sets

Indicator v6 TrendMoving averages
Updated 8 months ago · MIT GitHub repository of Endpoint Moving Average (EPMA)

Choppiness Index

by TWODS-CAPITAL
37 stars

Choppiness Index is a volatility and trend indicator that measures whether a market is consolidating or trending directionally. It calculates the ratio of the true range sum over a specified period to the highest and lowest price range, scaled logarithmically

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

This indicator calculates an advanced Fisher Transform oscillator in a separate pane, using customizable smoothing algorithms, a signal line, and defined overbought and oversold thresholds. It incorporates a slower trend context line, detects market stall or a

Indicator v6 Oscillators & momentumTrend
Updated 4 days ago · MIT GitHub repository of Fisher Transform Advanced [WavesUnchained]

RSI Oscillator

by suyons
7 stars

This indicator calculates and plots Relative Strength Index (RSI) values across four distinct user-defined timeframes within a separate pane. Each higher-timeframe RSI line is rendered with unique colors and line thicknesses, displayed alongside customizable u

Indicator v5 Oscillators & momentum
Updated 4 months ago · None stated GitHub repository of RSI Oscillator
6 stars

This indicator maps multi-timeframe candle range patterns based on specific time-of-day sessions. It converts user-specified SAST starting hours into UTC to identify initial 4-hour range candles, plotting their high, low, and median levels across the chart. Th

Indicator v5 Sessions & timeSupport & resistance
Updated 7 months ago · None stated GitHub repository of 3-Candle Time Pattern - Enhanced
4 stars

This indicator calculates the Moving Average Convergence Divergence (MACD) line, signal line, and histogram in a separate pane. It uses configurable fast, slow, and signal lengths to compute standard momentum values. The histogram is dynamically shaded with di

Indicator v6 Oscillators & momentumMoving averages
Updated 2 months ago · MIT GitHub repository of MACD Histogram [trugurpala]
3 stars

Calculates a composite market internals oscillator by averaging the 50-period Relative Strength Index (RSI) across four major U.S. index ETFs: SPY, DIA, QQQ, and IWM. It plots this composite oscillator against a 50 midline in a separate pane, dynamically color

Indicator v5 Oscillators & momentumScreeners & dashboards Repaints
Updated 5 months ago · None stated GitHub repository of CSW Internals Pro

EzSMC

by TamTH-Dev
2 stars

EzSMC is an overlay indicator designed for Smart Money Concepts analysis. It identifies and plots bullish and bearish order blocks directly on the price chart, with optional multi-timeframe order block capabilities. Traders can categorize order blocks into int

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 6 weeks ago · None stated GitHub repository of EzSMC

This indicator estimates a risk score and suggested position size from capital, a user win rate, a profit ratio, and historical price range. It tracks each year's high and low, converts that range into a drawdown percentage, and plots a weighted average of the

Indicator v6 Volatility & bands
Updated 8 months ago · None stated GitHub repository of Nasan Risk Score & Postion Size Estimator

3.Candlestick - 5.Doji Candles

by Web3Degenerate
2 stars

This indicator identifies indecision doji candles and highlights potential market reversals directly on the price chart. It calculates the candle body percentage relative to total range and compares the upper and lower wick proportions. When a valid doji coinc

Indicator v5 Candlestick patterns
Updated 2 years ago · None stated GitHub repository of 3.Candlestick - 5.Doji Candles

Signal Forge

by jayadevrana
1 stars

Signal Forge is a multi-filtered trend-following indicator displayed on the main price chart. It calculates an ATR trailing stop line alongside a long-term EMA baseline to identify market direction. Raw signal flips are filtered through ADX chop detection, a v

Indicator v6 TrendVolatility & bands
Updated 5 days ago · MPL-2.0 GitHub repository of Signal Forge

SMC Setup Check

by skipp-dev
1 stars

SMC Setup Check is a diagnostic utility indicator designed to verify chart-link bindings between the chart and the SMC Long-Dip Suite. It inspects external source inputs including schema version, state code, armed status, quality score, trigger, and invalidati

Indicator v6 Screeners & dashboardsSMC / ICT / price action
Updated 5 days ago · None stated GitHub repository of SMC Setup Check

P_err_request_financial

by GammaExpansion
1 stars

This indicator requests the quarterly total revenue figure for the chart symbol through request.financial and plots that series in a separate pane. It uses the symbol ticker and the TOTAL_REVENUE field on a fiscal-quarter timeframe. There are no user inputs, n

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

Market Structure Physics Lab

by rosijay17-cmd
1 stars

An overlay indicator that marks confirmed swing pivots and builds ATR-width structure zones around them. It adds CUSUM change-point markers, relative volume, lower-timeframe delta pressure, compression and trend-efficiency readings, then labels how each zone t

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 9 days ago · GPL-3.0 GitHub repository of Market Structure Physics Lab

DEPV2 Debug S12

by YuceSezar89
1 stars

DEPV2 Debug S12 is a multi-symbol research indicator designed to analyze market signals across up to 20 configurable cryptocurrency pairs. It evaluates conditions using four distinct categories: trend, momentum, volatility, and volume. Users can configure sing

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

WaveTrend Adv

by 7b809
1 stars

An overlay version of the WaveTrend oscillator that hides the oscillator lines by default and instead prints buy and sell labels on the price chart. Labels show time, price, volume, previous volume and percentage changes. Channel and average lengths adjust aut

Indicator v5 Oscillators & momentum
Updated 2 weeks ago · None stated GitHub repository of WaveTrend Adv

Volatility Momentum Score

by vedkanani123
1 stars

A separate-pane oscillator that combines a Z-score of price with a Z-score of volatility into one score, then applies bands from a band length with separate positive and negative multipliers. A signal type setting chooses how it is read, and optional signs mar

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of Volatility Momentum Score

Draws volume order block zones with asymmetric signals on the price chart, then adds a proximity layer that checks how close those signals sit to high-volume, displacement and tier conditions. Version 1.1 is a tick-friendly build. It is an indicator only.

Indicator v6 SMC / ICT / price actionVolume

Grimm HA

by GreyssonEnterprises
1 stars

A Pine v4 indicator that measures candle body size, shadow lengths and doji conditions on the price chart, then looks for a Heikin-Ashi style reversal bar following a doji. Matching bars are recoloured, and triangle markers with text labels and alert condition

Indicator v4 Candlestick patterns
Updated 3 months ago · MIT GitHub repository of Grimm HA

Goertzel Algorithm V6

by mikeyhu70
1 stars

This indicator applies the Goertzel algorithm to price in a separate pane, measuring one frequency component set by a period length and a measurement block length. A training percentage and shift settings align the fitted wave with recent data, and the wave ex

Indicator v5 AI / machine learning
Updated 6 months ago · None stated GitHub repository of Goertzel Algorithm V6

Range Scalper

by knectardev
1 stars

Range Scalper is a price-chart overlay indicator. Archived notes describe an ATR-based dynamic range threshold meant to adapt range detection to volatility, plus breakout shape markers. The file is labeled simplified for the archive and shows no parsed inputs.

Indicator v5 ScalpingVolatility & bands
Updated 9 months ago · None stated GitHub repository of Range Scalper

v5 Combination by Yzz

by webcrack4
1 stars

This combination indicator plots a Volume Profile or Market Profile histogram directly on the main price chart alongside MACD calculations. It measures volume or time distribution across custom price rows, highlighting key market structure levels such as the P

Indicator v5 VolumeSupport & resistance
Updated 9 months ago · None stated GitHub repository of v5 Combination by Yzz

Meta Divergence

by zhuzp98
1 stars

An indicator that looks for regular or hidden divergences between price pivots and up to eleven oscillators and volume tools, including MACD, RSI, Stochastic, CCI, momentum, OBV, Chaikin Money Flow and MFI. It draws divergence lines and labels on the price cha

Indicator v5 DivergenceOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of Meta 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