Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 107)

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

combination by yzz

by webcrack4
1 stars

This overlay indicator scans price pivots for regular and hidden divergences against several oscillators at once, including MACD, MACD histogram, RSI, stochastic, CCI, momentum, OBV, volume-weighted MACD, Chaikin money flow, money flow index, and an optional e

Indicator v4 DivergenceOscillators & momentum Repaints
Updated 9 months ago · None stated GitHub repository of combination by yzz

Opening High Low

by ivansoft
1 stars

Records the high and low of the candle that begins a chosen session window and plots them as circles on the price chart, holding them until the next session start. The session is an input, defaulting to a five-minute window starting at 10:30. It works on intra

Indicator v6 Sessions & timeSupport & resistance
Updated 1 year ago · None stated GitHub repository of Opening High Low

Laguerre Filter

by everget
947 stars

The Laguerre Filter is a technical indicator designed to reduce lag while smoothing price data using John Ehlers' time-warping Laguerre polynomials. It processes a selected price source across four recursive filter components governed by a user-defined damping

Indicator v4 Moving averagesTrend
Updated 12 days ago · GPL-3.0 GitHub repository of Laguerre Filter
330 stars

This indicator plots a TTM Squeeze momentum oscillator and a MACD line in a separate pane. It builds the squeeze oscillator from a linear regression of price against a high-low and simple moving average midpoint, and colors the area by slope and sign. Circles

Indicator v5 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of TTM Squeeze + MACD line [Alorse]

AUDC Tracker

by Allen1212
303 stars

This indicator plots visual labels directly on the price chart to display historical stock buy and sell transactions executed by ARK Invest for AUDC. Using hardcoded timestamps and transaction counts, it highlights the specific dates on which ARK funds traded

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

Volatility Arbitrage

by capissimo
114 stars

Volatility Arbitrage calculates the Rate of Change (ROC) for a selected price dataset and plots it along with upper and lower standard deviation bounds in a separate pane. The indicator measures momentum fluctuations relative to zero and identifies statistical

Indicator v4 Volatility & bandsOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Volatility Arbitrage

Choppiness Index

by mihakralj
99 stars

The script plots the Choppiness Index in a separate pane. It sums true range over a lookback and compares that sum with the highest-high to lowest-low range, then scales the result from 0 to 100. Lower readings indicate a trending market and higher readings in

Indicator v6 TrendVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Choppiness Index

array.copy()

by be-thomas
65 stars

This indicator demonstrates the Pine Script array.copy function. It builds a float array and appends the values 0 and 1. On the last bar it copies that array, appends 2 only to the copy, and draws a large label that prints both arrays so the original stays unc

Indicator v4
Updated 6 days ago · GPL-3.0 GitHub repository of array.copy()

MTF OHLC stats

by TamaraKGreen
47 stars

This indicator plots previous open, high, low and close levels from a selected timeframe on the price chart. It requests those values with a configurable bar offset and marks a new higher-timeframe session. Users can show only the latest levels, extend the lin

Indicator v5 Support & resistanceScreeners & dashboards Repaints
Updated 8 weeks ago · None stated GitHub repository of MTF OHLC stats

This indicator estimates the dominant market cycle length in bars using John Ehlers’s Hilbert Transform method. It smooths the chosen source, builds in-phase and quadrature components, and converts their phase angle into a period that is clamped between 6 and

Indicator v6
Updated 8 months ago · MIT GitHub repository of HT_DCPERIOD: Hilbert Transform Dominant Cycle Period

Doji Star - Bullish

by TWODS-CAPITAL
37 stars

This indicator marks a bullish Doji Star on the price chart. It looks for a downtrend, a long black candle, and a following doji whose body sits below the prior candle body. Trend detection can use a 50-period SMA, both 50- and 200-period SMAs, or no filter. A

Indicator v5 Candlestick patternsTrend
Updated 3 years ago · MIT GitHub repository of Doji Star - Bullish

Calculates continuous structural market bias by detecting swing high and low pivots (higher highs, higher lows, lower highs, and lower lows) using configurable left and right bar lookbacks. It assigns weighted values to classified pivots within a rolling windo

Indicator v6 SMC / ICT / price actionTrend
Updated 3 days ago · MIT GitHub repository of Market Structure Advanced [WavesUnchained]
7 stars

The Capital Rotational Event (CRE) indicator tracks capital flows and rotational momentum between two selectable assets, defaulting to SPY and GLD. It calculates a relative strength ratio between the target assets, smoothed by a moving average, along with a mo

Indicator v6 Oscillators & momentumMoving averages
Updated 3 months ago · None stated GitHub repository of Capital Rotational Event (CRE)

Apex Protocol Assistant

by alboogycOdR
6 stars

Apex Protocol Assistant is a Smart Money Concepts charting tool designed to identify session-based setups and market structure shifts. It determines directional bias using a higher-timeframe exponential moving average and highlights key trading windows includi

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of Apex Protocol Assistant
5 stars

This indicator calculates and displays the Relative Strength Index, Slow Stochastic, and a normalized MACD line together in a separate pane. It plots the oscillators alongside customizable overbought, middle, and oversold threshold levels with shaded backgroun

