Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 42)

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

3 stars

This indicator plots a stop-loss price on the main chart as green crosses. It compares the previous bar's high-low range with a 13-period ATR and offsets the current open by one, two, or three ATR multiples, or by the previous low plus ATR. Length variables na

Indicator v5 Volatility & bands Repaints
Updated 4 weeks ago · None stated GitHub repository of Complex ATR Stop Loss Strategy
3 stars

This indicator draws Smart Money Concept (SMC) elements directly on the price chart. It detects swing highs and lows, swing structure points, and order blocks (bullish and bearish OBs), displaying them using boxes and labels. It also features customizable wate

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · None stated GitHub repository of Mc War V2 + V3 + Session

3MA Average

by g-moe
3 stars

The 3MA Average indicator calculates three separate moving averages using customizable lengths and types, including SMA, EMA, WMA, HMA, and VWMA. It then computes the arithmetic mean of these three values to create a composite moving average plotted directly o

Indicator v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of 3MA Average

Debug Code Coverage

by monch1962
3 stars

This Pine Script v5 indicator tracks code coverage for debugging TradingView scripts. It monitors execution of functions, conditions, loops, and lines using internal arrays and counters triggered by debug functions. Coverage metrics are shown in a table on a s

Indicator v5
Updated 7 months ago · None stated GitHub repository of Debug Code Coverage

Stella's Smart Money Proxy

by stella-entry
3 stars

This indicator detects institutional or large-scale market activity using candle body size and trading volume. It compares current candle bodies against a 20-period simple moving average and checks for volume spikes above an adjustable moving average filter. I

Indicator v6 VolumeCandlestick patterns
Updated 8 months ago · MIT GitHub repository of Stella's Smart Money Proxy

Market Regime - 50W SMA

by LucasRibeiroCaetano
3 stars

This indicator classifies market conditions into Bull Market, Correction, or Bear Market regimes using a 50-week Simple Moving Average (SMA). It requests weekly timeframe data to track consecutive weekly closes relative to the 50W SMA. A Bear Market regime is

Indicator v5 TrendMoving averages
Updated 11 months ago · Custom licence GitHub repository of Market Regime - 50W SMA
3 stars

This indicator computes Root Mean Square Error (RMSE) relative to benchmark moving averages such as EMA or ALMA and applies Bollinger Band envelopes or iterative loop thresholds. It plots the RMSE metric and threshold bands in a separate pane to signal trend c

Indicator v6 Volatility & bandsMoving averages
Updated 12 months ago · None stated GitHub repository of RMSE Bollinger Bands + Loop | Lyro RS

Spot Buy Marker + PnL

by shitcoding
3 stars

The Spot Buy Marker + PnL indicator tracks manual spot trading positions directly on the price chart. Users specify a buy price, entry timestamp, and either coin quantity or total USD investment. The script computes real-time profit and loss as a percentage of

Indicator v6 Support & resistanceScreeners & dashboards
Updated 1 year ago · None stated GitHub repository of Spot Buy Marker + PnL

SPX/Gold Ratio Bubble Detector

by EngineeredSuccess
3 stars

Calculates the price ratio between the S&P 500 (defaulting to SPY) and Gold (defaulting to GLD) to evaluate macro valuation extremes. It tracks the ratio alongside a simple moving average and evaluates market status across customizable warning, danger, and ext

Indicator v6 Moving averagesSupport & resistance
Updated 1 year ago · Custom licence GitHub repository of SPX/Gold Ratio Bubble Detector

BTMM Core Foundation

by jcortes254
3 stars

This indicator plots five exponential moving averages on the price chart using lengths of 5, 13, 50, 200 and 800, labeled as a food system. It scores directional bias against a user threshold, includes an optional 15-minute-and-above rule, and shows the result

Indicator v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of BTMM Core Foundation

MOTO ka AnjalikaAstra

by HelloMoto069
3 stars

MOTO ka AnjalikaAstra is an overlay indicator that combines Ichimoku Cloud concepts with Average True Range volatility filters. It calculates custom Tenkan-Sen, Kijun-Sen, and Senkou Span components using ATR bands rather than standard high and low price chann

Indicator v5 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of MOTO ka AnjalikaAstra

This indicator identifies the classic three-bar bearish evening star reversal pattern directly on the price chart. It checks for a strong initial bullish candle, followed by a middle doji or weak candle, and completes when a subsequent bearish candle closes be

Indicator v5 Candlestick patterns
Updated 2 years ago · None stated GitHub repository of Evening Star Pattern (Candlestick Pattern)

Combined Liquidity, Channels, RSI, and VWAP is an overlay indicator that plots multiple technical analysis metrics directly on the price chart. It calculates Keltner and Donchian Channels, volume-based metrics like cumulative volume delta (CVD), VWAP with stan

Indicator v5 Volatility & bandsOscillators & momentum Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Combined Liquidity, Channels, RSI, and VWAP

Cross SMA - DataCrypto Analytics

by datacrypto-analytics
3 stars

