Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 115)

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

99 stars

Calculates and plots the Detrended Price Oscillator in a separate pane to identify short-term price cycles. The indicator removes longer-term trends by subtracting a historical simple moving average, displaced back by half the period plus one bar, from the cur

Indicator v6 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Detrended Price Oscillator (DPO)

Barssince

by be-thomas
65 stars

This indicator counts how many bars have passed since the close was lower than the previous close. When the current close is higher than the previous close, it plots that bar count as a histogram; otherwise it plots minus one. Positive values are colored red a

Indicator v4
Updated 6 days ago · GPL-3.0 GitHub repository of Barssince

Session First Bar Range

by TamaraKGreen
47 stars

Session First Bar Range calculates and projects the high, low, and mid-level of the opening bar of a specified higher timeframe session. It draws range boxes directly on the price chart, along with historical ranges, statistical standard deviation levels, and

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 8 weeks ago · None stated GitHub repository of Session First Bar Range

Kalman Filter (KF)

by mihakralj
47 stars

The Kalman Filter (KF) calculates a recursive state estimation to smooth price data and reduce noise on the main chart. It continuously updates state and error covariance estimates by balancing process noise against measurement noise via the Kalman gain. Users

Indicator v6 Moving averagesTrend
Updated 8 months ago · MIT GitHub repository of Kalman Filter (KF)

Falling Window - Bearish

by TWODS-CAPITAL
37 stars

This indicator identifies the bearish falling window candlestick pattern, a two-candle continuation setup where a downward price gap occurs during a downtrend. It validates the pattern when the current bar's high is strictly lower than the previous bar's low u

Indicator v5 Candlestick patternsTrend
Updated 3 years ago · MIT GitHub repository of Falling Window - Bearish

The Market Stress Oscillator plots a bi-directional Williams VIX Fix in a separate pane, with separate bull and bear stress lines. It applies JMA smoothing to both series and shows ADX strength as context for judging noisy readings. Peak-hold markers mark stre

Indicator v6 Oscillators & momentumVolatility & bands
Updated 3 days ago · MIT GitHub repository of MSO - Market Stress Oscillator [WavesUnchained]
7 stars

This indicator plots a zero-lag EMA center line with ATR bands on the price chart. It marks bullish or bearish mode after closes stay beyond a band for a set number of bars and the center line slopes that way. Confirmed buy and sell labels appear only after th

Indicator v6 TrendMoving averages Repaints
Updated 3 months ago · None stated GitHub repository of GK Trend Ribbon SWING + PREPARE HUD
6 stars

The script identifies time-filtered Candle Range Theory (CRT) patterns on higher-timeframe candles using New York session timing. It detects liquidity sweeps and range manipulation setups relative to specific H4 candles for user-selected models, such as 1AM, 5

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of Complete CRT System (MTF v2)
4 stars

This indicator analyzes trading volume in a separate chart pane by plotting raw volume histogram bars alongside a simple moving average of volume and On-Balance Volume (OBV). It identifies unusually high volume bars where volume exceeds the moving average mult

Indicator v6 VolumeMoving averages
Updated 2 months ago · MIT GitHub repository of Volume Analysis [trugurpala]
2 stars

This Pine Script indicator detects Smart Money Concepts order blocks on the price chart using pivot highs and lows. It builds supply and demand zones based on configurable pivot periods and order block validity periods. The script offers refinement options to

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of SMC Setup Order Blocks 07 TFlab
2 stars

Expected Value Monte Carlo analyzes historical price returns and projects potential future outcomes directly on the price chart using statistical simulations. It calculates historical performance metrics over a configurable sample period and simulates future p

Indicator v6 Volatility & bandsScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Expected Value Monte Carlo

On Balance Volume (OBV)

by mushroom-men-Trading
2 stars

This indicator calculates and plots the standard On Balance Volume (OBV) in a separate chart pane. It tracks cumulative volume flow by adding volume on up bars and subtracting volume on down bars relative to the prior close. The indicator does not generate aut

