Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 23)

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

92 stars

This overlay indicator draws horizontal lines at ten hardcoded ETH long-liquidation prices and ten short-liquidation prices from a Hyperliquid snapshot. Longs use red and amber and shorts use green and cyan, with the three nearest levels on each side drawn thi

Indicator v6 Support & resistance
Updated 2 months ago · Custom licence GitHub repository of Moon Dev Liq Lines — ETH

Hull Keltner Channel

by cryptorife
75 stars

Hull Keltner Channel calculates and plots a customized Keltner Channel overlaid directly on the price chart. It replaces the traditional moving average baseline with a Hull Moving Average variation, offering standard HMA, exponential EHMA, and triple THMA opti

Indicator v4 Moving averagesVolatility & bands
Updated 3 years ago · GPL-3.0 GitHub repository of Hull Keltner Channel
65 stars

This indicator calculates the RSI with a 20-period length and plots it on the chart. It marks upward crossovers above 50 with green arrows and downward crossovers below 50 with red arrows. A horizontal line appears at the 50 level. The script sends alerts when

Indicator v5 Oscillators & momentum
Updated 6 days ago · GPL-3.0 GitHub repository of alertcondition() on single condition

Get 20 SMA of Apple

by PythonForForex
64 stars

This indicator requests Apple's daily closing price and calculates a 20-period simple moving average of that series. It plots the moving average on the price chart as an overlay. There are no user inputs, so the symbol, daily timeframe, and length stay fixed i

Indicator v5 Moving averages
Updated 4 years ago · None stated GitHub repository of Get 20 SMA of Apple

Type Declaration Coverage

by frizLabz-FFriZz
59 stars

This script demonstrates type declarations supported in Pine Script v6. It defines imaginary library exports including user-defined types with fields of int float string bool color array matrix and map types as well as enums. The script also shows primitive va

Indicator v6 Repaints
Updated 1 year ago · MIT GitHub repository of Type Declaration Coverage
56 stars

This overlay indicator highlights candles with a body smaller than 50% of their total range by coloring them white on the price chart. Simultaneously, it calculates and plots horizontal lines for open prices across multiple higher timeframes, such as daily, we

Indicator v6 Support & resistanceCandlestick patterns Repaints
Updated 2 months ago · None stated GitHub repository of Daily Weekly Monthly Yearly Opens
55 stars

This indicator automatically identifies structural pivot highs and pivot lows using a fixed 15-bar left and right evaluation window. It stores recent pivot values and timestamps in dynamic arrays and, on the current bar, plots extended trendlines connecting th

Indicator v6 TrendSupport & resistance
Updated 6 months ago · Apache-2.0 GitHub repository of Auto Trendlines using line.*

Delta Histogram

by milocaetano
48 stars

Delta Histogram is a separate-pane indicator that plots per-bar volume delta as a histogram alongside a 20-period simple moving average. It visualizes net buying and selling pressure for each bar, helping traders track changes in order flow aggression relative

Indicator v5 VolumeOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Delta Histogram

This indicator calculates the acceleration of price action by computing the slope of the linear regression slope over a rolling window. It utilizes two sequential rolling linear regression stages implemented with circular buffers to ensure deterministic comput

Indicator v6 Oscillators & momentumTrend
Updated 8 months ago · MIT GitHub repository of Acceleration (Slope of Slope) (ACCEL)

Hash Ribbons

by oguzhandilber
47 stars

This indicator plots the Hash Ribbon metric by calculating 30-day and 60-day simple moving averages of Bitcoin network hash rate data. Designed for long-term market cycle analysis, it draws in a separate pane and displays hash ribbons alongside optional buy si

Indicator v4 Moving averagesTrend Repaints
Updated 5 years ago · None stated GitHub repository of Hash Ribbons

AM TBR — NQ Stats

by TamaraKGreen
46 stars

The AM TBR indicator calculates statistical levels for NQ futures using standard deviation. It plots a sigma ladder showing touch levels at 0.5 to 2.0 standard deviations, marks touch points, displays Mean Absolute Error (MAE) zones after touches, and shows Me

Indicator v6 Volatility & bandsSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of AM TBR — NQ Stats

Trap Shorts - Hamza Naveed

by ProfHamzaNaveed
43 stars

This indicator tracks and visualizes cryptocurrency net positioning across multiple derivative exchanges, including Binance, BitMEX, and Kraken. It calculates aggregated net longs, net shorts, net delta, and ratio metrics, or an optional Position RSI, renderin

Indicator v5 VolumeOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Trap Shorts - Hamza Naveed
43 stars

