Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 26)

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

This indicator calculates Williams' Variable Accumulation/Distribution (WVAD) pressure alongside a signal line in a separate pane. It incorporates optional filters such as higher-timeframe confirmation, an ADX strength filter, and various adaptive smoothing ch

Indicator v6 VolumeOscillators & momentum
Updated 5 weeks ago · MIT GitHub repository of Williams Variable A/D Pressure

AI Bot - SMC Advanced

by thanhcong1211
3 stars

This overlay indicator marks smart-money structure on the price chart. It stores recent confirmed swing highs and lows and labels the structure bullish, bearish, or ranging from higher highs and lows or lower highs and lows. It marks a bullish or bearish order

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of AI Bot - SMC Advanced

Mc War Ten + EMA

by tuanmcwar
3 stars

This indicator plots three exponential moving averages directly on the price chart using default lengths of 34, 89, and 200. Alongside the moving averages, it renders on-chart watermark tables displaying a custom title, subtitle, ticker symbol, timeframe, and

Indicator v5 Moving averagesTrend
Updated 4 months ago · None stated GitHub repository of Mc War Ten + EMA

MTF Confluence Dashboard

by WiseManAlgo
3 stars

This indicator calculates a multi-timeframe trend and momentum score across five customizable timeframes for up to three symbols using an EMA and RSI dual-vote system. It displays an on-chart dashboard table summarizing individual timeframe states, weighted ag

Indicator v5 Screeners & dashboardsTrend
Updated 4 months ago · None stated GitHub repository of MTF Confluence Dashboard

AI Debugging Demo

by monch1962
3 stars

This indicator is a teaching example of common Pine Script mistakes and corrected patterns. It calculates a rate of change with a zero-price guard, a simple moving average with an early-bar index check, and sample array operations. Inputs set the calculation l

Indicator v5
Updated 7 months ago · None stated GitHub repository of AI Debugging Demo

JINADA Up

by cathxrsys
3 stars

JINADA Up is an all-in-one chart overlay indicator that combines support and resistance zones, multiple moving averages, candlestick body and wick ratio analysis, and dynamic stop levels. It identifies support and resistance levels across user-defined lookback

Indicator v6 TrendMoving averages
Updated 9 months ago · GPL-3.0 GitHub repository of JINADA Up

Macro Market Cycle Model

by LucasRibeiroCaetano
3 stars

The indicator estimates US and EU macro cycle conditions in a separate pane. It loads inflation, policy rates, yield spreads, credit spreads, and unemployment, then builds a neutral rate from user real r-star plus inflation expectations. A fixed logistic formu

Indicator v6
Updated 11 months ago · Custom licence GitHub repository of Macro Market Cycle Model

Coco

by IAMATOMIC001
3 stars

Coco plots several selectable moving averages in a separate pane and can show the percentage dispersion between them. Fast and slow averages default to a 3-period SMA and a 21-period WMA, with optional third and fourth averages. Supported types include SMA, WM

Indicator v6 Moving averagesVolume
Updated 12 months ago · None stated GitHub repository of Coco

Hedge Short Setup Finder

by shitcoding
3 stars

Hedge Short Setup Finder identifies potential short entry opportunities by combining multiple technical confluence conditions. It scans for momentum exhaustion using price surge percentage over a lookback period, overbought RSI with rollover confirmation, Boll

Indicator v6 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Hedge Short Setup Finder

Elliott Wave Crypto Analysis

by EngineeredSuccess
3 stars

The indicator draws Elliott Wave analysis on the price chart for cryptocurrency. It locates pivot highs and lows using a user-set length, counts waves one through five automatically, and allows a manual wave override. Optional Fibonacci retracement and extensi

Indicator v6 Support & resistanceTrend
Updated 1 year ago · Custom licence GitHub repository of Elliott Wave Crypto Analysis

BTMM Asian Range

by jcortes254
3 stars

This indicator tracks and visualizes session ranges based on the Beat The Market Maker (BTMM) trading methodology directly on the price chart. It defines and draws session boxes for Asian accumulation, London manipulation, and New York distribution phases. It

