Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 61)

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

2 stars

The indicator calculates a weighted composite relative strength score across short, mid, and long-term Rate of Change (ROC) horizons alongside RSI for up to eight customizable symbols. Users can measure raw momentum or compare performance relative to a selecte

Indicator v6 Oscillators & momentumScreeners & dashboards
Updated 2 months ago · Custom licence GitHub repository of Relative Strength Heatmap Vantrade
2 stars

The Liquidity Sweep Hunter indicator identifies liquidity sweeps on swing highs and lows. It detects wick breaks or retests that sweep through swing levels using ATR-based wick filtering. Bullish and bearish sweeps are labeled and colored on the chart. Active

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Liquidity Hunter | AlphaScript
2 stars

IPO Day Anchored VWAP calculates a Volume Weighted Average Price anchored to the first available bar on a chart, representing an asset's initial public offering or historical debut. It plots the anchored VWAP line on the main price chart alongside an anchor la

Indicator v6 Moving averagesSupport & resistance
Updated 3 months ago · Apache-2.0 GitHub repository of IPO Day Anchored VWAP

Volatility Stop

by avatar-lavventura
2 stars

The Volatility Stop indicator calculates a dynamic trailing stop line based on the Average True Range. It tracks ongoing price extremes and adjusts the stop level using a specified ATR multiplier and lookback length. The script evaluates trend direction change

Indicator v5 Volatility & bandsTrend
Updated 8 months ago · None stated GitHub repository of Volatility Stop

This indicator calculates Murrey Math lines to establish upper and lower boundary levels for grid trading setups. Rendered in a separate chart pane along with custom candle displays, it generates range boundaries tailored for automated grid strategies. Traders

Indicator v6 Support & resistance Repaints
Updated 8 months ago · MIT GitHub repository of Grid Bot Murrey Lines Grid Range Plugin

Correlation Heatmap

by regalouisei
2 stars

This indicator calculates arithmetic returns across a user-defined list of tickers and visualizes their statistical correlation as a heatmap table in a separate pane. It samples returns at weekly or monthly timeframes aligned with the chart data. Users can con

Indicator v6 Screeners & dashboards
Updated 8 months ago · None stated GitHub repository of Correlation Heatmap

Advanced Reverse Stochastic %J

by mushroom-men-Trading
2 stars

This indicator calculates the Stochastic %J oscillator alongside reverse-engineered price targets in a separate pane. It plots the current %J line against custom target, overbought, and oversold reference thresholds. Using an iterative algorithm, it calculates

Indicator v6 Oscillators & momentumScreeners & dashboards
Updated 9 months ago · None stated GitHub repository of Advanced Reverse Stochastic %J

My Indicator

by etnt
2 stars

My Indicator overlays timeframe-adaptive moving averages, candlestick pattern detections, and an information table directly on the price chart. Depending on the active chart timeframe, it plots key moving averages including daily SMAs and EMAs, intraday VWMA a

Indicator v6 Moving averagesCandlestick patterns
Updated 1 year ago · MPL-2.0 GitHub repository of My Indicator

Market Width

by iceberg211
2 stars

This indicator plots the percentage of stocks in a selected index trading above their 20, 50, 100, 200, and selected other day moving averages. It automatically detects the main chart symbol and switches to the corresponding index ticker such as S&P or NDX, or

Indicator v4 Moving averagesSupport & resistance
Updated 1 year ago · None stated GitHub repository of Market Width

Session Color

by ashwagamma
2 stars

This indicator paints the price-chart background for three clock windows using a timezone chosen as GMT+1 or GMT+2 from the hour gap between Los Angeles and GMT. Bars from 00:00 to 15:30 use the pre-market color, 15:30 to 22:00 stay transparent, and 22:00 to 2

Indicator v5 Sessions & time
Updated 1 year ago · None stated GitHub repository of Session Color

RSI with Signals

by etabebe1
2 stars

This indicator calculates the Relative Strength Index (RSI) over a user-defined lookback period and plots it in a separate pane. It marks horizontal lines for overbought and oversold thresholds. A bullish buy signal is triggered when the RSI crosses above the

