Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 59)

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

1 stars

This indicator monitors and displays signals across up to five selectable symbols using an on-chart table. It evaluates price relative to the midpoints of highest highs and lowest lows over three lengths derived from a configurable base length. Bullish signals

Indicator v5 Screeners & dashboardsTrend
Updated 1 year ago · MIT GitHub repository of Kurutoga Screener Template

Trading Sessions

by yagyesh-bobde
1 stars

This indicator highlights three configurable trading sessions on the price chart. It tests whether each bar falls inside a session window using that session's own time zone, then paints a translucent background: blue for the first session, yellow for the secon

Indicator v5 Sessions & time
Updated 1 year ago · None stated GitHub repository of Trading Sessions
1 stars

A Thai-language indicator that builds a portfolio summary from user-entered holdings and shows it as tables and a small chart on the price chart. It compares portfolio return against a benchmark symbol, groups results by period such as quarter, and supports an

Indicator v6 Screeners & dashboards
Updated 1 year ago · None stated GitHub repository of Portfolio Performance Summary

A large overlay indicator that merges several tools from the same repository: forex session boxes with kill zones, a market structure oscillator, zero-lag trend levels, a volumatic VIDYA average, an adaptive Money Flow Index, an ADX histogram, a dual-speed TSI

Indicator v5 Sessions & timeSMC / ICT / price action

LTF History

by ivansoft
1 stars

A developer test indicator in a separate pane that checks how much lower timeframe and higher timeframe history is available on the current chart. It requests volume times mid price from the chart timeframe and from a three-minute lower timeframe, then places

Indicator v6
Updated 1 year ago · None stated GitHub repository of LTF History

This indicator uses a two-dimensional k-nearest-neighbours model on scaled oscillator values to classify the current bar as buy, sell, or hold from similar historical states. Users select RSI, ROC, CCI, momentum, or all of them, and set the neighbour count, fa

Indicator v4 AI / machine learningOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Machine Learning: kNN-based Strategy (update)

Hammers & Shooting Stars

by fiji-solutions
1 stars

This indicator identifies single-bar candlestick patterns, specifically hammer and shooting star formations. It uses a configurable Fibonacci threshold to determine if the candle body rests in the upper or lower proportion of the total price range. An Average

Indicator v5 Candlestick patternsVolatility & bands
Updated 2 years ago · None stated GitHub repository of Hammers & Shooting Stars

Portfolio Metrics

by amico1234
1 stars

Portfolio Metrics calculates return statistics for the chart symbol against a selectable equity index. It plots alpha, beta, correlation, r-squared, standard deviation, variance, a drawdown measure, and a gain measure in a separate pane. Users choose the bench

Indicator v4 Repaints
Updated 2 years ago · None stated GitHub repository of Portfolio Metrics

Multiple Alerts

by RobACurtis
1 stars

A learning example that sends alerts for three user-selected symbols from one script, avoiding a separate alert per symbol. Each symbol is checked with a 50 and 200 period moving average cross function through request.security, and an alert fires once per bar

Indicator v4 Moving averagesScreeners & dashboards
Updated 2 years ago · None stated GitHub repository of Multiple Alerts

Moving Average Extension

by krosenfeld7
1 stars

This indicator calculates a multi-timeframe moving average using Simple, Exponential, Hull, Volume Weighted, or Weighted moving average types. It computes the logarithmic distance between the asset price and the selected moving average to determine extension.

Indicator v4 Moving averagesTrend Repaints
Updated 3 years ago · Apache-2.0 GitHub repository of Moving Average Extension

Sector AD

by nvFede
1 stars

A Pine v4 indicator in a separate pane that works as a sector advance-decline tally. It reads closing prices for eleven US sector ETFs and the SPY fund, then counts how many sectors closed above their previous close and how many did not. It has no input settin

Indicator v4 Screeners & dashboards
Updated 3 years ago · None stated GitHub repository of Sector AD

ATR/Close Ratio

by JohnsonHsiao
1 stars

This indicator calculates the ratio of the Average True Range (ATR) to the closing price, expressed as a percentage. It plots the resulting percentage line in a separate pane along with a customizable horizontal line representing a volatility threshold. Trader

Indicator v5 Volatility & bands
Updated 3 years ago · None stated GitHub repository of ATR/Close Ratio

Hotch Session

by rajatjpatel
1 stars

A session overlay that shades the chart background for the Asian, European and American trading sessions, plus an optional custom session. Start and end hours and minutes are editable for each, using UTC, and individual weekdays can be switched on or off, with

Indicator v5 Sessions & time
Updated 4 years ago · None stated GitHub repository of Hotch Session
1 stars

The High Low MA Band Indicator calculates moving averages separately on high and low prices to create a dynamic price channel overlaid directly on the chart. Users can select between Exponential, Weighted, Volume-Weighted, or Hull Moving Average calculation ty

Indicator v5 TrendMoving averages
Updated 4 years ago · None stated GitHub repository of High Low MA Band Indicator

Ichimoku-combo

by DT021
1 stars

