Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 101)

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

3 stars

Pieki Algo is an all-in-one technical analysis indicator that overlays trading signals, trend visualizers, and Smart Money Concepts onto the main price chart. It plots buy and sell signals based on configurable sensitivity settings, colors candles by trend or

Indicator v5 SMC / ICT / price actionTrend Repaints
Updated 1 year ago · None stated GitHub repository of Pieki Algo Signals & Overlays

IMBA Algo

by TamTH-Dev
2 stars

IMBA Algo is a price chart overlay indicator designed to simulate trading setups with detailed position visualisations. It calculates entry points, automatic or fixed percentage stop losses, break-even levels, and four distinct take profit targets with customi

Indicator v5 TrendScreeners & dashboards
Updated 6 weeks ago · None stated GitHub repository of IMBA Algo

BS

by avatar-lavventura
2 stars

This indicator estimates buying and selling volume proportions based on the relative position of the close within the high-low range of each bar. It plots total volume as red columns and overlays estimated buying volume as teal columns in a separate indicator

Indicator v4 Volume
Updated 8 months ago · None stated GitHub repository of BS
2 stars

This indicator tracks macroeconomic and financial conditions to estimate recession risk across multiple market dimensions. It requests external data for the S&P 500 moving average growth rate, US 10-year minus 3-month yield curve inversion, M2 money supply tre

Indicator v6 Screeners & dashboardsMoving averages
Updated 8 months ago · None stated GitHub repository of Recession Warning Traffic Light

Hilbert Trendline (HTIT)

by mushroom-men-Trading
2 stars

This indicator calculates a Hilbert Transform instantaneous trendline from a chosen price source and plots it on the price chart. It smooths the source, estimates an adaptive cycle period between 6 and 50 bars from quadrature components, and updates a recursiv

Indicator v6 Trend
Updated 9 months ago · None stated GitHub repository of Hilbert Trendline (HTIT)

Bollinger Bands

by Web3Degenerate
2 stars

This overlay indicator plots customized asymmetrical Bollinger Bands on the price chart to detect breakout trade signals. It calculates a middle simple moving average and standard deviation bands using separate standard deviation multipliers for upper and lowe

Indicator v5 Volatility & bandsBreakout
Updated 2 years ago · None stated GitHub repository of Bollinger Bands

Supply & Demand Zones

by jayadevrana
1 stars

The Supply & Demand Zones indicator calculates and plots potential institutional supply and demand levels directly on the main price chart. It defines base candles by measuring body size against total candle range, and detects impulse candles when candle body

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 5 days ago · MPL-2.0 GitHub repository of Supply & Demand Zones
1 stars

This indicator draws a visible-range volume profile directly on the main price chart as a companion tool for smart money concepts (SMC) analysis. It calculates volume distribution across selectable price rows, plotting high-volume nodes, a configurable Value A

Indicator v6 VolumeSupport & resistance
Updated 5 days ago · None stated GitHub repository of SMC Volume Profile Overlay

P_err_two_declarations

by GammaExpansion
1 stars

This script is a minimal parser test fixture from the OptiPine test suite designed to evaluate syntax handling when multiple script declarations are present. It defines both an indicator and a strategy header before plotting the closing price in a separate cha

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

DEPV2 DEBUG S15

by YuceSezar89
1 stars

This indicator watches up to twenty user-chosen symbols, defaulting to Binance crypto perpetuals, and combines four signal classes: trend, momentum, volatility, and volume. Signal mode can use one class, require several classes to agree, require a chosen seque

Indicator v6 TrendOscillators & momentum Repaints
Updated 2 weeks ago · None stated GitHub repository of DEPV2 DEBUG S15
1 stars

Calculates a volume profile across a user-selected historical time range and projects it forward from a designated mirror timestamp directly onto the price chart. The script collects price and volume data between start and end timestamps, splits the range into

Indicator v6 VolumeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of TimeMirrorVol {Morindok}

