Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 34)

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

9 stars

Calculates a SuperTrend trailing stop and reversal line based on Average True Range volatility. It overlays on the price chart to display volatility-based trailing stop levels and trend direction for long or short position scenarios. Users can adjust parameter

Indicator v4 TrendVolatility & bands
Updated 7 years ago · MIT GitHub repository of SuperTrend ATR with Analytics
8 stars

A tiny test script from a Pine Script linter project that checks how a string literal continued over two indented lines is handled. It assigns the two-line text to a variable and uses it as the title of a plot of the closing price in a separate pane. It has no

Indicator v6
Updated 4 weeks ago · Custom licence GitHub repository of Multiline String Title Probe
8 stars

This indicator detects contrarian inflection points and potential market reversals by combining sentiment, volume, and price action metrics directly on the price chart. It evaluates overbought and oversold conditions with the RSI and Stochastic oscillators, hi

Indicator v5 Oscillators & momentumVolatility & bands
Updated 7 weeks ago · None stated GitHub repository of GCR Inflection Point Scanner

TR Basis Monitor

by Enesp4rl4k
7 stars

This indicator calculates the cost-of-carry fair value between futures and spot prices, measuring the basis and fair value deviation in basis points. Operating in a separate pane, it computes a rolling Z-score of deviation using moving averages and standard de

Indicator v6 Mean reversionVolatility & bands
Updated 7 days ago · MIT GitHub repository of TR Basis Monitor

Engulfing Off BB

by lunarticktrading
7 stars

This indicator plots Bollinger Bands on the price chart and highlights engulfing candles that touch a band. A bullish engulfing bar that reaches the lower band is colored with the bullish color, and a bearish engulfing bar that reaches the upper band is colore

Indicator v6 Volatility & bandsCandlestick patterns
Updated 2 weeks ago · None stated GitHub repository of Engulfing Off BB

Commodity Channel Index

by eddiebelaval
7 stars

This indicator calculates and plots the Commodity Channel Index (CCI) alongside a configurable moving average in a separate pane. The CCI line dynamically changes color based on whether its value is above or below a threshold level of 50, accented by gradient

Indicator v6 Oscillators & momentumMoving averages
Updated 3 months ago · None stated GitHub repository of Commodity Channel Index

CVD: Architect

by s4mn0v
7 stars

This indicator calculates cumulative volume delta by aggregating directional intrabar volume from lower-timeframe data and plots the accumulated values in a separate pane. It tracks volume progression with high and low wick tracking across each bar. The main s

Indicator v6 Volume
Updated 5 months ago · None stated GitHub repository of CVD: Architect

Engulf 1v1 + 2v2

by chargersfan47
7 stars

This Pine Script indicator detects and plots 1v1 and 2v2 engulfment candlestick patterns on the price chart. It identifies bullish and bearish engulfment patterns based on candle open, high, low, and close values, checking conditions where a candle engulfs pre

Indicator v6 Candlestick patternsSupport & resistance
Updated 5 months ago · None stated GitHub repository of Engulf 1v1 + 2v2

FX Market Sessions

by itmakesyousick
7 stars

This indicator plots colored session boxes on the price chart representing London, New York and Tokyo market sessions. Users customize session start and end times, colors, and labels for each session while enabling options for historical display, oscillator mo

Indicator v5 Sessions & time
Updated 3 years ago · None stated GitHub repository of FX Market Sessions
6 stars

This indicator plots a weekly simple moving average and a weekly exponential moving average on the price chart and shades the area between them. It requests weekly values of the close-based averages so the band stays aligned with the weekly timeframe even on l

Indicator v5 TrendMoving averages
Updated 7 days ago · MIT GitHub repository of Bull Market Support Band

This indicator measures the distribution of bar-to-bar close returns over a rolling window and presents the results in a table on the price chart. It calculates annualized mean return and volatility, a simple Sharpe ratio, a 95 percent value-at-risk percentile

Indicator v5 Volatility & bandsScreeners & dashboards

C41 Oscillator

by damianpitt
6 stars

The C41 Oscillator is a separate pane composite momentum indicator designed to companion the C41 Core Strategy. It combines a moving average trend filter with RSI and Williams %R overbought or oversold reversal conditions into a normalized 0 to 100 score. The