Indicator v5 Sessions & timeSupport & resistance
Updated 1 year ago · None stated GitHub repository of BTMM Asian Range

FVG and MSB

by HelloMoto069
3 stars

This indicator identifies and plots Fair Value Gaps (FVG) and Market Structure Breaks (MSB) directly on the price chart. Fair Value Gaps are drawn using colored boxes that can be extended across bars and filtered with an automatic volatility threshold or set t

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of FVG and MSB

Cipher B

by diehardyearone
3 stars

Cipher B is a multi-indicator plotting WaveTrend oscillator lines and signals alongside Stochastic RSI, MFI area with color bars, and buy sell marks. It draws all elements in a separate pane. WaveTrend calculates using SMMA and EMA on source like ohlc4 with ad

Indicator v6 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of Cipher B
3 stars

This indicator estimates how many bars typically pass before a custom skew measure falls back below its exponential moving average. It builds the skew from smoothed upside and downside true-range deviations, then applies five fixed EMA lengths from 2 to 110. O

Indicator v5 Mean reversionMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Average Bars Before Reversion
3 stars

Calculates an Investor's Business Daily (IBD) style Relative Strength (RS) rating and plots an RS line directly on the price chart. It evaluates price performance against a comparative benchmark index (defaulting to NSE:NIFTY). Optional visual markers highligh

Indicator v5 Oscillators & momentumBreakout
Updated 2 years ago · None stated GitHub repository of RS Rating for Indian Market

This indicator calculates the Relative Strength Index and Money Flow Index to identify potential market reversals. It plots the RSI oscillator in orange and the MFI line in blue on a separate pane. Horizontal lines mark overbought at 70 and oversold at 30 for

Indicator v5 Oscillators & momentum
Updated 2 years ago · MIT GitHub repository of Relative Strength Index And Money Flow Index

Bitcoin Difficulty (QUANDL:BCHAIN/DIFF)

by datacrypto-analytics
3 stars

This indicator plots Bitcoin mining difficulty from the Quandl BCHAIN/DIFF dataset. The script calculates the difficulty metric using the quandl function and displays it as a line plot in a separate pane. It provides historical data on mining difficulty levels

Indicator v4 Volatility & bandsSupport & resistance
Updated 3 years ago · Apache-2.0 GitHub repository of Bitcoin Difficulty (QUANDL:BCHAIN/DIFF)

Crypto Market Correlation

by vishnugovind10
3 stars

Crypto Market Correlation plots rolling correlations between the chart's closing price and copper, the S&P 500, the DAX 30, EUR/JPY, WTI crude, and gold. It draws six colored lines in a separate pane and places a short name label at the latest value of each se

Indicator v4 Screeners & dashboards
Updated 3 years ago · None stated GitHub repository of Crypto Market Correlation

Stochastic RSI Screener

by Abbas-Borji
3 stars

The Stochastic RSI Screener calculates the Relative Strength Index and Stochastic RSI values (K and D lines) for up to five user-defined symbols. It retrieves the current price, RSI, K-value, and D-value for each selected asset using security calls and display

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated 3 years ago · None stated GitHub repository of Stochastic RSI Screener
3 stars

This indicator plots horizontal liquidity lines on the price chart at swing pivot highs and lows. It detects pivots by checking local maxima and minima in the high and low arrays. Lines are drawn at the pivot levels with customizable colors, styles, and a maxi

Indicator v5 Support & resistance
Updated 4 years ago · None stated GitHub repository of Liquidity by makuchaku & eFe

Currency Strength Chart

by itmakesyousick
3 stars

Calculates and plots relative strength metrics for major currencies in a separate pane. It evaluates cross-pair price action or technical indicators like RSI, CCI, and Stochastics across data feeds from chosen forex brokers. Inputs allow users to select displa

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated 4 years ago · None stated GitHub repository of Currency Strength Chart

BBI HPI RSI