This overlay indicator plots a 30-period and a 100-period simple moving average of close on the price chart and fills the space between them. It marks a sell label when the slower average crosses above the faster one and a buy label when it crosses below, and

Indicator v4 Moving averages
Updated 3 years ago · Apache-2.0 GitHub repository of Cross SMA - DataCrypto Analytics

Currency Strength Chart

by itmakesyousick
3 stars

Currency Strength Chart measures and compares relative strength across major fiat currencies and optional commodities. It aggregates price data for major Forex pairs from selected brokers and plots smoothed strength lines for each currency in a separate chart

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated 4 years ago · None stated GitHub repository of Currency Strength Chart

RSI Bounce

by blackcat1402
3 stars

RSI Bounce calculates custom Relative Strength Index levels scaled back onto price, creating nine price-equivalent RSI band series centered around a median RSI baseline. It combines short-term RSI extreme checks with customized MACD signal line crossovers to i

Indicator v4 Oscillators & momentumMoving averages
Updated 5 years ago · MIT GitHub repository of RSI Bounce

Pivots + Key Levels MP

by midngtpickle
2 stars

This indicator calculates and plots multi-timeframe pivot points using Fibonacci or Camarilla formulas alongside key higher-timeframe and session levels directly on the price chart. It renders support and resistance lines from S1/R1 through S5/R5 and session r

Indicator v6 Support & resistance Repaints
Updated 4 weeks ago · Custom licence GitHub repository of Pivots + Key Levels MP

Market Cipher B

by TamTH-Dev
2 stars

Market Cipher B is a multi-oscillator indicator that draws in a separate pane. It plots a Wave Trend line from a channel period, an average period, a moving-average source, and a moving-average length, with optional divergence markers at long and short bullish

Indicator v6 Oscillators & momentumDivergence
Updated 6 weeks ago · None stated GitHub repository of Market Cipher B

SMC Flow System plots smart money concepts and market structure directly on the price chart. It identifies internal and external swings, marking Break of Structure (BOS), Change of Character (CHoCH), and swing highs or lows according to customizable sensitivit

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · Custom licence GitHub repository of SMC Flow System – by Fatich.id

Chart Visualization

by danielbodnar
2 stars

A Pine Script visualization script demonstrating custom technical drawing techniques on price charts. It plots a 20-period simple moving average with dynamic color intensity derived from price momentum, marks inside and outside bar patterns using shapes, and l

Indicator v6 TrendCandlestick patterns
Updated 2 months ago · MIT GitHub repository of Chart Visualization

ICT FVG Buy/Sell Signals

by alvinng214
2 stars

Calculates three-bar Fair Value Gaps (FVG) and pivot-based dealing ranges to generate buy and sell signals directly on the price chart. It determines premium and discount zones relative to the dealing range equilibrium and colors the background accordingly. A

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of ICT FVG Buy/Sell Signals
2 stars

This indicator calculates the proportion of trading volume that occurs within a user-defined time window in the America/New York timezone. On intraday charts, it evaluates whether the current bar falls inside the session, while on higher timeframes it retrieve

Indicator v6 VolumeSessions & time
Updated 3 months ago · Apache-2.0 GitHub repository of Filtered Volume Markers

Volume Profile Plus

by btankutt
2 stars

Volume Profile Plus is a session-based or fixed-lookback volume profile indicator that plots a horizontal volume histogram on the price chart. It identifies the Point of Control (POC) as the highest-volume price level, computes the Value Area (VAH/VAL) using a

Indicator v6 VolumeSupport & resistance
Updated 3 months ago · MPL-2.0 GitHub repository of Volume Profile Plus
2 stars

ICT Turtle Soup by Flux Charts is an overlay indicator that detects Smart Money Concepts (SMC) Turtle Soup liquidity sweeps and market structure shifts (MSS). It identifies liquidity grabs across standard or higher timeframe periods and projects take-profit an

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of ICT Turtle Soup | Flux Charts
2 stars

This indicator draws support and resistance channels on the price chart from hourly pivot highs and lows. It clusters confirmed pivots that fall inside a maximum width, scores each cluster by how many pivots it contains, and keeps channels that meet a minimum

Indicator v6 Support & resistance
Updated 6 months ago · None stated GitHub repository of SR Channels (Hourly)
2 stars

This indicator plots demand and supply zones computed from volume profile with 30-56 bins, fair value gaps on 4H, and equal highs/lows. It draws a magic line using ATR(14) x 1.618 golden ratio anchored to the 00:00 UTC close. Signals identify liquidity vacuum

Indicator v6 SMC / ICT / price actionVolume
Updated 6 months ago · None stated GitHub repository of Ghost Zone v9 — GTI Signals v18a

Early Reversal OB

by thino-dev
2 stars

This indicator detects early potential market turning points based on order block and engulfing candlestick patterns on the price chart. It checks for a local swing extreme on the second closed bar followed by an immediate engulfing reversal candle on the prio

Indicator v5 SMC / ICT / price actionCandlestick patterns
Updated 7 months ago · None stated GitHub repository of Early Reversal OB

