Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 46)

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

This indicator ranks the current Bollinger Band width against its own recent history to give a percentile from zero to one hundred, drawn in a separate pane with a moving average of that value and extreme high and low levels at 98 and 2 by default. It also cal

Indicator v5 Volatility & bandsBreakout
Updated 4 years ago · None stated GitHub repository of Bollinger Band Width Percentile and BB Breakout

NYSE

by rosskevin
1 stars

This indicator plots NYSE market breadth in a separate pane. It requests the daily advance-decline series, smooths the average of open, high, low and close with a 15-period simple moving average, and fills the area against a zero line green when that average i

Indicator v4 Oscillators & momentumMoving averages
Updated 5 years ago · AGPL-3.0 GitHub repository of NYSE
1 stars

An overlay indicator that finds swing pivots using a depth setting and a minimum percentage deviation, then draws a dashed line between the latest two swings and Fibonacci levels from that move. Levels from 0 to 1.618 are shown by default, with 2.618, 3.618 an

Indicator v4 Support & resistance Repaints
Updated 6 years ago · None stated GitHub repository of Auto Fib Retracement

Chop Zone

by DT021
1 stars

Chop Zone measures the slope of a 34-period exponential moving average of the close. It scales the one-bar EMA change by the average price and a 30-bar high-low range, converts that slope into degrees, and paints a single column in a separate pane. Turquoise t

Indicator v4 TrendMoving averages
Updated 6 years ago · GPL-3.0 GitHub repository of Chop Zone
947 stars

The Henderson Weighted Moving Average indicator calculates a smoothed moving average line using Henderson's symmetric weight kernel formula applied to the chosen source series over a specified period length. It plots directly on the main price chart pane. The

Indicator v6 TrendMoving averages
Updated 12 days ago · GPL-3.0 GitHub repository of Henderson Weighted Moving Average
575 stars

The ICT Liquidity Void Fill Scanner monitors up to 40 user-defined symbols for Fair Value Gap and Liquidity Void fill setups. It identifies large displacement candles matching specified ATR volatility and body percentage filters, tracking price retests against

Indicator v6 SMC / ICT / price actionScreeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Liquidity Void Fill Scanner
318 stars

This indicator calculates an ATR trailing stop line derived from the highest high minus an average true range multiple over a specified lookback period. It plots the trailing stop line directly on the price chart and colors price bars based on whether the clos

Indicator v5 TrendVolatility & bands
Updated 2 months ago · MIT GitHub repository of ATR Trailing Stoploss

3938 Tracker

by Allen1212
303 stars

3938 Tracker visualizes historical buying and selling activity from ARK Invest funds directly on the main price chart. It plots labels at specific timestamps corresponding to trade dates, indicating buy or sell actions along with the count of participating ETF

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

This indicator overlays an intraday SPX and ES chart with a midnight session range, regular-trading-hours opening levels, and a VWAP projection box. It draws the midnight high, mid, and low, flags edge rejections within an absolute tolerance, and plots optiona

Indicator v6 TrendSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of SPX Midnight Box + Snag Logic

Golden Bullet Strategy

by TradersPost
228 stars

The Golden Bullet Strategy is an overlay signal indicator based on Smart Money Concepts and time-based liquidity models. It identifies liquidity sweeps of a designated reference session range during a specified hunt window. It then confirms Market Structure Sh

Indicator v6 SMC / ICT / price actionSessions & time
Updated 3 months ago · None stated GitHub repository of Golden Bullet Strategy

Candlestick Patterns

by harryguiacorn
220 stars

This indicator plots optional candlestick pattern signals on the price chart. It detects engulfing bars, inside bars, HOLP and LOHP, kicker patterns, body-mass extremes, higher highs and lower lows, ATR warnings, and four-bar fractals. Optional pivot marks use

Indicator v5 Candlestick patternsVolatility & bands
Updated 1 year ago · None stated GitHub repository of Candlestick Patterns

KD指標

by TaichiS
219 stars

This script calculates and plots a Stochastic Oscillator (KD indicator) in a separate chart pane. It determines the fast stochastic value over a 9-period lookback, then applies a 3-period Simple Moving Average (SMA) to create the %K line, and a second 3-period

Indicator v4 Oscillators & momentum
Updated 5 years ago · None stated GitHub repository of KD指標
147 stars