Indicator v4 Oscillators & momentumMoving averages
Updated 3 years ago · Apache-2.0 GitHub repository of RSI + Slow Stochastic + MACD

RSI OB/OS [trugurpala]

by trugurpala
4 stars

This indicator calculates a Relative Strength Index (RSI) with dynamic gradient coloring in a separate pane. It tracks defined overbought and oversold thresholds, dynamically adjusting the line color according to momentum strength. Background shading highlight

Indicator v6 Oscillators & momentum
Updated 2 months ago · MIT GitHub repository of RSI OB/OS [trugurpala]

Daily Levels

by g-moe
3 stars

Daily Levels plots horizontal price offset lines based on the current day's open and previous day's close. Users can define two custom price offsets to project key reference levels above opening and closing values. The indicator renders directly on the price c

Indicator v5 Support & resistanceSessions & time Repaints
Updated 5 months ago · None stated GitHub repository of Daily Levels

Setup-1

by IAMATOMIC001
3 stars

This indicator plots multiple technical analysis components directly on the price chart, including a Nadaraya-Watson envelope, pivot-based trendlines, and a kernel regression oscillator. It also renders visual overlay panels for the Relative Strength Index and

Indicator v5 TrendOscillators & momentum Repaints
Updated 12 months ago · None stated GitHub repository of Setup-1

This indicator detects multi-timeframe Liquidity Engulfing Candles directly on the price chart. It evaluates bullish and bearish engulfing patterns augmented by optional stop hunt wick filters and close breakout conditions across H1, H4, and current timeframes

Indicator v5 Candlestick patternsSMC / ICT / price action Repaints
Updated 2 months ago · None stated GitHub repository of Liquidity Engulfing & Displacement [MsF]
2 stars

Bear Market Probability Model plots a bear-market probability line in a separate pane. Its header describes a score built from four weighted groups: macroeconomic conditions, technical analysis, market sentiment, and market breadth. Users set warning and dange

Indicator v6 Screeners & dashboardsOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Bear Market Probability Model

Draw Tables

by Web3Degenerate
2 stars

This indicator draws a table on the price chart displaying current open, high, low, and close values. The table is positioned at the top right of the chart. Table cell colors change to green when close exceeds open or red when close is lower, providing a simpl

Indicator v5 Screeners & dashboards
Updated 2 years ago · None stated GitHub repository of Draw Tables

P_fmt_annotations

by GammaExpansion
1 stars

This indicator is a Pine Script v6 formatting fixture rather than a trading tool. It declares a user-defined Point type with bar index and price fields, plus a function that doubles a float. On each bar it doubles the close, stores the bar index and close in a

Indicator v6
Updated 7 days ago · MIT GitHub repository of P_fmt_annotations

Quantum Trend Signal

by rosijay17-cmd
1 stars

An overlay indicator that plots a fast and a slow EMA, defaulting to 21 and 55, and shades the chart background by which one is higher. A BUY triangle appears when the fast EMA crosses above the slow one while RSI is above 55 and ATR exceeds a fraction of its

Indicator v6 TrendMoving averages
Updated 8 days ago · GPL-3.0 GitHub repository of Quantum Trend Signal

DEPV2 DEBUG S23

by YuceSezar89
1 stars

DEPV2 DEBUG S23 is a Pine Script v6 indicator that draws in a separate pane and watches up to twenty user-selected Binance perpetual symbols. It combines four signal classes—trend, momentum, volatility, and volume—through a single class, simultaneous agreement

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S23
1 stars

The 7 Golden MA Detrended Layers indicator calculates seven simple moving averages with period lengths scaled according to powers of the golden ratio (Phi). It subtracts each moving average from the source price to construct seven detrended price oscillator la

Indicator v5 TrendMoving averages
Updated 7 weeks ago · None stated GitHub repository of 7 Golden MA Detrended Layers
1 stars

A diagnostic indicator that marks, on the detection candle, each building block of a combo chain: fair value gap setups, a matrix pattern and a unified combo, separately for bullish and bearish sides. A chain fires when the current and previous candle each car

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Combo Chain Constituents v1

PolishFu

by GreyssonEnterprises
1 stars

An indicator modelled on a Market Cipher B style layout. It computes a WaveTrend oscillator with a fast line, shows buy, gold, sell and divergence dots, detects regular and optional hidden divergences, and adds a money flow and RSI area. Channel, average and m

Indicator v4 Oscillators & momentumDivergence
Updated 3 months ago · MIT GitHub repository of PolishFu

A Pine Script v5 indicator in a separate pane that plots Hurst spectral cycle waves. A selectable source, hl2 by default, is fetched through a security call with lookahead on, then passed through bandpass filters for cycles from 1 day to 18 years. Each cycle h

Indicator v5 Oscillators & momentum Repaints
Updated 6 months ago · None stated GitHub repository of Hurst Spectral Analysis Oscillator A1.1 (2024)

combination by yzz

by webcrack4
1 stars