Indicator v5 Oscillators & momentum
Updated 1 year ago · None stated GitHub repository of RSI with Signals

MA Based Trend

by ryangaraygay
2 stars

The script calculates three moving averages with configurable types, lengths, and price sources. It evaluates trend alignment by comparing the relative order of fast, medium, and slow averages across four market states. In a separate pane, it plots color-coded

Indicator v5 TrendMoving averages
Updated 1 year ago · MIT GitHub repository of MA Based Trend

Custom Functions

by Web3Degenerate
2 stars

This educational script demonstrates how to define and execute custom user-defined functions in Pine Script v5. It illustrates three distinct function structures: single-line functions, multi-line functions incorporating global variables, and multi-result func

Indicator v5
Updated 2 years ago · None stated GitHub repository of Custom Functions
2 stars

This indicator plots several moving averages on the price chart to help identify trends and support or resistance. It displays an exponential moving average with a period of 21 and simple moving averages with periods of 30, 40, and 50. The lines are colored gr

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

HTF Candles & Pivots

by itmakesyousick
2 stars

This indicator draws higher-timeframe candles on the price chart and overlays pivot levels. Users choose the timeframe, candle thickness, wick display, fill for negative candles, and whether history is shifted forward. Labels can show the timeframe, an average

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

Zigzag Lines

by WISEPLAT
2 stars

This indicator plots ZigZag lines over the price chart to help identify swing highs and lows based on localized extreme points. Users can select between bar closing prices or high/low extremes as the calculation source and adjust the detection period. Settings

Indicator v5 Support & resistance Repaints
Updated 3 years ago · None stated GitHub repository of Zigzag Lines

Custom Ichimoku Alerts [UT]

by theupslidedown
2 stars

This custom Ichimoku indicator plots Tenkan-Sen, Kijun-Sen, Chikou-Span, Senkou-Span A, Senkou-Span B and the cloud fill on the price chart. It generates bullish signals when Tenkan crosses Kijun upward, Chikou is positive, price is above the cloud, and option

Indicator v5 TrendMoving averages
Updated 3 years ago · None stated GitHub repository of Custom Ichimoku Alerts [UT]
2 stars

This script demonstrates array manipulation in Pine Script v4 to create a 2D matrix structure for testing a neural network. It implements a basic neural network to solve the XOR logic problem. The indicator runs a configurable number of training loops using a

Indicator v4 AI / machine learning
Updated 5 years ago · MIT GitHub repository of XOR test Neural Network - JD
1 stars

This indicator calculates standard pivot points based on selected type such as Traditional or Fibonacci and anchor timeframe. It plots horizontal lines on the price chart for key levels including P, S1, R1, S2, R2 and higher. Main settings allow choosing pivot

Indicator v6 Support & resistance Repaints
Updated 3 days ago · Custom licence GitHub repository of Pivot Points Standard
1 stars

GitHub CSV Seed (Daily) imports external seed data from a designated public GitHub repository using the request.seed function. It calculates and plots the imported close price alongside a Simple Moving Average (SMA) derived from the seeded dataset directly on

Indicator v6 Moving averages
Updated 3 days ago · None stated GitHub repository of GitHub CSV Seed (Daily)

OI Bot Trades

by rellis3
1 stars

Draws trade zones from a text block pasted into a settings box, one box per zone, to the right of the last bar. Each zone shows an entry line coloured for buy or sell, a stop box, a take-profit box and a dashed second target, and zones can come from an options

Indicator v6 Support & resistance
Updated 3 days ago · None stated GitHub repository of OI Bot Trades

XAUUSD Hour Range Reference

by teshmi9z-beep
1 stars

An intraday indicator designed for gold that takes the high and low of one chosen hourly candle, set by an hour input, and extends them across the rest of the day as reference lines. A background tint and triangle markers show when price closes above the high

Indicator v5 Sessions & timeSupport & resistance
Updated 3 days ago · MIT GitHub repository of XAUUSD Hour Range Reference

