Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 43)

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

Stochastic RSI

by CjHare
2 stars

This indicator calculates a stochastic oscillator from the relative strength index of closing prices and plots the result in a separate pane. It draws the unsmoothed Stochastic RSI together with simple-moving-average %K and %D lines, plus dotted horizontal lev

Indicator v5 Oscillators & momentum
Updated 2 years ago · Apache-2.0 GitHub repository of Stochastic RSI
2 stars

This indicator displays market trend filter information and momentum metrics in a separate pane based on the Weekend Trend Trader strategy. It evaluates a benchmark index, such as the NASDAQ 100, comparing its close price to a simple moving average to render a

Indicator v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Weekend Trend Trader Ribbon
2 stars

This indicator plots five predefined daily moving averages directly on the main price chart. It calculates a 10-period EMA, 21-period EMA, 50-period SMA, 150-period SMA, and 200-period SMA to assist with trend identification and dynamic support or resistance t

Indicator v5 TrendMoving averages
Updated 2 years ago · MIT GitHub repository of Daily MA's [JR-Academy]

Waindrops

by mikah13
2 stars

Waindrops calculates custom volume profiles over user-defined intraday periods, dividing each period into two halves to plot high, low, left VWAP, and right VWAP levels. It draws dual-sided volume histograms directly on the price chart, coloring each formation

Indicator v4 VolumeCandlestick patterns
Updated 2 years ago · None stated GitHub repository of Waindrops

HTF Candles & Pivots

by itmakesyousick
2 stars

This indicator draws higher-timeframe candles and classic pivot levels on the price chart. Users choose an automatic or fixed higher timeframe and a color theme, then show or hide the candle and the pivots. Candle display can emphasize open and close, high and

Indicator v5 Candlestick patternsSupport & resistance
Updated 3 years ago · None stated GitHub repository of HTF Candles & Pivots

Multi Level Zigzag

by WISEPLAT
2 stars

This indicator calculates and plots up to four hierarchical ZigZag levels directly on the price chart to map swings and market structure across different sensitivities. Each level can be toggled and configured with custom lengths and colors. Settings allow use

Indicator v5 Support & resistanceTrend Repaints
Updated 3 years ago · None stated GitHub repository of Multi Level Zigzag
2 stars

Calculates custom exponential moving averages and standard deviation envelopes based on price offsets and lookback windows. It plots dynamic channel bands, mean reversion zones, and squeeze indicators in a separate pane. Users can adjust the moving average len

Indicator v5 Moving averagesVolatility & bands
Updated 3 years ago · None stated GitHub repository of [CBB] Rising Falling Color Band
2 stars

This indicator identifies Quasimodo Level (QML) market structure patterns on the price chart using a ZigZag algorithm. It includes optional directional trend filtering using dual exponential moving averages, an ADX threshold filter to verify trend strength, an

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 3 years ago · None stated GitHub repository of QML Indicator Only w/filters [upslidedown]

This indicator plots volume-based support and resistance zones on the price chart. It analyzes multiple timeframes including current, 4-hour, and daily to identify potential reaction levels. The script draws horizontal lines and shaded zones for resistance and

Indicator v4 Support & resistanceVolume
Updated 3 years ago · MIT GitHub repository of Volume-based Support & Resistance Zones

Supertrend

by ctkqiang
2 stars

This script calculates a custom Supertrend line on the price chart to identify trend direction and dynamic support or resistance levels. It computes upper and lower trailing bands using the Average True Range (ATR) based on a configurable multiplier and period

Indicator v4 TrendVolatility & bands
Updated 3 years ago · Apache-2.0 GitHub repository of Supertrend

Simple Indicator

by storm0611
2 stars

This indicator plots four exponential moving averages directly on the main price chart. It calculates EMAs using hardcoded lengths of 20, 50, 100, and 200 bars applied to the closing price, styled with distinct colors and increasing line widths. It also includ

Indicator v5 Moving averagesTrend
Updated 4 years ago · None stated GitHub repository of Simple Indicator

Simple Volume

by minaecer
2 stars