This indicator calculates dynamic grid trading boundaries derived from Bollinger Bands to define upper, lower, and middle range levels. It computes moving average basis lines and standard deviation bands, applying user-defined offsets, smoothing, and minimum o

Indicator v6 Volatility & bandsSupport & resistance Repaints
Updated 8 months ago · MIT GitHub repository of Grid Bot Bollinger Bands [psyll]

Bernoulli

by regalouisei
2 stars

This indicator plots a binary entropy series from a Bernoulli process applied to percent-ranked measurements in a separate pane. Measurement modes include raw value, moving average, change, momentum, acceleration, contribution, percent change, volatility, and

Indicator v6 Oscillators & momentumVolume
Updated 8 months ago · None stated GitHub repository of Bernoulli

Smart Money M1 - Clean & Precise

by ifreddyman2014-tech
2 stars

This overlay indicator marks smart-money structure on the price chart. It finds swing pivots, flags displacement candles whose body exceeds a multiple of the average body, and can label breaks of structure. It draws bullish and bearish order-block boxes and ca

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 8 months ago · None stated GitHub repository of Smart Money M1 - Clean & Precise

MA Oscillator Map

by mushroom-men-Trading
2 stars

MA Oscillator Map calculates momentum and trend oscillations relative to configurable moving average baselines. It supports multiple moving average types, including SMA, EMA, HMA, VWMA, SMMA, WMA, and Adaptive Least Squares Moving Average (ALSMA). Operating in

Indicator v6 Moving averagesOscillators & momentum
Updated 9 months ago · None stated GitHub repository of MA Oscillator Map

This indicator plots multiple moving averages including SMA10, SMA50, SMA100, SMA200, Ichimoku conversion and lead lines, and 52-week high and low levels on the price chart. It detects breakouts using volume multiplier, optional gaps, and strong candle require

Indicator v6 BreakoutMoving averages Repaints
Updated 10 months ago · MIT GitHub repository of Ede – MA + Breakout Strategie (Dynamic MAs)
2 stars

This indicator combines Qualitative Quantitative Estimation (QQE), the AK Trend Line, and Elder's Force Index (EFI) into a single separate pane tool. It calculates QQE using smoothed RSI and Wilder's ATR, computes AK Trend values with dynamic scale factors mat

Indicator v6 Oscillators & momentumVolume
Updated 11 months ago · MPL-2.0 GitHub repository of QQE + AK Trend + EFI Combined
2 stars

Calculates standard Darvas Box high and low levels based on price pivots over a specified lookback period. The indicator identifies box formations and plots shape markers above and below bars representing the top and bottom boundaries of the active box on the

Indicator v6 Support & resistanceBreakout
Updated 1 year ago · MPL-2.0 GitHub repository of Darvas Box - Last Box Only

Trend Indicator A

by iceberg211
2 stars

Trend Indicator A plots a moving-average trend overlay on the price chart. It calculates a selectable average of close and, optionally, of high and low, then colors the lines and the area between them bullish, bearish, or neutral. The main settings choose the

Indicator v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Trend Indicator A

Hazzones

by ashwagamma
2 stars

Hazzones identifies and plots supply and demand zones directly on the price chart using consecutive Heikin Ashi candle runs. It automatically detects support and resistance flip zones when demand turns into supply or vice versa, while tracking zone mitigation

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 1 year ago · None stated GitHub repository of Hazzones

Tik 1 JPY

by keiru517
2 stars

Tik 1 JPY is a visual reference indicator that plots horizontal level grid lines, midpoint lines, and sub-interval lines tailored for Japanese Yen currency pairs. Users can configure the start and end price levels, which default to 130 and 165. It draws solid

Indicator v6 Support & resistance
Updated 1 year ago · None stated GitHub repository of Tik 1 JPY
2 stars

PriceCatch Opensource CPR calculates and displays Central Pivot Range levels based on daily high, low, and close values. It plots colored boxes and channel boundaries directly on the price chart to visualize current and previous daily CPR zones. The indicator

Indicator v6 Support & resistance
Updated 1 year ago · MPL-2.0 GitHub repository of PriceCatch Opensource CPR

Trend Score History

by ryangaraygay
2 stars

Trend Score History calculates a composite trend metric ranging between -5 and +5 by evaluating session VWAP, EMA alignment, price-volume flow, lower-timeframe Donchian channel breakouts, and Opening Range breakouts. It plots the cumulative score as histogram

Indicator v6 TrendOscillators & momentum Repaints
Updated 1 year ago · MIT GitHub repository of Trend Score History

9day Swing

by scallywag41
2 stars

9day Swing is a TradingView indicator that overlays SMA 9, EMA 20 and SMA 200 on the price chart to identify trend direction. It plots these moving averages in red, yellow and white or gray respectively. The indicator generates buy and sell signals as green an

Indicator v4 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of 9day Swing

Mc War v2

by tuanmcwar
2 stars

This indicator plots market structure elements directly on the price chart. It detects swing points, swing high and low levels, and breaks of structure or change of character labels (BOS and CHoCH). It also identifies and draws bullish and bearish swing order

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 years ago · None stated GitHub repository of Mc War v2

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