Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 85)

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,239
No repaint flag6,673

Indicators: All

P Synthetic Conditional Calls

by GammaExpansion
1 stars

This indicator in Pine Script v6 calculates and plots three lines on a separate pane. It uses an input to choose between EMA or SMA of close over 10 periods for the main line. The second line applies RSI of close over 14 periods only when close exceeds open. T

Indicator v6 Moving averagesOscillators & momentum
Updated 8 days ago · MIT GitHub repository of P Synthetic Conditional Calls

An overlay indicator that captures the high and low of an opening range starting at a configurable hour and minute, then computes the range average and extension levels from it. A 9 and 21 EMA pair is plotted with triangle markers on crossovers. Toggles show o

Indicator v5 Sessions & timeSupport & resistance
Updated 2 weeks ago · None stated GitHub repository of OR Levels + EMA Cross Integrated

Pulse RSI

by vedkanani123
1 stars

A separate-pane oscillator built on a long-period RSI-style calculation with a default length of 55. Four selectable signal types are available: two trend variants, an oversold and overbought mode, and a custom long and short threshold mode. Threshold inputs s

Indicator v6 Oscillators & momentum
Updated 2 months ago · None stated GitHub repository of Pulse RSI

VOB Birth Bar Study v1

by nishpa800
1 stars

Marks the bar where a volume order block zone is first confirmed, at the completion of the moving average crossover, so the marker does not shift to an earlier bar afterwards. A sensitivity bank input selects the six sensitivity lengths, or custom values can b

Indicator v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Birth Bar Study v1

XSP Daily Lotto

by majohnst
1 stars

This indicator tracks intraday key levels, premarket ranges, and opening range boundaries on index instruments like XSP. To compensate for missing premarket data on index charts, it streams and scales MES futures data to compute sentiment thresholds and target

Indicator v5 Support & resistanceSessions & time Repaints
Updated 4 months ago · None stated GitHub repository of XSP Daily Lotto

US Ex-Dividend Alert

by kevinesk
1 stars

This indicator detects US stock ex-dividend dates using request.dividends() on the chart symbol. It plots purple diamonds marking past ex-dates and displays colored glows around buy windows: yellow when the window is open but quality gates fail, green when all

Indicator v5
Updated 4 months ago · None stated GitHub repository of US Ex-Dividend Alert
1 stars

Reversal RSI Stochastic ATR is an indicator that prints a reversal label when RSI is beyond its oversold or overbought level and the stochastic K line crosses D inside its own extreme zone. On each signal it draws stop loss and take profit lines at an ATR mult

Indicator v6 Mean reversionOscillators & momentum
Updated 4 months ago · MPL-2.0 GitHub repository of Reversal RSI Stochastic ATR

SMC Confluence Engine v5

by shubhamtaywade82
1 stars

Scores smart money confluence across a four-layer timeframe stack on the price chart. A 4-hour EMA bias and premium or discount zone set direction, 1-hour structure confirms it, 15-minute order blocks and liquidity sweeps define the entry zone, and a chart-tim

Indicator v6 SMC / ICT / price actionSupport & resistance Archived
Updated 5 months ago · None stated GitHub repository of SMC Confluence Engine v5
1 stars

Reads candle sequences and labels them as rally, base or drop phases, then flags four patterns: rally-base-drop, rally-base-rally, drop-base-drop and drop-base-rally. Each pattern can be switched on or off. Bars can be coloured fully, only on detection, or not

Indicator v6 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Rally Base Drop Signals

RSI and Z-Score Speedometer

by Focal-QuantAI
1 stars

An indicator in a separate pane that shows two gauge-style speedometers drawn with lines. The left gauge maps a 14 period RSI to a needle from 0 to 100. The right gauge converts a 20 period price z-score, clamped to a chosen limit, to the same scale. Layout in

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated 6 months ago · None stated GitHub repository of RSI and Z-Score Speedometer
1 stars

