Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 142)

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

Signal Hub

by nishpa800
1 stars

Overlay indicator that gathers around thirty signal modules into one study on the price chart. Modules include White Flag momentum, OW overlap and super signals, FC and E3 clusters, a Red Plus marker, RVOL windows, a Fauna X-in-Y pattern, a Mango swing bottom,

Indicator v5 Oscillators & momentumVolume
Updated 2 months ago · None stated GitHub repository of Signal Hub

MD Range Finder 3 (V5)

by mikeyhu70
1 stars

A Pine Script v4 indicator, a fifth variant of the range finder, that locates a price range over a 500-bar period and draws baselines at 0, 0.5 and 1 on the price chart, with Fibonacci-style extension lines projected from it. Lines extend to the right by defau

Indicator v4 Support & resistance
Updated 6 months ago · None stated GitHub repository of MD Range Finder 3 (V5)

HPQ-tracker

by Allen1212
303 stars

HPQ Tracker visualizes historical buy and sell transactions made by ARK Invest for HP Inc. directly on the price chart. The indicator creates labels on specific timestamps corresponding to trade dates, indicating whether ARK ETFs bought or sold shares and show

Indicator v4
Updated 2 years ago · None stated GitHub repository of HPQ-tracker

Test-029-na_value

by ricardosantos79
261 stars

This indicator is a small array test rather than a trading tool. It creates an integer array, pushes the values 0, 1, na, and 2, then converts the array to text. It draws that text in a label at the current bar in a separate pane and deletes the previous bar's

Indicator v4
Updated 4 years ago · None stated GitHub repository of Test-029-na_value
99 stars

This indicator plots the highest value of a chosen source over a rolling lookback. It maintains a monotonic deque and a circular buffer so each bar updates the window maximum. The period input sets the lookback length and the source input selects the series, d

Indicator v6 Support & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of Highest Value (HIGHEST)

My Script

by be-thomas
65 stars

This indicator stores the closing price in a variable named price and replaces that value with the high-low midpoint whenever the midpoint is greater than the close. It then plots the resulting series in a separate pane. The script has no user inputs, so nothi

Indicator v4
Updated 6 days ago · GPL-3.0 GitHub repository of My Script

Three Black Crows - Bearish

by TWODS-CAPITAL
37 stars

This script identifies the Three Black Crows bearish reversal candlestick pattern directly on the price chart. It checks for three consecutive long red candles that open within the previous body, close consecutively lower, and feature minimal lower shadows com

Indicator v5 Candlestick patterns
Updated 3 years ago · MIT GitHub repository of Three Black Crows - Bearish

Target Radar

by eddiebelaval
7 stars

Target Radar is a multi-factor forecasting indicator that plots projection bands, forward boxes, and dynamic target zones directly on the main price chart. It calculates a forecast score by combining z-scores for trend, momentum, volume pressure, and volatilit

Indicator v5 TrendOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Target Radar
2 stars

This indicator builds a custom multi-symbol index and draws it in a separate pane as candles, bars, or a line. A holdings table can list the selected symbols and sort them by symbol name, percent change, last price, or market cap, in ascending or descending or

Indicator v5 Screeners & dashboards
Updated 8 months ago · None stated GitHub repository of Index Generator [MUQWISHI]

Uptrick Vector Trail Trend

by vedkanani123
1 stars

A price-chart indicator that estimates trend with a smoothed velocity and a projected vector, then draws an ATR-based trailing line coloured by direction. Up and down signals appear on trend changes. Optional dynamic take-profit markers use momentum and a Z-sc

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Uptrick Vector Trail Trend

Squarify 46 v2

by nishpa800
1 stars

Overlay indicator that merges forty-six numbered buy and sell triggers into one study on the price chart. The changelog describes combinations of unified combo, Napalm and Charge engines, Heavy Weapon and Floor patterns, UU, UUU and UUUU streaks, an Omega mark