Indicator v6 Volume
Updated 9 months ago · None stated GitHub repository of On Balance Volume (OBV)

Ichimoku Cloud

by Web3Degenerate
2 stars

This indicator calculates and overlays standard Ichimoku Cloud components on the price chart, including the Conversion Line, Base Line, Lagging Span, and Leading Spans A and B. It imports an external library to detect candlestick patterns like hammers and shoo

Indicator v5 TrendSupport & resistance
Updated 2 years ago · None stated GitHub repository of Ichimoku Cloud

USI Flip

by skipp-dev
1 stars

USI Flip is a Pine Script indicator that plots six USI lines with customizable lengths for different timeframes. The fastest red line generates BUY and SHORT flip signals when crossing slower lines, with options for volume filter, bar close only, margin hyster

Indicator v6 Oscillators & momentumVolume
Updated 4 days ago · None stated GitHub repository of USI Flip

P_syn_enum

by GammaExpansion
1 stars

This indicator serves as a simple demonstration and test fixture for Pine Script v6 custom enum structures. It allows users to select a moving average type—Simple (SMA), Exponential (EMA), or Weighted (WMA)—from an enum drop-down menu alongside a configurable

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

DEPV2 DEBUG S37

by YuceSezar89
1 stars

DEPV2 DEBUG S37 is a separate-pane indicator that watches up to twenty user-chosen symbols, defaulting to Binance perpetual crypto pairs. It forms directional signals from four method classes: trend, momentum, volatility, and volume. Modes use one class, requi

Indicator v6 Screeners & dashboardsTrend Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S37
1 stars

The Complex Pattern Finder indicator scans price charts for specific sequences of bullish and bearish candlesticks encoded as binary strings. Users can enter a custom string of ones and zeros or enable an auto-generated Fibonacci sequence based on a chosen lev

Indicator v5 Candlestick patterns
Updated 7 weeks ago · None stated GitHub repository of Complex Pattern Finder

CODEX NO1 Flip Engine v2

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. It uses an ATR trail, a zero-lag EMA for fast structure and a slow baseline, plus ADX, choppiness, efficiency and RSI inputs. An optio

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

Fable Bull HTF v1.2

by nishpa800
1 stars

A bullish-side detection indicator for higher timeframe charts that places numbered signals on the price chart. It combines relative volume tiers, a standard deviation displacement test, a VWMA with ATR Supertrend latch, pocket pivots and fair value gap engine

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

A Pine Script v5 indicator in a separate pane, the fifth revision of a Hurst cycle trough marker, whose title spells trough as through. It filters the hl2 price with bandpass filters for cycles from 1 day to 18 years and labels cycle lows with lines. Each cycl

Indicator v5 Oscillators & momentumSupport & resistance
Updated 6 months ago · None stated GitHub repository of Hurst Through Marker V5

SMI Hist Divergence

by zhuzp98
1 stars

An oscillator in a separate pane based on the Stochastic Momentum Index. It plots the SMI, an EMA of it, and a histogram of how the gap between the two changes from bar to bar, coloured by direction and strength. Dashed bands sit at plus and minus 40 with grad

Indicator v5 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of SMI Hist Divergence

Schaff Trend Cycle

by everget
947 stars

This indicator plots the Schaff Trend Cycle in a separate pane. It subtracts a slow exponential moving average from a fast one, applies a stochastic cycle twice, and smooths each result to form a 0–100 oscillator. Line color follows the slope, or the upper and

Indicator v4 Oscillators & momentumTrend
Updated 12 days ago · GPL-3.0 GitHub repository of Schaff Trend Cycle

This indicator plots trade entry and exit signals on the price chart by combining Bollinger Bands with optional filter conditions. It calculates standard Bollinger Bands along with RSI, Aroon, and moving average filters. Reversal signals trigger when price bre

Indicator v4 Volatility & bandsOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Bollinger Bands Winner IND [Alorse]

BLDE-tracker

by Allen1212
303 stars

