Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 6)

Scripts written for Pine Script version 5. They still run in TradingView as they are, and the Pine Editor can convert them to version 6.

Pine scripts4,643
Code shown here2,378open licence
Updated in a year2,687
No repaint flag4,051

Pine Script v5: Indicators, Strategies and Libraries

HTF OB M30 + LTF Entry System

by ifreddyman2014-tech
2 stars

This multi-timeframe indicator detects order blocks on the HTF M30 timeframe and generates precise entries on the LTF M1 timeframe using break of structure, displacement, and fair value gap concepts. It requires liquidity sweeps for confirmation and signals en

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 8 months ago · None stated GitHub repository of HTF OB M30 + LTF Entry System
2 stars

This indicator calculates real-time risk metrics and position duration limits based on Average True Range (ATR) volatility. It estimates how many minutes a position can remain open before hitting maximum allowable drawdown, considering user inputs for account

Indicator v5 Volatility & bandsScreeners & dashboards Repaints
Updated 9 months ago · None stated GitHub repository of Espérance de Vie Trading - ATR

BMNR Power Law

by 0xDkd
2 stars

BMNR Power Law is a crypto-focused valuation channel indicator that plots dynamic power law bands on the main chart. It calculates top, middle, and bottom valuation lines using exponential model parameters applied to daily prices. An optional Average True Rang

Indicator v5 Support & resistanceVolatility & bands Repaints
Updated 9 months ago · MIT GitHub repository of BMNR Power Law

HMACross Algobid

by Algobid-ir
2 stars

HMACross Algobid calculates and plots a Hull Moving Average (HMA) with trend signal indicators directly on the main price chart. It evaluates multi-timeframe market data across four user-defined timeframes and incorporates an optional Average Directional Index

Indicator v5 TrendMoving averages Repaints
Updated 10 months ago · None stated GitHub repository of HMACross Algobid

EMA Trend Surfer

by nxtaiapp
2 stars

EMA Trend Surfer is a dual-timeframe trend-following strategy designed for index futures such as MES and MNQ. It determines overall trend direction using fast and slow exponential moving averages on a higher timeframe while seeking entry signals on a lower tim

Strategy v5 TrendMoving averages
Updated 11 months ago · MIT GitHub repository of EMA Trend Surfer

This indicator combines five technical metrics normalized between 0 and 100 in a separate pane: RSI (with optional divergence detection), Stochastic, Relative Volatility Index (RVI), Average Directional Index (ADX), and Money Flow Index (MFI). Users can select

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of TLC 0 to 100 Five Indicators VolMom

2Mars - MA / BB / SuperTrend

by wynnforthework
2 stars

This strategy combines moving averages, Bollinger Bands, and SuperTrend indicators to generate long and short entry signals. It uses configurable moving average crossovers and Bollinger Band threshold levels for trade execution, complemented by optional SuperT

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of 2Mars - MA / BB / SuperTrend
2 stars

The Covered Calls Optimizer indicator helps traders analyze covered call option strategies directly on price charts. It calculates target strike prices and estimated yields based on stock volatility (ATR and 20-day historical volatility) and user-defined risk

Indicator v5 Volatility & bandsSupport & resistance
Updated 1 year ago · MIT GitHub repository of Covered Calls Optimizer
2 stars

Support/Resistence MTF indicator plots support and resistance levels on the price chart by detecting pivots across multiple configurable timeframes. It identifies turning points using ta.pivothigh and ta.pivotlow functions, then consolidates nearby levels into

Indicator v5 Support & resistance Repaints
Updated 1 year ago · MIT GitHub repository of Support/Resistence MTF

RSI Strategy

by vanAmsen
2 stars

The RSI Strategy plots the Relative Strength Index (RSI) on the chart with oversold and overbought level lines. Long entries trigger when RSI crosses above the oversold threshold, and short entries when it crosses below the overbought threshold. Positions exit

Strategy v5 Oscillators & momentum
Updated 1 year ago · GPL-3.0 GitHub repository of RSI Strategy

The Smart Money Liquidity Heatmap indicator identifies potential institutional liquidity zones on the main price chart. It compares Smart Money Index (derived from NVI) against Dumb Money Index (derived from PVI) relative to their moving averages and RSI value

Indicator v5 SMC / ICT / price actionVolume
Updated 1 year ago · None stated GitHub repository of Smart Money Liquidity Heatmap [AlgoAlpha]