Indicator v5 BreakoutVolume
Updated 2 months ago · None stated GitHub repository of Squarify 46 v2

Peak Activity Levels

by mikeyhu70
1 stars

A Pine Script v4 indicator, credited to LuxAlgo, that draws horizontal levels on the price chart at prices where volume pivot highs formed. It finds pivots in volume over a set length, stores the closing price at each, and shows a chosen number of recent level

Indicator v4 Support & resistanceVolume
Updated 6 months ago · None stated GitHub repository of Peak Activity Levels

HUBS-tracker

by Allen1212
303 stars

HUBS-tracker visualizes historical purchase and sale transactions made by ARK Invest funds for HubSpot stock. It draws buy and sell labels directly onto the price chart at specific historical dates based on recorded fund transaction data. Users can filter trad

Indicator v4
Updated 2 years ago · None stated GitHub repository of HUBS-tracker

test-031-type_error

by ricardosantos79
261 stars

This indicator initializes a float array with a configurable length of elements. It applies a simple PRNG function to generate values and appends the array contents to a string. The string is displayed in a label placed on the price chart at the bottom. The ma

Indicator v4
Updated 4 years ago · None stated GitHub repository of test-031-type_error

This indicator calculates the Hilbert Transform Dominant Cycle Phase based on John Ehlers' cycle analytics and the TA-Lib algorithm implementation. It processes price through a four-tap weighted smoothing filter, a Hilbert finite impulse response detrender, in

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Hilbert Transform Dominant Cycle Phase (HT_DCPHASE)

My Script

by be-thomas
65 stars

This is a simple Pine Script v4 indicator that overlays elements directly onto the main price chart. It demonstrates basic label creation by placing a label at bar_index plus 100 positioned at the current high price level. No calculations or calculations are p

Indicator v4 Support & resistance
Updated 6 days ago · GPL-3.0 GitHub repository of My Script
37 stars

This indicator identifies and highlights the Three White Soldiers bullish reversal candlestick pattern on the price chart. It checks for three consecutive long-bodied bullish candles where each candle opens within the previous candle's body, closes above the p

Indicator v5 Candlestick patterns
Updated 3 years ago · MIT GitHub repository of Three White Soldiers - Bullish

ORB Silver Bullet

by alboogycOdR
6 stars

This overlay indicator marks an opening-range breakout for a chosen session and combines it with fair value gaps, market structure shifts, order blocks, and optional liquidity sweeps. Buy and sell signals depend on the selected execution type, close or wick br

Indicator v5 SMC / ICT / price actionBreakout
Updated 7 months ago · None stated GitHub repository of ORB Silver Bullet
2 stars

This indicator builds a lower-timeframe view in a separate pane. It reconstructs price as traditional candles or as Heikin-Ashi, Kagi, Point and Figure, Renko, or Line Break, and plots a price-versus-volume graph colored from early to late data. Three selectab

Indicator v5 VolumeOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Intrabar Analyzer [Kioseff Trading]
1 stars

This indicator calculates W.D. Gann Square of 9 support and resistance levels based on cardinal (90°, 180°, 270°, 360°) and ordinal (45°, 135°, 225°, 315°) polar angles. It anchors calculations to recent swing pivots, highs, lows, or a user-defined manual pric

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Morindok Gannzilla Sq9
1 stars

A price-chart indicator by BigBeluga that draws a custom volatility-based Supertrend with an optional shaded trend cloud, and marks order blocks at confirmed swing pivots. Each block shows its buy and sell volume percentage. Blocks can be removed once price br

Indicator v6 SMC / ICT / price actionTrend
Updated 2 months ago · None stated GitHub repository of Volume-Trend Order Block Engine

Squarify 46 v2

by nishpa800
1 stars

Overlays up to 46 buy and sell marker signals on the price chart, built from standard deviation displacement, pullback pockets, relative volume tiers and fair value gap structures. Inputs set three displacement multipliers, a first-bar-only switch and per-sign

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Squarify 46 v2