BLDE-tracker overlays historical ARK Invest buy and sell transactions directly onto the price chart for Blade Air Mobility (BLDE). It plots color-coded labels—green below bars for purchases and red above bars for sales—displaying the transaction direction and

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

Traditional Pivot Points

by TradersPost
228 stars

Calculates and plots daily pivot levels directly on the price chart. It supports Traditional, Fibonacci, and Camarilla calculation formulas to generate a central pivot point along with three support levels and three resistance levels. The script pulls the prev

Indicator v6 Support & resistance
Updated 3 months ago · None stated GitHub repository of Traditional Pivot Points
114 stars

This indicator implements a dual-direction variation of the Williams Vix Fix oscillator in a separate pane. It normalizes price data using min-max scaling to compute both upward and downward synthetic volatility metrics across two selectable calculation modes

Indicator v4 Volatility & bandsMean reversion
Updated 1 year ago · None stated GitHub repository of Combo Williams Vix Fix (Twin)
99 stars

This indicator calculates the Directional Movement Index from true range and plus and minus directional movement, smoothed with Wilder's compensated RMA. It plots the DX line together with plus DI and minus DI in a separate pane and draws a dashed horizontal l

Indicator v6 Trend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Directional Movement Index (DX)

Bgcolor Example

by be-thomas
65 stars

Bgcolor Example demonstrates background chart shading based on trading sessions in Pine Script v4. It evaluates whether the current candle falls into pre-market, regular market, or post-market trading hours using a custom session check on a thirty-minute resol

Indicator v4 Sessions & time
Updated 6 days ago · GPL-3.0 GitHub repository of Bgcolor Example

Session Opening Bar Range

by TamaraKGreen
47 stars

This indicator plots the opening range of selected trading sessions directly on the price chart. Users can choose preset market sessions like New York, London, or Asia, or configure custom time windows. It draws high, low, and midline boundaries for the first

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 8 weeks ago · None stated GitHub repository of Session Opening Bar Range

KDJ

by mihakralj
47 stars

This indicator plots KDJ, described as an enhanced stochastic oscillator, in a separate pane. It finds the highest high and lowest low over the length with deque buffers, converts close into a raw stochastic value, and smooths K and D with Wilder-style RMA con

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of KDJ

Fisher Transform

by TWODS-CAPITAL
37 stars

Calculates the Fisher Transform oscillator based on the median price over a user-defined lookback length. By transforming prices into a Gaussian probability distribution, it highlights extreme price movements and potential trend reversals. The script plots the

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Fisher Transform

This indicator scores multi-timeframe Stochastic RSI confluence in a separate pane. It calculates a StochRSI reading on six configurable timeframes, dampens exhaustion, then combines adjacent timeframe pairs with a sync bonus or conflict penalty and user pair

Indicator v6 Oscillators & momentumScreeners & dashboards
Updated 3 days ago · MIT GitHub repository of MTF StochRSI Pair Score [WavesUnchained]

Gold Breakout Trader

by eddiebelaval
7 stars

Plots timed breakout ranges directly on the price chart, designed for gold trading using dollar-based spacing. At scheduled trigger times or recurring two-hour intervals, it creates a central reference box flanked by upper and lower breakout stop lines, follow

Indicator v6 BreakoutSupport & resistance
Updated 3 months ago · None stated GitHub repository of Gold Breakout Trader

CRT + Turtle Soup Scanner

by alboogycOdR
6 stars

Calculates CRT session range boundaries and detects Turtle Soup setups to identify potential breakout signals. The script tracks session high, low, and midpoint values to determine intraday bias while measuring price break distances against ATR thresholds. It

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT + Turtle Soup Scanner

VWAP Bands [trugurpala]

by trugurpala
4 stars

This indicator plots a volume-weighted average price that restarts at the beginning of each daily session, using typical price and cumulative volume. It draws the VWAP line on the price chart and optional standard-deviation bands at two user-set multipliers. B