Ichimoku-combo plots a modified Ichimoku Kinko Hyo system directly on the main price chart. It calculates the conversion line, base line, lagging span, and leading spans 1 and 2 using Donchian midpoints. The script features an adjusted base line period of 21 r

Indicator v4 TrendSupport & resistance
Updated 6 years ago · GPL-3.0 GitHub repository of Ichimoku-combo

On Balance Volume

by everget
947 stars

This indicator plots TradingView's On Balance Volume in a separate pane. It optionally overlays an EMA or SMA signal line and colors both lines by whether OBV is above or below that signal. Users can change the smoothing type and length, hide the signal, fill

Indicator v6 Volume
Updated 13 days ago · GPL-3.0 GitHub repository of On Balance Volume

ICT Equal Highs and Lows

by ArunKBhaskar
575 stars

This overlay indicator finds pivot highs and lows on the price chart and compares the last two highs and the last two lows. When the percentage difference between a pair is below the Equal HL threshold, it treats them as equal levels and draws a box. Left and

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Equal Highs and Lows
318 stars

This indicator plots three moving averages on the price chart alongside colored fills between the lines to visualize trend structure. Internally, it calculates a Stochastic RSI oscillator to detect oversold reversals. When the Stochastic %K line rises above 10

Indicator v5 Moving averagesOscillators & momentum
Updated 2 months ago · MIT GitHub repository of TVT 3X Scale In Out

4755 Tracker

by Allen1212
303 stars

Plots historical buy and sell transactions made by ARK Invest funds directly on the price chart. The indicator places visual labels above or below price bars on specific timestamps corresponding to trade execution dates, indicating transaction direction and th

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

AI Trend

by dearvn
257 stars

AI Trend is an indicator that plots pivot points, trend lines, and support and resistance levels directly on the price chart. It marks high and low pivots based on user-defined length, draws trend lines that check for violations at specified points, and identi

Indicator v5 TrendSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of AI Trend

MACD-V

by harryguiacorn
220 stars

MACD-V is a volatility-normalized momentum indicator based on research by Alex Spiroglou. It calculates the standard MACD histogram and normalizes it by dividing by the Average True Range (ATR). Plotted in a separate pane as a colored histogram, it includes us

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of MACD-V
219 stars

This indicator identifies local swing highs and swing lows to construct a Zig Zag pattern on the main price chart. It evaluates pivot points based on a customizable number of surrounding left and right bars. Using persistent variables, the script tracks previo

Indicator v4 Support & resistanceTrend Repaints
Updated 5 years ago · None stated GitHub repository of Teaching: Finding Highs and Lows 6

This indicator implements an artificial neural network using a single-layer perceptron model trained from scratch directly in Pine Script. It processes price features combined with a custom directional movement index across a rolling sample window to generate

Indicator v5 AI / machine learningTrend
Updated 1 year ago · None stated GitHub repository of Machine Learning: Perceptron-Based Strategy 5 (v.2)
99 stars

The Augmented Dickey-Fuller indicator calculates statistical stationarity and tests for unit roots in price series over a rolling window. It performs ordinary least squares regression on differenced historical price data to compute a t-statistic and an estimat

Indicator v6 Mean reversionTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of ADF - Augmented Dickey-Fuller Test

Moon Dev GEX Arrows

by moondevonyt
92 stars

This overlay indicator plots option strike walls and an optional session VWAP on the price chart for SPY or ES. It spaces major strikes by the selected instrument, draws a set number of strikes on each side, and marks wall-trap and sweep events after a cooldow

Indicator v5 Support & resistanceSessions & time
Updated 2 months ago · Custom licence GitHub repository of Moon Dev GEX Arrows

CCI DC

by be-thomas
65 stars

This indicator plots the Commodity Channel Index in a separate pane and surrounds it with a Donchian channel whose lookback length changes with volatility. It measures volatility as a ratio of short and long ATR values, then ranks that ratio and shortens or le

Indicator v5 Oscillators & momentumVolatility & bands
Updated 7 days ago · GPL-3.0 GitHub repository of CCI DC
56 stars

This indicator marks forex trading sessions and opening ranges on the price chart. It can draw Sydney, Tokyo, Frankfurt, London, and New York session boxes or five- and fifteen-minute opening ranges, plus an optional opening channel and a day-open range. Day r

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of Day Trading Booster by DGT

Ichimoku Cloud

by dcaoyuan
55 stars

The Ichimoku Cloud indicator plots key components of the traditional Ichimoku Kinko Hyo system directly on the price chart. It calculates the Conversion Line over 9 periods and the Base Line over 26 periods using Donchian midpoints. It projects Leading Span A

Indicator v6 TrendSupport & resistance
Updated 6 months ago · Apache-2.0 GitHub repository of Ichimoku Cloud
53 stars

Fibonacci Auto Buy/Sell Signals calculates dynamic Fibonacci retracement levels (0.236, 0.382, 0.5, 0.618) and extension levels (1.618, 2.618) based on 50-period swing highs and lows. It plots dotted retracement and extension lines directly on the price chart.

