Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 99)

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

A Pine v4 indicator in a separate pane that shows a rolling Sharpe-style ratio of the chart's price series, with a long window of 200 bars and a short window of 52 by default. An optional reference interest rate symbol can be subtracted, a Hull moving average

Indicator v4 Volatility & bands
Updated 3 years ago · None stated GitHub repository of Tykhe Rolling Sharpe Ratio

Squeeze Cross

by JohnsonHsiao
1 stars

This indicator calculates a normalized volatility oscillator plotted in a separate pane. It measures the distance between the closing price and a simple moving average, standardized by a scaled standard deviation band. The script plots the resulting ratio alon

Indicator v5 Volatility & bandsOscillators & momentum
Updated 3 years ago · None stated GitHub repository of Squeeze Cross

Fancy Shapes

by everget
947 stars

This script plots multiple shapes using the plotshape function in Pine Script v4. It defines fixed y offsets at intervals of 20 and renders flags, squares, diamonds, triangles up, and circles in sizes from tiny to huge. All shapes appear at absolute locations

Indicator v4 Support & resistance
Updated 13 days ago · GPL-3.0 GitHub repository of Fancy Shapes

AME-tracker

by Allen1212
303 stars

This indicator plots historical buy and sell transactions executed by ARK Invest for AME directly on the price chart using timestamped labels. It displays transaction actions and trade counts for specific historical dates. The ETF input setting lets users sele

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

Snag - 100 Win

by dearvn
257 stars

This indicator plots smoothed adaptive moving averages on the price chart using T3, AMA, or Kaufman methods. It accepts various sources including standard and Heikin-Ashi versions. Main settings select the calculation type, input source, period length, and smo

Indicator v5 Moving averagesTrend
Updated 7 weeks ago · None stated GitHub repository of Snag - 100 Win
228 stars

This indicator plots market structure on the price chart by identifying swing highs and lows. It connects these points with lines to visualize trend direction and detect Break of Structure (BOS) when price breaks a prior swing in the current trend. Change of C

Indicator v6 TrendSupport & resistance
Updated 3 months ago · None stated GitHub repository of Market Structure - BOS & CHoCH
114 stars

This indicator standardizes price inputs using z-score normalization before calculating a relative strength index (RSI). It generates trade signals when standardized price components cross over or under the standardized RSI feature. Signals can be filtered by

Indicator v4 Oscillators & momentumVolatility & bands Repaints
Updated 1 year ago · None stated GitHub repository of Preprosessed & Standardized RSI

Bollinger %B (BBB)

by mihakralj
99 stars

This indicator calculates the Bollinger Bands %B oscillator, measuring the position of price relative to the upper and lower Bollinger Bands. A value of 1 represents the upper band, 0 represents the lower band, and 0.5 indicates the middle band. Standard refer

Indicator v6 Oscillators & momentumVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Bollinger %B (BBB)
65 stars

This indicator demonstrates Pine Script bar-state handling on the price chart. It creates one persistent label on the first bar and, when the current bar is the last bar, moves that label to the bar high and sets its text to the high formatted to the symbol mi

Indicator v5
Updated 7 days ago · GPL-3.0 GitHub repository of V5 Concepts Bar States 02

Channel

by dcaoyuan
55 stars

The Channel indicator identifies recent pivot highs and pivot lows using fixed left and right bar lengths. It connects the two most recent pivot highs and two most recent pivot lows with extended lines to project upper and lower boundaries directly on the pric

Indicator v5 TrendSupport & resistance
Updated 6 months ago · Apache-2.0 GitHub repository of Channel

Daily close statistics

by TamaraKGreen
47 stars

This indicator plots the previous day's high, low and midpoint and the previous week's high, low and midpoint directly on the price chart. It also marks New York, London and Asia sessions, optionally filling each session range and showing that session's maximu

Indicator v5 Support & resistanceSessions & time
Updated 8 weeks ago · None stated GitHub repository of Daily close statistics
47 stars

This indicator applies the exponential transformation y equals e to the power x to a user selected input series. The function computes the transformed values using a runtime validated implementation that errors on non numeric data. The result series plots in a

Indicator v6
Updated 8 months ago · MIT GitHub repository of Exponential Transformation (EXP)

Commodity Channel Index

by TWODS-CAPITAL
37 stars

This indicator plots the Commodity Channel Index in a separate pane. It measures how far the selected source, defaulting to the average of high, low, and close, sits from its simple moving average, scaled by mean deviation. Dashed bands mark plus and minus 100

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Commodity Channel Index
9 stars

FlowBias calculates a composite market momentum metric using Chaikin Money Flow, volume delta, Stochastic, and the Ultimate Oscillator. Plotted in a separate pane, it identifies trend pullbacks and market exhaustion reversals through visual signals and labels.

Indicator v6 TrendOscillators & momentum
Updated 4 days ago · MIT GitHub repository of FlowBias [WavesUnchained]
7 stars