The Simple Volume indicator calculates a smoothed volume metric using a combination of Volume Weighted Moving Average (VWMA) and Relative Moving Average (RMA). It plots the calculated volume baseline alongside step-lines and a filled region representing volume

Indicator v4 Volume
Updated 4 years ago · MPL-2.0 GitHub repository of Simple Volume

OHLC RTH & ON Sessions

by ClimberMel
2 stars

This indicator tracks and plots Regular Trading Hours (RTH) and Overnight (ON) key price levels directly on the price chart. It displays high, low, open, and close prices for current and previous trading sessions, allowing traders to monitor important intraday

Indicator v5 Sessions & timeSupport & resistance
Updated 4 years ago · MIT GitHub repository of OHLC RTH & ON Sessions

Matrix functions - test

by JorisDuyck
2 stars

This script provides utility functions to treat one-dimensional Pine Script arrays as two-dimensional matrices. It includes functions to get the number of columns and rows from a matrix, initialize a new matrix with given dimensions and a fill value, set value

Indicator v4
Updated 5 years ago · MIT GitHub repository of Matrix functions - test
1 stars

A test indicator on the price chart that combines optional entry filters with adaptive exit sizing. Filters include a moving average, a confirmation moving average, a higher-high higher-low market structure check using pivots and a MACD direction check. Take p

Indicator v6 Volatility & bandsMoving averages
Updated 2 days ago · None stated GitHub repository of USE Adaptive Kelly Test
1 stars

This indicator calculates and plots the standard Commodity Channel Index (CCI) in a separate pane alongside upper, middle, and lower threshold reference levels. It includes an optional smoothing moving average with selectable types including SMA, EMA, SMMA, WM

Indicator v6 Oscillators & momentum
Updated 2 days ago · Custom licence GitHub repository of Commodity Channel Index
1 stars

This indicator identifies institutional liquidity pool zones using swing high and low pivots adjusted by ATR width. It confirms liquidity sweeps through multi-layer criteria, including volume spikes, wick rejections, absorption bars, and swing failure patterns

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 days ago · None stated GitHub repository of Shark Hunt | Anonycryptous

ZeroDTE Wave v2

by xynkro
1 stars

A Pine version 6 overlay that marks reversal entries and exits for same-day index option trades on five-minute bars. Entries need a stochastic reversal cross, an EMA trend filter, a cooldown and a time window, and must pass a confluence score, a VIX stand-asid

Indicator v6 Mean reversionSessions & time
Updated 2 days ago · None stated GitHub repository of ZeroDTE Wave v2
1 stars

Market Lab is a static market workbench for inspecting OHLCV paths, cost anchors, volatility bands, formula research outputs, and candidate order plans in one compact interface. It features three-panel layout with instrument navigation, main chart, and facts a

Indicator v6 Support & resistanceVolatility & bands
Updated 2 days ago · AGPL-3.0 GitHub repository of DEPRECATED - use canonical Market Lab

Sessions

by teshmi9z-beep
1 stars

An overlay that shades trading session ranges on the chart, with three sessions preset to New York, London and Tokyo. Each session has its own name, time window, colour and on or off toggle. While a session is active, a box tracks its running high and low, and

Indicator v5 Sessions & time
Updated 2 days ago · MIT GitHub repository of Sessions
1 stars

A separate-pane indicator that measures how far price sits from a weekly midline (average of a weekly EMA and SMA), scales the gap by daily and weekly ATR ratios, and converts it into a heat value from 0 to 100. Columns are coloured by heat level and faded whe

Indicator v6 Volatility & bandsSupport & resistance
Updated 3 days ago · None stated GitHub repository of Structural Heat Map (V3)

Ghost Alpha

by mphinance
1 stars

A price-chart overlay that blends a Hull moving average band, an optional higher timeframe Hull, a TRAMA line, Keltner bands, 50 and 200 SMAs and an intraday VWAP. It also covers swing structure detection with levels and supply and demand zones, a two-line Wil

Indicator v6 TrendMoving averages
Updated 3 days ago · Custom licence GitHub repository of Ghost Alpha

PE Ratio and TTM EPS

