Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 33)

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

Higher TF BBands

by PythonForForex
64 stars

This indicator calculates Bollinger Bands from the close, using a chosen length and standard-deviation multiplier, then reads the middle, upper, and lower values from a user-selected timeframe. It plots those three bands on the price chart. The timeframe input

Indicator v5 Volatility & bands
Updated 4 years ago · None stated GitHub repository of Higher TF BBands

Trading Sessions

by iamc1oud
56 stars

Trading Sessions is an overlay indicator that highlights major market trading sessions such as Tokyo, London, and New York directly on the price chart. It draws customizable session boxes along with optional open and close price lines, average session prices,

Indicator v6 Sessions & time
Updated 2 months ago · None stated GitHub repository of Trading Sessions

Bgcolor Example

by dcaoyuan
55 stars

Bgcolor Example is a minimal demonstration indicator written in Pine Script v6 that visualises bar polarity across the price chart. It checks whether the current close is lower than the open and dynamically tints the chart background red for bearish bars or gr

Indicator v6 Candlestick patterns
Updated 6 months ago · Apache-2.0 GitHub repository of Bgcolor Example
53 stars

This indicator analyzes historical candle direction and price range over a configurable lookback window to gauge market trend. It categorizes trend direction using candle count, price range sum, or both. Signals are filtered using a Simple Moving Average to en

Indicator v6 TrendOscillators & momentum
Updated 2 months ago · MPL-2.0 GitHub repository of Candle Counter + MA + RSI + Mode

EMA

by milocaetano
48 stars

This script calculates and plots an Exponential Moving Average (EMA) directly on the price chart. It uses Pine Script's built-in moving average calculation over a customizable period length and input price source, defaulting to a 9-period close price. The resu

Indicator v5 Moving averagesTrend
Updated 3 days ago · MIT GitHub repository of EMA
47 stars

This indicator calculates and plots Acceleration Bands directly on the main price chart. It computes simple moving averages of high, low, and close prices using circular buffers. The middle line displays the close moving average, while upper and lower envelope

Indicator v6 Volatility & bandsMoving averages
Updated 8 months ago · MIT GitHub repository of Acceleration Bands (ACCBANDS)

Daily Floor Pivots

by TamaraKGreen
46 stars

The Daily Floor Pivots indicator calculates standard daily pivot points alongside support and resistance levels up to five tiers. In addition to standard pivot lines, it projects Fibonacci Golden Zone channels between adjacent pivot levels such as PP to R1 or

Indicator v6 Support & resistance Repaints
Updated 8 weeks ago · None stated GitHub repository of Daily Floor Pivots
43 stars

This indicator measures how extreme current Average True Range is versus recent history. It calculates ATR, converts it to a percentile rank over a lookback window, and smooths that rank with an EMA. Both series plot in a separate pane, with a color gradient f

Indicator v5 Volatility & bands
Updated 1 year ago · None stated GitHub repository of ATR Percentile Rank

BTC Multiples

by readysetcryptocodes
43 stars

BTC Multiples calculates and displays Bitcoin macro valuation metrics in a separate pane, including the Mayer Multiple, Stock-to-Flow Multiple, Difficulty Multiple, and Puell Multiple. Each valuation multiple features configurable overvalued and undervalued th

Indicator v4 Moving averagesSupport & resistance
Updated 2 years ago · None stated GitHub repository of BTC Multiples

Natal & Transit Planetary Aspect Table

by blueprintresearch-dev
42 stars

Natal & Transit Planetary Aspect Table displays an on-screen table comparing natal planetary positions with live or historical transit positions based on financial astrology principles. It calculates positions using geocentric or heliocentric coordinates and h

Indicator v6 Screeners & dashboards
Updated 2 weeks ago · None stated GitHub repository of Natal & Transit Planetary Aspect Table

COT Net Positions

by ChartsLector
41 stars

This indicator fetches and plots weekly Commitment of Traders (COT) net position data in a separate pane using TradingView's official COT library. It displays positioning breakdowns for selected futures markets under either Legacy or Financial (TFF) reporting

Indicator v6 Volume
Updated 4 days ago · None stated GitHub repository of COT Net Positions

Macro VN Indices Research

by Thanhtran-165
38 stars

This indicator maps a composite macro risk score onto Vietnamese indices and sectors in a separate pane. It combines liquidity stress, curve shape, the international yield spread, and the ten-year versus policy-rate spread, then groups regimes with hysteresis.

Indicator v6 Screeners & dashboards
Updated 5 weeks ago · None stated GitHub repository of Macro VN Indices Research

