Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 116)

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

947 stars

This utility indicator parses TradingView session input strings into start hour, start minute, end hour, end minute, and an optional weekday list. It accepts a simple time range or a range with weekday digits after a colon. Parsed values for both inputs are wr

Indicator v4 Sessions & time
Updated 12 days ago · GPL-3.0 GitHub repository of Session Input Parser

BMY-tracker

by Allen1212
303 stars

This indicator plots historical buy and sell transactions executed by ARK Invest for Bristol-Myers Squibb (BMY). It renders static visual labels directly on the price chart at specific historical timestamps, showing green labels below the bar for purchases and

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

Trend Line Plot Indicator

by TradersPost
228 stars

The Trend Line Plot Indicator automatically identifies pivot highs and lows across price history and draws dynamic bullish and bearish trend lines directly on the price chart. Users can adjust the pivot lookback length, filter lines based on a minimum number o

Indicator v6 Support & resistanceTrend
Updated 3 months ago · None stated GitHub repository of Trend Line Plot Indicator
114 stars

This overlay indicator combines a Delta-RSI oscillator with three exponential moving averages on the price chart. It fits RSI with a polynomial over a rolling window, then marks buy and sell labels when the chosen condition occurs: zero crossing, signal-line c

Indicator v4 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of Delta-RSI & 3-EMA Strategy
99 stars

Plots one component of an à trous stationary Haar discrete wavelet transform of a chosen source in a separate pane. Decomposition levels from one to eight set the lookback, which doubles with each level. Output zero returns the deepest approximation, described

Indicator v6 Trend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Discrete Wavelet Transform (DWT)

Bollinger Bands

by be-thomas
65 stars

This indicator plots standard Bollinger Bands directly on the price chart using hardcoded settings of a 5-period length and a 4 standard deviation multiplier. It displays the middle basis line in blue, the upper and lower outer bands in green, and fills the ch

Indicator v4 Volatility & bandsMean reversion
Updated 6 days ago · GPL-3.0 GitHub repository of Bollinger Bands

Session Statistical Levels

by TamaraKGreen
47 stars

This indicator overlays statistical price range levels across key trading sessions, including Asia, London, NY Morning, and NY Afternoon, as well as an optional custom session. It calculates and plots symmetric percentile range bands such as the median (P50),

Indicator v5 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of Session Statistical Levels
47 stars

This indicator calculates and plots a standard Keltner Channel directly on the price chart. It generates an exponential moving average middle line alongside upper and lower bands spaced by an Average True Range multiplier. The implementation features warm-up c

Indicator v6 Volatility & bandsMoving averages
Updated 8 months ago · MIT GitHub repository of Keltner Channel (KCHANNEL)

Gravestone Doji - Bearish

by TWODS-CAPITAL
37 stars

This indicator scans price bars for a bearish gravestone doji on the price chart. It treats a candle as a doji when the body is small relative to the full range, then requires the lower shadow to be no larger than the body. On a match it draws a GD label above

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

MTF Structure Bias classifies market structure across four timeframes by comparing rolling highest highs and lowest lows N bars ago. Each timeframe receives a bullish (+1), bearish (-1), or mixed (0) state based on whether highs and lows are rising or falling.

Indicator v6 SMC / ICT / price actionScreeners & dashboards
Updated 3 days ago · MIT GitHub repository of MTF Structure Bias [WavesUnchained]
6 stars

CRT Bias Scanner Optimized is a Pine Script v5 indicator that scans 16 assets including major forex pairs, indices, commodities and crypto at user-defined intervals. It calculates bias signals across symbols and displays results with last scan timestamp when e

Indicator v5 Sessions & timeScreeners & dashboards
Updated 7 months ago · None stated GitHub repository of CRT Bias Scanner Optimized
3 stars

This indicator identifies price action reversal setups by combining candlestick patterns with Exponential Moving Average (EMA) trend filters. It calculates two customizable EMAs (default 10 and 20 periods) and fills the area between them to form an EMA cloud.