by blackcat1402
3 stars

This indicator combines Bollinger Band Indicator, High Price Indicator and Relative Strength Index on the price chart. It calculates BBI using length, standard deviation and pivot settings, detects HPI based on recent bars when current bar is red, and includes

Indicator v4 Oscillators & momentumMoving averages
Updated 5 years ago · MIT GitHub repository of BBI HPI RSI
2 stars

This indicator plots the relative strength index in a separate pane. It calculates RSI from the selected source and length with Wilder-style RMA smoothing, then draws the line against horizontal bands at 70, 50 and 30, with gradient fills in the overbought and

Indicator v6 Oscillators & momentumMoving averages
Updated 2 days ago · None stated GitHub repository of Relative strength index

Trade History Labels

by kaiku0125
2 stars

Plots historical trade records as visual buy and sell labels directly on the price chart. It matches recorded trade dates and symbols against the active instrument, calculating cumulative volume-weighted average buy and sell prices with horizontal reference li

Indicator v6 Support & resistance
Updated 4 days ago · None stated GitHub repository of Trade History Labels

2x MA Moving Average

by piecioshka
2 stars

This indicator plots two customizable moving averages directly on the price chart. Users can select independent lengths, colors, and calculation types, including SMA, EMA, WMA, VWMA, and RMA. When the faster moving average crosses the slower moving average, th

Indicator v6 Moving averagesTrend
Updated 12 days ago · MIT GitHub repository of 2x MA Moving Average

52-Week High

by vtnhqw
2 stars

The 52-Week High indicator plots the highest price over an adaptive lookback period of up to 252 trading bars on the price chart. It calculates the 52-week high using the highest high value and displays it as a line with optional label showing distance from th

Indicator v6 Support & resistanceTrend Repaints
Updated 12 days ago · None stated GitHub repository of 52-Week High

This multi-timeframe indicator combines higher-timeframe trend analysis, MACD divergence detection, and short-term oscillator timing to identify trading opportunities on GBPJPY. It evaluates trend direction using a 4-hour EMA, locates MACD divergences with Zig

Indicator v6 DivergenceOscillators & momentum

Trading - Automation

by vishnu-vardhan-d
2 stars

This indicator implements a trailing stop and breakout logic based on average true range calculations, similar to established UT Bot methods converted to Pine Script version six. It plots directional buy and sell labels directly on the price chart alongside a

Indicator v6 TrendVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Trading - Automation

EMA / SMA MP

by midngtpickle
2 stars

This indicator plots six exponential moving averages, three simple moving averages, and a session volume-weighted average price directly on the price chart. It signals through chart labels triggered by moving average crossovers, including fast and slow exponen

Indicator v6 Moving averagesTrend
Updated 4 weeks ago · Custom licence GitHub repository of EMA / SMA MP

Equity Trading Strategy

by AmjadSaidam
2 stars

This indicator draws a daily-anchored volume-weighted average price on the price chart and marks the first long or short reclaim of that level. A long needs a bar below the average whose high reaches it, a later close above it, and confirmation after at least

Indicator v6 VolumeSupport & resistance Repaints
Updated 5 weeks ago · MIT GitHub repository of Equity Trading Strategy
2 stars

Swing Trade Analyzer - S&R Levels identifies key support and resistance levels directly on the price chart using pivot high and low points. It filters duplicate price levels and offers optional multi-timeframe confluence analysis against higher timeframes like

Indicator v6 Support & resistanceTrend
Updated 5 weeks ago · None stated GitHub repository of Swing Trade Analyzer - S&R Levels

Algo

by TamTH-Dev
2 stars

Algo is an indicator that identifies and plots dynamic support and resistance zones directly on the price chart using pivot highs and lows. It calculates zone thickness using an Average True Range (ATR) multiplier and supports pivot detection from standard pri

Indicator v6 Support & resistanceVolatility & bands
Updated 6 weeks ago · None stated GitHub repository of Algo