This overlay indicator monitors moving-average relationships for up to ten symbols. For each market it requests the close and three exponential moving averages from a user-chosen timeframe, defaulting to twelve hours, and builds a status for the faster-versus-

Indicator v6 Moving averagesScreeners & dashboards
Updated 1 year ago · None stated GitHub repository of Multi-Market MA Cross Monitor

RSTRsi

by readysetcryptocodes
43 stars

This indicator calculates and plots two Relative Strength Index (RSI) lines in an oscillator pane alongside standard reference bands at 30, 50, and 70. By default, it plots a short-period RSI and a secondary RSI. On the 3-minute and 15-minute chart intervals,

Indicator v4 Oscillators & momentum Repaints
Updated 2 years ago · None stated GitHub repository of RSTRsi

Gann Square of Nine: Planetary Degrees

by blueprintresearch-dev
42 stars

This indicator maps planetary positions onto W.D. Gann's Square of Nine grid using astronomical ephemeris algorithms. It tracks pivot highs and lows with corresponding planetary longitude degrees, projects future target degrees ahead on the chart, and supports

Indicator v6 Support & resistanceScreeners & dashboards
Updated 2 weeks ago · None stated GitHub repository of Gann Square of Nine: Planetary Degrees

Candle Stage Analysis

by ChartsLector
41 stars

This indicator classifies market trends into structured stages based on moving average alignments, compression, and ATR distance from the 50-period SMA. It tracks multiple exponential moving averages against the 50 SMA to detect basing phases, breakouts, trend

Indicator v6 TrendMoving averages
Updated 4 days ago · None stated GitHub repository of Candle Stage Analysis

Macro Alert System

by Thanhtran-165
38 stars

The Macro Alert System is a quantitative macroeconomic monitoring indicator designed to evaluate risk regimes, interest rates, spreads, and multi-horizon market stability. It computes composite macro risk scores using empirical percentile distributions, Welch-

Indicator v6 Screeners & dashboards
Updated 5 weeks ago · None stated GitHub repository of Macro Alert System

Abandoned Baby - Bearish

by TWODS-CAPITAL
37 stars

This indicator detects a bearish Abandoned Baby candlestick pattern on the price chart. It looks for an uptrend, a white candle, a doji that gaps away from that candle, and a following black candle that gaps below the doji. The trend filter can use a 50-period

Indicator v5 Candlestick patterns
Updated 3 years ago · MIT GitHub repository of Abandoned Baby - Bearish

ADX_40

by Li-Hongmin
36 stars

This indicator plots the Average Directional Index (ADX) alongside a static threshold line in a separate pane. It calculates directional movement using the true range and directional indicators smoothed with running moving averages. Users can adjust the smooth

Indicator v4 Trend
Updated 1 year ago · None stated GitHub repository of ADX_40

Pine Script v6 Test Features

by tradesdontlie
33 stars

This indicator demonstrates several Pine Script v6 language features on the price chart. It requests the daily close for a fixed list of stock symbols and writes those prices to the log. On the last bar it draws labels using exact point sizes and bold or itali

Indicator v6
Updated 9 days ago · MIT GitHub repository of Pine Script v6 Test Features

Bitcoin Energy Value Oscillator

by thanhnguyennguyen
33 stars

This indicator estimates Bitcoin energy value from joules of mining energy input, supply growth, and a fiat factor, then plots that value as an oscillator in a separate pane. A simple moving average of the energy value is drawn using a user-set length in days.

Indicator v4 Oscillators & momentumMoving averages Repaints
Updated 1 year ago · None stated GitHub repository of Bitcoin Energy Value Oscillator

Study

by sibvic
33 stars

This overlay indicator is an unfinished alert template. Placeholder buy and sell conditions track an open long or short state and can fire entry alerts immediately or only after a bar closes. It calculates optional stop-loss and take-profit prices from a fixed

Indicator v4
Updated 4 years ago · MIT GitHub repository of Study

This indicator calculates fast and slow moving averages based on predefined Fibonacci ratio pairs, such as 89/144 or 21/34, along with a combined Golden Ratio moving average. Users can choose from multiple weighting types, including Simple, Exponential, Runnin

Indicator v4 TrendMoving averages
Updated 5 years ago · Unlicense GitHub repository of [Pirate] Deconstructed FMAs + Crosses

BBfib

by modster
32 stars

This indicator plots Bollinger Bands on the price chart using a 15-bar simple moving average of ohlc4 as the basis line. It calculates upper and lower bands at one standard deviation multiplied by 1.12, plus additional outer levels at 1.5, 1.75, and 0.5 deviat

