Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 25)

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

Double Smoothed Stochastic

by SiegerTerpstra
5 stars

This indicator calculates the Double Smoothed Stochastic oscillator and plots it in a separate pane below the price chart. It applies dual exponential smoothing to stochastic values to filter market noise while tracking momentum changes. Rising and falling val

Indicator v6 Oscillators & momentumMoving averages
Updated 9 months ago · None stated GitHub repository of Double Smoothed Stochastic

MACD+RSI

by Ahmed-GoCode
5 stars

This indicator plots a MACD line, signal line, and histogram together with a scaled RSI in a separate pane. MACD is the difference of fast and slow moving averages of the source, with an optional simple moving average instead of an exponential moving average f

Indicator v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of MACD+RSI

HTF Raid Indicator

by jerryinyang
5 stars

HTF Raid Indicator plots higher timeframe candle overlay boxes and tracks liquidity raids directly on the price chart. It calculates higher timeframe open, high, low, and close values using a custom tracking function and renders the higher timeframe candles us

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 years ago · None stated GitHub repository of HTF Raid Indicator

RSI + Stoch RSI

by mjkid221
5 stars

This indicator combines the standard Relative Strength Index (RSI) and the Stochastic RSI oscillator into a single pane. It calculates and plots the baseline RSI line along with its 70 and 30 overbought and oversold thresholds. Simultaneously, it computes the

Indicator v5 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of RSI + Stoch RSI

Custom AAVWAP

by ak2k2
5 stars

Custom AAVWAP is an indicator that automatically calculates and plots three Anchored Volume Weighted Average Price (AVWAP) series directly on the price chart. It locates the highest price, lowest price, and highest volume bars within a user-defined lookback pe

Indicator v5 VolumeSupport & resistance Repaints
Updated 3 years ago · MPL-2.0 GitHub repository of Custom AAVWAP

ADW - Momentum

by ADWilkinson
5 stars

This indicator calculates the Relative Momentum Index (RMI) and plots it in a separate pane alongside a smoothed exponential moving average line. It displays horizontal thresholds for overbought and oversold boundaries, plus a dashed centerline at 50. A colore

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · Custom licence GitHub repository of ADW - Momentum

ICT Time Range

by vitahoang
5 stars

This overlay indicator marks configurable trading sessions and higher-timeframe ranges on the price chart. It draws session boxes with optional high, low, open, and middle lines, labels, and background shading, and it can extend those lines through a chosen ti

Indicator v5 SMC / ICT / price actionSessions & time
Updated 3 years ago · None stated GitHub repository of ICT Time Range
5 stars

This indicator scans price bars for four Pivot Boss candlestick reversal setups and plots markers on the price chart. Extreme reversal compares a trigger bar with average lookback size and body coverage. Outside reversal looks for an engulfing bar larger than

Indicator v4 Candlestick patterns
Updated 3 years ago · None stated GitHub repository of [CP] Pivot Boss Candlestick Scanner
5 stars

This indicator calculates smoothed Heikin Ashi and typical price series to identify trend direction and generate directional signals. It derives synthetic Heikin Ashi values and applies multi-layered exponential and triple exponential moving average smoothing

Indicator v4 TrendMoving averages
Updated 5 years ago · MIT GitHub repository of Smoothed Heikin Ashi Signals

BB Remix

by InNoobWeTrust
4 stars

This indicator plots a quadruple Bollinger Band overlay on the price chart by combining fast and slow period lengths with inner and outer standard deviation multipliers. It calculates average upper and lower band boundaries, tracks band directional momentum, a

Indicator v6 Volatility & bandsTrend
Updated 2 days ago · None stated GitHub repository of BB Remix
4 stars

This indicator calculates a short RSI and treats a cross above or below a center level as a raw buy or sell. On the live bar it sends alerts that mark the signal active, cancel it, or confirm it when the bar closes, and it increments a revision each time the s

Indicator v6 Oscillators & momentum Repaints
Updated 3 days ago · MIT GitHub repository of OptionX Noisy Test Lifecycle
4 stars