This indicator combines Volume Weighted Bands, a Hull Moving Average with Keltner Channels, and a Swing Profile directly on the price chart. It calculates volume-weighted trend lines, ATR volatility bands, and swing structures to plot dynamic support and resis

Indicator v6 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of Keltner Hull Swing Profile

SPX Gamma (DTE:55)

by Juice-zhi
1 stars

A price-chart overlay that draws a static set of options gamma levels for SPX (the S&P 500 index) expiring in about fifty-five days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated 2026-02-03, produced o

Indicator v5 Support & resistance
Updated 8 months ago · None stated GitHub repository of SPX Gamma (DTE:55)

Asian Session Range

by Ahmed1926
1 stars

A Pine v4 overlay that draws the Asian session range as a box with high, low and midline levels that extend to a chosen time, using Eastern time hours. It can also show a London session box with its range in pips. Start and end hours, line extension time, colo

Indicator v4 Sessions & timeSupport & resistance Repaints
Updated 9 months ago · None stated GitHub repository of Asian Session Range
1 stars

Target Trend is a trend-following overlay indicator that determines market direction using ATR-adjusted simple moving average bounds. It calculates upper and lower channel boundaries based on SMA calculations of high and low prices offset by a smoothed ATR val

Indicator v5 TrendSupport & resistance
Updated 9 months ago · None stated GitHub repository of Target Trend [BigBeluga]
1 stars

A chart-overlay indicator that detects pivot highs and lows and draws extended trendlines through the latest pairs, keeping only lines steeper than a minimum angle and limiting the total number. Resistance and support pivots can be labelled R and S. A table su

Indicator v5 Support & resistanceTrend
Updated 9 months ago · None stated GitHub repository of Ultimate Auto Trendlines

Wonder2

by turnupdigital
1 stars

An indicator on the price chart that builds smoothed average prices from a Heikin Ashi style open, high, low and close, then compares a smoothed close with a smoothed open. Green or red shading marks which is higher, and a buy or sell triangle appears when the

Indicator v5 Trend
Updated 1 year ago · None stated GitHub repository of Wonder2

Bars per Day

by ivansoft
1 stars

This indicator calculates and plots the total number of bars that occurred during the previous day. It tracks daily boundaries by detecting changes in the day of the month, continuously counting bars between transitions. Whenever a new day begins, it stores th

Indicator v6 Sessions & time
Updated 1 year ago · None stated GitHub repository of Bars per Day

[Z] Moving Average

by zhuzp98
1 stars

This indicator calculates and plots eight separate moving averages directly on the price chart. It provides seven Simple Moving Averages with default periods of 5, 10, 20, 30, 60, 120, and 200, alongside one 20-period Exponential Moving Average. Each moving av

Indicator v5 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of [Z] Moving Average

Higher Close and Lower Close

by fiji-solutions
1 stars

Higher Close and Lower Close is an overlay indicator that highlights simple single-candle price action signals. It monitors whether the current bar closes above the preceding bar's high or below the preceding bar's low. When a close exceeds the previous high,

Indicator v5 Candlestick patternsBreakout
Updated 2 years ago · None stated GitHub repository of Higher Close and Lower Close
1 stars

This indicator plots the 14-period simple moving average on the price chart. It defines functions that detect crossovers in the SMA line with price, RSI crossing 70 and 30 levels, and momentum line crossing zero. When these conditions occur, the script sends a

Indicator v4 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Alert with Multiple Indicators

Bjorgum MTF MA

by nvFede
1 stars

A Pine v4 overlay that draws up to three moving averages, each with its own type, length, optional timeframe and colours. Available types include EMA, HMA, WMA, DEMA, VWMA, VWAP, T3 and others. A length of zero disables an average. Lines and bars can be colour

Indicator v4 Moving averagesTrend
Updated 3 years ago · None stated GitHub repository of Bjorgum MTF MA

Grid Level

by JohnsonHsiao
1 stars

This indicator constructs a grid of upper and lower price levels centered around a Simple Moving Average baseline. It calculates ten upper bands and ten lower bands spaced evenly at step multipliers defined by the grid gap percentage. These bands are plotted d