This indicator plots gamma exposure levels, multi-timeframe breakout structure, and trading session ranges directly on the price chart. It parses input strings containing option metrics to display key levels such as Zero Gamma, Max Pain, Expected Move boundari

Indicator v6 Support & resistanceBreakout
Updated 6 weeks ago · MIT GitHub repository of GEX Levels + Breakout Structure + Session AVWAP — NQ/NDX/QQQ

Apex Swing System V2.5

by omharde42
2 stars

This indicator combines a 200-period simple moving average, relative strength index, and Ichimoku cloud components to evaluate market conditions and generate bullish and bearish signals. It plots fixed trade levels including entry, stop loss, and multiple targ

Indicator v6 TrendOscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of Apex Swing System V2.5
2 stars

GEO P Momentum Buy/Sell Signals is an indicator that identifies trade setups by combining Bollinger Band challenge logic with trendline or range breakouts. It evaluates price structure using multi-timeframe Tide and Wave hierarchy alongside RSI, DMI, ADX, EMA

Indicator v6 TrendOscillators & momentum
Updated 8 weeks ago · None stated GitHub repository of GEO P Momentum Buy/Sell Signals
2 stars

Anchored Volume Profile indicator builds a volume-by-price histogram over a lookback window by proportionally distributing each bar's volume across its high-low range. It plots horizontal boxes for volume, highlights the POC, and draws Value Area (VAH/VAL) rai

Indicator v6 VolumeSupport & resistance
Updated 2 months ago · Custom licence GitHub repository of Anchored Volume Profile [Vantrade]

API Integration Examples

by danielbodnar
2 stars

This indicator demonstrates Pine Script data requests and draws them on the price chart. It plots a four-hour simple moving average plus the daily high and low as step lines, and it plots twenty-bar relative performance versus SPY. It also requests QQQ, VIX, v

Indicator v6 Moving averagesSupport & resistance Repaints
Updated 2 months ago · MIT GitHub repository of API Integration Examples
2 stars

This indicator draws higher time frame sweeps on the price chart. It displays sweeps from multiple timeframes such as 15, 60, 240 minutes, 1 day, 1 week and 1 month. Users can enable or disable each timeframe, specify the number of sweeps to show, and map them

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of CandelaCharts - HTF Sweeps

Chart Watermark

by major
2 stars

This overlay indicator draws a watermark at the top of the price chart showing the ticker and timeframe, plus an optional instrument description, sector, or industry. Display mode chooses description only, sector and industry, or both. Separate colors set the

Indicator v6
Updated 3 months ago · Apache-2.0 GitHub repository of Chart Watermark
2 stars

This indicator detects market structure points, Break of Structure (BOS), and Change of Character (CHOCH) for Smart Money Concepts (SMC) analysis. It calculates swing highs and lows based on a user-defined swing length, classifying them as higher highs, higher

Indicator v6 SMC / ICT / price actionSupport & resistance

Kell + Minervini VCP

by mirkothepirko
2 stars

This price-chart indicator combines Oliver Kell moving-average phases with Minervini volatility contraction. It plots EMA 10, 20, 50 and 200 and can require the SMA 50, 150 and 200 trend template. It flags a wedge pop above EMA 10 after an EMA 20 cross, pullba

Indicator v6 TrendMoving averages
Updated 3 months ago · Custom licence GitHub repository of Kell + Minervini VCP

Visualizes Wyckoff accumulation and distribution phases directly on the price chart. It uses an RSI-based sensitivity threshold to determine trend conditions and horizontal ranges, framing consolidation zones with colored boxes. The script also identifies stru

Indicator v5 SMC / ICT / price actionOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Wyckoff Accumulation Distribution
2 stars

MTF Divergence Scanner detects regular and hidden divergences in RSI or MACD oscillators across multiple timeframes. It scans up to three timeframes simultaneously using request.security with confirmed-bar logic to identify reversal or continuation signals. Th

Indicator v6 Oscillators & momentumDivergence Repaints
Updated 3 months ago · MPL-2.0 GitHub repository of MTF Divergence Scanner

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