Indicator v6 Oscillators & momentumTrend
Updated 2 months ago · MIT GitHub repository of C41 Oscillator

CRT State Engine

by alboogycOdR
6 stars

This overlay indicator tracks an institutional CRT state machine on the price chart. It detects draw-on-liquidity bias from swing pivots, watches 1AM, 5AM and 9AM CRT models, and marks session states for CBDR, Asia, London, London lunch and the New York open.

Indicator v6 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT State Engine

MarketMerge v1.5

by mgnyc11
6 stars

MarketMerge is a price-chart overlay that plots moving averages, a relative strength line, and an S&P 500 comparison. Users can show a 21-period EMA and 50-, 150-, and 200-period simple averages. The relative strength line divides price by a chosen benchmark,

Indicator v6 Moving averagesTrend
Updated 8 months ago · MIT GitHub repository of MarketMerge v1.5

This indicator calculates daily 90-period Bollinger Bands and plots them directly on a lower timeframe chart, such as M15. It queries higher-timeframe daily data using request.security and updates the upper, middle, and lower band values at the start of each n

Indicator v6 Volatility & bandsMoving averages Repaints
Updated 1 year ago · MIT GitHub repository of D1 Bollinger Bands (Period 90) on M15 (Forward Shifted)

MultiVolatility

by wanjo-tech
6 stars

MultiVolatility calculates and compares multiple annualized volatility metrics within a separate pane. It computes a traditional 20-day historical volatility using log returns on daily data scaled by 252 days, which displays on daily charts. Additionally, it i

Indicator v5 Volatility & bands
Updated 2 years ago · None stated GitHub repository of MultiVolatility

HTF Timestamp Probe

by 345-strategies
5 stars

HTF Timestamp Probe is a diagnostic utility indicator that inspects how TradingView timestamps higher-timeframe bar open times. It requests open timestamps for weekly, monthly, quarterly, and yearly bars using lookahead security calls and displays the results

Indicator v6 Screeners & dashboards Repaints
Updated 4 days ago · MPL-2.0 GitHub repository of HTF Timestamp Probe

日内关键价位

by forecho
5 stars

This indicator calculates and plots key intraday session levels directly on the price chart. It tracks the regular trading hours (RTH) open, previous day close, previous day high, and previous day low, along with the high and low ranges for both the Asian and

Indicator v6 Support & resistanceSessions & time
Updated 8 weeks ago · None stated GitHub repository of 日内关键价位
5 stars

Calculates daily classical pivot points from the previous day's high, low, and close to identify intraday reversal setups within a defined trading session. Long signals fire when price comes within a configurable tick proximity to S1 and prints a bullish recla

Indicator v5 Support & resistanceMean reversion
Updated 5 months ago · Custom licence GitHub repository of Path C — Pivot-Point Bounce (Demo)

MACD Divergence

by chaise-cogent
5 stars

This indicator calculates the Moving Average Convergence Divergence (MACD) and signal line in a separate pane to detect regular bullish and bearish divergences. It identifies price pivot highs and lows using a configurable lookback length and compares them aga

Indicator v6 Oscillators & momentumDivergence
Updated 7 months ago · MIT GitHub repository of MACD Divergence

Double Smoothed Stochastic MTF

by SiegerTerpstra
5 stars

This indicator plots a multi-timeframe Double Smoothed Stochastic in a separate pane. It combines an exponential moving average ratio with stochastic normalization and optional moving-average smoothing, producing values from 0 to 100. Rising and falling values

Indicator v6 Oscillators & momentum
Updated 9 months ago · None stated GitHub repository of Double Smoothed Stochastic MTF

Scalping PullBack Tool R1.1

by Ahmed-GoCode
5 stars

This indicator plots a Price Action Channel (PAC) based on high, low, and close moving averages alongside fast, medium, and slow trend EMAs directly on the price chart. It detects regular and Bill Williams fractals to track market structure and identifies pull

Indicator v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Scalping PullBack Tool R1.1

ATR Based Stoploss

by rubystar0512
5 stars

