Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 41)

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

Adaptive Supertrend is an overlay indicator that dynamically adjusts its Supertrend band width using a composite conviction score. Conviction is derived from ATR percentile ranking, trend force from EMA distance, and chop detection, narrowing the bands during

Indicator v6 TrendVolatility & bands
Updated 3 days ago · MIT GitHub repository of Adaptive Supertrend

ACE Squeeze

by JasonTeixeira
9 stars

ACE Squeeze plots a cycle-based squeeze oscillator in a separate pane. It builds a histogram and an optional cycle phase line from a base cycle length, sensitivity, and price source, then can adjust the reading with volatility, volume delta, relative range exp

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 weeks ago · Custom licence GitHub repository of ACE Squeeze
9 stars

Automatic Trendline [Metrify] identifies and draws dynamic support and resistance trendlines directly on the price chart. It detects swing pivots over a configurable lookback window, filtering candidate trendlines through constraints including maximum violatio

Indicator v6 Support & resistanceTrend
Updated 4 months ago · MIT GitHub repository of Automatic Trendline [Metrify]
9 stars

This indicator plots a customized Stochastic Oscillator (%K and %D lines) in a separate pane to identify momentum and potential overbought or oversold conditions. Users can select from nine different moving average types—including SMA, EMA, Hull, and ALMA—to s

Indicator v4 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Stochastic Oscillator (STOCH)
9 stars

This indicator functions as a multi-pair forex screener, drawing output in a separate pane. It fetches price data across major currency pairs using security functions based on a user-selected resolution timeframe. It processes these market feeds with short, me

Indicator v4 Screeners & dashboardsTrend Repaints
Updated 5 years ago · None stated GitHub repository of AG Screener (Phill_I Request)

This indicator plots a SuperTrend line on the price chart from average true range volatility and a trailing stop. The user selects a long or short trade type, an initial stop-loss percent, and a trailing percent that lifts the stop as price moves. It also uses

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

A minimal test script from a Pine Script linter project that checks how a conditional expression wrapped across several lines is parsed. It picks green when the close is above the open and red otherwise, then plots the close in that colour in a separate pane.

Indicator v6
Updated 4 weeks ago · Custom licence GitHub repository of Ternary Wrap Color Probe

TR Foreign Flow

by Enesp4rl4k
7 stars

This indicator plots a histogram of the daily change in foreign ownership ratio for a BIST equity in a separate pane. It loads a static snapshot of free-float ownership percentages, matches each bar to a snapshot date, and plots the difference from the previou

Indicator v6
Updated 7 days ago · MIT GitHub repository of TR Foreign Flow

Fair Value Gaps

by lunarticktrading
7 stars

This overlay indicator marks fair value gaps and inverse fair value gaps as boxes on the price chart. A mode switch selects standard gaps or inverse gaps, with separate bullish and bearish colors. Optional filters require the three gap bars to share one direct

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 weeks ago · None stated GitHub repository of Fair Value Gaps

This indicator overlays a trend and momentum regime filter directly on the price chart. It calculates an Ehlers Highpass Filter to isolate a low-frequency decycler trend line from price data. Additionally, it integrates a DecisionPoint Price Momentum Oscillato

Indicator v6 TrendOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Decycler Momentum Regime Filter ~ CharonQuant

Renko Emulator

by suyons
7 stars

This indicator emulates Renko bricks on a standard price chart. It builds a Renko series with either ATR or a fixed traditional box size, then reads that series through security requests. Optional circle plots and fills show the latest brick open and close whe

Indicator v6 Trend
Updated 4 months ago · None stated GitHub repository of Renko Emulator
7 stars

This indicator overlays Bollinger Bands on the price chart and fills the area between upper and lower bands using a color based on Cumulative Volume Delta trend. It plots an EMA 9 line and fills between the EMA 9 and Bollinger basis in green or red depending o

Indicator v6 Volatility & bandsVolume
Updated 5 months ago · None stated GitHub repository of Deep Chart + BB (CVD Internal)

Candle Breaks 1v1 L+S

by chargersfan47
7 stars

