Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 44)

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

An overlay that signals long and short setups when a Money Flow Index crosses adaptive levels found by k-means clustering and an Andean oscillator crosses its smoothed signal within a short confirmation window. A 200-period EMA trend filter and an ATR percenta

Indicator v5 Oscillators & momentumAI / machine learning
Updated 7 weeks ago · None stated GitHub repository of AI MFI + Andean Floating

This overlay indicator tracks the high and low of four SMC/ICT killzones in America/New_York time: the Asian range, London open, New York AM, and London close. It draws each session’s high and low on the price chart with separate colors and line widths, and us

Indicator v5 Sessions & timeSupport & resistance
Updated 7 weeks ago · MPL-2.0 GitHub repository of Session Highs and Lows Indicator (SMC Sessions, DST-safe)
1 stars

An indicator in a separate pane that scores market compression from 0 to 100 by combining percentile ranks of ATR, Bollinger Band width and Donchian width with narrow-range bar patterns and quiet volume, each with an adjustable weight. It then checks whether a

Indicator v5 Volatility & bandsBreakout
Updated 7 weeks ago · MPL-2.0 GitHub repository of CEP v2 Compression/Expansion Score

Ultimate 5 EMA Quant Engine

by Pr-ashant-pawar
1 stars

A Pine v6 indicator that plots a 5-period EMA and runs a multi-step short-setup tracker on the price chart using data from a chosen timeframe. Signals are filtered by volume against its average and an RSI threshold, then graded A to D. Each grade has its own t

Indicator v6 TrendBreakout
Updated 7 weeks ago · None stated GitHub repository of Ultimate 5 EMA Quant Engine

Moving Average (EMA)

by DEVfancybear
1 stars

This script calculates and plots an Exponential Moving Average (EMA) based on the closing price directly on the main price chart. It functions as a classic trend-following reference, smoothing price action to help identify direction or dynamic support and resi

Indicator v6 TrendMoving averages
Updated 7 weeks ago · MIT GitHub repository of Moving Average (EMA)
1 stars

Bitmoon System indicator plots mirror levels, symmetric candles, and detects fractal patterns on the price chart. It calculates central mirror, P1, and P2 mirror levels, plus symmetric candle levels based on user inputs for periods and times. Up and down fract

Indicator v6 Support & resistanceCandlestick patterns
Updated 7 weeks ago · None stated GitHub repository of Bitmoon System Morindok
1 stars

This lightweight indicator template calculates a simple moving average based on a user-selected price source and lookback length. It plots the calculated moving average line, dynamically coloring it green when the price is above the moving average and red when

Indicator v6 Moving averagesTrend
Updated 8 weeks ago · MPL-2.0 GitHub repository of Lightweight Indicator Template

Stock Stats

by peterdmv
1 stars

Stock Stats displays a customizable single-row chip dashboard directly on the price chart. It presents key fundamental and technical metrics including market capitalization with size categorization, shares float, ADR%, ATR, low-of-day distance, 52-week high, V

Indicator v6 Screeners & dashboardsVolatility & bands
Updated 2 months ago · MPL-2.0 GitHub repository of Stock Stats

Bullish Candle Demo

by Alaamo7
1 stars

Bullish Candle Demo is an introductory educational indicator designed for Pine Script v6 beginners. It evaluates whether the close price of the current bar is higher than its open price to identify bullish candlestick bars. When a bullish candle occurs, the in

Indicator v6 Candlestick patterns
Updated 2 months ago · Custom licence GitHub repository of Bullish Candle Demo

Directional EMA For Loop

by vedkanani123
1 stars

A separate-pane oscillator that smooths price with a selectable moving average, then scores its direction by looping over a range of lookbacks from a start to an end value. The score is compared with long and short thresholds to mark uptrend and downtrend stat

Indicator v6 Oscillators & momentumDivergence
Updated 2 months ago · None stated GitHub repository of Directional EMA For Loop
1 stars