Abandoned Baby - Bullish

by TWODS-CAPITAL
37 stars

This indicator identifies the Bullish Abandoned Baby candlestick pattern directly on the price chart. The three-bar reversal pattern consists of a strong down candle during an established downtrend, followed by a lower gapping doji candle, and completed by an

Indicator v5 Candlestick patternsTrend
Updated 3 years ago · MIT GitHub repository of Abandoned Baby - Bullish

BB + MA + RSI

by thanhnguyennguyen
33 stars

This overlay indicator plots Bollinger Bands around a simple moving average, three exponential moving averages, and RSI-based markers on the price chart. Triangles mark RSI below the oversold level or above the overbought level, and arrows mark RSI crossing th

Indicator v4 Moving averagesVolatility & bands
Updated 1 year ago · None stated GitHub repository of BB + MA + RSI
33 stars

This indicator marks confirmed swing highs and swing lows on the price chart. It uses TradingView pivot high and pivot low functions with separate strength settings for highs and lows. When a pivot is confirmed, it draws a label above or below the bar showing

Indicator v4 Support & resistance
Updated 5 years ago · Unlicense GitHub repository of [Pirate] Highs and Lows

Bollinger Bands

by modster
32 stars

This indicator plots a Bollinger-style envelope on the price chart. It calculates a simple moving average of the selected source and a standard-deviation band width set by the multiplier. It draws the basis, two lines offset by a small fraction of the basis as

Indicator v4 Volatility & bandsMoving averages
Updated 3 years ago · None stated GitHub repository of Bollinger Bands

Hedge Scalp - Open Profit/Loss

by nikita-doronin
30 stars

This indicator tracks and plots open profit and loss in a separate pane for a custom crypto hedge scalping strategy. It calculates an exponential moving average and establishes four long grid levels and one hedged short grid level at user-defined percentage di

Indicator v5 Moving averagesScalping
Updated 2 years ago · Custom licence GitHub repository of Hedge Scalp - Open Profit/Loss

Zen ABR Range Bands

by Zen-Tim
29 stars

The Zen ABR Range Bands indicator calculates an 8-bar average range from high-low differences and an exponential moving average of close prices. It plots the EMA on the price chart along with optional bands at multiples of the ABR (1x, 2x, 3x, 4x) centered on

Indicator v6 Moving averagesVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Zen ABR Range Bands
29 stars

This indicator calculates the Amazing Oscillator using 5-period and 34-period simple moving averages of the median price, then applies an RSI-style relative strength formula over a configurable smoothing period. The resulting oscillator fluctuates between -50

Indicator v5 Oscillators & momentumMoving averages
Updated 11 months ago · Custom licence GitHub repository of Amazing Oscillator [Algoalpha]
26 stars

This indicator plots the instrument close in a separate pane. The source imports a user library as Lib but never calls it, so the import does not change the plotted series. There are no inputs, alerts, or trade signals, and it does not define entries, exits, s

Indicator v6
Updated 2 months ago · AGPL-3.0 GitHub repository of Feature Matrix - library import

Supply & Demand

by stonkpunk
26 stars

Supply & Demand marks pivot highs and pivot lows on the price chart and draws translucent demand and supply boxes when a three-bar price imbalance appears between those pivots. Demand zones form after an upward imbalance when the stored pivot high precedes the

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

Smart Money Concepts [LuxAlgo]

by GeneralTradingSarl
24 stars

Calculates and plots Smart Money Concepts elements directly on the price chart. It identifies internal and swing market structure shifts, including Break of Structure (BOS) and Change of Character (CHoCH). The indicator plots bullish and bearish order blocks,

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 12 days ago · Custom licence GitHub repository of Smart Money Concepts [LuxAlgo]
23 stars

This indicator builds a global liquidity composite in a separate pane. It requests monthly M2 series for the United States, euro area, China and Japan, normalizes each against a simple moving average, and combines them with user weights. Settings choose whethe

Indicator v6
Updated 4 weeks ago · Custom licence GitHub repository of Global Liquidity Composite

SARs

by pacificbay
22 stars

This indicator implements J. Welles Wilder's Parabolic SAR (Stop and Reverse) methodology directly on the price chart. It calculates the trailing SAR level based on user-defined initial, increment, and maximum Acceleration Factors. In addition to plotting the

Indicator v4 Trend
Updated 6 years ago · MIT GitHub repository of SARs

Imports

by ferranbt
21 stars