ATR Based Stoploss is an overlay indicator that calculates dynamic stop loss and take profit bands around a central simple moving average. It uses standard Average True Range or an ATR Surge Average derived from volatility spikes to offset profit and loss boun

Indicator v5 Volatility & bandsMoving averages
Updated 2 years ago · None stated GitHub repository of ATR Based Stoploss

Hedge Exit Algo

by jerryinyang
5 stars

Hedge Exit Algo provides position sizing and lot calculations for forex and precious metals hedging strategies. It evaluates pip values, currency conversion rates, and profit targets relative to account balance. The script defines custom lot sizing routines al

Indicator v5 Moving averages Repaints
Updated 2 years ago · None stated GitHub repository of Hedge Exit Algo

My Cipher v2

by Following-BTC
5 stars

My Cipher v2 plots a combined oscillator in a separate pane. It calculates a WaveTrend-style stochastic from Heikin Ashi prices, a volume-based money flow histogram, smoothed RSI, MACD-style lengths, and a Z-VWAP. Crosses mark WaveTrend turns; colored dots mar

Indicator v4 Oscillators & momentumDivergence
Updated 2 years ago · None stated GitHub repository of My Cipher v2

[CP]Pivot Boss Floor Pivots

by pranjalchaubey
5 stars

This indicator draws floor pivots and the central pivot range on the price chart. A timeframe input sets the pivot period from one hour through twelve months, and toggles control labels and next-period levels. When dynamic levels are on, an ATR threshold decid

Indicator v4 Support & resistanceMoving averages
Updated 3 years ago · None stated GitHub repository of [CP]Pivot Boss Floor Pivots

Triple Supertrend

by shyrwinsia
5 stars

This indicator calculates three distinct Supertrend lines on the main price chart, designated as short, medium, and long term. Each Supertrend line utilizes its own Average True Range period and multiplier settings to identify trend directions across different

Indicator v4 TrendVolatility & bands
Updated 5 years ago · MIT GitHub repository of Triple Supertrend

Antigravity Elite

by eltonaguiar
4 stars

Antigravity Elite is an overlay indicator that screens price with seven selectable components: Mercury Fear, Connors RSI-2, volatility-spike reversal, EMA stack, Supertrend, multi-sigma bands, and an optional funding proxy. Auto-Detect chooses one method, whil

Indicator v6 Oscillators & momentumMoving averages
Updated 2 days ago · None stated GitHub repository of Antigravity Elite
4 stars

OptionX Noisy Test Signals calculates a short-period Relative Strength Index (RSI) and plots buy or sell shape markers on the main price chart when the RSI crosses above or below a chosen center level. It generates JSON-formatted alert payloads with symbol, pr

Indicator v6 Oscillators & momentum Repaints
Updated 3 days ago · MIT GitHub repository of OptionX Noisy Test Signals
4 stars

An all-in-one chart indicator combining Smart Money Concepts (SMC) and technical level analysis. It identifies Order Blocks, market structure shifts like CHoCH and BOS, KOLA support and resistance levels, SIDO chart patterns, and Fibonacci Optimal Trade Entry

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 weeks ago · MIT GitHub repository of GOM KOLA SIDO Full Integration
4 stars

Calculates and renders Time Price Opportunity (TPO) market profiles, Initial Balance (IB) ranges, and value distributions directly on the price chart. It determines key auction levels including the Point of Control (POC), Value Area High (VAH), Value Area Low

Indicator v6 Support & resistanceSessions & time
Updated 7 weeks ago · MPL-2.0 GitHub repository of Meridian - Futures Profile

ATR Levels

by trugurpala
4 stars

This indicator calculates the Average True Range and a Simple Moving Average of closing prices. It plots a central basis line along with dynamic support and resistance levels derived from multiples of the ATR. The main settings control the ATR length and the m

Indicator v6 Support & resistanceVolatility & bands
Updated 2 months ago · MIT GitHub repository of ATR Levels

Liquidity Magnet

by VolodymyrFilias
4 stars

Liquidity Magnet scores active liquidity pools on the price chart and highlights the pool most likely to be reached. It detects swing highs, swing lows, and equal high or low clusters, then ranks them using strength, proximity, age decay, and momentum bias. Eq

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · MIT GitHub repository of Liquidity Magnet

