Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 25)

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

Aperture COG LinReg

by pineforge-4pass
1 stars

A long-only strategy that combines the Center of Gravity oscillator with a linear regression path. It enters long when the oscillator crosses above its EMA signal while the regression line is rising and price sits above it. It exits when the oscillator crosses

Strategy v6 Oscillators & momentumTrend
Updated 7 days ago · Apache-2.0 GitHub repository of Aperture COG LinReg

I Math Colors

by GammaExpansion
1 stars

The indicator plots values from multiple math and color functions in Pine Script v6. It tests pow, sqrt, exp, log, sin, cos, tan, abs, ceil, floor, round, avg, max, min, random, and constants like pi, e, phi. It also encodes colors and extracts components usin

Indicator v6
Updated 7 days ago · MIT GitHub repository of I Math Colors

EMA-Volume

by engtuncay
1 stars

EMA-Volume plots two exponential moving averages on the price chart and marks when the faster average crosses the slower one. It also calculates a simple moving average of volume and treats volume as high or low relative to that average. Ordinary crosses get s

Indicator v6 TrendMoving averages
Updated 7 days ago · None stated GitHub repository of EMA-Volume

Cherry on Top

by ElroyvOuwerkerk
1 stars

A bar-by-bar indicator that marks a bearish signal when the current bar takes the previous high and closes within the lower division of its own range, and a bullish signal when it takes the previous low and closes in the upper division. The number of divisions

Indicator v6 Candlestick patterns
Updated 8 days ago · None stated GitHub repository of Cherry on Top
1 stars

A Supertrend strategy drawn on the price chart whose multiplier can adapt to the detected market regime using ADX. Entries need a minimum signal score and can be filtered by a trend EMA, a skip-ranging rule, a volume filter and a bar cooldown. Stop loss can us

Strategy v6 TrendVolatility & bands
Updated 8 days ago · None stated GitHub repository of SuperTrend AI Strategy Adaptive

GridWB3 V7

by cckmchiu-gapps
1 stars

This indicator draws a price and time grid on the price chart that scales itself in one of two modes. Full Visible Screen uses the highest high and lowest low of the bars currently on screen, while Fixed Historical Dates uses a chosen start and end date. The b

Indicator v6
Updated 8 days ago · None stated GitHub repository of GridWB3 V7

Academia PO3 Professional v3

by rosijay17-cmd
1 stars

An indicator that scores the market through the phases of the power of three model on the price chart: accumulation, manipulation, expansion, trend and exhaustion. Scores combine ATR contraction, price efficiency, bar overlap, relative volume, a flow proxy, li

Indicator v6 SMC / ICT / price actionVolatility & bands
Updated 8 days ago · GPL-3.0 GitHub repository of Academia PO3 Professional v3

A price-chart indicator that extends a futures screener with a buy confirmation engine. A focus panel scores one contract across five timeframes, a board scans a list of futures markets on one timeframe, and a checklist panel shows which confirmations pass on

Indicator v6 Screeners & dashboardsTrend
Updated 8 days ago · Custom licence GitHub repository of Phantom Flow Futures Screener (Buy Checklist)

A Pine v6 research strategy for slower accumulation on crypto charts. It uses fast and slow trend EMAs, a weekly higher timeframe filter, an RSI accumulation threshold and a multi-timeframe regime cascade. Up to three entries can be added with a minimum bar ga

Strategy v6 TrendSupport & resistance
Updated 12 days ago · MIT GitHub repository of Crypto TA Pro Long Term Hold Companion

DEPV2 A1 · TR + ATR

by YuceSezar89
1 stars

This indicator calculates and plots True Range (TR) and Average True Range (ATR) in a separate pane. True Range accounts for price gaps between bar closes, while Average True Range smoothes TR over a configurable length parameter, which defaults to 10 bars. Tr

Indicator v6 Volatility & bands
Updated 13 days ago · None stated GitHub repository of DEPV2 A1 · TR + ATR

MA + R:R Strategy (tuned)

by MuhammadMuhamid
1 stars

A long-only crypto spot strategy variant that makes a multi-timeframe moving average trend the primary entry trigger, with 300-period averages on one-minute and five-minute charts and a rising-slope requirement. Other trend, volume and structure filters are av

Strategy v6 TrendMoving averages
Updated 13 days ago · None stated GitHub repository of MA + R:R Strategy (tuned)