Aivance Opening Range & Vol Factor identifies the first candle of each new trading day, plotting its high, low, open, and close levels with colored boxes and lines directly on the chart. It calculates a Volume Factor percentage by comparing the opening bar vol

Indicator v6 Sessions & timeVolume
Updated 3 months ago · None stated GitHub repository of Aivance Opening Range & Vol Factor

RSI Signal

by suyons
7 stars

RSI Signal is a multi-timeframe momentum indicator that plots buy and sell signals on the price chart based on Relative Strength Index crossovers. It retrieves RSI values across four configurable timeframes and evaluates trend alignment using the highest timef

Indicator v5 Oscillators & momentumScreeners & dashboards Repaints
Updated 4 months ago · None stated GitHub repository of RSI Signal

MACD x RSI Study

by jerryinyang
5 stars

This indicator combines MACD and RSI to generate pullback signals on forex pairs. It plots MACD line, signal line and histogram alongside RSI and Wave Trend oscillator. Higher-timeframe MACD provides trend bias while RSI identifies overbought and oversold zone

Indicator v4 Oscillators & momentumMoving averages
Updated 2 years ago · None stated GitHub repository of MACD x RSI Study

Kijun-Sen + SSL + WAE

by krosenfeld7
5 stars

Combines the Kijun-Sen baseline, SSL channel crossovers, and Waddah Attar Explosion momentum calculations to generate directional trade signals. The indicator plots the Kijun-Sen and SSL lines directly on the price chart. When price aligns relative to the Kiju

Indicator v4 TrendOscillators & momentum
Updated 3 years ago · Apache-2.0 GitHub repository of Kijun-Sen + SSL + WAE

v2

by jash-git
3 stars

This indicator plots five Exponential Moving Averages (EMA 3, 13, 34, 55, and 144) on the price chart to determine market trend structure. It identifies entry confluence signals by detecting when an EMA 3 and 13 crossover coincides with a MACD crossover within

Indicator v5 TrendMoving averages
Updated 5 weeks ago · None stated GitHub repository of v2
3 stars

CSW MTF Sentiment Line evaluates market sentiment across five customizable timeframes on the price chart. Traded assets can be measured using RSI, volatility (RSI of price standard deviation), or volume (RSI of volume moving average), with values normalized on

Indicator v5 Oscillators & momentumVolatility & bands Repaints
Updated 5 months ago · None stated GitHub repository of CSW MTF Sentiment Line
3 stars

This indicator overlays a dynamic trend ribbon or cloud on the price chart to visualize market direction and strength. It generates long and short signals based on selected strategy modes such as Default, Scalping, Intraday or Swing, using adjustable period, s

Indicator v5 TrendSMC / ICT / price action Repaints
Updated 1 year ago · None stated GitHub repository of Money Moves [Premium Algo V2]

Ichimoku Kinko Hyo

by TamTH-Dev
2 stars

Plots the classic Ichimoku Kinko Hyo system directly on the price chart. It calculates the Tenkan-Sen, Kijun-Sen, Senkou Span A, Senkou Span B, and Chikou Span based on midpoints of highest highs and lowest lows over user-defined lookback periods. The Kumo clo

Indicator v5 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of Ichimoku Kinko Hyo

Options Max Pain Calculator [BackQuant] estimates options max pain theory levels, pin risk zones, and market maker gamma exposure directly on the price chart. It models strike prices, put/call volume ratios, implied volatility, and dealer hedging parameters to

Indicator v6 Support & resistance
Updated 8 months ago · None stated GitHub repository of Options Max Pain Calculator [BackQuant]

Garman-Klass Volatility (GKV)

by mushroom-men-Trading
2 stars

The Garman-Klass Volatility indicator measures market volatility using open, high, low, and close prices on a logarithmic scale. By accounting for intraday high-low range alongside opening and closing prices, it offers a more detailed volatility measure than s

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Garman-Klass Volatility (GKV)

ATR Indicator

by Web3Degenerate
2 stars

This educational script calculates trailing stop loss reference levels based on the Average True Range. It measures 14-period market volatility and projects potential long stop levels below the current low and short stop levels above the current high. The scri

Indicator v5 Volatility & bands
Updated 2 years ago · None stated GitHub repository of ATR Indicator

Signal Forge

by jayadevrana
1 stars

This indicator calculates an ATR-based trailing stop and combines it with a 200-period baseline EMA to identify trend reversals on closed candles. To eliminate false breakouts, it filters signals through an ADX chop detector, a relative volume threshold, and a

Indicator v6 TrendMoving averages
Updated 5 days ago · MPL-2.0 GitHub repository of Signal Forge

SMC Structure Context

by skipp-dev
1 stars

The SMC Structure Context indicator overlays visual elements on the price chart to represent the current market structure state. It displays a state label indicating bullish, bearish, or neutral conditions, along with markers for change of character (CHoCH) an

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 5 days ago · None stated GitHub repository of SMC Structure Context

P_err_request_security

by GammaExpansion
1 stars

P_err_request_security is a minimal Pine Script v6 test fixture designed to evaluate multi-timeframe security requests. It retrieves the daily closing price of the current ticker symbol using request.security and plots the resulting value in a separate indicat

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