Indicator v4 Moving averagesVolatility & bands
Updated 3 years ago · None stated GitHub repository of BBfib
30 stars

This indicator simulates a crypto hedge-scalping grid in a separate pane and tracks cumulative profit after commission. It builds a short EMA and places four long grid levels plus one deeper short hedge level as percentages below that EMA. Equity shares of a U

Indicator v5 ScalpingMoving averages
Updated 2 years ago · Custom licence GitHub repository of Hedge Scalp - Cumulative Profit

Zen ABR Ladder

by Zen-Tim
29 stars

Zen ABR Ladder plots multiple Average Bar Range (ABR) lookbacks (2, 4, 8, 16, 32) alongside an Average Daily Range (ADR) scalp threshold in a separate pane. It measures bar ranges in price points and displays layered translucent shading between the scalp line

Indicator v6 Volatility & bandsScalping
Updated 2 weeks ago · MIT GitHub repository of Zen ABR Ladder

The indicator calculates a triple-smoothed moving average and a corresponding signal line to identify trend direction and potential reversal points directly on the price chart. Users can select from EMA, SMA, RMA, or WMA for both the main triple smoothing and

Indicator v6 Moving averagesTrend
Updated 11 months ago · Custom licence GitHub repository of Triple Smoothed Signals [AlgoAlpha]
27 stars

This indicator calculates an approximate volume profile directly on the price chart for a specified block of historical bars. It divides the high-low price range of the block into discrete rows, distributes bar volume across overlapping rows, and visually plot

Indicator v4 VolumeSupport & resistance Repaints Archived
Updated 2 years ago · MPL-2.0 GitHub repository of Poor Man's Volume Profile

The Relative Volume Strength Index (MZ RVSI) is a separate-pane oscillator designed to measure volume momentum and trend strength. It allows users to choose between various volume oscillator types, including On Balance Volume, Klinger Volume Oscillator, and Vo

Indicator v4 VolumeOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Relative Volume Strength Index (MZ RVSI)

Bayesian BBSMA Oscillator

by tistaharahap
25 stars

This indicator calculates directional probabilities based on price position relative to Bollinger Bands and a simple moving average over a rolling lookback window. It computes breakup, breakdown, and combined prime probability percentages, plotting up to three

Indicator v4 Oscillators & momentumMoving averages
Updated 6 years ago · None stated GitHub repository of Bayesian BBSMA Oscillator

Float Probe

by GeneralTradingSarl
24 stars

This indicator compares floating-point arithmetic on the price chart and shows the results in a one-cell table at the top right on the last bar. It tests whether selected literal sums and price differences compare equal or greater, and on one fixed timestamp i

Indicator v5
Updated 12 days ago · Custom licence GitHub repository of Float Probe

ADX+

by benso87
24 stars

ADX+ is an enhanced Average Directional Index (ADX) indicator that measures trend strength in a separate pane. It calculates directional movement and true range to produce the standard ADX line, with optional smoothing via a moving average (EMA or SMA). The li

Indicator v5 TrendOscillators & momentum
Updated 4 years ago · MPL-2.0 GitHub repository of ADX+
23 stars

DeltaFlow Volume Profile builds a price-bin volume profile over a user-set lookback and draws it on the price chart to the right of the last bar. It splits each bin into bullish and bearish volume by comparing close with open, then scales bar length to the bin

Indicator v6 VolumeSupport & resistance Repaints
Updated 4 weeks ago · Custom licence GitHub repository of DeltaFlow Volume Profile [BigBeluga]

High Volume Bars Strategy

by AGuyNamedDJ
23 stars

This indicator detects unusual spikes in trading volume to identify potential institutional activity. It calculates a simple moving average of volume over a specified length and flags bars where volume exceeds this average multiplied by a user-defined threshol

Indicator v4 VolumeTrend
Updated 3 years ago · None stated GitHub repository of High Volume Bars Strategy

Peterbolic SAR

by pacificbay
22 stars

This indicator draws Parabolic SAR setup and trigger signals directly on the price chart. Using an external trend-following routine, it evaluates directional conditions and flags transitional market phases. Yellow triangle shapes plot above or below bars to in

Indicator v4 Trend
Updated 6 years ago · MIT GitHub repository of Peterbolic SAR

This indicator combines six trading tools into a single chart overlay to optimize indicator limits. It calculates Bollinger Bands, projects weekend price boundaries, plots market structure elements like order blocks, breaker blocks, and MSB lines, marks New Yo

Indicator v6 Support & resistanceSMC / ICT / price action Repaints