This indicator calculates and plots a stochastic oscillator in a separate pane with exposed fast %K, slow %K, and slow %D lines. It allows users to customize the smoothing method using SMA, EMA, WMA, or HMA instead of forcing standard SMA. Key input settings i

Indicator v6 Oscillators & momentum Repaints
Updated 2 weeks ago · MPL-2.0 GitHub repository of Taught to Trade - Configurable Stochastics

Fractal Model

by Just-beyond-z
1 stars

An overlay that draws higher-timeframe candles beside the live chart so the structure of larger candles can be read while trading a lower timeframe. Up to six timeframes can be shown, from 15 minutes to daily, in automatic or manual selection, with a set numbe

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 weeks ago · None stated GitHub repository of Fractal Model
1 stars

A strategy visualizer, with no real orders, that tracks a 200-bar moving average of lows on the 1-hour timeframe. When price touches the average it arms, then marks long or short entries on a wick rejection seen on 5 or 15 minute candles, or a run of three sam

Indicator v6 Mean reversionSupport & resistance Repaints
Updated 2 weeks ago · None stated GitHub repository of MA200 Wick Rejection

Hull Moving Average

by AkashSasikumar47
1 stars

A Pine v6 indicator that plots the Hull Moving Average on the price chart. It is built from weighted moving averages: twice a half-length average minus a full-length average, then smoothed over the square root of the length. This keeps lag low while staying sm

Indicator v6 Moving averagesTrend
Updated 2 weeks ago · MIT GitHub repository of Hull Moving Average

Ichimoku Cloud

by AkashSasikumar47
1 stars

The Ichimoku Cloud indicator plots five lines: Conversion Line, Base Line, Lagging Span, Leading Span A, and Leading Span B, forming a cloud on the price chart. It shows trend and momentum by position relative to the cloud: above green is bullish, below red is

Indicator v6 TrendMoving averages
Updated 2 weeks ago · MIT GitHub repository of Ichimoku Cloud
1 stars

A test strategy used to check how a converter handles broker emulation. It goes long when a 9-period EMA crosses above a 21-period EMA and short on the opposite cross. Open longs get a stop and a limit set from ATR multiples, while shorts get an ATR-based trai

Strategy v6 TrendMoving averages
Updated 3 weeks ago · Apache-2.0 GitHub repository of AlphaResin Conformance 3

Fibow

by moonyroy
1 stars

Fibow is an intraday trading strategy that tracks daily price extremes to calculate directional Fibonacci support and resistance levels. It monitors price action for Pin Bar and Engulfing candlestick patterns reacting at key Fibonacci retracement thresholds. U

Strategy v6 Support & resistanceCandlestick patterns
Updated 3 weeks ago · None stated GitHub repository of Fibow
1 stars

The indicator calculates confirmed pivot highs and lows on up to three user-selectable timeframes using source-timeframe closed bars only. It identifies the nearest resistance above and support below the current price by comparing candidates from each timefram

Indicator v6 Support & resistanceTrend Repaints
Updated 3 weeks ago · MIT GitHub repository of MTF Nearest Support / Resistance

Lunch Range Breakout

by JACKZHOU0521
1 stars

The Lunch Range Breakout indicator identifies and plots a midday consolidation range based on configurable exchange-time hours, defaulting to 11:30 through 13:30. Once the window closes, it plots the session high and low levels directly on the price chart. The

Indicator v6 BreakoutSupport & resistance
Updated 5 weeks ago · None stated GitHub repository of Lunch Range Breakout

ORB + ICT Manual Signals v3

by mccallister-dev
1 stars

This overlay indicator marks opening-range breakouts inside configurable Asian, London, and New York session windows. It searches for a break, retest, and continuation after an optional delay, then shows confirmed-bar signals with estimated entry, stop, and ta

Indicator v6 BreakoutSMC / ICT / price action
Updated 5 weeks ago · None stated GitHub repository of ORB + ICT Manual Signals v3

Kernal Cipher 2

by kdricha0602
1 stars

Kernal Cipher 2 is a lower-pane signal panel. It scores trend with fast, slow, and long EMAs, slope, Supertrend, and ADX, then blends WaveTrend, StochRSI, pivot divergence, volume, relative strength versus equity benchmarks, and beta. Green and red diamonds ma

Indicator v6 TrendOscillators & momentum
Updated 5 weeks ago · MIT GitHub repository of Kernal Cipher 2

Daily Trend Rider

by femibol
1 stars