Volume MAs Oscillator

by vedkanani123
1 stars

A separate-pane oscillator derived from a selectable volume-adjusted moving average, with adaptive bands set by a band length, a smoothing value and separate positive and negative multipliers. A signal type setting picks the reading. Optional oversold and over

Indicator v6 Oscillators & momentumVolume
Updated 2 months ago · None stated GitHub repository of Volume MAs Oscillator

B2B PUP Combined 4.32

by nishpa800
1 stars

An earlier version of a combined detection indicator that unifies pocket pivot, displacement, VWMA with ATR Supertrend, relative volume, fair value gap and TNT zone engines into numbered signals drawn on the price chart. This release fixes the charge ladder so

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of B2B PUP Combined 4.32

Grimmarty Backtest

by GreyssonEnterprises
1 stars

A Pine v4 indicator that draws four smoothed moving averages (21, 50, 100 and 200), a trend fill between a short EMA and the 200 average, and three line strike candle markers for bullish and bearish cases. It also shades a time-zone trading session and holds i

Indicator v4 Moving averagesCandlestick patterns
Updated 3 months ago · MIT GitHub repository of Grimmarty Backtest

A Pine Script v5 indicator in a separate pane that uses Hurst-style bandpass filters on a selectable price source, defaulting to the low, to mark cycle pivots from the 80 day range up to 18 years. Every cycle has its own bandwidth and period setting, plus a ba

Indicator v5 Oscillators & momentumSupport & resistance
Updated 6 months ago · None stated GitHub repository of Hurst Diamond Notation Pivots 80D to 18Y
1 stars

This overlay indicator builds support and resistance channels from confirmed pivot highs and lows. It groups nearby pivots into channels whose width is limited by a percentage of the recent high-low range, then draws up to a set number of channels on the price

Indicator v4 Support & resistance
Updated 9 months ago · None stated GitHub repository of Support Resistance Channels

Multiple MA

by zhuzp98
1 stars

An indicator that draws three moving averages on the price chart: a base, a slow and a fast line, each selectable as EMA, SMA or Hull type with its own length. The slow line changes colour depending on whether price is above or below it. Labels mark when price

Indicator v5 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of Multiple MA
1 stars

The triple exponentially average indicator computes a triple exponential moving average of the closing price to generate the Trix oscillator. It calculates the successive EMAs and derives the trix as the percentage change of ema3. The script plots the trix val

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · None stated GitHub repository of Triple Exponentially Average
947 stars

This indicator builds a histogram of percentage gap sizes in a separate pane. It measures each gap as a percentage change, then counts how often those sizes fall into positive and negative bins. Columns show the count in each bin, and optional labels mark the

Indicator v4
Updated 13 days ago · GPL-3.0 GitHub repository of Gaps % Size Distribution

AONE-tracker

by Allen1212
303 stars

AONE-tracker visualizes historical ARK Invest purchase and sale transactions directly on the price chart for the stock. It plots color-coded labels on specific historical trade dates, indicating whether ARK funds bought or sold shares along with the count of p

Indicator v4
Updated 2 years ago · None stated GitHub repository of AONE-tracker
257 stars

Plots three weighted moving averages (periods 13, 48, and 200) directly on the price chart to classify trend transitions and strength. The indicator detects early trend beginnings when the close crosses any of the moving averages, then tracks subsequent moving

Indicator v5 TrendMoving averages
Updated 7 weeks ago · None stated GitHub repository of Snag - Confirm Trend

SMA Dynamic

by capissimo
114 stars

This indicator plots two weighted moving averages in a separate pane to track price trends with volatility-based adaptation. One moving average uses a fixed user-defined lookback period, while the second adjusts its length dynamically by comparing a 10-period

Indicator v4 Moving averagesVolatility & bands
Updated 1 year ago · None stated GitHub repository of SMA Dynamic

AI Trend Navigator

by hasnocool
106 stars