Function Calls

by ferranbt
21 stars

Calculates an accumulated benchmark metric by repeatedly executing a user-defined function within a loop on every bar. On each iteration, the script updates a persistent variable using modified closing price values, summing the output to plot in a separate pan

Indicator v6
Updated 7 weeks ago · MPL-2.0 GitHub repository of Function Calls
21 stars

This script serves as a syntax testing and grammar reference tool for Pine Script development in Visual Studio Code. It demonstrates broad language syntax including compiler annotations, user-defined types, exported enums, and variable declarations. The script

Indicator v5 Repaints
Updated 1 year ago · MIT GitHub repository of Organized Pine Script Syntax Test

zaBor RSI+AO+Stoch chart

by zabor-crypto
20 stars

This overlay indicator marks buy and sell signals on the price chart from RSI, stochastic, and optional Awesome Oscillator filters. It compares recent price and RSI pivots for regular divergences and, when enabled, hidden divergences, then combines those check

Indicator v6 Oscillators & momentumDivergence
Updated 5 days ago · MIT GitHub repository of zaBor RSI+AO+Stoch chart

This indicator implements John F. Ehlers' Adaptive Relative Strength Index in a separate chart pane. It filters price data using a high-pass filter and a SuperSmoother filter, then applies Pearson correlation across multiple lags to extract the dominant cycle

Indicator v5 Oscillators & momentum
Updated 1 year ago · None stated GitHub repository of Adaptive Relative Strength Index - John F. Ehlers

RSI Technique - V

by Tikam02
20 stars

RSI Technique - V identifies rapid reversal pivot points based on the Relative Strength Index. It monitors an RSI oscillator, configurable via the lookback setting, looking for sharp V-shaped spikes around extreme zones. A bullish signal appears when the indic

Indicator v5 Oscillators & momentumMean reversion
Updated 2 years ago · Apache-2.0 GitHub repository of RSI Technique - V

Bandz Intraday Timing + FVG

by samuelharting
18 stars

This overlay indicator marks hourly and last-hour macro windows, automatic fair value gaps, and AM/PM session fair value gaps on the price chart. It can color macro candles, draw bracket guides and labels, and add dividers, timestamps, and day labels. Optional

Indicator v6 SMC / ICT / price actionSessions & time
Updated 2 weeks ago · MPL-2.0 GitHub repository of Bandz Intraday Timing + FVG

Harami pattern finder

by shibisuriya
18 stars

This indicator detects bullish and bearish harami candlestick patterns on the price chart. A bullish harami requires a down candle followed by an up candle whose body sits inside the prior body; a bearish harami reverses that relationship. When perfect harami

Indicator v4 Candlestick patterns
Updated 4 years ago · None stated GitHub repository of Harami pattern finder

This indicator scans a pasted list of symbols, up to the first forty, and shows long and short momentum setups in a configurable table in a separate pane. It compares RSI with an SMA of RSI using Break Flip or Break Continuous scanning. Optional filters cover

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated 1 year ago · None stated GitHub repository of Momentum Setup: RSI Direction Confirmation Scanner

多空排列指标

by midoks
16 stars

This indicator plots four exponential moving averages of the close, with fixed lengths of 5, 15, 30, and 60, directly on the price chart. It marks a bullish alignment when the three faster averages are all above the 60-period average, and a bearish alignment w

Indicator v5 TrendMoving averages
Updated 3 weeks ago · Apache-2.0 GitHub repository of 多空排列指标

ORB Pro - Research-Based ORB

by Mrshahidali420
16 stars

The ORB Pro indicator calculates and plots Opening Range Breakout levels, stop-loss and take-profit zones, signal labels, and an status dashboard on the price chart. Built on academic research, it evaluates trades using an opening-candle direction filter, open

Indicator v6 BreakoutSessions & time Repaints
Updated 3 months ago · None stated GitHub repository of ORB Pro - Research-Based ORB

Key Intraday Levels

by traderdiegox
16 stars

This indicator plots key reference levels directly on the price chart, focusing on Smart Money Concepts (SMC) and intraday trading benchmarks. It identifies and displays previous session ranges, previous opens, and daily and weekly reference points, including

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 6 months ago · None stated GitHub repository of Key Intraday Levels
16 stars

This overlay indicator visualizes Smart Money Concepts on the price chart. It marks buy-side and sell-side liquidity from selectable 1-minute, 5-minute, 15-minute, and 1-hour swings, then recolors levels after they are swept. It also plots market structure shi

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · MIT GitHub repository of PHASE 404 - Smart Money 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