Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 5)

Scripts written for Pine Script version 6, the current version of TradingView's language. They paste into the Pine Editor and run as they are.

Pine scripts4,367
Code shown here2,412open licence
Updated in a year4,021
No repaint flag3,857

Pine Script v6: Indicators, Strategies and Libraries

Algo

by TamTH-Dev
2 stars

This indicator plots dual Kaufman Adaptive Moving Averages (KAMA) alongside a volume profile component on the main price chart. Users can configure two separate KAMA instances with distinct timeframes, lookback lengths, and fast or slow smoothing limits. The i

Indicator v6 Moving averagesVolume
Updated 5 weeks ago · None stated GitHub repository of Algo

Gamma Levels v3 Auto

by Timonkru
2 stars

Gamma Levels Auto plots daily options-derived dealer gamma levels directly on the price chart. It projects structural levels (7 to 45 DTE) and near-term 0DTE levels, including gamma flip zones, call and put walls, max pain, expected move, and Vanna or Charm st

Indicator v6 Support & resistanceVolatility & bands
Updated 6 weeks ago · MIT GitHub repository of Gamma Levels v3 Auto

This indicator plots Gamma Exposure (GEX) levels, market breakout structures, and session anchors directly on the price chart for ES, SPX, and SPY. It renders key options analytics including Zero Gamma, Max Pain, Call and Put Walls, Volatility Bands, and Delta

Indicator v6 Support & resistanceBreakout
Updated 6 weeks ago · MIT GitHub repository of GEX Levels + Breakout Structure + Session AVWAP — ES/SPX/SPY

Apex Swing System

by omharde42
2 stars

Apex Swing System is a trend and momentum indicator designed for swing trading. It combines a 200-period simple moving average filter, RSI momentum checks, and the Ichimoku Cloud to identify bullish and bearish setups. Upon confirming a signal, it plots fixed

Indicator v6 TrendOscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of Apex Swing System

Trust Me Bro Strategy

by moonyroy
2 stars

A trading strategy that uses an RSI state machine tracking 50-level crossovers, pullbacks, and hidden divergences. Entries require confirmation from optional confluence filters, including an EMA touch, Fibonacci retracement zones, and Ichimoku cloud conditions

Strategy v6 Oscillators & momentumDivergence
Updated 7 weeks ago · MIT GitHub repository of Trust Me Bro Strategy

ICT + FVG + RSI

by Allysson-Rodrigues
2 stars

This multi-timeframe indicator overlays ICT Fair Value Gaps (FVGs) and higher-timeframe candle projections directly onto the price chart. It aggregates price imbalance context across up to six configurable timeframes while maintaining a dynamic multi-timeframe

Indicator v6 SMC / ICT / price actionOscillators & momentum Repaints
Updated 7 weeks ago · MIT GitHub repository of ICT + FVG + RSI
2 stars

Wave Amplitude Levels is an overlay indicator that measures average daily price amplitude as half the daily high-low range, smoothed over a user-set lookback. It requests the previous daily close and that average with a one-bar offset, then plots five stepline

Indicator v6 Support & resistanceVolatility & bands
Updated 7 weeks ago · None stated GitHub repository of Wave Amplitude Levels
2 stars

Crypto Intermarket Correlation calculates rolling Pearson correlation for Bitcoin and Ethereum against a user-selected benchmark symbol, such as stock indices or gold. Displayed in a separate pane, the indicator plots individual crypto correlations along with

Indicator v6
Updated 8 weeks ago · MPL-2.0 GitHub repository of Crypto Intermarket Correlation
2 stars

The Fake Breakout / Breakdown Setup indicator identifies false breakouts (FBO) and false breakdowns (FBD) by tracking liquidity sweeps of previous price highs and lows. It validates reversals using follow-up price action and a confirmation scoring system based

Indicator v6 BreakoutOscillators & momentum
Updated 8 weeks ago · None stated GitHub repository of Fake Breakout / Breakdown Setup
2 stars

This overlay indicator demonstrates TradingView alert configuration. It plots 20- and 50-period simple moving averages and creates alert conditions when price crosses the shorter average or the averages cross each other. It also alerts on RSI crossing 70 or 30

Indicator v6 Moving averagesOscillators & momentum
Updated 2 months ago · MIT GitHub repository of Alert Configuration Examples

TFX Gold Sniper - V26 Black-Gold

by vijayavardhanarajumahanandi-cell
2 stars

This indicator calculates a derivative Relative Strength Index using polynomial curve fitting and linear algebra routines to identify market momentum shifts. It displays long, short, and exit signal labels directly on the main price chart alongside risk-to-rew

Indicator v6 Oscillators & momentumTrend
Updated 2 months ago · None stated GitHub repository of TFX Gold Sniper - V26 Black-Gold

This indicator draws automatic support and resistance trend lines on the price chart. It builds them from zigzag pivots set by the pivot period and groups them as major or minor, external or internal, and rising or falling. It can alert when price breaks or re

Indicator v6 Support & resistanceBreakout
Updated 2 months ago · None stated GitHub repository of Auto TrendLines [TradingFinder] Support Resistance Alerts