Indicator v5 Support & resistanceMoving averages
Updated 3 years ago · None stated GitHub repository of Grid Level
1 stars

A separate-pane version of the Directional Movement Index. It plots the ADX line together with the plus and minus directional indicator lines, using the same Wilder style smoothing as the standard tool. The area between the plus and minus lines is filled with

Indicator v5 TrendOscillators & momentum
Updated 4 years ago · None stated GitHub repository of Directional Movement Index
947 stars

The Ahrens Moving Average calculates a smoothed trend-following line using a recursive formula that factors in both the immediate previous average and a historical average value. It plots directly on the main price chart as a continuous overlay. When color hig

Indicator v4 Moving averagesTrend
Updated 13 days ago · GPL-3.0 GitHub repository of Ahrens Moving Average
575 stars

This multi-timeframe indicator calculates and draws key technical levels directly on the main price chart. It projects pivot points, support and resistance lines, and previous high/low boundaries across three configurable timeframes such as daily, weekly, and

Indicator v5 Support & resistance Repaints
Updated 1 year ago · MPL-2.0 GitHub repository of Magnetic Zones - Multi Timeframe

ADSK Tracker

by Allen1212
303 stars

This script plots historical buy and sell transactions made by ARK Invest for Autodesk Inc (ADSK) directly on the price chart using labels anchored to specific timestamps. Each label indicates a buy or sell action along with the number of participating ARK ETF

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

Function - Forecast Linear

by ricardosantos79
261 stars

This script provides helper functions to calculate linear forecasts based on series data, mirroring standard spreadsheet forecast functionality. It converts price series into arrays over specified sample lengths and computes the predicted future value using si

Indicator v5
Updated 4 years ago · None stated GitHub repository of Function - Forecast Linear
228 stars

This indicator plots dynamic support and resistance levels on the price chart. It detects pivot highs and lows using the pivot length and tracks touches to build strength-based levels. Support and resistance zones appear as colored boxes while lines mark key l

Indicator v6 Support & resistanceBreakout
Updated 3 months ago · None stated GitHub repository of Dynamic Support & Resistance

Quantity Quality Commitment

by harryguiacorn
220 stars

The Quantity Quality Commitment indicator evaluates market momentum across three dimensions in a separate chart pane. It measures quantity by counting bullish and bearish candles over a lookback window, assesses quality by analyzing the ratio of candle bodies

Indicator v4 Oscillators & momentumCandlestick patterns
Updated 1 year ago · None stated GitHub repository of Quantity Quality Commitment
219 stars

This indicator marks swing highs and lows on the price chart. It treats a bar as a high or low when its high or low equals the extreme across a window of bars on both sides. Persistent variables store the latest confirmed high and low. When a new high appears,

Indicator v4 Support & resistance
Updated 5 years ago · None stated GitHub repository of 教學:尋找高低點5

EMA Strategy

by capissimo
114 stars

Calculates a central Exponential Moving Average with upper and lower channel bands offset by a fixed pip distance, inspired by LazyBear's Pip Collector script. Generates buy and sell signals when price interacts with the envelope bands, with an optional ATR vo

Indicator v4 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of EMA Strategy
99 stars

This indicator calculates and plots the bar average price directly on the main price chart. It evaluates the arithmetic mean of each bar's open, high, low, and close values, matching standard TA-Lib average price implementations. The script contains no user-co

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of AVGPRICE: Average Price

Example 2

by be-thomas
65 stars

This indicator calculates a normalized percentage oscillator based on the distance between the closing price and a 10-period simple moving average. It displays the oscillator line alongside a dotted zero reference line in a separate indicator pane. The space b

Indicator v5 Oscillators & momentumMoving averages
Updated 7 days ago · GPL-3.0 GitHub repository of Example 2

RSI [SystemAlpha]

by iamc1oud
56 stars