This indicator identifies Smart Money Concepts structure alongside a four-line moving average ribbon on the price chart. It detects swing highs and lows across a user-defined lookback period, generating price action labels such as higher highs, lower highs, hi

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of FluidTrades - SMC Lite + Moving Average Ribbon

This indicator identifies bullish and bearish Fair Value Gaps (FVG) on the main price chart based on three-bar price imbalances. It features an optional ATR-based displacement filter to isolate gaps formed during strong market momentum. Detected gaps are displ

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · GPL-3.0 GitHub repository of Pro SMC Fair Value Gap (FVG) Indicator
2 stars

The indicator calculates volatility-based stepped support and resistance levels overlaying the price chart. It tracks a central average that shifts incrementally when price exceeds an ATR-scaled boundary. From this baseline, it projects two upper resistance le

Indicator v5 Support & resistanceVolatility & bands
Updated 1 year ago · Custom licence GitHub repository of Predictive Ranges [LuxAlgo]

Logan Bollinger Bands

by RsKBruno
2 stars

This Pine Script strategy plots Bollinger Bands on the price chart using a central line and standard deviation for volatility detection. It includes an optional EMA trend filter and ADX strength filter to refine signals. The strategy allows buy or sell entries

Strategy v5 Volatility & bandsMoving averages
Updated 1 year ago · MIT GitHub repository of Logan Bollinger Bands

ICT Macros

by klimasevskiy
2 stars