MACD

by YooooungLee
4 stars

This indicator calculates and plots the standard Moving Average Convergence Divergence oscillator in a separate pane. It computes a fast exponential moving average and a slow exponential moving average from the chosen price source, taking the difference as the

Indicator v6 Oscillators & momentumMoving averages
Updated 10 months ago · Apache-2.0 GitHub repository of MACD

Calculates top and bottom reversal signals for oscillator indicators based on dynamic cycle detection, overbought and oversold thresholds, and price confirmation. It tracks indicator cycles using centerline crossovers, verifies overbought or oversold condition

Indicator v6 Oscillators & momentumSupport & resistance
Updated 1 year ago · Custom licence GitHub repository of Universal High-Low Detection Example

Harami Cross - Bullish

by Hugs-4-Bugs
4 stars

Harami Cross - Bullish detects the two-candle bullish Harami Cross pattern directly on the main price chart. It identifies a long red candle during a downtrend followed by a Doji candle contained entirely within the previous candle's body. Users can refine tre

Indicator v5 Candlestick patternsTrend
Updated 1 year ago · None stated GitHub repository of Harami Cross - Bullish

All Candlestick Patterns

by ShabbirHasan1
4 stars

All Candlestick Patterns identifies and highlights classical Japanese candlestick patterns directly on the price chart. It determines underlying market trends using configurable moving averages, including a 50-period SMA, a dual SMA 50/200 setup, or no trend f

Indicator v5 Candlestick patternsMoving averages
Updated 1 year ago · Custom licence GitHub repository of All Candlestick Patterns

Butterfly Pattern

by fox-buddy
4 stars

Butterfly Pattern plots a simple zigzag on the price chart. It treats a bar as up or down from the close versus the open, then records a turn when that direction reverses. On a downward turn it uses the highest price of the last two bars, and on an upward turn

Indicator v4 Support & resistance Repaints
Updated 2 years ago · None stated GitHub repository of Butterfly Pattern

ATCA-HO

by Kalumur
4 stars

ATCA-HO is an overlay indicator that plots six Exponential Moving Averages alongside a Simple Moving Average on the price chart. It generates visual buy and sell shape labels whenever the fastest 5-period EMA crosses above or below the 22-period EMA. Additiona

Indicator v5 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of ATCA-HO

Combines multiple analytical tools onto a single price chart overlay to consolidate screen space. It plots three customizable exponential moving averages, three-bar imbalance and opening gap boxes, a horizontal volume profile with point of control, and smart m

Indicator v5 SMC / ICT / price actionMoving averages Repaints

Drift [DojiEmoji]

by kevinhhl
4 stars

This indicator calculates market drift using logarithmic returns adjusted for variance over a configurable lookback period. It measures underlying directional movement and plots a continuous line in a separate pane, colored blue when drift is positive and red

Indicator v5 TrendVolatility & bands
Updated 3 years ago · None stated GitHub repository of Drift [DojiEmoji]

COG Multi

by kachook
4 stars

This indicator calculates and plots multiple Center of Gravity lines derived from closing prices using different periods of 9, 50, and 200. The Center of Gravity is smoothed with a factor of 9. Three lines are drawn in a separate pane: one in white with a thic

Indicator v4 Oscillators & momentumMoving averages
Updated 3 years ago · None stated GitHub repository of COG Multi
4 stars

Snag - Swing Trade Long Term calculates 13-period, 48-period, and 200-period Weighted Moving Averages to evaluate market direction for long-term swing trading. The indicator monitors price crossovers across each moving average to identify initial trend shifts,

Indicator v5 TrendMoving averages
Updated 4 years ago · None stated GitHub repository of Snag - Swing Trade Long Term
3 stars

ATD+ST+T3 Kripto Tarama is a chart overlay indicator and cryptocurrency scanner that combines AlphaTrend, SuperTrend, and T3 moving average signals. It plots trend lines, fills, and buy/sell label shapes directly on the main price chart while providing configu

Indicator v5 TrendVolatility & bands
Updated 2 days ago · None stated GitHub repository of ATD+ST+T3 Kripto Tarama

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