This indicator identifies single-candle breakout patterns where the current bar closes beyond the open of the preceding opposite-direction bar. It calculates potential long and short breakout targets using a 0.618 Fibonacci projection from the prior candle ran

Indicator v5 Candlestick patternsBreakout
Updated 5 months ago · None stated GitHub repository of Candle Breaks 1v1 L+S

FX Market Sessions

by itmakesyousick
7 stars

FX Market Sessions highlights distinct trading sessions, such as London, New York, and Tokyo, directly on the main price chart. It draws background boxes for each active session and optionally plots opening ranges, Fibonacci retracement levels, and session ext

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

This indicator plots a weekly moving-average band on the price chart. It calculates a simple moving average and an exponential moving average of the close, requests both series on the weekly timeframe, and draws the SMA in red and the EMA in green. An orange f

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

Capital41 ADX Filter

by damianpitt
6 stars

This indicator calculates the Average Directional Index alongside positive and negative directional movement lines to assess market trend strength and direction. Displayed in a separate pane, it plots the ADX line, directional lines, and horizontal threshold l

Indicator v6 Trend
Updated 2 months ago · MIT GitHub repository of Capital41 ADX Filter

This indicator calculates 1-hour Bollinger Bands and overlays them directly on lower timeframe price charts, such as M15. It fetches hourly middle, upper, and lower band values and locks them until the next hourly bar opens to provide higher-timeframe volatili

Indicator v6 Volatility & bandsSupport & resistance Repaints
Updated 1 year ago · MIT GitHub repository of H1 Bollinger Bands on M15 (Forward Shifted)

Edge 60

by subos2008
6 stars

Edge 60 is a breakout indicator that identifies new extremes over a configurable lookback period. It calculates and plots the highest high and lowest low of the preceding bars on the price chart. When the current bar makes a new high above the lookback channel

Indicator v5 BreakoutSupport & resistance
Updated 2 years ago · Custom licence GitHub repository of Edge 60

Invalidation Stop Classic

by 345-strategies
5 stars

Invalidation Stop Classic plots a structural TheStrat invalidation stop on the price chart. It stays on one side from the first bar that completed 30-minute and 60-minute extremes exist, then flips immediately when price breaks that line. Tightens come from a

Indicator v6 Support & resistanceSessions & time
Updated 4 days ago · MPL-2.0 GitHub repository of Invalidation Stop Classic
5 stars

Monthly Candle Closed Yesterday is a price action and Smart Money Concepts helper indicator that plots rolling virtual monthly candles in a separate pane, treating yesterday as the end of the monthly period. It uses daily price data to dynamically calculate op

Indicator v6 Support & resistanceSMC / ICT / price action Repaints
Updated 7 months ago · MIT GitHub repository of Monthly Candle Closed Yesterday
5 stars

This indicator builds a synthetic index from a user-supplied list of symbols and plots the result in a separate pane. For each symbol it requests open, high, low, close, two mid prices, inferred volume, inferred volume delta, and inferred tick count, then appl

Indicator v6 Volume
Updated 8 months ago · None stated GitHub repository of Index Construction Tool

Exponential Moving Average

by SiegerTerpstra
5 stars

This indicator calculates an Exponential Moving Average with custom seeding and optional multi-timeframe support. It computes a weighted average of the selected price source over a specified length and allows for an optional secondary smoothing pass. Drawn dir

Indicator v6 Moving averagesTrend
Updated 9 months ago · None stated GitHub repository of Exponential Moving Average
5 stars

This indicator plots a moving average and ATR-based stop loss and take profit levels on the price chart. It calculates ATR, NATR, and surge detection using lookback periods and crossover logic. Settings control ATR lookback, length, profit and loss multipliers

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

S/D Breakout

by jerryinyang
5 stars

The S/D Breakout script is a technical indicator that identifies and plots supply and demand zones as well as order blocks on the price chart. It calculates reversals and zones based on configurable inputs such as pivot lookback periods and distance multiplier

Indicator v5 Support & resistanceBreakout
Updated 2 years ago · None stated GitHub repository of S/D Breakout
5 stars

Calculates short and long Exponential Moving Averages alongside pivot high and low levels to identify breakout signals. The indicator plots a 20 EMA and a 50 EMA on the main price chart. It evaluates trend direction based on EMA crossover alignment, checks for