This indicator calculates and plots predicted future Bollinger Bands mid, upper, and lower lines for 300 bars ahead using linear extrapolation. It draws these prediction lines in a separate pane below the price chart. Users can adjust the prediction horizon in

Indicator v6 Volatility & bandsMoving averages Repaints
Updated 2 weeks ago · MIT GitHub repository of GOM BB Prediction (300 bars)
4 stars

JoppanFX | Forex Sessions highlights four major global trading sessions—Sydney, Tokyo, London, and New York—directly on the price chart. The indicator calculates active market hours by converting time into each region's specific IANA timezone, ensuring automat

Indicator v6 Sessions & time
Updated 3 weeks ago · None stated GitHub repository of JoppanFX | Forex Sessions
4 stars

Meridian Futures Levels plots session structure for US index futures on the price chart. It marks the full futures session, overnight high and low, an optional overnight midpoint, and the regular-trading-hours open. It draws a configurable opening range with m

Indicator v6 Sessions & timeSupport & resistance
Updated 7 weeks ago · MPL-2.0 GitHub repository of Meridian - Futures Levels

Alert Examples

by trugurpala
4 stars

This indicator calculates fast and slow exponential moving averages along with RSI for detecting crossovers and overbought/oversold conditions. It plots the two EMAs on the price chart with dynamic coloring and displays triangle shapes on crossovers. Bullish c

Indicator v6 TrendOscillators & momentum
Updated 2 months ago · MIT GitHub repository of Alert Examples

This indicator calculates a smoothed, volume-weighted MACD oscillator displayed in a separate pane. It offers several moving average algorithms, including Ehlers SuperSmoother, DEMA, TEMA, RMA, and standard EMA, alongside an optional volume scaling factor to d

Indicator v6 Oscillators & momentumDivergence
Updated 4 months ago · MPL-2.0 GitHub repository of MACD Integration for GemHunter (Smoothed)

Confluence Pivot Zones [FEELS]

by VolodymyrFilias
4 stars

Confluence Pivot Zones identifies recent high and low swing pivots and clusters nearby levels into support and resistance zones based on ATR distance. It scores these confluence zones by strength and volume details while filtering out zones that do not meet th

Indicator v6 Support & resistance
Updated 4 months ago · MIT GitHub repository of Confluence Pivot Zones [FEELS]

PVA Volume

by soko8
4 stars

PVA Volume is a custom volume histogram indicator designed for Price Volume Analysis. It calculates a 10-period average volume and tracks the peak volume-to-price spread over the past 10 bars. The script colors the volume columns to reflect trading activity: l

Indicator v5 Volume
Updated 9 months ago · None stated GitHub repository of PVA Volume

KDJ Indicator

by YooooungLee
4 stars

This indicator calculates the standard KDJ oscillator lines using the raw stochastic value (RSV) smoothed with exponential moving averages. It plots the K, D, and J lines alongside horizontal overbought (80) and oversold (20) levels in a separate pane. The scr

Indicator v6 Oscillators & momentumDivergence
Updated 10 months ago · Apache-2.0 GitHub repository of KDJ Indicator
4 stars

This indicator calculates a standard Relative Strength Index (RSI) and applies dynamic color schemes and gradient functions to demonstrate custom visual formatting in Pine Script. Users can select preset color palettes like Red-Green, Blue-Orange, or Heat Map,

Indicator v5 Oscillators & momentum
Updated 11 months ago · Custom licence GitHub repository of Color Themes & Gradients [Lab]

This indicator plots a Volatility-Adjusted Momentum Oscillator in a separate pane. It divides the rate of change of close by the average true range, scales the result by 100, and overlays an exponential moving average as a signal line. Horizontal lines and bac

Indicator v6 Oscillators & momentumVolatility & bands
Updated 12 months ago · MIT GitHub repository of Volatility-Adjusted Momentum Oscillator (VAMO)

Chande Kroll Stop

by Hugs-4-Bugs
4 stars

This indicator plots the Chande Kroll Stop on the price chart. It builds a long stop from the lowest low over a lookback plus a multiple of average true range, then takes the lowest of that series over a second window. It builds a short stop from the highest h