A price-chart trend indicator that works like a SuperTrend whose band distance adjusts itself. It measures how far past pullbacks have gone against recent trends, remembers a window of readings separately for up and down trends, and sets the band room from a c

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Self-Adaptive Trend Signals
1 stars

Draws volume order blocks on the price chart with three tiers of asymmetric volume signals and a cooldown. A proximity marker fires when a high-volume bar, a displacement candle and a tier signal occur within an adjustable number of bars of each other. Rolling

Indicator v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Asym HV Disp Tier Proximity v1

ZigZag Volume Profile

by BrandonFreire
1 stars

An indicator for the price chart that draws a ZigZag swing channel and builds a volume profile along each swing. Volume at each sloped price level is summed into a set number of bins and drawn as coloured horizontal bars with percentage labels, and the bin wit

Indicator v6 VolumeSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of ZigZag Volume Profile

APM v7 Multi-Factor

by rcaldwell67
1 stars

This indicator plots three exponential moving averages (8, 21 and 55 by default) on the price chart and marks a green triangle when at least three of five conditions agree. The conditions are EMAs stacked upward, RSI between 40 and 70, MACD above its signal li

Indicator v6 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of APM v7 Multi-Factor
1 stars

This indicator scores a short-side exhaustion pattern after an up-move on a scale of 0 to 10, as a screening aid rather than a trading system. Points come from a long upper wick, a bullish fair value gap, a lower or equal second swing high, a break of swing-lo

Indicator v6 SMC / ICT / price actionCandlestick patterns
Updated 2 months ago · Custom licence GitHub repository of Exhaustion Reversal Pattern Scorer
1 stars

The Gold Trend indicator identifies market structure using swing highs and lows to categorize trends into uptrends, downtrends, or ranges directly on the price chart. It plots HH, HL, LH, and LL labels alongside optional zig-zag lines, background trend tinting

Indicator v5 TrendSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Gold Trend (Market Structure)

GrimmHA Indicator

by GreyssonEnterprises
1 stars

An indicator that draws Heikin-Ashi candles in a separate pane, calculated from the open, high, low and close of each bar and coloured green or red by direction. The code also computes candle body and shadow measures such as average body size, shadow ratios an

Indicator v5 Candlestick patternsTrend
Updated 3 months ago · MIT GitHub repository of GrimmHA Indicator

A/D Context v20.10

by VVASILEVSS
1 stars

A Pine v5 indicator in a separate pane that follows accumulation and distribution flow, using Williams or Chaikin A/D together with a smoothing EMA, Chaikin Money Flow and ATR. It looks for divergences between price pivots and flow pivots, with regular, hidden

Indicator v5 DivergenceVolume
Updated 3 months ago · None stated GitHub repository of A/D Context v20.10
1 stars

This indicator plots Solana options Max Pain strike levels from Deribit directly on the price chart. It renders horizontal dashed lines extending from the current bar to each contract's settlement time at 08:00 UTC. Line thickness dynamically scales with total

Indicator v6 Support & resistance
Updated 3 months ago · MIT GitHub repository of SOL Max Pain (Deribit)

Buddha Money Flow

by DarthBuddha
1 stars

A separate-pane volume indicator built on TradingView footprint data. Each bar shows total volume as a stacked column, with buy volume at the bottom, neutral volume in the middle and sell volume at the top. An optional delta histogram and a summary table can b

Indicator v6 Volume
Updated 3 months ago · MIT GitHub repository of Buddha Money Flow

Fusion Cipher SR Scalper

by shahzaib-574
1 stars

This indicator plots intraday support and resistance tools on the main price chart. It calculates a daily-reset VWAP with ATR bands, daily high/low/mid levels, previous day extremes, and pivot-based support/resistance zones. It also identifies long or short da

Indicator v6 Support & resistanceScalping
Updated 3 months ago · None stated GitHub repository of Fusion Cipher SR Scalper

GEKO Scalp

by grzegorzkowalskigk-jpg
1 stars

This indicator is a mean-reversion scalper for index futures on one to five minute charts. It plots session VWAP with one and two standard deviation bands and previous day high and low, and arms setups only when an Efficiency Ratio shows choppy rather than tre