DEPV2 DEBUG S13

by YuceSezar89
1 stars

This multi-symbol indicator monitors up to twenty cryptocurrency pairs and evaluates signals across four core dimensions: trend, momentum, volatility, and volume. It allows traders to configure signal generation through individual dimensions, simultaneous mult

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

WaveTrend Adv

by 7b809
1 stars

An overlay version of the WaveTrend oscillator whose lines are hidden by default, showing buy and sell labels on the price chart instead. A bullish or bearish cross of the two lines is signalled, optionally only when price is above or below a 200-period EMA. L

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

Symmetric Attraction

by morindok
1 stars

Symmetric Attraction is an indicator that plots mirrored candles on the price chart by reflecting OHLC data around a regression basis line. The basis is computed using linear regression on the selected source with an optional logarithmic transformation. It als

Indicator v6 Candlestick patternsSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Symmetric Attraction

Volatility Momentum Suite

by vedkanani123
1 stars

A separate-pane momentum tool built on a smoothed rate of change with a signal line and standard deviation bands. It also measures acceleration of that momentum with its own moving average and smoothing length. Display options include classic or Heikin Ashi va

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

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.2 is a tick-friendly build. It is an indicator only.

Indicator v6 SMC / ICT / price actionVolume

Grimm Silver

by GreyssonEnterprises
1 stars

This indicator draws a background color over a customizable trading session in a selected timezone. The session can be limited to specific days of the week. Only during the active session, bars are colored green for bullish paint when the current bar's low exc

Indicator v4 Sessions & time
Updated 3 months ago · MIT GitHub repository of Grimm Silver
1 stars

A Pine Script v5 indicator in a separate pane that works with Hurst-style forward cycle projections known as future line of demand (FLD) lines. It offers seven FLD slots, each with an automatic or manual period and a bars-per-period multiplier, and a switch be

Indicator v5 Support & resistance
Updated 6 months ago · None stated GitHub repository of Hurst Diamond Notation Pivots

Range Scalper

by knectardev
1 stars

Range Scalper marks support and resistance from the latest confirmed pivot low and pivot high. It treats price as range-bound when the distance between those levels, divided by the close, is at or below the range threshold. While that condition holds, it plots

Indicator v5 Support & resistanceBreakout
Updated 9 months ago · None stated GitHub repository of Range Scalper
1 stars

An alert-focused version of a multi-indicator divergence scanner. It checks pivot highs and lows on the price chart against MACD, MACD histogram, RSI, Stochastic, CCI, momentum, OBV, volume-weighted MACD, Chaikin Money Flow, MFI and the Stochastic Momentum Ind

Indicator v5 DivergenceOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of Meta Divergence Alert

STDDEV & ATR Gap

by JohnsonHsiao
1 stars

This indicator calculates the difference between the standard deviation and average true range of the closing price over a specified period. It plots this gap as a histogram in a separate pane, using different colors to indicate volatile or ranging conditions.

Indicator v5 Volatility & bands
Updated 3 years ago · None stated GitHub repository of STDDEV & ATR Gap

The Farey Sequence Weighted Moving Average calculates a smoothed trend line by weighting historical price values according to terms from a Farey sequence of a selected mathematical order. The line plots directly on the price chart and updates dynamically based

Indicator v4 Moving averagesTrend
Updated 13 days ago · GPL-3.0 GitHub repository of Farey Sequence Weighted Moving Average
330 stars

This separate-pane indicator plots a MACD line, a signal line, and a histogram whose colors show whether the histogram is rising or falling above or below zero. The oscillator and signal can each use an SMA or an EMA, and an optional marker highlights MACD and

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

AMZN-tracker

by Allen1212
303 stars

AMZN Tracker visualizes historical buy and sell transactions made by ARK Invest funds on Amazon stock (AMZN) directly on the price chart. The indicator plots green labels below price bars for buy trades and red labels above for sell trades, displaying the coun

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

Snag - Auto Trade Futures is an overlay indicator designed for trend tracking using weighted moving averages (WMAs). It plots 13-period, 48-period, and 200-period WMAs directly on the price chart and identifies momentum shifts when these averages cross. When f

Indicator v5 TrendMoving averages Repaints
Updated 7 weeks ago · None stated GitHub repository of Snag - Auto Trade Futures
99 stars

This overlay indicator calculates Bollinger Bands from a rolling mean and standard deviation and Keltner Channels from a simple moving average plus ATR-smoothed true range. A dedicated function returns whether a squeeze is on, the bandwidth, and the band and c

Indicator v6 Volatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Bollinger Band Squeeze (BBS)
65 stars

This indicator defines a function that tracks bar updates by incrementing a counter exclusively on new bars detected via barstate.isnew in Pine Script v5. It plots the resulting update number in a separate pane as a visual reference for bar state concepts. The

Indicator v5 Sessions & time Repaints
Updated 7 days ago · GPL-3.0 GitHub repository of V5 Concepts Bar States 03

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