Indicator v6 VolumeVolatility & bands
Updated 2 months ago · MIT GitHub repository of VWAP Bands [trugurpala]

SW's Asia/London H/L's

by alvinng214
2 stars

This indicator draws high and low levels for the Asia, London, New York, and Sydney sessions on the price chart. Each session can be enabled separately, with its own line color, thickness, opacity, labels, and an optional vertical line at the session start. It

Indicator v5 Sessions & timeSupport & resistance
Updated 2 months ago · None stated GitHub repository of SW's Asia/London H/L's

Fair Value Gaps by DGT

by regalouisei
2 stars

The indicator plots Fair Value Gaps zones on the price chart derived from selected timeframes. It detects imbalances between swing highs and lows then applies chosen fill methods including Wick Sweep and Body Beyond to mark filled gaps. Up to three instances s

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 8 months ago · None stated GitHub repository of Fair Value Gaps by DGT

Parkinson Volatility (PV)

by mushroom-men-Trading
2 stars

This indicator calculates Parkinson volatility from the logarithm of each bar's high divided by its low. It squares that term, smooths it with an RMA over the chosen length, and takes the square root after scaling by four times the natural log of two. When ann

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Parkinson Volatility (PV)

Multiple Moving Averages

by Web3Degenerate
2 stars

Plots up to five configurable moving averages directly on the price chart. Users can individually select the period and calculation type for each line from EMA, SMA, HMA, WMA, DEMA, VWMA, or VWAP. A master setting enables overriding all moving average types at

Indicator v5 Moving averagesTrend
Updated 2 years ago · None stated GitHub repository of Multiple Moving Averages

USI Flip + Lines

by skipp-dev
1 stars

This indicator calculates and plots a multi-line Ultimate Strength Indicator (USI) ribbon based on six relative strength lines ranging from slow to fast in a separate pane. It identifies momentum flip signals when fast lines cross slower lines with an adjustab

Indicator v6 Oscillators & momentumVolume Repaints
Updated 4 days ago · None stated GitHub repository of USI Flip + Lines

P_syn_functions

by GammaExpansion
1 stars

This Pine Script v6 indicator defines helper functions for value transformation and calculation. It includes double which multiplies by two, add which sums values with optional second argument, clamp which bounds a value between low and high, smooth which appl

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

An overlay indicator that tracks pivot, session, previous-day and flipped support and resistance levels and records how price reacts when it tests them. Each trial resolves into break, fade, fail or expire, and a Bayesian-style model sorted into twelve context

Indicator v6 Support & resistanceSessions & time Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of Trading Coach - Hybrid S/R Reaction Probability

DEPV2 DEBUG S39

by YuceSezar89
1 stars

DEPV2 DEBUG S39 is a multi-asset signal evaluation indicator designed to monitor up to twenty cryptocurrency pairs simultaneously. It processes four analytical categories—trend, momentum, volatility, and volume—to evaluate market direction. Users can configure

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

CODEX NO1 Flip Engine v3

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 3 adds an adaptive KAMA component to the baseline and a reversal acceptance step that checks directional energy, close locatio

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

Fable Bull HTF v1.3

by nishpa800
1 stars

A bullish-side detection indicator for higher timeframe charts that draws numbered signals on the price chart. It uses relative volume tiers, a standard deviation displacement test, a VWMA with ATR Supertrend latch, pocket pivots and fair value gap engines. A

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Fable Bull HTF v1.3
1 stars

Detects swing highs and swing lows from left and right bar counts and keeps the most recent ones, with their dates, in a table on the price chart. Settings choose the bar counts, how many swings to track, and the table position, size and text colours. Swings a

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

Plots the time weighted average price on the price chart: a running average of a chosen source, ohlc4 by default, that restarts whenever the selected anchor period begins, one day by default. Inputs set the anchor timeframe, source and an offset. Unlike VWAP,

Indicator v6 Support & resistanceMean reversion
Updated 1 year ago · None stated GitHub repository of Time Weighted Average Price

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