Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 127)

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

Equity Curve (SuperTrend)

by YuceSezar89
1 stars

This indicator uses the SuperTrend to generate direction changes that calculate segment returns and update a cumulative equity curve. It starts with a balance of 100 and compounds returns for each signal segment until the next direction change, then plots the

Indicator v5 TrendVolatility & bands
Updated 13 days ago · None stated GitHub repository of Equity Curve (SuperTrend)
1 stars

This indicator draws Fibonacci-based time projections as horizontal lines and price projections as vertical lines on the price chart. Users select a start time and candle, then set the number of bars for time steps and initial price gap. The script calculates

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Fibonacci Time & Price Projection

MTF Trend Signals

by vedkanani123
1 stars

A separate-pane indicator adapted from the AK MACD Bollinger Bands idea. It draws MACD-based Bollinger bands whose fill colour follows RSI against its moving average and the 55 and 45 levels. Buy and sell markers come from multi-timeframe alignment, using an a

Indicator v6 Oscillators & momentumTrend
Updated 2 months ago · None stated GitHub repository of MTF Trend Signals

HUB 1020 1153am Bear

by nishpa800
1 stars

A bearish mirror of a signal hub indicator that bundles many detection groups into plots on the price chart. Groups include White Flag momentum, overlap and super patterns, fauna clusters, relative volume windows, first two bars, a swing top and a pullback-and

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of HUB 1020 1153am Bear

Gann Box 2024

by mikeyhu70
1 stars

This indicator draws a Gann box on the price chart between the latest swing high and swing low found within a lookback window, with Fibonacci-style percentage levels, labels and optional grid lines. Gann fans, angles and curves can be turned on, and the box ca

Indicator v5 Support & resistance
Updated 6 months ago · None stated GitHub repository of Gann Box 2024

CRWD-tracker

by Allen1212
303 stars

This indicator overlays historical ARK Invest trade markers for CrowdStrike (CRWD) on the price chart. It places green buy labels below bars and red sell labels above bars at fixed dates, with text such as Buy or Sell and an X1 count. The ETF input switches be

Indicator v4
Updated 2 years ago · None stated GitHub repository of CRWD-tracker
261 stars

This indicator plots Minkowski distance values in a separate pane. A function measures distance between two points using exponent p, matching Manhattan distance when p is 1 and Euclidean distance when p is 2. It plots fixed sample distances for those cases and

Indicator v5
Updated 4 years ago · None stated GitHub repository of RS Function - Minkowski Distance
99 stars

This indicator plots John Ehlers' Hann-windowed RSI in a separate pane. It weights successive price differences with Hann window coefficients, then normalizes the weighted up and down sums into a bounded oscillator between minus one and plus one. A period inpu

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Hann-Windowed RSI (RSIH)

This indicator plots the close of BATS-listed AAPL on the chart timeframe in a separate pane, using a broken line style. It builds a tickerid for that symbol limited to the regular session, but the security call shown uses the plain BATS:AAPL symbol and reques

Indicator v4 Sessions & time
Updated 6 days ago · GPL-3.0 GitHub repository of Example 3: Regular Session Data (using tickerid)
47 stars

This indicator calculates the Rate of Change Percentage (ROCP), measuring the relative percentage difference between the current price source and its value a specified number of bars ago. It includes explicit warm-up tracking to ensure deterministic evaluation

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Rate of Change Percentage (ROCP)

McGinley Dynamic

by TWODS-CAPITAL
37 stars

This indicator plots the McGinley Dynamic as a single line on the price chart. It seeds the line with an exponential moving average of the close, then updates each bar by adding a fraction of the gap between price and the previous value. That fraction depends

Indicator v5 Moving averages
Updated 3 years ago · MIT GitHub repository of McGinley Dynamic
9 stars

Smart Money Dashboard plots key Smart Money Concepts on the price chart, including Order Blocks with mitigation tracking, Fair Value Gaps, and Equal Highs or Lows sweeps. It analyzes Cumulative Volume Delta for divergence and combines multi-timeframe structure

Indicator v6 SMC / ICT / price actionVolume
Updated 3 days ago · MIT GitHub repository of Smart Money Dashboard
6 stars

Calculates and plots key high and low reference levels based on a selected candle timeframe (1-hour or 4-hour) starting at a specific New York session hour (1 AM, 5 AM, or 9 AM). The indicator tracks the high and low prices of the specified candle, resetting d

Indicator v5 Support & resistanceSessions & time Repaints
Updated 7 months ago · None stated GitHub repository of Dual-Mode CRT Levels (NY Time)
2 stars

This indicator adapts the built-in TradingView volume tool by adding extended visualization options in a separate pane. It plots volume columns colored by price direction relative to the open or previous close, alongside a simple moving average of volume. An o

Indicator v5 VolumeMoving averages
Updated 8 months ago · None stated GitHub repository of Adapting a built-in [PineCoders]

Ulcer Index (UI)

by mushroom-men-Trading
2 stars

This indicator calculates the Ulcer Index as a measure of downside volatility. It tracks the highest source value over the chosen lookback, converts the percentage drawdown from that high into a squared average, and takes the square root. The value plots as a

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Ulcer Index (UI)
1 stars