A long-only swing strategy for daily charts of liquid stocks. It requires several consecutive green closes, a close above the 20 EMA, ADX above a minimum and a bullish SuperTrend, within a price band. Entry is a break of the prior high on volume or a pullback

Strategy v6 TrendBreakout
Updated 6 weeks ago · None stated GitHub repository of Daily Trend Rider

This overlay indicator marks the high and low of four Smart Money Concepts killzones on the price chart. It tracks the Asian range, London open, New York morning, and London close using America/New_York session windows so daylight saving shifts stay aligned. W

Indicator v6 Sessions & timeSMC / ICT / price action
Updated 7 weeks ago · MPL-2.0 GitHub repository of Session Highs and Lows Indicator (SMC Sessions, DST-safe)

Strategy 02 Placeholder

by Pr-ashant-pawar
1 stars

A Pine v6 indicator that contains no trading logic. The file is a placeholder for a second strategy in the repository, and its own comment says the source code was not available. It declares an overlay indicator and plots nothing, has no inputs, and produces n

Indicator v6
Updated 7 weeks ago · None stated GitHub repository of Strategy 02 Placeholder

MACD

by DEVfancybear
1 stars

This indicator calculates and plots the standard Moving Average Convergence Divergence oscillator in a separate chart pane. It computes a fast exponential moving average and a slow EMA, derives the MACD line from their difference, and calculates a smoothed sig

Indicator v6 Oscillators & momentumMoving averages
Updated 7 weeks ago · MIT GitHub repository of MACD

Bitmoon System

by morindok
1 stars

Bitmoon System projects mirrored price levels and symmetric price bands directly onto the main price chart. It calculates geometric mirror reflections using central and secondary user-selected price pivots and reference timestamps. The indicator identifies his

Indicator v6 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Bitmoon System

Indicator Template

by MoDarK-MK
1 stars

This indicator template provides a production-grade boilerplate for constructing custom TradingView indicators in Pine Script v6. It features a configurable lookback length and price source input, automatic or custom color theme styling, and an on-screen dashb

Indicator v6 Screeners & dashboards
Updated 8 weeks ago · MPL-2.0 GitHub repository of Indicator Template

Hedge Fund Manager SIGIL

by dwightspitz
1 stars

A strategy that builds simulated Renko bricks from the ATR of a chosen reference symbol, SPY by default, and trades within a set start and end date. It scales position sizes with a factor, keeps a hold percentage, and can add a TRAMA cloud with a percentage ex

Strategy v6 Trend
Updated 2 months ago · MIT GitHub repository of Hedge Fund Manager SIGIL

PowerTrend

by peterdmv
1 stars

PowerTrend is a price-chart overlay that recreates Webby's Power Trend. It plots a configurable EMA and SMA, counts consecutive days the low stays above the EMA and the EMA stays above the SMA, and starts an uptrend when those counts, a rising SMA, and an up c

Indicator v6 TrendMoving averages
Updated 2 months ago · MPL-2.0 GitHub repository of PowerTrend

Leg Delta Profile

by Robwhitlow3
1 stars

This indicator plots a horizontal net delta histogram on the price chart for the current active swing leg, from the last confirmed pivot to the current bar. Delta is approximated using lower-timeframe sub-bars, classifying volume as ask or bid based on close v

Indicator v6 VolumeSupport & resistance
Updated 2 months ago · MIT GitHub repository of Leg Delta Profile

Basic Trend View

by Alaamo7
1 stars

Basic Trend View is a simple educational indicator from a Pine Script v6 course that colors chart bars based on price direction. It colors bullish bars green when the close is greater than the open, bearish bars red when the close is less than the open, and ne

Indicator v6 Candlestick patternsTrend
Updated 2 months ago · Custom licence GitHub repository of Basic Trend View

Deviation Momentum For Loop

by vedkanani123
1 stars

A separate-pane momentum indicator that measures how far price sits from a selectable moving average and sums that deviation over a for-loop range of lookbacks, from a start to an end value. The result is compared with a long threshold and a short threshold to

Indicator v6 Oscillators & momentumTrend
Updated 2 months ago · None stated GitHub repository of Deviation Momentum For Loop
1 stars

A price-chart indicator built on the UT Bot ATR trailing stop idea, with sensitivity and ATR period inputs and a preset chosen from the chart timeframe. It prints buy and sell labels when price crosses the trailing line and offers an optional line, ribbon fill

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Luxy UT GOD UT-BOT Forecast