Indicator v6 Support & resistance
Updated 2 months ago · MPL-2.0 GitHub repository of Fibonacci Auto Buy/Sell Signals

ZigZag

by milocaetano
48 stars

This Pine Script indicator identifies market structure pivots and plots a ZigZag line on the price chart. It calculates high and low pivot points using built-in pivot functions based on a configurable pivot strength input. When a pivot high or low is confirmed

Indicator v5 Support & resistanceTrend
Updated 4 days ago · MIT GitHub repository of ZigZag

This indicator plots the initial balance high, low, midpoint and optional Fibonacci levels for a user-defined session on the price chart. It tracks a separate break session and includes settings groups for extension lines, percentile lines and tables. Users ca

Indicator v6 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of Initial Balance & Extensions with Z-Scores

The AFIRMA indicator calculates a weighted moving average via FIR filter coefficients from Hanning, Hamming, Blackman or Blackman-Harris windows. It optionally applies least-squares cubic polynomial fitting for autoregressive prediction. The script plots the A

Indicator v6 Moving averages
Updated 8 months ago · MIT GitHub repository of Autoregressive FIR Moving Average (AFIRMA)
43 stars

This indicator evaluates market momentum and risk by calculating trend metrics and volatility stats, displaying them in an on-chart table pane. It measures short-term and long-term trend strength via two MACD configurations built on three customizable EMA leng

Indicator v5 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Trend Strength & Volatility

This indicator plots a relative strength index in a separate pane. It calculates RSI from the average of the previous ten opens rather than the current bar, so that source does not change during the live candle. A moving average of the RSI is plotted and can b

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

Arnaud Legoux Moving Average

by TWODS-CAPITAL
37 stars

This indicator plots the Arnaud Legoux Moving Average of the closing price on the price chart. It uses TradingView's built-in ALMA calculation with a user-set window size, offset, and sigma. Those three inputs change how much history the average includes and h

Indicator v5 Moving averages
Updated 3 years ago · MIT GitHub repository of Arnaud Legoux Moving Average

RSI + CCI

by thanhnguyennguyen
33 stars

Calculates and plots both the Relative Strength Index (RSI) and the Commodity Channel Index (CCI) together inside a single separate pane. The indicator tracks maximum and minimum RSI values over a customizable lookback window to evaluate bullish and bearish mo

Indicator v4 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of RSI + CCI
29 stars

The Zen Consecutive Bar Streak indicator calculates and tracks consecutive directional candle streaks directly on the main price chart. It determines whether each bar is bullish, bearish, or neutral based on its close relative to its open. When two or more con

Indicator v6 Candlestick patternsTrend
Updated 2 weeks ago · MIT GitHub repository of Zen Consecutive Bar Streak
29 stars

This overlay indicator builds trend ranges from a Donchian midpoint. It takes the highest high and lowest low over a user length, averages them, and holds that basis until the midpoint changes. When the basis updates, it sets a range from the close standard de

Indicator v5 TrendVolatility & bands
Updated 11 months ago · Custom licence GitHub repository of Donchian Trend Ranges [AlgoAlpha]

Engulfing Candles - VWMA

by tistaharahap
25 stars

This overlay indicator marks bullish and bearish engulfing candles with teal and orange arrows on the price chart. An optional volume-weighted moving average can filter those marks: a bullish signal requires the close at or below the primary VWMA, and a bearis

Indicator v4 Candlestick patternsMoving averages
Updated 6 years ago · None stated GitHub repository of Engulfing Candles - VWMA
24 stars

This indicator plots Bollinger Bands on the price chart alongside a baseline moving average to identify trend-aligned swing setups. It calculates trend bias by comparing the Bollinger Bands basis to a customizable moving average, such as a 200 EMA. Trade signa

Indicator v5 Volatility & bandsOscillators & momentum
Updated 4 years ago · MPL-2.0 GitHub repository of Bollinger Band Swing

Test Plot Parsing

by jpantsjoha
23 stars

Test Plot Parsing is a minimal test script designed to verify scope detection and syntax parsing in Pine Script v6 development environments. It plots basic price values, including close, open, and high series, in a separate indicator pane. The script intention

Indicator v6
Updated 4 weeks ago · Custom licence GitHub repository of Test Plot Parsing
20 stars

This indicator plots John Ehlers' simple decycler on the price chart. It applies a high-pass filter to the chosen source, subtracts that component from the source, and draws the remaining low-frequency line. The line is green when the decycler rises for two co

Indicator v5 Trend
Updated 1 year ago · None stated GitHub repository of John F. Ehlers - Simple Decycler

HTF Statistical Zones

by samuelharting
18 stars

HTF Statistical Zones plots historical percentile bands around the 18:00 New York day open, plus session boxes, opening-range lines, and projected targets on the price chart. Upper and lower day zones use selectable inner and outer percentiles, with optional p

Indicator v6 Support & resistanceSessions & time Repaints
Updated 2 weeks ago · MPL-2.0 GitHub repository of HTF Statistical Zones

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