HUYA Tracker

by Allen1212
303 stars

The HUYA Tracker indicator plots buy and sell labels on the price chart to mark ARK Invest trading activity in HUYA stock. It displays dates when ARK purchased or sold shares using X1 notation for single share counts. The main setting allows selection of speci

Indicator v4 Support & resistanceSMC / ICT / price action
Updated 2 years ago · None stated GitHub repository of HUYA Tracker

Test-033-Distribution

by ricardosantos79
261 stars

This indicator measures the absolute bar-to-bar change of the close and tracks the smallest and largest of those changes seen so far. It maps each change onto a 0 to 100 scale between that minimum and maximum, then, on the last bar only, counts how often each

Indicator v4 Volatility & bands
Updated 4 years ago · None stated GitHub repository of Test-033-Distribution
99 stars

This indicator calculates a causal approximation of the Hodrick-Prescott filter. It plots a smoothed trend of the selected source and a cycle equal to the source minus that trend. Lambda controls smoothing; the source defaults to close. The trend is drawn on t

Indicator v6 Trend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Hodrick-Prescott Filter (HP)

My Script

by be-thomas
65 stars

This indicator calculates and plots a 5-period simple moving average and a 50-period simple moving average based on the closing price directly on the main price chart. It detects crossover points between the fast and slow moving averages, marking each occurren

Indicator v4 Moving averagesTrend
Updated 6 days ago · GPL-3.0 GitHub repository of My Script

Tri-Star - Bearish

by TWODS-CAPITAL
37 stars

This indicator scans price charts to identify the Bearish Tri-Star candlestick pattern, which consists of three consecutive Doji candles appearing at the peak of an uptrend. It verifies trend context using simple moving averages (SMA 50 or SMA 200) or allows t

Indicator v5 Candlestick patternsTrend
Updated 3 years ago · MIT GitHub repository of Tri-Star - Bearish
7 stars

The USD Volume (Auto-Unit Scaling) indicator calculates the trading value as close price multiplied by volume for each bar. It plots this monetary value in a separate pane using column style bars colored green for bullish and red for bearish candles. Units aut

Indicator v5 Volume
Updated 3 months ago · None stated GitHub repository of USD Volume (Auto-Unit Scaling)

Price Action Suite

by alboogycOdR
6 stars

Price Action Suite is an overlay indicator that identifies key price action and smart money concepts directly on the main chart. It plots internal and external market structure events such as Break of Structure and Change of Character, displays swing order blo

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of Price Action Suite
3 stars

This strategy combines MACD and Supertrend to generate entries on the price chart. The MACD oscillator uses selected source, fast length 12, slow 26, signal 9 and EMA or SMA. Supertrend on higher timeframe 15 provides trend direction and ATR trailing stop. Sig

Indicator v5 TrendOscillators & momentum Repaints
Updated 5 months ago · None stated GitHub repository of MACD VWMA Strategy

This indicator evaluates market non-randomness by running a Wald-Wolfowitz runs test on intrabar price movements. Using lower timeframe data requested via external libraries, it measures whether intrabar directional price sequences significantly deviate from a

Indicator v5
Updated 8 months ago · None stated GitHub repository of Intrabar Run Count Indicator [tbiktag]

VWMA True Range

by vedkanani123
1 stars

A separate-pane indicator that applies a volume-weighted moving average to true range over a chosen period, with optional smoothing. Long and short thresholds set when the reading counts as a bullish or bearish state. Options include a fast Hull line, a band d

Indicator v6 Volatility & bandsVolume
Updated 2 months ago · None stated GitHub repository of VWMA True Range
1 stars

Overlays up to 46 buy and sell marker signals on the price chart, built from standard deviation displacement, pullback pockets, relative volume tiers and fair value gap structures. Inputs set three displacement multipliers, a first-bar-only switch and per-sign

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Squarify 46 v2 (Tick-Friendly)