FYP Bot 1

by aleks-drozy
2 stars

This strategy executes trades based on a combination of Smart Money Concepts, including Inverse Fair Value Gaps (IFVG) and Change in State of Delivery (CISD) structure breaks. Entries require confluence between IFVG flips, structural CISD breaks, a 20-period e

Strategy v6 SMC / ICT / price actionTrend
Updated 2 months ago · MIT GitHub repository of FYP Bot 1
2 stars

ATR% Multiple from MA measures price extension relative to a moving average, expressed in multiples of Average True Range percentage. It calculates ATR as a percentage of close, evaluates the percentage distance between the price and its moving average, and no

Indicator v6 Moving averagesVolatility & bands
Updated 3 months ago · Apache-2.0 GitHub repository of ATR% Multiple from MA

MahadevLevels35 PRO

by phadmahadev-ops
2 stars

MahadevLevels35 PRO is a Pine Script v6 indicator that draws Mahadev price levels with endings like 03, 11, 29, 35, 65 and 71 across a user-defined range directly on the price chart. It overlays a stack of seven EMAs with customizable colors and source, plus V

Indicator v6 Support & resistanceMoving averages
Updated 3 months ago · MIT GitHub repository of MahadevLevels35 PRO

HTF / Power Play Levels

by mirkothepirko
2 stars

This indicator detects High Tight Flag (HTF) and Power Play chart patterns on the price chart. It measures pole gain, flag consolidation duration, and depth, while checking for volume dry-up and moving average trend alignment. When a pattern qualifies, it plot

Indicator v6 BreakoutSupport & resistance
Updated 3 months ago · Custom licence GitHub repository of HTF / Power Play Levels

ATR Helper [btankutt]

by btankutt
2 stars

ATR Helper is a trade planning indicator that calculates dynamic stop-loss levels and multi-stage profit targets. It uses an Average True Range multiple with selectable smoothing to determine the stop distance from either the current close or a manual entry pr

Indicator v6 Volatility & bandsSupport & resistance
Updated 3 months ago · MPL-2.0 GitHub repository of ATR Helper [btankutt]
2 stars

This overlay approximates order-book liquidity from intrabar OHLCV buckets because true depth-of-market data is unavailable. It paints a decaying volume heatmap around price and labels absorption, exhaustion, rejection, and momentum when wick, body, delta, and

Indicator v6 VolumeSupport & resistance
Updated 4 months ago · None stated GitHub repository of Bookmap Liquidity Mapper [TReset]

XAUUSD Breakout Grid

by Young666YHF
2 stars

The XAUUSD Breakout Grid strategy executes market orders when price crosses defined dollar-denominated grid levels on the price chart. It tracks entries using array structures and dynamically adjusts position sizing to balance net exposure between long and sho

Strategy v6 BreakoutSupport & resistance
Updated 4 months ago · None stated GitHub repository of XAUUSD Breakout Grid

QTrade MACD

by Can3299
2 stars

QTrade MACD is a trend-following momentum strategy that enters positions on MACD histogram crossovers. Entry signals are filtered using SuperTrend direction alignment, zero-line position rules, and zero-line distance tolerance checks. Stop loss levels are esta

Strategy v6 TrendOscillators & momentum
Updated 5 months ago · AGPL-3.0 GitHub repository of QTrade MACD

AIO Sniper SMC HUD

by puzzithinker
2 stars

This indicator maps Smart Money Concepts (SMC) directly onto the price chart. It detects swing and internal market structure, strong and weak highs and lows, equal highs and lows, fair value gaps (FVGs), and order blocks (OBs). It also plots premium and discou

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of AIO Sniper SMC HUD

BTC Pattern Breakout Final

by Yashiine-code
2 stars

This indicator detects chart structure setups on the price chart, including W-bottom and convergence breakouts, M-top and convergence breakdowns, and false breakout alerts. Signals are filtered using moving average volume expansion, ATR momentum growth, and ex

Indicator v6 BreakoutSupport & resistance
Updated 5 months ago · None stated GitHub repository of BTC Pattern Breakout Final

Trend Duration Forecast

by middlechild0
2 stars

Trend Duration Forecast plots Hull Moving Average on the price chart and detects trend changes using consecutive rising or falling slopes. It counts trend bar durations, stores bullish and bearish counts in arrays, and calculates average probable extension len

Indicator v6 Trend
Updated 5 months ago · None stated GitHub repository of Trend Duration Forecast
2 stars

This overlay indicator approximates a Bookmap-style liquidity view from price and volume. It draws heatmap boxes where volume exceeds a rolling average, volume dots above a relative-volume filter, and a smoothed cumulative-delta proxy. Optional signals use abs

Indicator v6 VolumeSupport & resistance
Updated 6 months ago · None stated GitHub repository of Bookmap Heatmap & Order Flow
2 stars