This indicator generates trade entry signals and target levels optimized for 1-hour timeframes, designed for external signal extraction. It calculates 7-period and 16-period EMAs alongside 10-period RSI and ATR filters. Long signals occur when the fast EMA cro

Indicator v5 TrendOscillators & momentum
Updated 6 weeks ago · MIT GitHub repository of Signal Strategy 100 Candles of 1H Timeframe
114 stars

This indicator classifies the next market direction with a two-feature k-nearest neighbours model. It stores normalized historic indicator values and past directions, then compares the current point to the nearest neighbours using Euclidean or Chebyshev distan

Indicator v5 AI / machine learningOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of Machine Learning: kNN-based Strategy
99 stars

Calculates J. Welles Wilder's Accumulation Swing Index (ASI) to evaluate underlying price momentum and market trend strength. It computes the individual bar Swing Index based on current and previous open, high, low, and close prices relative to a maximum daily

Indicator v6 Oscillators & momentumTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Accumulation Swing Index (ASI)

Moon Dev Lunar Sniper

by moondevonyt
92 stars

Moon Dev Lunar Sniper is a multi-indicator overlay that scores confluence across fast and slow EMAs, RSI, MACD, DMI, and BB width to fire signals only when score meets the minimum threshold. It plots buy and sell signals on the price chart, highlights cosmic b

Indicator v6 TrendOscillators & momentum Repaints
Updated 2 months ago · Custom licence GitHub repository of Moon Dev Lunar Sniper

RSI

by cryptorife
75 stars

This script calculates the Relative Strength Index (RSI) and plots it in a separate pane with enhanced visual styling options. It draws horizontal reference lines for overbought, oversold, median, and extreme boundaries, along with background fills between the

Indicator v4 Oscillators & momentum
Updated 3 years ago · GPL-3.0 GitHub repository of RSI
56 stars

This indicator draws ICT killzone boxes on the price chart for Asia, London, New York AM, New York lunch, and New York PM sessions. Each session can be toggled, renamed, and recolored, with optional labels and adjustable box transparency. A session drawing lim

Indicator v5 SMC / ICT / price actionSessions & time
Updated 2 months ago · None stated GitHub repository of ICT Killzones & Pivots [TFO]

Cloning Lines Demo

by dcaoyuan
55 stars

This indicator demonstrates the line cloning functionality in Pine Script v6 directly on the main price chart. Every set number of bars, it draws a primary purple horizontal line extending from the open price across a defined bar span. On every bar, it creates

Indicator v6
Updated 6 months ago · Apache-2.0 GitHub repository of Cloning Lines Demo

Force Bar

by milocaetano
48 stars

Force Bar highlights candlesticks directly on the price chart using three distinct body and range criteria: widest range (Biggest), extreme body relative to historical average (Exhaustion), and moderate body relative to historical average (Force). Colors apply

Indicator v5 Candlestick patternsVolatility & bands
Updated 3 days ago · MIT GitHub repository of Force Bar
47 stars

This indicator overlays higher-timeframe candles on the price chart and marks related liquidity levels. It draws a chosen number of HTF candles as regular candles or Heikin Ashi, with optional automatic timeframe selection and a two-level mode. It plots the hi

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 8 weeks ago · None stated GitHub repository of HTF Sweeps & Liquidity Levels w/CISD
47 stars

This indicator calculates the rate of change of market acceleration, known as jolt, by applying three sequential linear regression slope calculations to a selected price series over a specified lookback period. It evaluates higher-order price dynamics beyond v

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Acceleration, Slope of Slope (JOLT)

MACD Histogram Percentile Rainbow calculates the standard Moving Average Convergence Divergence line, signal line, and histogram in a separate indicator pane. It evaluates the relative magnitude of histogram bars against historical data using a percentile rank

Indicator v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of MACD Histogram Percentile Rainbow

RSC Trend Trading Study

by readysetcryptocodes
43 stars

This indicator plots Donchian Channels alongside fast and slow simple moving averages directly on the price chart. It generates bullish breakout signals when the high reaches the upper channel while the close is above the 50 SMA (and optionally the 200 SMA). B

Indicator v4 TrendBreakout
Updated 2 years ago · None stated GitHub repository of RSC Trend Trading Study
41 stars