Indicator v6 Mean reversionScalping
Updated 3 months ago · Custom licence GitHub repository of GEKO Scalp

Quarter Theory Stats

by abhinaynatraj
1 stars

A table-only companion to the quarter theory overlay. It builds conditional frequency statistics from 15-minute bars, whichever chart timeframe is used, and shows them in an on-chart table: the chance of a quarter extending, how a third-quarter close classifie

Indicator v6 Screeners & dashboardsSessions & time
Updated 3 months ago · None stated GitHub repository of Quarter Theory Stats
1 stars

The Gamma Exposure Levels indicator plots horizontal levels on the price chart based on user-pasted GEX data. It displays All-Expiry HVL, Call Resistance, Put Support, 0DTE HVL, Call, Put, Zero Gamma, Max Pain, Expected Move, and Flip Zones. Users can enable o

Indicator v6 Support & resistanceVolatility & bands
Updated 4 months ago · None stated GitHub repository of Gamma Exposure Levels [BackQuant]
1 stars

The SMC Market Structure Indicator calculates and plots Smart Money Concepts elements directly on the price chart. It identifies market structure points including Higher Highs, Higher Lows, Lower Lows, and Lower Highs, alongside Break of Structure and Change o

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 4 months ago · None stated GitHub repository of SMC Market Structure Indicator
1 stars

An overlay that looks for a three-step reversal: a liquidity sweep beyond a recent swing, a sharp snap-back measured in ATR multiples, and an inverted fair value gap that price retraces into and respects. When all three line up it prints a buy or sell dot and

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · None stated GitHub repository of Sweep + IFVG Graded Reversal

NTouch Zones

by riegodavid-git
1 stars

An overlay indicator that builds support and resistance rectangles from pivots found inside a morning window in Philippine time, by default 06:00 to 07:30. Pivot highs and lows that cluster within a tolerance based on a fraction of the ATR become a zone once t

Indicator v6 Support & resistanceSessions & time
Updated 4 months ago · None stated GitHub repository of NTouch Zones

OrderBook For Success

by unemployedrabi
1 stars

Builds a volume-by-price view from the chart's own candles and draws it as horizontal boxes around the current price. Volume is accumulated into price levels sized from the first candle's range, and the boxes are shaded red below and green above the current le

Indicator v5 VolumeSupport & resistance
Updated 4 months ago · MIT GitHub repository of OrderBook For Success

Custom Reversal

by rubbermetal
1 stars

An overlay indicator that flags possible reversals using pivot points, candle patterns and confirmation filters. It detects swing highs and lows with separate left and right bar counts, bullish and bearish engulfing candles, and pin bars such as hammers and sh

Indicator v6 Candlestick patternsMean reversion
Updated 4 months ago · MPL-2.0 GitHub repository of Custom Reversal

A price-chart overlay for gold that extends the earlier version of this scalping tool with stricter confirmation rules. It combines pivot market structure, liquidity sweeps, candlestick confirmation, breakout and retest logic, a higher-timeframe filter and a q

Indicator v5 SMC / ICT / price actionSupport & resistance
1 stars

Session Range vs ATR Filter compares developing intraday price ranges against the daily Average True Range (ATR) during US regular trading hours. It evaluates session range expansion at fixed time checkpoints (10:00 AM, 12:00 PM, and 2:00 PM ET) against percen

Indicator v5 Sessions & timeVolatility & bands Repaints
Updated 5 months ago · None stated GitHub repository of Session Range vs ATR Filter

Bollinger Band Squeeze Detector

by shubhamtaywade82
1 stars

Detects a volatility squeeze when the Bollinger Bands sit inside the Keltner Channel, and shows it in a separate pane as a column state. A momentum histogram measures close against the Donchian midline, optionally normalised by ATR and clamped. A small table r

Indicator v6 Volatility & bandsOscillators & momentum Archived
Updated 5 months ago · None stated GitHub repository of Bollinger Band Squeeze Detector
1 stars