Indicator v5 Candlestick patternsMoving averages
Updated 5 months ago · None stated GitHub repository of Engulfing Patterns
2 stars

This indicator detects liquidity sweeps during the Asian session and identifies reversal opportunities in the New York session. It tracks the high and low of the Asia trading range using session timestamps in UTC+3. Sweep up and down are flagged when price bre

Indicator v5 SMC / ICT / price actionSessions & time
Updated 2 months ago · None stated GitHub repository of Asian Liquidity Sweep + NY Reversal

Fair Value MS

by regalouisei
2 stars

Fair Value MS is an overlay indicator that highlights market structure, fair value gaps, and key areas of interest on the price chart. It identifies bullish and bearish structural shifts, projects extended interest zones towards current price action, and draws

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 8 months ago · None stated GitHub repository of Fair Value MS

Piercing Line & Dark Cloud

by Web3Degenerate
2 stars

This indicator identifies bullish Piercing Line and bearish Dark Cloud candlestick patterns directly on the price chart. It calculates the midpoint of the preceding candle and checks for directional candle closes along with opening gap conditions. To filter fa

Indicator v5 Candlestick patternsOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Piercing Line & Dark Cloud

USI Flip + REV-BUY

by skipp-dev
1 stars

This overlay indicator combines a six-line zero-lag RSI stack with EMA trend filters and smart-money structure checks. It marks USI flip long and short signals when the RSI lines stack, optional volume and bar-close filters pass, and optional stack or slow-tre

Indicator v6 Oscillators & momentumMoving averages Repaints
Updated 4 days ago · None stated GitHub repository of USI Flip + REV-BUY

P_syn_history_scopes

by GammaExpansion
1 stars

This indicator is a synthetic fixture that exercises Pine history references across functions, branches, and a loop. A user function returns the one-bar change of its source and the prior change, called separately on close and open. Another function keeps a pe

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

Trend Continuation Zones

by rosijay17-cmd
1 stars

An overlay indicator that signals trend-continuation breakouts only in the direction of a mandatory trend filter built from a long EMA and a confirmed higher-timeframe EMA stack. Recent swing highs and lows are stored as reference levels, and a breakout needs

Indicator v6 TrendBreakout
Updated 8 days ago · GPL-3.0 GitHub repository of Trend Continuation Zones

DEPV2 DEBUG S42

by YuceSezar89
1 stars

This multi-asset indicator evaluates market conditions across four analytical dimensions: trend, momentum, volatility, and volume. Configured for up to twenty cryptocurrency pairs, it generates trade signals through isolated methods, simultaneous multi-method

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

CODEX NO1 Flip Engine v4

by vedkanani123
1 stars

A confirmed-close trend flip indicator on the price chart, where BUY exits a short and enters long and SELL does the reverse. Version 4 is a separate state machine using a fast ZLEMA, a slow baseline, KAMA and a widened ATR trail. A signal needs a completed-bo

Indicator v6 TrendVolatility & bands Repaints
Updated 2 months ago · None stated GitHub repository of CODEX NO1 Flip Engine v4

Fable Bull LTF v1

by nishpa800
1 stars

The first release of a bullish-side detection indicator for lower timeframe charts. It draws numbered signals on the price chart from relative volume tiers, a standard deviation displacement test, a VWMA with ATR Supertrend latch, pocket pivots and fair value

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Fable Bull LTF v1

Detects swing highs and swing lows from left and right bar counts and lists the most recent ones in a compact table on the price chart. Settings choose the bar counts, how many swings to store and display, how many days into the past and future the display cov

Indicator v5 Support & resistanceScreeners & dashboards
Updated 6 months ago · None stated GitHub repository of Last n Swing High Low Table Compact

Trend by Linreg Slope

by ivansoft
1 stars