TD Pro levels - QCOM

by mphinance
1 stars

A static snapshot overlay for one stock that draws fixed horizontal lines and last-bar labels at price levels typed into the code. The lines include several scored magnet levels, a gamma flip level, an entry zone, a stop level, two target levels and expected m

Indicator v6 Support & resistance
Updated 4 days ago · Custom licence GitHub repository of TD Pro levels - QCOM

EMA Trend Signals

by jayadevrana
1 stars

This indicator calculates fast (9-period), slow (21-period), and trend (200-period) Exponential Moving Averages (EMAs) directly on the price chart. It plots all three EMAs along with a color-coded fill between the fast and slow moving averages. BUY signals tri

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

SMC Confluence Hub

by skipp-dev
1 stars

SMC Confluence Hub aggregates Smart Money Concept zone states linked from external scripts with internal technical analysis. It combines EMA trend, RSI, MACD momentum, and Bollinger Bands mean-reversion metrics to generate a unified confluence score specifical

Indicator v6 SMC / ICT / price actionOscillators & momentum
Updated 5 days ago · None stated GitHub repository of SMC Confluence Hub

I_osc

by GammaExpansion
1 stars

Calculates and plots multiple standard technical momentum oscillators in a separate pane. The script computes built-in indicator calculations including Relative Strength Index (RSI), MACD, Stochastic Oscillator, Commodity Channel Index (CCI), Money Flow Index

Indicator v6 Oscillators & momentum
Updated 8 days ago · MIT GitHub repository of I_osc
1 stars

This indicator calculates dual Exponential Moving Averages alongside their slopes, normalized distance, and momentum to detect trend shifts on the price chart. It plots standard EMA crossovers while also assessing early warning conditions when EMAs approach ea

Indicator v6 TrendMoving averages
Updated 8 days ago · None stated GitHub repository of Gelişmiş EMA Trend Analizi

My Watermark

by cckmchiu-gapps
1 stars

A small chart utility that places a text watermark in a table on the price chart. Two text fields are available, and on the last bar the table flips between them on each realtime update, unless the second text is cleared. Settings control the table position, c

Indicator v4 Repaints
Updated 9 days ago · None stated GitHub repository of My Watermark

DEPV2 A6 MTF HA GUCU

by YuceSezar89
1 stars

This indicator calculates Heikin Ashi scores for multiple multiplier timeframes relative to a signal timeframe. It computes HA power for 2x, 3x, 4x, and 6x the base timeframe (default 15 minutes) using custom HA candle logic and normalizes the close-open range

Indicator v6 TrendCandlestick patterns
Updated 2 weeks ago · None stated GitHub repository of DEPV2 A6 MTF HA GUCU

Calculates support and resistance zones from confirmed swing pivot highs and lows, drawing them directly on the price chart. It counts how often price revisits these zones after confirmation and compares the touch frequency against evenly spaced round-number l

Indicator v6 Support & resistance
Updated 2 weeks ago · MPL-2.0 GitHub repository of Taught to Trade - Support & Resistance Touch Count

Main - 1

by 7b809
1 stars

A small overlay indicator that turns two linked external plots into labelled buy and sell markers. Each of two source inputs is connected to another indicator's plot, and a non-zero value draws a green buy label or a red sell label showing price and an Indian-

Indicator v5 Screeners & dashboards
Updated 2 weeks ago · None stated GitHub repository of Main - 1
1 stars

A trend-continuation indicator that draws every historical trade on the price chart. Direction comes from a 50 and 200 EMA pair, optionally confirmed by the same EMAs on a higher timeframe. An entry appears when price closes back across the fast EMA after a pu

Indicator v6 TrendMoving averages Repaints
Updated 2 weeks ago · None stated GitHub repository of Trend Pullback Sniper

Top 10 Daily Candles

by moonyroy
1 stars

The Top 10 Daily Candles indicator calculates the relative size of each daily candle as the body range divided by the open price. It maintains a running array of the ten largest sizes and their corresponding dates. A table is overlaid on the top right of the c