The ICT Macros indicator plots volatility periods based on ICT smart money concepts on the price chart. It highlights London Macros (02:33-03:00, 04:03-04:30), New York AM Macros (08:50-09:10, 09:50-10:10, 10:50-11:10), and New York Lunch + PM Macros (11:50-12

Indicator v5 Volatility & bandsSupport & resistance
Updated 1 year ago · None stated GitHub repository of ICT Macros
2 stars

This overlay indicator counts consecutive bars where the close is below the close four bars earlier, and a separate count where the close is above that reference. Each count runs from 1 to 13 and then restarts at 1. It paints price bars with a gradient that da

Indicator v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Tom DeMark Sequential Heat Map

Startegy

by orenkats
2 stars

This strategy draws on the price chart and sizes positions from account equity, a risk percent, and a leverage multiplier. It tracks long and short stops, pending add-on entries, limit and stop order offsets, and a percentage profit target. Settings change lin

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of Startegy

Wavy Tunnel MS3

by algoboss710
2 stars

The Wavy Tunnel MS3 strategy plots multiple exponential moving averages to form a wavy tunnel on the price chart. It computes wavy high, close, and low lines using 34-period EMAs, along with 144- and 169-period tunnel lines and a 12-period EMA. Optional RSI an

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Wavy Tunnel MS3

Advanced Scalping EMA & RSI Strategy is an overlay indicator that combines fast and smooth moving averages with RSI levels and candlestick patterns to generate scalping signals. Users can select calculation methods for moving averages, such as SMA, EMA, WMA, o

Indicator v5 TrendOscillators & momentum
Updated 2 years ago · MIT GitHub repository of Advanced Scalping EMA & RSI Strategy

Tex Santos Up Left

by scallywag41
2 stars

This indicator monitors technical conditions across up to ten user-defined ticker symbols simultaneously in a separate chart pane. For each symbol, it fetches market data and computes nine-period and two-hundred-period simple moving averages, a fourteen-period

Indicator v5 Screeners & dashboardsOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Tex Santos Up Left

SuperTrend

by KorayGocmen
2 stars

This indicator plots a SuperTrend line on the price chart to mark trend direction. It builds upper and lower bands from a user-selected price source and either average true range or standard deviation, then trails the active band as the trend continues. A gree

Indicator v5 TrendVolatility & bands Repaints
Updated 2 years ago · None stated GitHub repository of SuperTrend

ATR Reversion System

by Web3Degenerate
2 stars

The ATR Reversion System is a long-only mean-reversion strategy that plots ATR bands around a short-term EMA (20) and a long-term EMA (200) filter on the price chart. It signals entries by checking if the close is below the bottom ATR band and above the long E

Strategy v5 Mean reversionMoving averages
Updated 2 years ago · None stated GitHub repository of ATR Reversion System

Mc War Final

by tuanmcwar
2 stars

Mc War Final is a market structure and Smart Money Concepts indicator that plots swing high and low points, market structure labels, order blocks, and strong or weak high/low levels directly on the price chart. Users can customize swing detection lengths, visu

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

This indicator calculates and plots the Average Directional Index (ADX) along with the positive (+DI) and negative (-DI) directional movement lines in a separate pane. It evaluates trend strength by processing daily price data regardless of the current chart t

Indicator v5 TrendOscillators & momentum
Updated 2 years ago · Apache-2.0 GitHub repository of Average Directional Index (ADX)

Calculates Time Point of Control (TPOC) and Volume Point of Control (VPOC) using lower-timeframe data mapped to the current chart resolution. It plots control levels directly on the price chart, highlighting bars where the percentage of time or volume exceeds

Indicator v5 VolumeSupport & resistance
Updated 2 years ago · None stated GitHub repository of Time & volume point of control (TPOC & VPOC)

VWAP Percent Distance

by francolla
2 stars

VWAP Percent Distance calculates and plots the relative percentage difference between the closing price and the Volume Weighted Average Price (VWAP). Designed as a mean-reversion tool, it helps traders measure how far price has stretched from VWAP in percentag

Indicator v5 Mean reversionMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of VWAP Percent Distance

This indicator plots four exponential moving averages (50, 100, 200, and 5 periods) on the price chart. It computes an ATR-based trailing stop using sensitivity and period settings. The trailing stop updates based on price action and Heikin Ashi candles if ena

Indicator v5 TrendMoving averages
Updated 2 years ago · MIT GitHub repository of Combined 3EMA and UT Bot Alerts with 5 EMA Trend Alert

Index Trend Filter

by jpiedrafita
2 stars

This indicator plots a constant histogram in a separate pane to show whether a selected index is above or below its simple moving average. It requests the index close on the chart timeframe, computes an SMA of a user-set length, and colors the bar lime when pr

Indicator v5 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of Index Trend Filter

[wsh]CCC_MAs_dev

by klevler
2 stars

This indicator plots adaptive moving averages directly on the price chart based on the selected timeframe. On daily charts, it calculates 10 and 21 EMAs along with 50, 150, and 200 SMAs. On non-daily timeframes, it switches to 30, 40, and 50 SMAs. Additionally

Indicator v5 TrendMoving averages
Updated 2 years ago · MIT GitHub repository of [wsh]CCC_MAs_dev

EarnWithKoKo_1.1

by kamrankhoxa
2 stars

The indicator plots a linear regression channel on the price chart to identify support and resistance levels. It includes options for diagonal trendlines, horizontal support lines, and detects broken channels. Users can show Fibonacci levels, extend lines, and

Indicator v5 TrendSupport & resistance Repaints
Updated 2 years ago · None stated GitHub repository of EarnWithKoKo_1.1

Flag Finder

by mikah13
2 stars

Flag Finder is an indicator that automatically identifies bull and bear flag chart patterns directly on the price chart. It measures prior momentum (flagpole percentage gain or loss and length) alongside consolidation depth and flag bar duration. When flag con

Indicator v5 BreakoutSupport & resistance
Updated 2 years ago · None stated GitHub repository of Flag Finder
2 stars

This indicator identifies and labels market structure components directly on the price chart. It uses pivot calculations to detect swing points, labeling Higher Highs, Lower Highs, Higher Lows, and Lower Lows. It tracks breakouts above or below recent swing le

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 years ago · MIT GitHub repository of Using Market Structure
2 stars

The Quantitative Stock Confluence Finder is a Pine Script v5 indicator that plots technical elements directly on the price chart to help identify potential confluence zones in stocks. It calculates and displays bands around a simple moving average with adjusta

Indicator v5 Moving averagesOscillators & momentum Repaints
Updated 2 years ago · None stated GitHub repository of Quantitative Stock Confluence Finder

BB & RSI & MACD

by Sauyang520
2 stars

This trading strategy combines Bollinger Bands, Relative Strength Index (RSI), and Moving Average Convergence Divergence (MACD) to generate trading signals. It enters positions based on price interactions with Bollinger Bands alongside RSI overbought or overso

Strategy v5 Oscillators & momentumVolatility & bands
Updated 2 years ago · None stated GitHub repository of BB & RSI & MACD

This indicator plots an optimal RSI in a separate pane and uses a k-nearest neighbour machine learning routine to adjust lookback and RSI count. It can mark RSI crossings, draw adaptive Bollinger bands around the RSI, and show tables of current settings. Users

Indicator v5 Oscillators & momentumVolatility & bands
Updated 2 years ago · None stated GitHub repository of Machine Learning: Optimal RSI [YinYangAlgorithms]

IB & EMA

by jvalen01
2 stars

This TradingView indicator plots three exponential moving averages of 10, 21, and 50 periods on the price chart. Users toggle visibility of each EMA via a group input. It also colors bars yellow when an inside day forms, defined by the current bar's high and l

Indicator v5 Moving averagesCandlestick patterns
Updated 3 years ago · None stated GitHub repository of IB & EMA
2 stars

This strategy builds a spot grid on the price chart from a user-set upper price and a percentage spacing. It calculates ten descending levels, plots the upper and lower bounds, and allows up to ten stacked entries sized as a percentage of equity. Orders are pr

Strategy v5 Support & resistanceMean reversion
Updated 3 years ago · None stated GitHub repository of 그리드현물매매전략

HTF Candle & Pivots

by itmakesyousick
2 stars

Calculates and overlays higher-timeframe (HTF) candles and pivot point levels directly onto the price chart. Users can select higher timeframes automatically or manually, toggle wicks and bodies, and customize display modes for historical HTF bars. It plots tr

Indicator v5 Support & resistance
Updated 3 years ago · None stated GitHub repository of HTF Candle & Pivots

Table 1m 15m 1HR

by srinivas-yarramsetti
2 stars

The Table 1m 15m 1HR indicator renders a multi-asset monitoring table overlay on the top-right of the price chart. It fetches real-time prices and calculates percentage price changes across 1-minute, 15-minute, and 1-hour timeframes relative to the prior day's

Indicator v5 Screeners & dashboards
Updated 3 years ago · None stated GitHub repository of Table 1m 15m 1HR
2 stars

This indicator calculates and plots up to three independent Zigzag lines on the price chart, each with its own customizable period and styling. It automatically generates Fibonacci retracement levels based on user-selected Zigzag legs, such as the latest or pr

Indicator v5 Support & resistanceTrend Repaints
Updated 3 years ago · None stated GitHub repository of 3 Zigzag for MTF Fib Alert [MsF]

ICT Silver Bullet

by syuraj
2 stars

The ICT Silver Bullet indicator plots Smart Money Concepts market structure elements directly on the main price chart. It detects and highlights market structure shifts, breaks of structure, bullish and bearish order blocks, fair value gaps, balance price rang

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 3 years ago · None stated GitHub repository of ICT Silver Bullet

Bollinger Bands Strategy

by TravisLeeRichardson
2 stars

This strategy plots standard and dual-level Bollinger Bands on the main price chart to generate breakout signals. It enters a long position when the price crosses above the upper band and enters a short position when the price crosses below the lower band. Pos

Strategy v5 Volatility & bandsMoving averages
Updated 3 years ago · None stated GitHub repository of Bollinger Bands Strategy
2 stars

This strategy starter boilerplate serves as a backtesting template that overlays directly on the price chart. It sets default position sizing to twenty percent of equity and calculates an exponential moving average alongside high and low price thresholds. Inpu

Strategy v5 TrendMoving averages
Updated 3 years ago · None stated GitHub repository of [CBB] 2023 Strategy Default

Mini-Project

by Core-Four
2 stars

Mini-Project is a customizable multi-indicator strategy that enables traders to combine entry signals from Linear Regression, RSI, MACD, Parabolic SAR, and Supertrend. Users can toggle individual technical filters on or off to drive trade entries or enable a c

Strategy v5 TrendOscillators & momentum
Updated 3 years ago · None stated GitHub repository of Mini-Project

BarUpDn Strategy

by jaabari
2 stars

BarUpDn Strategy is a lightweight indicator that identifies basic price momentum by comparing consecutive closing prices. It calculates the difference between the current close and the previous bar's close. When the close is higher, it displays an upward green

Indicator v5 Oscillators & momentumCandlestick patterns
Updated 3 years ago · None stated GitHub repository of BarUpDn Strategy

MultiStrategy-LazyBear

by sassiz-root
2 stars

This overlay strategy combines optional scalp and swing modes for crypto charts. It filters trades with a higher-timeframe ADX reading, stochastic bands, and a price channel defined by amplitude and deviation. Long or short direction is selected by trend toggl

Strategy v5 TrendOscillators & momentum Repaints
Updated 3 years ago · MIT GitHub repository of MultiStrategy-LazyBear

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