An indicator that measures trend from the slope of a linear regression. It smooths the average of open and close with a short moving average, fits a regression line over a chosen number of bars, and plots the slope in a separate pane as an area, teal when risi

Indicator v6 Trend
Updated 1 year ago · None stated GitHub repository of Trend by Linreg Slope
1 stars

An indicator that finds pivot highs and lows and groups nearby pivots into support and resistance channels drawn on the price chart. Settings cover pivot period, source, maximum channel width as a share of the recent range, minimum strength, number of channels

Indicator v5 Support & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Support Resistance Levels
947 stars

The Spencer 15-Point Moving Average is a technical indicator that applies Spencer's 15-point smoothing algorithm to financial price data. It calculates a weighted average across 15 historical periods using predefined symmetric weights designed to smooth noise

Indicator v4 Moving averagesTrend
Updated 12 days ago · GPL-3.0 GitHub repository of Spencer 15-Point Moving Average

BNR-Tracker

by Allen1212
303 stars

Visualizes historical ARK Invest transactions for the BNR ticker directly on the price chart. It plots green buy labels below bars and red sell labels above bars on specific historical dates, displaying the trade action and the multiplier count of participatin

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

TylerG FVG BB Reversal

by TradersPost
228 stars

This indicator identifies mean-reversion setups by combining Bollinger Bands with Fair Value Gaps (FVGs). It tracks FVGs that print outside the upper or lower Bollinger Bands and counts them toward an alert threshold. Signals trigger upon gap mitigation (by to

Indicator v6 SMC / ICT / price actionVolatility & bands
Updated 3 months ago · None stated GitHub repository of TylerG FVG BB Reversal
114 stars

This indicator adapts Michael Chalek's Dual Thrust trading concept to plot breakout levels and overlay bands directly on the price chart. It calculates lookback ranges based on historical price action and provides two algorithmic variations along with multiple

Indicator v4 TrendBreakout Repaints
Updated 1 year ago · None stated GitHub repository of Dual Thrust Trading Algorithm

Donchian Channels (DC)

by mihakralj
99 stars

This indicator calculates and plots Donchian Channels directly on the price chart. It determines the highest high and lowest low over a user-selected lookback period using an optimized monotonic deque algorithm, as well as a middle basis line computed as their

Indicator v6 Volatility & bandsSupport & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of Donchian Channels (DC)

Calculated Colors

by be-thomas
65 stars

This script demonstrates how to dynamically alter plot transparency using calculated color values in Pine Script. It computes a 20-period simple moving average of the closing price and determines its relative height over a 100-bar lookback using the percent ra

Indicator v4 TrendMoving averages
Updated 6 days ago · GPL-3.0 GitHub repository of Calculated Colors

Session Statistical Levels + Extension Gauge calculates and plots statistical price projections, maximum favorable/adverse excursion (MFE/MAE) percentiles, and standard deviation range bands based on historical distribution data from NQ futures. It anchors sta

Indicator v5 Support & resistanceSessions & time
Updated 8 weeks ago · None stated GitHub repository of Session Statistical Levels + Extension Gauge
47 stars

This indicator calculates Kendall's Tau-a rank correlation between a chosen price source and the close of a second symbol. It counts concordant and discordant pairs inside a rolling window and plots the coefficient, ranging from minus one to plus one, in a sep

Indicator v6
Updated 8 months ago · MIT GitHub repository of Kendall Rank Correlation

This indicator scores trend alignment across the chart timeframe and three configurable higher timeframes. It classifies each timeframe as bullish or bearish with Supertrend and, when enabled, a volatility regime, then combines the results into a 0–100 conflue

Indicator v6 TrendVolatility & bands
Updated 3 days ago · MIT GitHub repository of MTF Trend Alignment Dashboard [WavesUnchained]
7 stars

This indicator detects consolidation zones, fair value gaps, and breakaway gaps on the price chart using Heikin-Ashi price calculations. It tracks overlapping candles to identify consolidation ranges and marks subsequent structural breakouts. Users can display

Indicator v6 SMC / ICT / price actionBreakout
Updated 3 months ago · None stated GitHub repository of HA Colidation Breakout Structure

CRT Bias Scanner v4

by alboogycOdR
6 stars

This overlay indicator presents a multi-asset CRT bias scanner as a table on the price chart. It watches up to sixteen symbols, grouped by preset lists or custom slots, and refreshes the scan at a user-set interval in minutes. Optional alerts can fire for stro

Indicator v5 Screeners & dashboards
Updated 7 months ago · None stated GitHub repository of CRT Bias Scanner v4
3 stars

This indicator identifies pullback reversal setups by combining dual exponential moving averages with candlestick patterns. It plots two EMAs with a shaded cloud to define trend direction. When price touches or crosses the slower EMA and closes back in trend a

Indicator v5 Candlestick patternsMoving averages
Updated 5 months ago · None stated GitHub repository of Engulfing Patterns

Percentage Volume Oscillator (PVO)

by mushroom-men-Trading
2 stars

This indicator calculates the Percentage Volume Oscillator (PVO), measuring the percentage difference between a fast exponential moving average (EMA) and a slow EMA of trading volume. It plots the main PVO line, a signal line smoothed by a third EMA, and a his

Indicator v6 VolumeOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Percentage Volume Oscillator (PVO)

Plot Arrow

by Web3Degenerate
2 stars

This educational indicator demonstrates how to render chart arrows in Pine Script using the built-in plotarrow function. It calculates the difference between the open and close price of each bar, plotting an arrow directly on the price chart. When the value is

Indicator v5
Updated 2 years ago · None stated GitHub repository of Plot Arrow

P_syn_if_else

by GammaExpansion
1 stars

This script is a synthetic test indicator designed to evaluate conditional if-else branching logic in Pine Script v6. It calculates a simple candle direction value, dynamically assigns price metrics like high, low, median price, or average price based on condi

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

Trend Following Engine v3

by rosijay17-cmd
1 stars

An overlay indicator that scores trend continuation setups from 0 to 100 and fires a signal when the score passes a threshold. The score blends normalised ADX, trend efficiency, relative volume, DI separation, slope and momentum, each with adjustable low and h

Indicator v6 TrendOscillators & momentum
Updated 8 days ago · GPL-3.0 GitHub repository of Trend Following Engine v3

DEPV2 DEBUG S43

by YuceSezar89
1 stars

Monitors up to twenty cryptocurrency perpetual contracts across four analytical dimensions: trend, momentum, volatility, and volume. The indicator evaluates signals using single-method triggers, simultaneous confluence thresholds, sequential execution chains w

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

Convergence Spirals

by morindok
1 stars

This indicator plots convergence spirals on the price chart using two user-defined points defined by time and price. It calculates spiral paths with options for symmetric spirals, extension, and mirroring of selected levels or endpoints. Inputs control divisor

Indicator v5 Support & resistanceDivergence
Updated 7 weeks ago · None stated GitHub repository of Convergence Spirals

CODEX NO1 Flip Engine v5

by vedkanani123
1 stars

A structure-confirmed trend flip indicator on the price chart, where BUY exits a short and enters long and SELL does the reverse. A flip passes a chain of tests: confirmed close, clean regime, normalized baseline slope relative to ATR, displacement, a complete

Indicator v6 TrendVolatility & bands Repaints
Updated 2 months ago · None stated GitHub repository of CODEX NO1 Flip Engine v5

Fable Bull LTF v1.4

by nishpa800
1 stars

A bullish-side detection indicator for lower timeframe charts that places numbered signals on the price chart. Its engines include relative volume tiers, displacement by a standard deviation multiplier, a VWMA with ATR Supertrend latch, pocket pivots, fair val

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Fable Bull LTF v1.4

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