by ankurksoni
1 stars

A separate-pane indicator, short title PE/EPS, that styles a price to earnings view after a screener chart. It plots the trailing price to earnings ratio as a line and trailing twelve-month earnings per share, diluted or basic, as quarter-wide blocks, with a d

Indicator v6
Updated 3 days ago · None stated GitHub repository of PE Ratio and TTM EPS
1 stars

Prints manual long and short signal labels on the price chart using an adaptive method trained on recent settled trade paths. It works on standard time-based charts, scaling stop limits with the chart's bar length, and uses the previous closed candles. Options

Indicator v6 AI / machine learning
Updated 4 days ago · None stated GitHub repository of TopBot Adaptive (Three-Candle)
1 stars

This indicator plots fast and slow EMAs on the price chart with a fill between them to show trend direction. It ranks ATR volatility over the past 200 bars to define three regimes: quiet (trade only), wild (high volatility), and neutral. The background shades

Indicator v6 TrendVolatility & bands
Updated 4 days ago · MPL-2.0 GitHub repository of Complete System: Regime + Edge + Risk

Blue Alerts

by jometa9
1 stars

An alert helper that watches up to six major forex pairs: AUDUSD, EURUSD, GBPUSD, USDCAD, USDCHF and USDJPY. Each row has an on switch, a pair name and upper and lower price inputs, and the script sends an alert message when its condition is met. As written, b

Indicator v5 Screeners & dashboards
Updated 5 days ago · None stated GitHub repository of Blue Alerts

J14-E1 Adv

by moonyroy
1 stars

The j14-E1 adv indicator plots a dynamic ZigZag on the price chart by detecting swing highs and lows. It draws orange and aqua trend lines marking pivot points, with boxes showing candle shadows and bodies. The script identifies potential trend shifts via CHoC

Indicator v6 TrendSupport & resistance Repaints
Updated 6 days ago · None stated GitHub repository of J14-E1 Adv

Webhook Test

by Jakub-Pinkowski
1 stars

Webhook Test is a minimal utility indicator designed to test automated webhook integration. It overlays the main price chart and triggers an alert condition on every bar close. The triggered alert outputs a formatted JSON payload containing the current ticker

Indicator v6
Updated 7 days ago · None stated GitHub repository of Webhook Test

I Volume

by GammaExpansion
1 stars

This indicator plots multiple volume-related metrics on a separate pane below the price chart. It calculates and displays various VWAP versions including standard, close-based, HLC3 with session filters, and anchored sessions, along with OBV, accumulation dist

Indicator v6 Volume
Updated 7 days ago · MIT GitHub repository of I Volume

EMA-Volume

by engtuncay
1 stars

EMA-Volume plots two exponential moving averages on the price chart and tints the background when the faster average crosses above or below the slower one. It also builds simple moving averages of raw and scaled dollar volume, then compares a 30-bar volume ave

Indicator v6 Moving averagesVolume
Updated 7 days ago · None stated GitHub repository of EMA-Volume

Division Candle Overlay

by ElroyvOuwerkerk
1 stars

A bar-colouring indicator that splits each candle's high-to-low range into a chosen number of divisions, from 2 to 10. A bar is coloured green when its close is in the top division and red when it is in the bottom division; bars matching neither, or both, stay

Indicator v6 Candlestick patternsOscillators & momentum
Updated 8 days ago · None stated GitHub repository of Division Candle Overlay
1 stars

A price-chart indicator that shows two tables. A focus panel runs a trend-flip and oscillator engine on one chosen futures contract across five timeframes and reports an alignment score. A board runs the same engine across a list of futures markets on one scan

Indicator v6 Screeners & dashboardsTrend
Updated 8 days ago · Custom licence GitHub repository of Phantom Flow Futures Screener

DEPV2 A2 TREND

by YuceSezar89
1 stars

The indicator computes the normalized deviation of close price from HLC3 SMA using ATR for trend measurement. It plots deviation Z-score, trend state (1 bullish, -1 bearish, 0 neutral via state machine), and strength level (0-2) in a separate pane. Settings ad