Indicator v6 Screeners & dashboardsCandlestick patterns
Updated 3 weeks ago · None stated GitHub repository of Top 10 Daily Candles
1 stars

An indicator in a separate pane that simulates trades from a chosen signal source (MACD with RSI, breakout, mean reversion or an external series), each with an ATR stop, an R-multiple target and a time exit. It collects the results over a window and converts t

Indicator v5 Volatility & bands
Updated 7 weeks ago · MPL-2.0 GitHub repository of KLDS v2 Kelly Position Sizer
1 stars

Bmoon System Pivot Finder is an indicator that calculates mirrored pivot levels using P1 and P2 mirror levels with configurable multipliers and reference times. It plots lines on the price chart representing mirrored highs and lows based on open, high, low, an

Indicator v6 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Bmoon System Pivot Finder

Volume & Key Levels

by MoDarK-MK
1 stars

This overlay indicator template plots previous-day and previous-week highs and lows and marks liquidity sweeps when price pierces a level on elevated volume and closes back inside. It builds a rolling volume profile with point of control and value area, plus a

Indicator v6 VolumeSupport & resistance
Updated 8 weeks ago · MPL-2.0 GitHub repository of Volume & Key Levels

Environment Check

by Alaamo7
1 stars

This indicator serves as a basic test to verify that the TradingView Pine Script v6 runtime compiles properly. It plots the closing price directly on the main price chart as a simple line overlay. The script contains no user-configurable inputs, generates no t

Indicator v6
Updated 2 months ago · Custom licence GitHub repository of Environment Check

Kalman Trailing Stop

by vedkanani123
1 stars

A price-chart indicator that builds a Kalman-filter baseline, optionally weighted by volume, and trails a stop at a standard-deviation distance, flipping when price penetrates it and the baseline slope agrees. A wick-and-sweep filter marks liquidity-sweep sign

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Kalman Trailing Stop
1 stars

Detects volume order blocks, zones formed when a fast and slow exponential average cross and volume builds around the extreme price, and draws them on the price chart as support or resistance lines. Six sensitivity tiers each give Tier 3 buy and sell markers w

Indicator v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Asym T3 x6 MutEx Lines

TP 8 Lines

by XingHan98
1 stars

This TradingView indicator draws daily support and resistance lines for gold (XAU/USD) at 08:00 Singapore time on weekdays, based on the price action of the 5-minute candle closing at 08:00. It also plots three ATR-based take-profit levels per side, computed a

Indicator v5 Support & resistanceVolatility & bands
Updated 3 months ago · None stated GitHub repository of TP 8 Lines
1 stars

A Pine v5 indicator in a separate pane that works from Williams or Chaikin accumulation and distribution flow, a smoothing EMA, Chaikin Money Flow and ATR. It finds divergences between price and flow pivots, detects the chart timeframe automatically with a man

Indicator v5 DivergenceVolume
Updated 3 months ago · None stated GitHub repository of A/D Context v20.8 Auto TF

An institutional decision engine based on Smart Money Concepts (SMC) that plots structure and zone reactions on the price chart. It automatically detects instrument profiles for Gold, FX, Indices, and Crypto to analyze order blocks, liquidity pools, sweeps, an

Indicator v6 SMC / ICT / price actionSupport & resistance

Market Sessions

by DarthBuddha
1 stars

An indicator that tracks five regional trading sessions: Australia, Asia, India, Europe and the United States. Each session has built-in opening hours and its own colour and on or off switch. It draws session boxes with the open, high, low and close of the ses

Indicator v6 Sessions & timeScreeners & dashboards
Updated 3 months ago · MIT GitHub repository of Market Sessions

The Fractal Cone

by tthanhvu002sgu
1 stars

Projects an adaptive probability cone ahead of price on the chart. It measures kurtosis of price changes over a slow lookback to label the instrument growth-like or value-like, then chooses between fast and slow settings in parallel. A Hurst estimate from frac

Indicator v5 Volatility & bandsSupport & resistance
Updated 3 months ago · None stated GitHub repository of The Fractal Cone

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