Indicator v5 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Chande Kroll Stop

FluidTrades - SMC Lite

by ShabbirHasan1
4 stars

FluidTrades - SMC Lite identifies Smart Money Concepts (SMC) market structure elements directly on the main price chart. It plots supply and demand zones as styled boxes, along with optional zig-zag structure lines and price action labels such as higher highs,

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · Custom licence GitHub repository of FluidTrades - SMC Lite

AYDIN-FIBO V2

by Kalumur
4 stars

This indicator plots three EMAs with customizable lengths, narrow and wide Bollinger Bands, ALMA with adjustable offset and sigma, and multiple Fibonacci retracement levels on the price chart. It generates buy and sell signals on EMA5 crossing EMA13. Main sett

Indicator v5 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of AYDIN-FIBO V2

This indicator combines three Exponential Moving Averages (EMAs), imbalance gap detection, and a volume profile on the main price chart. It plots customizable short, medium, and long-term EMAs while highlighting Fair Value Gaps (FVG) and Opening Gaps (OG). Add

Indicator v5 Moving averagesSMC / ICT / price action
Updated 2 years ago · None stated GitHub repository of Imbalance + 3EMA + Volume Profile
4 stars

Auto Trendline automatically identifies fractal pivot points on the price chart and connects them to draw trendlines. It scans for higher highs, lower highs, higher lows, and lower lows over a customizable fractal period. Users can configure colors and visibil

Indicator v5 Support & resistanceTrend
Updated 3 years ago · None stated GitHub repository of Auto Trendline [DojiEmoji]

Bollinger Band

by might-tree
4 stars

This indicator calculates upper and lower Bollinger Bands using a Simple Moving Average and standard deviation. It plots both bands with a colored background fill between them, alongside the closing price in a separate indicator pane. Users can customize the c

Indicator v5 Volatility & bandsMoving averages
Updated 3 years ago · None stated GitHub repository of Bollinger Band
4 stars

Calculates the Center of Gravity oscillator to identify momentum and potential turning points. It plots the oscillator alongside an Arnaud Legoux Moving Average trigger line, a Least Squares Moving Average, historical high and low bounds, and optional Fibonacc

Indicator v4 Oscillators & momentumSupport & resistance
Updated 3 years ago · None stated GitHub repository of Center Of Gravity Oscillator
4 stars

This indicator plots standard pivot points on the price chart using prior high, low, and close. It supports Traditional, Fibonacci, Woodie, Classic, Demark, and Camarilla calculations and can show daily, weekly, and monthly levels together. Users choose how ma

Indicator v5 Support & resistance Repaints
Updated 4 years ago · None stated GitHub repository of Pivot Points Standard

FTX Premium Indicator

by blenessy
4 stars

The FTX Premium Indicator calculates and plots the relative price spread between cryptocurrency futures and spot contracts in a separate pane. It compares perpetual or dated contracts against spot markets and can normalize the difference into an annualized per

Indicator v5 Moving averagesVolatility & bands
Updated 4 years ago · MIT GitHub repository of FTX Premium Indicator

Snag - Makson

by dearvn
4 stars

The script is a price chart overlay indicator. It calculates a five period weighted moving average of close prices. Long signals trigger on crossovers from below the EMA combined with upward price action and trend continuation. Short signals trigger on crossov

Indicator v5 TrendMoving averages Repaints
Updated 4 years ago · None stated GitHub repository of Snag - Makson
4 stars

This indicator plots a Heikin Ashi style oscillator built from RSI values in a separate pane. It calculates candles from a chosen source and RSI length, with optional smoothing of the candle open. Users can also show a separate RSI line, an RSI histogram, a st

Indicator v4 Oscillators & momentumCandlestick patterns
Updated 4 years ago · None stated GitHub repository of Heikin Ashi RSI Oscillator

EMA_v1

by aofwittawat
4 stars

This indicator plots an exponential moving average on the price chart and colors it green when the close is above the average and red when it is below. It marks a long triangle when price flips from below the average to above it, and a short triangle on the op