Indicator v4 Moving averagesTrend
Updated 3 years ago · Apache-2.0 GitHub repository of 20 EMA + 50 EMA + Breakout
4 stars

This indicator plots directional trade signals, ATR-based target and stop-loss boxes, and SuperSmoother reversal bands directly on the price chart. It evaluates market conditions across selectable technical strategies, displaying confidence scores alongside an

Indicator v6 Screeners & dashboardsTrend Repaints
Updated 2 days ago · None stated GitHub repository of Elton's Predictions Decision Engine

Crypto Cap

by InNoobWeTrust
4 stars

Crypto Cap estimates and plots the individual market capitalization of a cryptocurrency asset in a separate pane. It queries the aggregate cryptocurrency market cap index along with the specific base currency dominance percentage, multiplying them together to

Indicator v6
Updated 2 days ago · None stated GitHub repository of Crypto Cap

Xiaotang System V5.0

by TUSKIJAY
4 stars

Xiaotang System V5.0 is a price-chart overlay indicator that identifies momentum breakouts across moving averages and session VWAP. It computes Heikin-Ashi price data, 50-period and 200-period SMAs, and intraday VWAP while monitoring 5-minute higher-timeframe

Indicator v5 TrendOscillators & momentum Repaints
Updated 3 days ago · None stated GitHub repository of Xiaotang System V5.0
4 stars

This indicator plots support and resistance pivot levels, order blocks, market structure changes, and Fibonacci optimal trade entry zones directly on the price chart. It calculates touch counts across dynamic zones, detects chart patterns, and tracks pre-spike

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 2 weeks ago · MIT GitHub repository of GOM KOLA SIDO — Full Integration

This overlay indicator researches multi-timeframe setup zones for NQ and ES futures on the price chart. It builds chart, five-minute through four-hour zones, including transformed IFVG and BB zones, scores them, and tracks liquidity pools and structure. During

Indicator v6 Support & resistanceSMC / ICT / price action Repaints
Updated 7 weeks ago · MPL-2.0 GitHub repository of Meridian - Futures Setups Research

Power of Three [FEELS]

by VolodymyrFilias
4 stars

This overlay indicator maps the Power of Three cycle on the price chart. It builds an accumulation range around a higher-timeframe cycle open, marks a manipulation sweep beyond that range, and labels the later distribution move in the opposite direction. Confi

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · MIT GitHub repository of Power of Three [FEELS]

Parabolic RSI

by YooooungLee
4 stars

This indicator calculates the RSI oscillator using a user-defined length. It then applies a custom Parabolic SAR function to the RSI values to generate dynamic trend levels that function as support and resistance zones. The SAR levels are plotted in a separate

Indicator v6 Oscillators & momentumSupport & resistance
Updated 10 months ago · Apache-2.0 GitHub repository of Parabolic RSI

Date/Time Filters [Lab]

by mitchell-917
4 stars

This overlay indicator combines several time filters so later logic can keep only bars that pass them. It checks an exchange session window, optional weekday presets or custom days, and an optional calendar date range. Separate switches skip a chosen number of

Indicator v5 Sessions & time
Updated 11 months ago · Custom licence GitHub repository of Date/Time Filters [Lab]
4 stars

This indicator serves as a test script for Pine Script v6 to demonstrate and validate user-defined functions that return tuples. It defines custom functions returning numeric arithmetic pairs, boolean price conditions, mixed-type tuples, and technical indicato

Indicator v6
Updated 1 year ago · Custom licence GitHub repository of User Function Tuple Test

EMA Trend Meter

by ShabbirHasan1
4 stars

Calculates three exponential moving averages and compares them against a faster 13-period baseline exponential moving average. It displays three horizontal rows of circular plots in a separate pane to represent each moving average length comparison. A circle t

Indicator v5 TrendMoving averages
Updated 1 year ago · Custom licence GitHub repository of EMA Trend Meter

Dereköy-Darvas

by Kalumur
4 stars