This indicator splits price into SuperTrend segments and accumulates the percentage of up and down closes inside the active segment. It compares the live net move with the mean and standard deviation of earlier closed segments in the same direction, then plots

Indicator v5 TrendVolatility & bands
Updated 13 days ago · None stated GitHub repository of Segment TotalAmount Z (SuperTrend)
1 stars

This indicator plots a ribbon of seven exponential moving averages based on Fibonacci lengths (8, 13, 21, 34, 55, 89, and 144) directly on the price chart. It calculates volume-weighted distance gaps between consecutive moving averages normalized against a 50-

Indicator v5 Moving averagesTrend
Updated 7 weeks ago · None stated GitHub repository of Fibonacci Volumetric MA Ribbon
1 stars

A separate-pane momentum indicator that combines fast and slow RSI, smoothed momentum, an ATR trend band and a memory of past similar setups to score each bar. A weighted confidence and rank are built from similarity, momentum agreement, trend alignment, volat

Indicator v6 Oscillators & momentumAI / machine learning
Updated 2 months ago · None stated GitHub repository of Neural Momentum Matrix AI Pro
1 stars

A signal hub indicator that bundles many detection groups into plots on the price chart, in a tick-chart-safe build. Groups include White Flag momentum, overlap and super patterns, fauna clusters, relative volume windows, first two bars, a swing bottom and a p

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of HUB 1020 1153am Tick-Friendly

Gann Box 2024 V2

by mikeyhu70
1 stars

This indicator draws a Gann box on the price chart between the latest swing high and swing low found within a lookback window, with Fibonacci-style percentage levels, labels and optional grid lines. Gann fans, angles and curves can be turned on, and the box ca

Indicator v5 Support & resistance
Updated 6 months ago · None stated GitHub repository of Gann Box 2024 V2

CSOD-tracker

by Allen1212
303 stars

The CSOD-tracker indicator visualizes historical institutional purchases and sales directly on the price chart by plotting buy and sell labels with corresponding ETF count markers. It utilizes predefined timestamp records to display trade events for the specif

Indicator v4
Updated 2 years ago · None stated GitHub repository of CSOD-tracker
261 stars

Bar Pattern Statistics Tool evaluates sequential candlestick formations and displays historical occurrence statistics in a separate pane. It classifies individual price bars into types such as inside bars, outside bars, up bars, down bars, and directional pin

Indicator v4 Candlestick patterns
Updated 4 years ago · None stated GitHub repository of [RS] Bar Pattern Statistics Tool

Logistic Difference

by capissimo
114 stars

This indicator plots a logistic difference oscillator in a separate pane. It measures the price change over a lookback window as markup and discount, passes both through a sigmoid, and smooths the results with linear regression. The main line is lime or red ar

Indicator v4 Oscillators & momentum
Updated 1 year ago · None stated GitHub repository of Logistic Difference
99 stars

This indicator calculates John Ehlers' two-pole Highpass Filter (HPF) to isolate cyclic noise from market data. By subtracting the highpass filter output from the input price series, it removes high-frequency fluctuations and plots the smooth underlying trend

Indicator v6 Trend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Highpass Filter (HPF)

Example 4

by be-thomas
65 stars

This indicator smooths each of the open, high, low and close series with a simple moving average and plots those four values as candles. A user-defined function applies the same length to every price component, then plotcandle draws the result in a separate pa

Indicator v4 Moving averages
Updated 6 days ago · GPL-3.0 GitHub repository of Example 4
47 stars

This indicator calculates the Schaff Trend Cycle oscillator using custom exponential moving averages with deterministic warm-up logic. It computes a MACD line from user-defined fast and slow lengths, passes it through a double stochastic calculation over a spe

Indicator v6 Oscillators & momentumTrend
Updated 8 months ago · MIT GitHub repository of Schaff Trend Cycle (STC)

Median

by TWODS-CAPITAL
37 stars

The Median indicator calculates the median of a selected source series such as the high-low average over a user-defined length and plots it as a red line on the price chart. It draws an EMA of the median as a blue line and fills the space between them, changin

Indicator v5 Moving averagesVolatility & bands
Updated 3 years ago · MIT GitHub repository of Median