This indicator demonstrates a library import. It imports a library named mylib under the alias lib, calls the function add with the constants one and two, and plots the returned value. It does not read price, volume, or time, and it does not produce trading si

Indicator v6
Updated 7 weeks ago · MPL-2.0 GitHub repository of Imports
20 stars

This indicator combines RSI, Awesome Oscillator (AO), and Stochastic readings to calculate divergence and momentum signals. It identifies regular and hidden divergences while analyzing price pivots, momentum thresholds, and AO filters. The script draws in a se

Indicator v6 Oscillators & momentumDivergence
Updated 5 days ago · MIT GitHub repository of zaBor RSI+AO+Stoch indicator
20 stars

This indicator implements John F. Ehlers adaptive stochastic and is declared for a separate pane. It high-pass filters the chosen source to keep shorter cycles, smooths that series with a super smoother, and measures Pearson correlation over lags from zero to

Indicator v5 Oscillators & momentum
Updated 1 year ago · None stated GitHub repository of Adaptive Stochastic - John F. Ehlers

This indicator detects Smart Money Technique (SMT) intermarket divergences across multiple timeframes, ranging from one minute to one week. It compares the current chart symbol against up to two benchmark symbols to identify non-confirmations in swing highs an

Indicator v6 SMC / ICT / price actionDivergence
Updated 2 weeks ago · MPL-2.0 GitHub repository of Bandz Multi-Timeframe SMT + Timecycle Scanner

Harami Pattern Finder

by shibisuriya
18 stars

The Harami Pattern Finder indicator identifies two-bar bullish and bearish Harami candlestick patterns directly on the main price chart. It calculates pattern validity based on the open and close price relationships between consecutive bars. Optional input set

Indicator v4 Candlestick patterns
Updated 4 years ago · None stated GitHub repository of Harami Pattern Finder

PHASE 404 v2

by Musyimi97
16 stars

PHASE 404 v2 is a Smart Money Concepts (SMC) indicator that plots structure directly on the main price chart. It identifies Buy Side Liquidity (BSL) and Sell Side Liquidity (SSL) levels, highlights Market Structure Shifts (MSS) after liquidity sweeps, and mark

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · MIT GitHub repository of PHASE 404 v2

P/E, P/BV, EPS

by msongkiet
16 stars

Calculates and plots key financial metrics including the Price-to-Earnings ratio, Price-to-Book Value ratio, and Earnings Per Share in a separate pane. The script retrieves financial data through standard financial requests based on customizable reporting peri

Indicator v5
Updated 2 years ago · None stated GitHub repository of P/E, P/BV, EPS

Alighten Pattern A

by alighten-dev
14 stars

Alighten Pattern A is an overlay indicator that calculates market structure pivots and identifies price patterns directly on the main price chart. It plots a ZigZag line to track price highs and lows, rendering horizontal dashed levels and directional signal m

Indicator v6 Support & resistanceTrend Repaints
Updated 2 weeks ago · None stated GitHub repository of Alighten Pattern A

Index Intraday Analyst

by chris-c-thomas
14 stars

Index Intraday Analyst overlays CBOE cash indices such as SPX, NDX, RUT, and DJX. It plots a multi-EMA ribbon, a session-anchored TWAP with standard-deviation bands, and session levels such as prior-day high, low, and close, the opening range, and the high and

Indicator v6 TrendOscillators & momentum
Updated 6 months ago · MIT GitHub repository of Index Intraday Analyst

Scalping Level PRO

by stupenkov
14 stars

Scalping Level PRO identifies key local and global horizontal support and resistance levels across cryptocurrency price charts. It draws level lines based on customizable time periods, calculates Normalized Average True Range (NATR) for volatility assessment,

Indicator v5 Support & resistanceVolatility & bands
Updated 3 years ago · None stated GitHub repository of Scalping Level PRO

CISD Detector

by dbruce1990
12 stars

This indicator detects Change in State of Delivery levels on the price chart. It tracks swing highs and lows, looks for a swing sweep, collects the delivery candles between those swings, and marks that sequence's opening price. A level is drawn only after a cl

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of CISD Detector

我的腳本

by blockplusim
12 stars

This script plots two simple moving averages (SMA) directly on the main price chart. It calculates a short-term 7-period SMA and a medium-term 20-period SMA based on bar closing prices. The 7-period SMA is displayed in red, while the 20-period SMA is rendered

Indicator v5 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of 我的腳本

NFI v6

by koradiyakaushal
12 stars