This indicator estimates higher-timeframe volume distributions using lower-timeframe candle data and overlays them directly on the price chart. It calculates and plots Point of Control, Value Area High and Low, volume profiles, volume-spike bubbles, density zo

Indicator v6 VolumeSupport & resistance
Updated 4 days ago · None stated GitHub repository of HTF Volume Profile Density Zones
38 stars

VN YieldCurveLab NEW 2.1 is a macro research tool designed for daily Vietnamese government bond yield analysis, specifically configured for the TVC:VN10Y ticker. It tracks multi-tenor bond dynamics, yield changes over 5-day and 20-day horizons, and detects sig

Indicator v6 Screeners & dashboards
Updated 5 weeks ago · None stated GitHub repository of VN YieldCurveLab 2.1 Bond Research

Advance Decline Line

by TWODS-CAPITAL
37 stars

This indicator plots an Advance Decline Line in a separate pane. It requests a combined NYSE series of advancing issues minus declining issues, divided by unchanged issues plus one. A cumulative function adds the square root of a positive difference and subtra

Indicator v5 Oscillators & momentumTrend
Updated 3 years ago · MIT GitHub repository of Advance Decline Line

Elder Force Index

by thanhnguyennguyen
33 stars

This indicator calculates Elder's Force Index from the bar-to-bar change in close multiplied by volume, then smooths that raw value with two exponential moving averages. It plots the slower average as a thick red line and the faster average as a thin green lin

Indicator v4 Oscillators & momentumVolume
Updated 1 year ago · None stated GitHub repository of Elder Force Index

[Pirate] Triple EMA

by hiPirate
33 stars

The [Pirate] Triple EMA indicator plots up to three independent exponential moving averages directly on the main price chart to assist with trend identification. It calculates fast, mid, and slow EMAs using standard periods of 50, 100, and 200 by default. User

Indicator v4 Moving averagesTrend
Updated 5 years ago · Unlicense GitHub repository of [Pirate] Triple EMA
29 stars

Zen Bar Range Projections draws two independent higher-timeframe projections on the price chart. For each enabled timeframe it measures the average bar range over a chosen lookback, then places horizontal lines at 0.5, 1 and 2 times that range above and below

Indicator v6 Support & resistanceVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Zen Bar Range Projections
29 stars

The Supertrended RSI [AlgoAlpha] indicator plots the Relative Strength Index combined with a Supertrend overlay in a separate indicator pane. It first computes standard RSI, with an optional Hull Moving Average smoothing step, and computes a secondary moving a

Indicator v5 Oscillators & momentumTrend
Updated 11 months ago · Custom licence GitHub repository of Supertrended RSI [AlgoAlpha]

This indicator tests method calls on a built-in line object. On each bar it creates a line from the current bar index and high to the next bar index and low, then calls set_x2 to move the right endpoint one bar further and set_color to paint the line orange. I

Indicator v6
Updated 2 months ago · AGPL-3.0 GitHub repository of Feature Matrix - method on builtin

CCI Low/High Divergences

by tistaharahap
25 stars

This indicator plots two Commodity Channel Index lines in a separate pane: one from candle lows and one from closes. It marks regular bullish divergences when price makes a lower low while the low-based CCI makes a higher low, and regular bearish divergences f

Indicator v4 Oscillators & momentumDivergence
Updated 6 years ago · None stated GitHub repository of CCI Low/High Divergences
24 stars

This indicator maps Smart Money Concepts (SMC) market structure directly onto the price chart. It detects internal and swing structure breaks (BOS and CHoCH), tracks bullish and bearish order blocks, identifies fair value gaps (FVG), highlights equal highs and

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 12 days ago · Custom licence GitHub repository of Smart Money Concepts [LuxAlgo] Test B

Benso Pendulum

by benso87
24 stars

Benso Pendulum is an indicator that plots a customizable Relative Strength Index (RSI) oscillator in a separate pane on the price chart. It calculates the RSI using the specified source and period, applying dynamic colors that change based on overbought and ov

Indicator v5 Oscillators & momentumSupport & resistance
Updated 4 years ago · MPL-2.0 GitHub repository of Benso Pendulum

Pine v6 Feature Test

by jpantsjoha
23 stars

This indicator is a Pine Script v6 demonstration that overlays the price chart. It calculates moving averages, oscillators, Bollinger Bands, ATR, highest and lowest values, rate of change, and moving-average crossovers from a chosen price source. Inputs set SM