This indicator calculates a trend direction and smoothed moving average using a k-nearest neighbours (k-NN) classification algorithm directly on the main price chart. Users can select input price types, target values, neighborhood size, and smoothing periods.

Indicator v5 AI / machine learningTrend
Updated 2 years ago · GPL-3.0 GitHub repository of AI Trend Navigator
99 stars

This indicator plots the Bull-Bear Power Ratio as two oscillator lines in a separate pane. BR compares the range above the previous close with the range below it, and AR compares the range above the open with the range below it. Both ratios are summed over a r

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Bull-Bear Power Ratio (BRAR)

V5 Concepts Colors 00

by be-thomas
65 stars

Calculates and plots five Simple Moving Averages (SMAs) with lengths of 10, 30, 50, 70, and 90 on the main price chart. The script serves as an educational example demonstrating various syntax methods for defining color transparency in Pine Script v5, includin

Indicator v5 Moving averagesTrend
Updated 7 days ago · GPL-3.0 GitHub repository of V5 Concepts Colors 00
55 stars

This indicator automatically identifies swing highs and lows over a 100-bar lookback window on the most recent bar to draw Fibonacci technical overlays. It plots a primary trendline between the detected swing points, alongside extended speed fan lines at stand

Indicator v5 Support & resistance Repaints
Updated 6 months ago · Apache-2.0 GitHub repository of Fibonacci Speed Fan & Time Zones
47 stars

This indicator uses a Hidden Markov Model (HMM) framework combined with an adaptive dual moving average engine and Directional Movement Index (DMI) features to identify market regimes (bullish, bearish, or ranging/chop). It calculates regime probabilities on e

Indicator v5 AI / machine learningTrend
Updated 8 weeks ago · None stated GitHub repository of HMM Enhanced: Regime Probability

Fisher Transform

by mihakralj
47 stars

Calculates the Fisher Transform oscillator and its signal line to convert price action into a Gaussian probability distribution. It normalizes input prices within a specified lookback window, applies exponential smoothing, and scales the bounded value logarith

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

Coppock Curve

by TWODS-CAPITAL
37 stars

This indicator plots the Coppock Curve in a separate pane. It adds the rate of change of close over a long lookback to the rate of change over a shorter lookback, then smooths that sum with a weighted moving average. The WMA length and the long and short rate-

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · MIT GitHub repository of Coppock Curve

This indicator maps Stephen Klinger's volume force in a separate pane. It builds a Klinger volume oscillator from fast and slow exponential averages of a volume-force series, then subtracts a signal average to form a histogram. Display normalization keeps zero

Indicator v6 Oscillators & momentumVolume
Updated 4 days ago · MIT GitHub repository of Klinger Volume Force Map [WavesUnchained]
7 stars

Arbitrage Detector [LuxAlgo] compares price and volume data across multiple crypto exchanges or forex brokers against the charted asset. It calculates cross-venue spreads and measures their percentile ranks to highlight market anomalies, plotting a smoothed gr

Indicator v6 Screeners & dashboardsVolume
Updated 3 months ago · None stated GitHub repository of Arbitrage Detector [LuxAlgo]

Stochastic 3

by suyons
7 stars

Stochastic 3 plots three separate Stochastic oscillators stacked vertically in a single indicator pane using vertical offsets. It calculates fast, medium, and slow momentum layers (configured by default to 5-3-3, 10-6-6, and 20-12-12 settings) with customizabl

Indicator v5 Oscillators & momentum
Updated 4 months ago · None stated GitHub repository of Stochastic 3

714AutoM8tr

by alboogycOdR
6 stars

714AutoM8tr is a Smart Money Concepts indicator that plots internal and swing market structures directly on the price chart. It identifies Break of Structure and Change of Character points alongside internal and swing order blocks. Users can customize order bl

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of 714AutoM8tr
5 stars