Sine Wave for FLD

by mikeyhu70
1 stars

This indicator draws sine waves tied to Future Line of Demarcation cycles in a separate pane. Up to three FLD periods can be set manually or chosen automatically from the chart timeframe, with offsets, line widths and transparency for each. A composite line co

Indicator v4 Support & resistance
Updated 6 months ago · None stated GitHub repository of Sine Wave for FLD

HXL Tracker

by Allen1212
303 stars

The HXL Tracker indicator visualizes historical buy and sell trades made by ARK Invest for HXL stock directly on the price chart. It places chart labels at specific timestamps corresponding to transaction dates, displaying buy or sell activity counts across AR

Indicator v4
Updated 2 years ago · None stated GitHub repository of HXL Tracker

Test-035-Montecarlo

by ricardosantos79
261 stars

This indicator overlays the price chart and prepares a fixed set of fifty lines for a Monte Carlo-style test. A custom pseudo-random function updates a stored seed and returns values inside a chosen range. Inputs set the historical data size, the depth of each

Indicator v4
Updated 4 years ago · None stated GitHub repository of Test-035-Montecarlo

Huber Loss (HUBER)

by mihakralj
99 stars

This indicator calculates Huber loss between a selected source and an exponential moving average of that source. Inside the delta threshold it uses half the squared error; beyond delta it uses a linear absolute-error form. It averages those values over the cho

Indicator v6 Moving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Huber Loss (HUBER)

My Script

by be-thomas
65 stars

This indicator draws a box on every bar using Pine Script's box.new function. The left edge is the previous bar index and the top is the previous bar's low. The right edge is the current bar index and the bottom is the current bar's high. It plots directly on

Indicator v4
Updated 6 days ago · GPL-3.0 GitHub repository of My Script

Tri-Star - Bullish

by TWODS-CAPITAL
37 stars

Identifies and highlights the Bullish Tri-Star candlestick pattern on the price chart. The indicator detects three consecutive doji candles following an established downtrend, determined by moving average trend rules (SMA 50, SMA 200, or disabled). When the pa

Indicator v5 Candlestick patterns
Updated 3 years ago · MIT GitHub repository of Tri-Star - Bullish
7 stars

This indicator overlays volume-delta bubbles and absorption labels on the price chart. It signs volume as positive or negative from either a lower-timeframe open-close comparison or the current candle direction, then flags unusual activity with an adaptive z-s

Indicator v5 Volume
Updated 3 months ago · None stated GitHub repository of Volume Delta Bubble + Absorption
6 stars

The Professional ORB + ICT System combines Opening Range Breakout (ORB) techniques with Smart Money Concepts on the price chart. It defines session opening ranges across major global sessions, classifies range width using ATR metrics, and tracks Relative Volum

Indicator v5 SMC / ICT / price actionBreakout
Updated 7 months ago · None stated GitHub repository of Professional ORB + ICT System

Market Rhythm Adaptive Trading Algo V1 is an overlay indicator that combines Kaufman Adaptive Moving Averages (KAMA), an ADX regime filter, Choppiness Index, Rate of Change, and RSI to identify market rhythm and trend entries. Depending on whether the ADX valu

Indicator v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Market Rhythm Adaptive Trading Algo V1

Intraday Intensity Modes

by regalouisei
2 stars

Intraday Intensity Modes calculates David Bostian's Intraday Intensity Index with multiple calculation variations. It evaluates price positioning within the high-low range relative to volume, offering cumulative, normalized oscillator, and inverse volume optio

Indicator v5 VolumeOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Intraday Intensity Modes

Moving Box

by morindok
1 stars

This indicator projects dynamic geometric shapes and envelopes directly onto the price chart based on moving averages and extreme price lookbacks. Users can select shapes such as boxes, rhombuses, ellipses, spirals, or hypercubes. The script calculates base, m

Indicator v5 Moving averagesSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Moving Box

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