This indicator plots a four-layer Smart Money Concepts framework directly on the price chart. It maps external and internal market structure points (HH, HL, LH, LL), projects structural expectation zones for upcoming swing levels, detects Break of Structure (B

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 days ago · MIT GitHub repository of SMC Structure & Expectation [WavesUnchained]

This indicator segments recent price bars into defined groups and visual boxes to serve as a visual chart ruler. It includes automated trend detection with configurable angle thresholds to plot uptrend, downtrend, and range segments directly on the price chart

Indicator v6 TrendSupport & resistance
6 stars

Forex Majors 4H Rejection Scanner tracks seven customizable currency pairs on a four-hour timeframe and displays their bias in a table overlay on the main price chart. It checks the last two closed four-hour candles for high or low price rejections, labeling a

Indicator v5 Screeners & dashboardsSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of Forex Majors 4H Rejection Scanner

All-Time High/Low

by regalouisei
2 stars

This indicator tracks the all-time high and all-time low of the current symbol from daily data. It draws optional green and red horizontal lines across the price chart and can show a table with each extreme’s date, days elapsed, price, percent distance from th

Indicator v5 Support & resistanceScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of All-Time High/Low
1 stars

This indicator plots the SuperTrend line directly on the price chart and evaluates historical trend segments. Whenever the SuperTrend flips direction, it records simulated long or short returns from flip to flip, plotting percentage return labels above or belo

Indicator v5 TrendScreeners & dashboards
Updated 13 days ago · None stated GitHub repository of Winrate Panel (SuperTrend)

Flat Multiplier

by morindok
1 stars

Flat Multiplier is a Fibonacci flat indicator that plots stepped price lines on the chart. It sets a range using start and end timestamps, then extends the price with time and height multipliers based on Fibonacci ratios to calculate new levels. The red line s

Indicator v5 Support & resistanceVolatility & bands
Updated 7 weeks ago · None stated GitHub repository of Flat Multiplier

Nexus Big Move v7

by vedkanani123
1 stars

A trend flip indicator on the price chart with BUY and SELL labels. It builds a zero-lag trail from ATR and an optional volume-weighted source, then lets a flip through only when several gates pass: choppiness, baseline slope, volatility expansion, efficiency

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Nexus Big Move v7
1 stars

A non-repainting high-volume marker indicator that flags bars whose volume is the highest over lookbacks from 50 to 1000 bars in steps of 50, plus an all-time high volume level and hot spot signals. Every comparison uses the prior confirmed bar, so signals do

Indicator v5 Volume
Updated 2 months ago · None stated GitHub repository of HV NRA High Volume Ladder

Gann Box 2024 V2

by mikeyhu70
1 stars

This indicator draws a Gann box on the price chart between the latest swing high and swing low found within a lookback window, with Fibonacci-style percentage levels, labels and optional grid lines. Gann fans, angles and curves can be turned on, and the box ca

Indicator v5 Support & resistance
Updated 6 months ago · None stated GitHub repository of Gann Box 2024 V2

CSTL-tracker

by Allen1212
303 stars

This indicator plots historical ARK Invest buy and sell events for CSTL on the price chart. It places green labels below bars for buys and red labels above bars for sells, each dated with a fixed timestamp and marked with an ETF count such as X1. The ETF input

Indicator v4
Updated 2 years ago · None stated GitHub repository of CSTL-tracker
261 stars

This indicator tracks and analyzes custom candlestick bar sequences in a separate pane. Users can define a pattern sequence of up to ten consecutive bars using specific criteria such as inside bar, outside bar, up bar, down bar, pin bar, or any bar type. The s

Indicator v4 Candlestick patterns
Updated 4 years ago · None stated GitHub repository of [RS] Bar Pattern Statistics Tool
114 stars

This indicator calculates normalized percentage bounds around price highs and lows to anticipate local trend reversals. It oscillates within a fixed -1 to 1 channel and plots two boundary tracking curves alongside a background Karobein oscillator histogram for

Indicator v4 Mean reversionOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of Mean Reversion Indicator

Calculates the dominant cycle period of a price series using John Ehlers' Hilbert Transform algorithm, cross-checked against the TA-Lib implementation. It applies weighted price smoothing, FIR detrending, in-phase and quadrature component processing, and a hom

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Hilbert Transform Dominant Cycle Period

Educational Pine Script v4 indicator demonstrating how to request symbol data using the session settings of the main chart symbol. The script builds a custom ticker ID for a target ticker while inheriting the current session type, requests closing prices via t

Indicator v4 Sessions & time
Updated 6 days ago · GPL-3.0 GitHub repository of Example 4: Same as Main Symbol Session Type Data
47 stars

Calculates the linear regression slope for a selected price source over a configurable rolling lookback window. It tracks running sums using ring buffers to determine the rate of price change per bar. Configurable settings include the lookback period and price

Indicator v6 Trend
Updated 8 months ago · MIT GitHub repository of Slope, Linear Regression (SLOPE)

Momentum

by TWODS-CAPITAL
37 stars

This indicator calculates momentum as the difference between the selected source and its value a chosen number of bars earlier. It plots that difference as a single line in a separate pane. The Length input sets the lookback, and the Source input selects which

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Momentum

This indicator plots a double-smoothed Supertrend baseline on the price chart, combining a Supertrend midline with WMA and EMA smoothing to show trend direction. Direction uses an ATR-scaled baseline slope with hysteresis, while percentile-ranked slope magnitu

Indicator v6 TrendMoving averages
Updated 3 days ago · MIT GitHub repository of Smooth Trend Radar [WavesUnchained]
7 stars

This multi-timeframe indicator calculates Stochastic oscillator directional bias across three user-defined timeframes. It compares %K and %D to determine whether momentum is bullish or bearish on each timeframe. When all three timeframes align in the same dire

Indicator v6 Oscillators & momentumTrend Repaints
Updated 3 months ago · None stated GitHub repository of Stoch MTF 3 TF Direction Only

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