This indicator overlays higher-timeframe candles on the price chart as body and wick boxes. It requests open, high, low, close, and bar times from a chosen higher timeframe, then compares stored wick boxes to mark imbalances above or below price. Settings choo

Indicator v4 SMC / ICT / price actionSupport & resistance
Updated 2 years ago · None stated GitHub repository of MTF Order Block and Imbalance
3 stars

CSW Sequence Candles Pro calculates 5-period EMA-smoothed Open, High, Low, and Close values to render custom sequence candlesticks directly on the main price chart. It determines trend direction by comparing the smoothed close to a 20-period EMA, dynamically c

Indicator v5 Candlestick patternsTrend
Updated 5 months ago · None stated GitHub repository of CSW Sequence Candles Pro

Premium Lux Algo

by IAMATOMIC001
3 stars

Premium Lux Algo is a multi-indicator overlay designed for price charts. It combines components including Supertrend, Parabolic SAR, pivot-based support and resistance levels, moving average bands, and range filters into a single tool. Traders can toggle speci

Indicator v5 TrendSupport & resistance
Updated 1 year ago · None stated GitHub repository of Premium Lux Algo

Market Cipher A

by TamTH-Dev
2 stars

Market Cipher A plots an exponential moving average ribbon on the price chart alongside visual trend signals. It computes eight EMAs of varying lengths to construct the ribbon, tracks daily pivot high and low levels, and calculates momentum using internal wave

Indicator v5 TrendMoving averages Repaints
Updated 6 weeks ago · None stated GitHub repository of Market Cipher A

BPR [TFO] - Modified

by alvinng214
2 stars

This indicator draws Balanced Price Range zones on the price chart. It looks for a bullish fair value gap and a bearish fair value gap that form within a set number of bars, then boxes their overlapping range when that range is at least the threshold. Boxes ca

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of BPR [TFO] - Modified

CM DI Plus Minus V1

by avatar-lavventura
2 stars

CM DI Plus Minus V1 calculates the positive (+DI) and negative (-DI) directional indicators to assist in identifying trend direction and strength. It plots both +DI and -DI lines in a separate pane and offers optional background highlighting based on direction

Indicator v4 TrendOscillators & momentum
Updated 8 months ago · None stated GitHub repository of CM DI Plus Minus V1
2 stars

Calculates Murrey Math Lines support and resistance levels anchored to the largest price impulse found within a rolling lookback window via Kadane's algorithm. It projects fractional Murrey grid lines alongside base and inverse lines with text labels directly

Indicator v6 Support & resistance
Updated 8 months ago · None stated GitHub repository of Rolling Largest Impulse Murreys Lines

Historical Volatility (HV)

by mushroom-men-Trading
2 stars

This indicator calculates and plots Close-to-Close Historical Volatility in a separate chart pane. It measures statistical market volatility by computing the standard deviation of logarithmic price returns over a customizable lookback period. The script utiliz

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

Candle Filters

by Web3Degenerate
2 stars

Candle Filters is an overlay indicator that marks bullish and bearish engulfing candles on the price chart. A bullish signal requires a prior down candle whose body is engulfed by the current candle near a swing low, while a bearish signal does the reverse nea

Indicator v5 Candlestick patternsMoving averages
Updated 2 years ago · None stated GitHub repository of Candle Filters

Trend Dashboard

by jayadevrana
1 stars

This indicator plots an EMA line with length 50 on the price chart to show the trend direction. It evaluates whether price sits above the EMA for three custom timeframes and displays the results as UP or DOWN labels in a table at the top right. The table color

Indicator v6 TrendMoving averages
Updated 5 days ago · MPL-2.0 GitHub repository of Trend Dashboard

P_err_type_string_to_float

by GammaExpansion
1 stars

This test script is a fixture designed to verify type conversion error handling in Pine Script. It assigns a string value to a float variable and plots the resulting variable in a separate indicator pane. The script contains no user-configurable settings, tech

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

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