The Day Trading Strategy v1 indicator displays key intraday technical levels and signal markers on the main price chart. It plots standard 8 and 21 SMAs, multi-timeframe 200 SMAs (5m, 10m, 1h), session VWAP, pre-market high/low levels, and the initial 9:30–9:4

Indicator v6 TrendMoving averages
Updated 6 months ago · None stated GitHub repository of Day Trading Strategy v1
2 stars

Strong Wealth Magnet is an overlay indicator that scores price action and draws selected narrative layers on the price chart. Up to three modes can run together, including a Pro layout and a Six Eyes view that reviews past signals over a chosen window and labe

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of Strong Wealth Magnet

This indicator analyzes Bitcoin trends and their effect on altcoins using multiple timeframes and exchanges. It plots up to four EMAs and one SMA on the price chart with customizable colors and optional extension lines. Two trend detection modes compare BTC cl

Indicator v6 TrendMoving averages
Updated 6 months ago · None stated GitHub repository of Indicador de Tendências do BTC e Altcoins

BB Breakout Reversal Strategy

by WayneMoore1006
2 stars

This quantitative strategy calculates custom Bollinger Bands using a standard moving average and standard deviation multiplier. It generates long entry signals when the bar close breaks above the upper band, and short entry signals when the close breaks below

Strategy v6 Volatility & bandsBreakout
Updated 6 months ago · None stated GitHub repository of BB Breakout Reversal Strategy
2 stars

This indicator detects institutional candles where the body exceeds a multiple of the rolling average body size. It creates and draws supply and demand zone boxes directly on the price chart, validating them over subsequent bars to discard invalidated zones. W

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 6 months ago · None stated GitHub repository of Ghost Zone v8 - Institutional Zones
2 stars

This indicator applies Omori's law from seismology to post-crash volatility. It flags a mainshock when price falls a set percentage from a recent high, then plots a power-law decay envelope from elapsed bars, productivity, time offset, and decay exponent. Afte

Indicator v6 Volatility & bandsScreeners & dashboards
Updated 7 months ago · None stated GitHub repository of Omori Law: Market Shockwaves

Hari Sweep Scalper

by godlesscherry
2 stars

This overlay strategy looks for Bollinger Band and optional fractal sweeps only in the Supertrend direction, with an optional MACD filter. Long and short setups expire after a set number of bars, and the first bar after a Supertrend flip is ignored. It enters

Strategy v6 TrendVolatility & bands
Updated 7 months ago · None stated GitHub repository of Hari Sweep Scalper

Normalized Market Monitor

by realanthonyc
2 stars

Normalized Market Monitor scales the price action of two distinct symbols into a normalized oscillator ranging from -100 to +100 over a chosen lookback period. Plotted in a separate pane, the indicator enables traders to observe and compare the relative positi

Indicator v6 Oscillators & momentumSessions & time
Updated 7 months ago · MPL-2.0 GitHub repository of Normalized Market Monitor

Premarket Metrics Dashboard

by realanthonyc
2 stars

This indicator calculates and displays key premarket metrics in a table dashboard located on the top right of the price chart. It tracks the current price, gap percentage relative to the prior day close, overnight trend bias, premarket high and low, overnight

Indicator v6 Screeners & dashboardsSessions & time
Updated 7 months ago · MPL-2.0 GitHub repository of Premarket Metrics Dashboard

alpyvix

by avatar-lavventura
2 stars

This strategy implements a self-calibrating WaveTrend oscillator with rolling percentile-based dynamic entry zones rather than fixed levels. It enters long positions when the oscillator enters lower percentile zones and short positions in upper percentile zone

Strategy v6 Oscillators & momentumVolatility & bands
Updated 7 months ago · None stated GitHub repository of alpyvix
2 stars

This indicator measures market deleveraging and liquidation stress on a 0 to 100 scale, plotted in a separate pane. It evaluates extreme downside price velocity via standardized log returns, volatility expansion using an ATR Z-score, a rolling stress bar casca

Indicator v6 Volatility & bandsScreeners & dashboards
Updated 8 months ago · MPL-2.0 GitHub repository of Deleveraging Detection Score
2 stars

This indicator plots the previous trading day's high and low on the price chart, together with the developing high and low of the current session. It reads the last closed daily high and low and locks those values at the start of each session. A session window

Indicator v6 Support & resistanceSessions & time
Updated 8 months ago · MPL-2.0 GitHub repository of Previous Day High-Low (PDHL)

This indicator measures how far price sits from a simple moving average, expressed as a percentage, then smooths that difference and plots it as an area in a separate pane. Green marks a positive deviation and red a negative one, so the series acts as a direct

Indicator v6 Moving averagesMean reversion Repaints
Updated 8 months ago · MIT GitHub repository of Grid Bot [Direction plugin] Price Deviation [psyll]

The Asset Rotation System evaluates relative trend strength and rotational performance across up to six selectable assets. It calculates trend classification based on user-selected technical indicators including RSI, CCI, SuperTrend, DMI, and Parabolic SAR. Th

Indicator v6 Oscillators & momentumTrend
Updated 8 months ago · None stated GitHub repository of Asset Rotation System [InvestorUnknown]

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