An all-in-one Smart Money Concepts indicator that identifies market structure breaks and higher-timeframe bias. It calculates Break of Structure (BOS) and Change of Character (CHoCH) using pivot swing detection, auto-draws Supply and Demand zones based on ATR

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · Custom licence GitHub repository of Market Structure & Daily Bias SD Pro v2

Crypto AMT Toolkit v2

by latifangren
1 stars

This indicator provides a comprehensive crypto trading toolkit on TradingView. It plots Volume Profile boxes using customizable lookback bars, row count, and value area percentage. VWAP lines with standard deviation bands are drawn alongside optional bands. Or

Indicator v6 VolumeVolatility & bands
Updated 5 months ago · MIT GitHub repository of Crypto AMT Toolkit v2

SahanX v1

by sahansbandara
1 stars

SahanX v1 is an overlay indicator that draws smart money concepts on the price chart. It marks swing market structure with optional mapping lines, bubbles, sweep markers and candle colouring, and adds volumetric order block zones with buy and sell activity, op

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of SahanX v1

SR Levels

by onlyspx
1 stars

SR Levels visualizes custom support and resistance price zones directly on the main price chart. It parses user-defined CSV text input containing zone labels, target symbols, and price bounds for SPX, SPY, and ES contracts. When the current symbol matches the

Indicator v6 Support & resistance
Updated 6 months ago · None stated GitHub repository of SR Levels

Trend Break Indicator

by Chovy-King
1 stars

An indicator version of a trend breakout strategy with BTC, gold and custom presets. It plots 20 and 60 EMAs and marks a triangle when a strong candle breaks the latest swing in the direction of the trend, after filters for higher-timeframe agreement, volume,

Indicator v6 BreakoutTrend
Updated 6 months ago · None stated GitHub repository of Trend Break Indicator

EQH / EQL Detector

by cavaldos
1 stars

Detects equal highs and equal lows on the price chart, a common liquidity concept in smart money analysis. Pivots are confirmed over a set number of bars, and a threshold scaled by a 200-bar ATR decides how close two levels must be. Historical mode keeps every

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of EQH / EQL Detector

ATR Trend

by dtheran1
1 stars

Draws an ATR-based trend line on the price chart, inspired by Supertrend. The distance from the source, which can use highest high and lowest low, is set by a time period and an ATR weight. Ten smoothing types are available for the ATR. Options add a fast tren

Indicator v6 TrendVolatility & bands
Updated 6 months ago · None stated GitHub repository of ATR Trend

Fair Value Gaps 2026

by mikeyhu70
1 stars

This indicator finds Fair Value Gaps, the price gaps left between three consecutive candles, and draws them as zones on the price chart. Up to three sets can be shown: two on the chart or a higher timeframe and one from a lower timeframe. Each set has its own

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of Fair Value Gaps 2026
1 stars

An indicator in a separate pane that turns Heikin Ashi data into a momentum oscillator. It offers lookback modes, an engine choice including a Heikin Ashi blend, optional final smoothing, and adaptive fast and slow crossovers, plus a separate SMA 20 and 50 cro

Indicator v6 Oscillators & momentumTrend
Updated 6 months ago · None stated GitHub repository of Heikin Ashi Oscillator Trend Engine

Computes historical volatility from log returns and shows either its percentile or its rank over a long window, selected by a mode input. Separate lookbacks control the volatility calculation, the percentile or rank window and a smoothing average. Colours chan

Indicator v5 Volatility & bands
Updated 6 months ago · None stated GitHub repository of Historical Volatility Percentile and Rank

Crypto Harami Pattern Detector

by gabriel-klettur
1 stars

Crypto Harami Pattern Detector identifies bullish and bearish Harami and Harami Cross candlestick patterns on the price chart. It checks multi-candle body and range relationships to distinguish standard Harami formations from Harami Cross variants. The script

Indicator v6 Candlestick patternsScreeners & dashboards
Updated 7 months ago · None stated GitHub repository of Crypto Harami Pattern 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