Indicator v6 TrendMoving averages
Updated 13 days ago · None stated GitHub repository of DEPV2 A2 TREND

MACD Signal Turn

by quantxaashish
1 stars

MACD Signal Turn calculates standard Moving Average Convergence Divergence (MACD) and signal lines using exponential moving averages. It identifies bullish crossovers that occur while the MACD line is below zero and bearish crossunders that take place while th

Indicator v5 Oscillators & momentumMoving averages
Updated 2 weeks ago · MIT GitHub repository of MACD Signal Turn
1 stars

This indicator calculates the total transaction cost hurdle comprising commission, slippage, and spread as a percentage, price value, and fraction of ATR. It samples historical price moves across four user-defined holding periods over a configurable lookback w

Indicator v6 Screeners & dashboardsVolatility & bands
Updated 2 weeks ago · MPL-2.0 GitHub repository of Taught to Trade - Cost Hurdle

Just C3

by Just-beyond-z
1 stars

An overlay that shows 4-hour, 7-hour and daily candles beside the current bars and follows a three-candle framework, marking where the second candle closes and raising an alert for the third. It can draw session dividers with short or long labels, a table of h

Indicator v6 SMC / ICT / price actionSessions & time
Updated 2 weeks ago · None stated GitHub repository of Just C3

DAY-5MIN-L&H v2

by 7b809
1 stars

An overlay indicator that must run on the one-minute chart and raises an error otherwise. It captures the high and low of an opening range at a set market open time, then draws lines at the high, low and average, plus entry levels placed beyond the range by th

Indicator v5 Sessions & timeSupport & resistance
Updated 2 weeks ago · None stated GitHub repository of DAY-5MIN-L&H v2
1 stars

Plots long and short signals on the price chart from a smoothed Hull moving average of price change, firing when momentum crosses its value two bars earlier. Each signal projects five target levels spaced by an average candle range, and a simulated position us

Indicator v6 Oscillators & momentumTrend Repaints
Updated 2 weeks ago · None stated GitHub repository of Momentum Shift Positions

Moon Phases

by AkashSasikumar47
1 stars

A Pine v6 indicator that calculates lunar phases from the date and shows them on the price chart. It marks new and full moons and tints the waxing and waning halves of each cycle in two colors that can be changed. It is a calendar tool for people who study cyc

Indicator v6 Sessions & time
Updated 2 weeks ago · MIT GitHub repository of Moon Phases

On-Balance Volume

by AkashSasikumar47
1 stars

A Pine v6 indicator in a separate pane that plots On-Balance Volume, a running total that adds a bar's volume when the close rises and subtracts it when the close falls. A smoothing line can be built from SMA, EMA, SMMA, WMA or VWMA with an adjustable length,

Indicator v6 Volume
Updated 2 weeks ago · MIT GitHub repository of On-Balance Volume

A gold-oriented overlay that combines 21, 50 and 200 EMAs, an RSI filter, MACD confirmation and stochastic RSI to draw buy and sell arrows on the price chart. Stop loss and two take-profit lines are placed from ATR multiples, and daily pivot levels can be show

Indicator v5 TrendOscillators & momentum
Updated 3 weeks ago · None stated GitHub repository of neXQan XAUUSD Gold Indicator Lines

Opening Range Breakout

by JACKZHOU0521
1 stars

The Opening Range Breakout indicator identifies high, low, and midpoint levels established during a customizable initial window of the trading day. Once the opening window ends, the range boundaries are frozen and drawn directly on the main price chart. The sc

Indicator v6 BreakoutSupport & resistance
Updated 5 weeks ago · None stated GitHub repository of Opening Range Breakout

MTF Confluence Engine

by mrme000m
1 stars

MTF Confluence Engine is a separate-pane indicator that evaluates trend, momentum, and volatility metrics across the current chart timeframe and two configurable higher timeframes. It combines EMA alignment, SuperTrend direction, RSI values, Bollinger and Kelt

Indicator v5 TrendOscillators & momentum Repaints
Updated 7 weeks ago · None stated GitHub repository of MTF Confluence Engine

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