This indicator plots a standard Relative Strength Index (RSI) in a separate pane alongside customizable overbought and oversold threshold levels with shaded fills. It identifies pivot highs and lows on the oscillator to detect regular and hidden bullish and be

Indicator v4 Oscillators & momentumDivergence Repaints
Updated 2 months ago · None stated GitHub repository of RSI [SystemAlpha]

SuperTrend & Pivots

by dcaoyuan
55 stars

This overlay indicator plots a SuperTrend line on the price chart using a fixed ATR length of 10 and a factor of 3. When the trend direction is up it draws a green line and a light green fill toward the candle midpoint; when down it draws a red line and a ligh

Indicator v6 TrendVolatility & bands
Updated 6 months ago · Apache-2.0 GitHub repository of SuperTrend & Pivots
47 stars

This indicator overlays higher-timeframe candles, price traces, fair value gaps, and liquidity sweeps directly on the main price chart. It projects key high, low, open, and close levels using customizable trace lines to monitor structural reference points. As

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of Sweep · CISD · FVG · Key Levels
47 stars

This indicator calculates and plots the cumulative arithmetic mean of a selected price series from the very beginning of the chart history. It continuously sums non-null values and divides by the total count of valid bars seen so far. The user can adjust the i

Indicator v6 Moving averages
Updated 8 months ago · MIT GitHub repository of Cumulative Mean (CUMMEAN)

No Repaint - MACD

by dearvn
43 stars

This indicator plots a MACD oscillator in a separate pane. It calculates the source as the average of the previous ten open prices, then subtracts a slow moving average from a fast moving average. A signal line and a histogram follow. Fast, slow, and signal le

Indicator v5 Oscillators & momentumMoving averages
Updated 2 years ago · None stated GitHub repository of No Repaint - MACD

Bollinger Bands

by TWODS-CAPITAL
37 stars

This indicator calculates and plots standard Bollinger Bands directly on the price chart. It computes a central basis line using a simple moving average of the selected price source over a user-defined period. Upper and lower bands are constructed by adding an

Indicator v5 Volatility & bandsMoving averages
Updated 3 years ago · MIT GitHub repository of Bollinger Bands

Zen ATH Bands

by Zen-Tim
29 stars

Zen ATH Bands calculates the all-time high or current price of an asset and projects horizontal reference lines representing percentage pullback levels. It draws up to seven user-defined drawdown thresholds below the baseline, complete with custom price and pe

Indicator v5 Support & resistance
Updated 2 weeks ago · MIT GitHub repository of Zen ATH Bands

Stochtaker

by benso87
24 stars

Stochtaker combines a Stochastic oscillator and Bollinger Band Width Percentile (BBWP) into a single separate pane indicator. It calculates BBWP across a configurable lookback period and length, displaying volatility conditions using a dynamic color spectrum o

Indicator v5 Oscillators & momentumVolatility & bands
Updated 4 years ago · MPL-2.0 GitHub repository of Stochtaker

WE:TDI/STOCH

by davro
10 stars

This indicator plots three stochastic oscillators and a Traders Dynamic Index in a separate pane. Stochastic periods of 15, 32 and 50 each draw a K and D line that turns green below 18 and red above 82. A background band turns green when all six lines are over

Indicator v4 Oscillators & momentum
Updated 5 years ago · None stated GitHub repository of WE:TDI/STOCH

Commodity Heat Reversal plots score-based mean-reversion reversal markers on the price chart for commodity futures, aimed at the four-hour timeframe. It builds separate long and short heat scores from ATR distance to a mean moving average, ATR expansion, RSI e

Indicator v6 Mean reversionVolatility & bands
Updated 4 days ago · MIT GitHub repository of Commodity Heat Reversal [WavesUnchained]

This indicator automatically maps the current chart timeframe to an aligned higher timeframe to detect and draw ICT-style Fair Value Gaps (FVGs). It identifies bullish and bearish price imbalance zones and displays them as colored overlay boxes directly on the

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · MIT GitHub repository of TehThomas - Aligned Timeframe Fair Value Gaps

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