This Pine v4 study ports early NostalgiaForInfinity V6 conditions onto the price chart. It computes two Bollinger setups, several EMAs and SMAs, RSI, MFI, a percent SMA spread labeled EWO, a 14-period choppiness value, and short and longer volume medians. Fixe

Indicator v4 Moving averagesVolatility & bands
Updated 5 years ago · MIT GitHub repository of NFI v6

This indicator identifies and visualizes key support and resistance heatmap zones directly on the price chart. Using closed one-hour price data, it evaluates multi-scale pivots, liquidity clusters, relative volume, and round-number resonances to score structur

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 7 weeks ago · MIT GitHub repository of 加密货币1小时关键价位热力图 V2

5 EMAs

by hirawatt
11 stars

5 EMAs is an overlay indicator that fetches and plots high and low price levels from a selected higher timeframe directly on the main price chart. Although the inputs configure multiple timeframe resolutions, the script calculates and draws the upper and lower

Indicator v4 Support & resistance Repaints
Updated 2 years ago · MIT GitHub repository of 5 EMAs

BTE Acc AO

by f-cksociety
11 stars

This script provides an indicator-based backtesting engine framework built around Accelerator Oscillator and Awesome Oscillator logic. It simulates strategy executions directly on the price chart by plotting entry levels, take profit targets, trade markers, an

Indicator v5 Oscillators & momentumSupport & resistance
Updated 4 years ago · MPL-2.0 GitHub repository of BTE Acc AO
10 stars

This indicator plots three sets of multi-timeframe moving averages on the price chart to assist with top-down macro trend analysis. It renders two configurable fast and slow moving averages on a 610-minute timeframe, a 21-period weekly ribbon comparing EMA and

Indicator v4 Moving averagesTrend Repaints
Updated 5 years ago · None stated GitHub repository of Magicks (e)mas Indicator

Chad's Alert SMAs

by TPCharts
10 stars

Chad's Alert SMAs is an overlay indicator that calculates and plots two Exponential Moving Averages on the main price chart despite its naming. It evaluates short-term and long-term moving averages to detect crossovers and triggers alert conditions when the li

Indicator v4 Moving averagesTrend
Updated 5 years ago · GPL-3.0 GitHub repository of Chad's Alert SMAs

Adaptive Fair Value Cloud calculates a volatility-adaptive fair value channel around a selectable centerline, such as KAMA, EMA, linear regression, or VWMA. It blends ATR and mean deviation with volatility percentiles and trend sensors, including ADX, Efficien

Indicator v6 Volatility & bandsTrend
Updated 3 days ago · MIT GitHub repository of Adaptive Fair Value Cloud [WavesUnchained]

Nexural OrderFlow Matrix

by JasonTeixeira
9 stars

Nexural OrderFlow Matrix is an order flow visualization tool that plots a detailed heatmap table and stacked imbalance bars in a separate pane. It calculates volume metrics using lower timeframe volume delta data, displaying per-candle metrics such as Delta, D

Indicator v6 VolumeScreeners & dashboards
Updated 2 weeks ago · Custom licence GitHub repository of Nexural OrderFlow Matrix

Asset Drift Model

by MeridianAlgo
9 stars

Asset Drift Model is a separate-pane statistical indicator that collects non-overlapping logarithmic returns over a fixed 60-bar horizon and summarizes them with sample statistics. It classifies drift using t-critical and z-score thresholds plus a minimum econ

Indicator v6 TrendScreeners & dashboards
Updated 4 months ago · MIT GitHub repository of Asset Drift Model
9 stars

Volume SuperTrend AI (Expo) combines SuperTrend trend filtering with a k-nearest neighbors machine learning classification algorithm. It computes a SuperTrend using customizable moving average types, including simple, exponential, weighted, smoothed, or volume

Indicator v5 TrendAI / machine learning
Updated 3 years ago · None stated GitHub repository of Volume SuperTrend AI (Expo)

This indicator plots a Stochastic Momentum Index Ergodic oscillator in a separate pane. It measures close relative to the lookback range, smooths that value twice, and draws an SMI line plus a signal line. Users choose the moving-average type for each line, in

Indicator v4 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Stochastic Momentum Index (SMI) Ergodic [andre_007]

AG DETECTOR

by Anderson-ALGO
9 stars

AG Detector is an overlay indicator that calculates multi-timeframe pivot levels and projects them onto the price chart. It supports multiple pivot calculation formulas including Traditional, Camarilla, Fibonacci, and Standard Deviation based on user-selected

Indicator v4 Support & resistance Repaints
Updated 5 years ago · None stated GitHub repository of AG DETECTOR

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