Indicator v5 TrendMoving averages
Updated 4 years ago · None stated GitHub repository of EMA_v1

This indicator combines Stochastic RSI, Relative Strength Index (RSI), and Average Directional Index (ADX) into a single separate oscillator pane. It calculates momentum indicators alongside trend strength values to assess overall market conditions. The Stocha

Indicator v4 Oscillators & momentumTrend
Updated 5 years ago · GPL-3.0 GitHub repository of Stochastic RSI/RSI/Strength of Trend

SupRes[tytyd]

by setyadhiputrad
4 stars

SupRes[tytyd] is an overlay indicator that calculates and plots dynamic short-term and long-term support and resistance levels directly on the price chart. Using configurable lookback periods, it tracks recent price highs and lows to draw support and resistanc

Indicator v4 Support & resistance
Updated 5 years ago · GPL-3.0 GitHub repository of SupRes[tytyd]

EMA Cross

by degenview
3 stars

This indicator plots two exponential moving averages of a chosen price source on the price chart. A green upward triangle marks when the fast average crosses above the slow average, and a red downward triangle marks the opposite cross. Both events are also exp

Indicator v6 Moving averagesTrend
Updated 2 days ago · GPL-3.0 GitHub repository of EMA Cross

AT+T3

by gocaman
3 stars

AT+T3 is a TradingView Pine Script indicator that overlays the T3 moving average (with Fibonacci variant) and AlphaTrend on price charts for BIST stocks. T3 uses Tim Tillson's smoothing formula with adjustable length and volume factor to produce trend lines th

Indicator v5 TrendVolatility & bands Repaints
Updated 2 days ago · None stated GitHub repository of AT+T3

OPTD — Opening Range (ORB)

by drewautomates
3 stars

This indicator plots an opening-range high, low, and midpoint on the price chart. The levels build during a user-defined opening window and remain visible through the regular session before resetting the next day. A breakout marker appears after a chosen numbe

Indicator v6 BreakoutSessions & time
Updated 2 days ago · Custom licence GitHub repository of OPTD — Opening Range (ORB)
3 stars

Zigzag Impulse Stats calculates statistical metrics across dynamic zigzag segments overlayed on the price chart. It measures segment ratio, depth, heterogeneity, uniformity, trendline deviation, candle deviations, and envelope area. An optional Impulse Mode hi

Indicator v6 TrendSupport & resistance Repaints
Updated 5 days ago · MIT GitHub repository of Zigzag Impulse Stats

ATR Pip Control

by ricksimpsontrading
3 stars

ATR Pip Control is a volatility indicator that plots adaptive upper and lower bands based on ATR calculations. It draws signal triangles, labels, and bar colors on the price chart for breakout direction. Local end support and resistance lines appear on both si

Indicator v6 Volatility & bandsBreakout Repaints
Updated 10 days ago · None stated GitHub repository of ATR Pip Control

Chandelier Exit

by AkashSasikumar47
3 stars

This indicator plots a Chandelier Exit trailing stop on the price chart. It subtracts a multiple of ATR from the highest high or highest close for the long stop and adds the same distance to the lowest low or lowest close for the short stop. The active stop ra

Indicator v6 Volatility & bandsTrend
Updated 2 weeks ago · MIT GitHub repository of Chandelier Exit

Drawing Scaffold

by jpantsjoha
3 stars

Drawing Scaffold calculates the highest high and lowest low over a customizable lookback period. It plots these boundaries on the main price chart and dynamically renders extended support and resistance lines, a price label, and an optional visual range box on

Indicator v6 Support & resistanceScreeners & dashboards
Updated 4 weeks ago · Custom licence GitHub repository of Drawing Scaffold

PCA Risk Indicator

by jash-git
3 stars

The PCA Risk Indicator aggregates multiple technical momentum and trend indicators—including WaveTrend, Heikin Ashi Count, and Aroon—into a consolidated Principal Component Analysis (PCA) metric. It evaluates underlying market risk by standardizing individual

Indicator v5 Oscillators & momentumTrend Repaints
Updated 4 weeks ago · None stated GitHub repository of PCA Risk Indicator

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