The Dereköy-Darvas indicator combines Darvas Box boundary levels with dual Bollinger Bands plotted directly on the main price chart. It calculates top and bottom box lines based on recent high and low extremes to outline price consolidation zones. Simultaneous

Indicator v5 Volatility & bandsSupport & resistance
Updated 2 years ago · None stated GitHub repository of Dereköy-Darvas
4 stars

This indicator plots scheduled macroeconomic calendar events directly onto the price chart using vertical lines. It categorizes events into five user-defined groups, such as central bank meetings, PMI releases, retail sales, inflation data, and other announcem

Indicator v5 Sessions & time
Updated 3 years ago · None stated GitHub repository of Economic Calendar [DojiEmoji]

This indicator scores price from a basket of moving averages and oscillators and plots the result as pump waves in a separate pane. Users can base the rating on moving averages, oscillators, or both, and toggle the total, moving-average, and oscillator waves p

Indicator v4 Oscillators & momentumMoving averages
Updated 3 years ago · None stated GitHub repository of Technical Ratings Pro - Pump Wave
4 stars

Divergences (Brahim) identifies regular and hidden divergences between price pivots and up to ten technical indicators, including RSI, MACD, Stochastic, CCI, and OBV, along with an optional external source. Plotted directly on the price chart, it renders conne

Indicator v4 DivergenceOscillators & momentum
Updated 4 years ago · None stated GitHub repository of Divergences (Brahim)

This indicator identifies long-term trend directions and momentum shifts using weighted moving averages. It plots 13, 48, and 200-period WMAs directly on the price chart. The script evaluates price crossovers relative to each average as well as moving average

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

Regime HA on EMA

by aofwittawat
4 stars

This indicator classifies a market regime by comparing a Heikin Ashi close with an exponential moving average of that close. It requests Heikin Ashi open, high, low, and close from a user-selected timeframe, then plots no lines and colors the pane background g

Indicator v5 TrendMoving averages
Updated 4 years ago · None stated GitHub repository of Regime HA on EMA

This overlay study is a boilerplate template for building TradingView studies. Entry logic is left as false placeholders, so it does not generate trades by itself. It can restrict signals to longs or shorts, swap long and short opens, and count consecutive sig

Indicator v4
Updated 6 years ago · Apache-2.0 GitHub repository of StrategyNameHere - BuildABot-DRR

Higher Timeframe Trend

by degenview
3 stars

This indicator plots an exponential moving average taken from a selected higher timeframe and colors both the line and the chart background by whether the close is above or below that average. It requests the EMA through request.security and, when the chosen t

Indicator v6 TrendMoving averages
Updated 2 days ago · GPL-3.0 GitHub repository of Higher Timeframe Trend

BOLL-20-50 TARAMA

by gocaman
3 stars

Calculates 50-period and 200-period Exponential Moving Averages alongside standard and wide Bollinger Bands. It generates buy and sell signal labels on the chart when the Bollinger Band basis crosses above or below the 50 EMA. The script also includes volume-w

Indicator v5 Moving averagesVolatility & bands
Updated 2 days ago · None stated GitHub repository of BOLL-20-50 TARAMA

ZigZag OrderBlock Retracement

by ricksimpsontrading
3 stars

ZigZag OrderBlock Retracement plots multi-layer ZigZag swing structures, order blocks, breaker blocks, and optimal trade entry (OTE) zones directly on the price chart. It supports up to four distinct ZigZag depth layers to analyze both short-term and long-term

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 10 days ago · None stated GitHub repository of ZigZag OrderBlock Retracement

Supertrend

by AkashSasikumar47
3 stars

This script plots up to three ATR-based Supertrend lines directly on the price chart. Each line uses customizable ATR periods and multipliers to establish trailing support or resistance levels based on median price calculations. Green lines below price indicat

Indicator v6 TrendVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Supertrend

Overlay Scaffold

by jpantsjoha
3 stars

This indicator plots a fast and a slow exponential moving average on the price chart. It marks bullish and bearish crosses with optional labels and circle markers, and it shades the background according to which average is higher. Users can change both lengths

Indicator v6 Moving averagesTrend
Updated 4 weeks ago · Custom licence GitHub repository of Overlay Scaffold

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