Indicator v6 Moving averagesOscillators & momentum
Updated 4 weeks ago · Custom licence GitHub repository of Pine v6 Feature Test

Repaint

by ferranbt
21 stars

This indicator queries and plots the current daily close price using the security function in a separate pane. Designed as a test fixture for syntax analysis, it plots values without generating trading signals. The script features no customizable user settings

Indicator v6 Repaints
Updated 7 weeks ago · MPL-2.0 GitHub repository of Repaint

John F. Ehlers - Convolution

by palitojendthen
20 stars

Implements John F. Ehlers' convolution algorithm to detect cyclic components across multiple periods. The script processes price data using a SuperSmoother filter with an optional high-pass filter to remove low-frequency trends. It computes cross-correlations

Indicator v5 Oscillators & momentumTrend
Updated 1 year ago · None stated GitHub repository of John F. Ehlers - Convolution
18 stars

This overlay indicator plots key market structure reference levels, including New Week Opening Gaps (NWOG) and New Day Opening Gaps (NDOG), along with higher timeframe reference levels and Average Daily Range (ADR). It highlights Consequent Encroachment (50% m

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 2 weeks ago · MPL-2.0 GitHub repository of Bandz Reference Levels + Gaps + ADR

Morning and evening star

by shibisuriya
18 stars

This indicator marks morning star and evening star candlestick patterns on the price chart. A morning star needs a bearish first candle, a spinning-top middle candle with gap openings, and a bullish third candle that closes above the first candle's open. An ev

Indicator v4 Candlestick patterns
Updated 4 years ago · None stated GitHub repository of Morning and evening star
16 stars

This indicator plots RSI in a separate pane and compares oscillator pivots with price to mark regular bullish and bearish divergences. Left and right pivot lookbacks and a minimum-to-maximum bar range control which swings qualify. Regular divergence labels are

Indicator v5 Oscillators & momentumDivergence
Updated 2 years ago · None stated GitHub repository of Divergence Indicator + MACD

Alighten Pattern C

by alighten-dev
14 stars

Calculates and plots market structure pivots and Pattern C signal setups directly on the price chart. It constructs a visual ZigZag structure to track high and low pivot points, drawing level rays from confirmed origin pivots. The script scans stored pivot pai

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 2 weeks ago · None stated GitHub repository of Alighten Pattern C

Market Monitor - 1m

by chris-c-thomas
14 stars

Market Monitor - 1m is an overlay indicator designed for multi-chart monitoring and directional bias assessment. It plots a fast, mid, and slow EMA ribbon with a fill cloud, session VWAP with standard deviation bands, and previous day key levels. It evaluates

Indicator v6 TrendMoving averages Repaints
Updated 6 months ago · MIT GitHub repository of Market Monitor - 1m

Relative Strength Index

by deepentropy
13 stars

This indicator plots the Relative Strength Index in a separate pane from smoothed up and down price changes. It draws the RSI line with horizontal bands at 70, 50 and 30, plus overbought and oversold gradient fills. Optional settings add a smoothing moving ave

Indicator v6 Oscillators & momentumMoving averages
Updated 6 months ago · MIT GitHub repository of Relative Strength Index

MyTTFM - Clean

by dbruce1990
12 stars

MyTTFM - Clean draws a higher-timeframe candle overlay on the price chart and marks related ICT fractal structure. It plots configurable HTF candles, period separator lines, midpoint levels, a T-Spot box, and labels for recent C2 and C3 patterns plus swept lev

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of MyTTFM - Clean

BTE AO

by f-cksociety
11 stars

BTE AO is a Pine Script indicator based on the PineCoders Backtesting and Trading Engine framework. It simulates long and short trade entries, filters, stop losses, and take-profit targets directly on the price chart to evaluate trading strategies without nati

Indicator v5 TrendOscillators & momentum
Updated 4 years ago · MPL-2.0 GitHub repository of BTE AO
10 stars

This separate-pane indicator plots a custom relative strength index whose length and overbought and oversold bands change with the chart timeframe, or uses a length the user sets. A configuration mode can hide the RSI and, on BTCUSD daily, weekly, or monthly c

Indicator v4 Oscillators & momentum Repaints
Updated 5 years ago · None stated GitHub repository of My Relative Strength Index

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