CH033 ORB+ VWAPs Indicator

by sandovalchristian033
1 stars

This indicator plots multiple anchored VWAPs, session ranges, fair value gaps, and multi-instrument monitoring tables directly on the price chart. It signals long or short setups when price breaks the initial fifteen-minute New York opening range, re-enters th

Indicator v6 BreakoutSessions & time
Updated 2 months ago · None stated GitHub repository of CH033 ORB+ VWAPs Indicator

Ultra Combo v57

by nishpa800
1 stars

Pine v6 overlay indicator that marks combination signals on the price chart. Groups include PBJ or PB with F2, E3 and cluster patterns, sequential combos, back-to-back day combos, Heavy Weapon with any bullish or bearish signal, GZ1 and high-volume mega combos

Indicator v6 VolumeOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Ultra Combo v57

Signal Overlay

by insomniac-asif
1 stars

A chart overlay with three exponential moving averages of 9, 21 and 50 bars, plus manual marker toggles for long, short, entry, stop hit and target hit on the latest bar. The setup type and a conviction score are typed in by the user and shown in the label. It

Indicator v6 Sessions & timeMoving averages
Updated 2 months ago · MIT GitHub repository of Signal Overlay

Smart Money Concepts Pro

by BrandonFreire
1 stars

A smart money concepts indicator for the price chart that labels internal and swing market structure as break of structure or change of character, with filters and a confluence option. It can draw internal and swing order blocks, strong and weak highs and lows

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of Smart Money Concepts Pro
1 stars

TN Swarm Modular Executor combines four distinct sub-strategy modules—Momentum (CCI), Mean Reversion (RSI), Breakout (Bollinger Bands), and Volatility (ATR channels)—into a multi-agent consensus engine. It calculates individual member signals and aggregates th

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of TN Swarm Modular Executor
1 stars

A chart-overlay indicator meant for 4-hour charts that combines several filters: a Heikin-Ashi MACD read from the daily timeframe without future data, an approximate volume profile with value area, a swing-anchored VWAP, a squeeze momentum reading built from B

Indicator v6 VolumeOscillators & momentum
Updated 2 months ago · None stated GitHub repository of POC VA MACD HA v8 4H Daily

APM v7 BTC/USD ALL

by rcaldwell67
1 stars

APM v7 BTC/USD ALL is an indicator that plots three exponential moving averages on the price chart for BTC-USD. It calculates EMA Fast, EMA Mid, and EMA Slow using user-defined lengths. Additional momentum oscillators include RSI, MACD, Stochastic, and CCI. Th

Indicator v6 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of APM v7 BTC/USD ALL

Adaptive Market Suite

by jayadevrana
1 stars

This indicator bundles four switchable modules, each with its own settings. The first is an adaptive moving average that speeds up in clean trends and shows a trending or ranging read. The second draws volatility bands whose width follows the ATR percentile. T

Indicator v6 TrendVolatility & bands
Updated 2 months ago · Custom licence GitHub repository of Adaptive Market Suite

OB REACT

by Jitheandra98
1 stars

This indicator detects bullish and bearish order blocks on the price chart following swing pivot breaks of structure. It highlights unmitigated supply and demand zones, flagging broken zones as dead to prevent breaker re-entries. The script tracks first-touch

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of OB REACT

RSI Based Strategy

by jaichaturvedi88
1 stars

A long-only mean reversion strategy for an Indian rupee account. It buys when RSI falls to 30 or below and closes the position when RSI reaches 80 or above. Order size is a fixed rupee amount divided by price, and orders are only placed within a hard-coded one

Strategy v6 Oscillators & momentumMean reversion
Updated 3 months ago · None stated GitHub repository of RSI Based Strategy
1 stars

This indicator plots options Max Pain strike price levels for HYPE from Deribit as horizontal dashed lines on the price chart. Each line extends from the current bar to the expiration settlement timestamp, with line thickness dynamically scaled to relative ope

Indicator v6 Support & resistance
Updated 3 months ago · MIT GitHub repository of HYPE Max Pain (Deribit)

Buddha Market Levels

by DarthBuddha
1 stars

A chart-overlay indicator that draws key intraday reference levels as lines and labels. These include premarket, today, overnight and after-hours highs and lows, the day's open, and shaded opening ranges for the Globex, Asia, London and New York sessions, each

Indicator v6 Support & resistanceSessions & time Repaints
Updated 3 months ago · MIT GitHub repository of Buddha Market Levels

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