This overlay indicator combines a volume profile with multi-oscillator divergence detection on the price chart. It builds a histogram of recent volume across price rows, marks the point of control, and can show a rolling point of control. It also scans pivots

Indicator v4 VolumeDivergence Repaints
Updated 9 months ago · None stated GitHub repository of combination by yzz

Parabolic SAR

by ivansoft
1 stars

Plots the Parabolic SAR with the built-in function using a start of 0.02, increment of 0.02 and maximum of 0.2, drawn as crosses in a separate pane. It also includes a hand-written Pine version of the same calculation, plotted with the same settings, so the tw

Indicator v6 Trend
Updated 1 year ago · None stated GitHub repository of Parabolic SAR
1 stars

A separate-pane indicator that plots a WaveTrend oscillator and its four-bar signal average around a zero line, then detects regular bullish and bearish divergence between price and oscillator pivots, labelling them on the pane. Lengths are fixed in the code,

Indicator v5 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of Neural Network Sub 23 Wave
947 stars

This indicator fits a least-squares linear regression to every available bar, up to a 5000-bar limit, using the selected source. It draws one orange regression line on the price chart and refreshes that line on the last bar. A label reports the slope, intercep

Indicator v4 Trend
Updated 12 days ago · GPL-3.0 GitHub repository of Linear Regression (All Data)

AVAV Tracker

by Allen1212
303 stars

AVAV Tracker overlays historical buy and sell activity by ARK Invest funds directly onto the price chart for AeroVironment Inc. (AVAV). It places labels above or below daily bars corresponding to recorded execution timestamps, indicating trade direction and fu

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

Raschke Patterns

by TradersPost
228 stars

This overlay indicator marks Linda Raschke short-term bar setups on the price chart. It flags Turtle Soup and Turtle Soup plus one false breakouts of a prior extreme, 80-20 bars, inside bars, failed inside-bar breakouts, outside up and down bars, NR4 and NR7 c

Indicator v6 Candlestick patternsBreakout Repaints
Updated 3 months ago · None stated GitHub repository of Raschke Patterns

1 Pair TF Strength

by capissimo
114 stars

This indicator evaluates momentum strength for a single selected symbol across multiple intraday timeframes (1m to 60m). It retrieves price data across seven timeframes using security calls, combines them into an aggregate metric with optional ATR-based weight

Indicator v4 Oscillators & momentumTrend
Updated 1 year ago · None stated GitHub repository of 1 Pair TF Strength

This indicator plots the Christiano-Fitzgerald asymmetric band-pass filter in a separate pane. It estimates the cyclical component of a series under a random-walk assumption, using ideal band-pass weights between a minimum and maximum period and forcing the we

Indicator v6 Trend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Christiano-Fitzgerald Band-Pass Filter (CFITZ)

array.insert()

by be-thomas
65 stars

This indicator demonstrates the array.insert function from the Pine Script v4 documentation. It creates a five-element float array filled with zeros, then writes the values one through five into successive indexes. On the last bar it draws a label showing the

Indicator v4
Updated 6 days ago · GPL-3.0 GitHub repository of array.insert()
47 stars

This overlay indicator marks swing highs and lows with Bill Williams fractals and draws them as offset labels and extended lines on the price chart. Fractal length can be 3, 5, 7, or 9 bars, and an optional filter reduces weaker fractal points. It also plots c

Indicator v5 Support & resistanceSessions & time
Updated 8 weeks ago · None stated GitHub repository of MTF Swing Highs and Lows with Key Levels

This indicator plots the Hilbert Transform dominant cycle phase of a chosen price source in a separate pane. It follows an Ehlers method: a weighted smoother, a detrender, and in-phase and quadrature components feed a custom atan2 that returns a phase angle be

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of HT_DCPHASE: Hilbert Transform Dominant Cycle Phase

Donchian Channels

by TWODS-CAPITAL
37 stars

This indicator plots a Donchian channel on the price chart. It calculates the highest high and the lowest low over a user-set lookback, then draws those values as upper and lower bands with a midline equal to their average. The area between the bands is filled

Indicator v5 Volatility & bandsBreakout
Updated 3 years ago · MIT GitHub repository of Donchian Channels

This indicator maps price location on the chart rather than generating trade signals. It plots Classic or Fibonacci pivot support and resistance, the central pivot range with a narrow, normal, or wide width regime versus ATR, previous high and low, and the cur

Indicator v6 Support & resistance
Updated 3 days ago · MIT GitHub repository of Market Structure Pivot Map [WavesUnchained]
6 stars

Apex Protocol Assistant is an intraday technical indicator that overlays smart money concepts and trading session levels directly on the price chart. It evaluates higher timeframe EMA trends, change of character shifts, and fair value gaps. The tool highlights

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of Apex Protocol Assistant (Optimized)
4 stars

Visualizes custom trading sessions directly on the main price chart. Highlights active session bars with a light background color, plots intra-session high and low levels, and optionally places labels at session opening and closing bars. Built default for VİOP

Indicator v6 Sessions & timeSupport & resistance
Updated 2 months ago · MIT GitHub repository of Session Highlight [trugurpala]

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