Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 15)

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

257 stars

This strategy plots running pivot highs as red R circles and pivot lows as blue S circles directly on the price chart. It computes an EMA 3 and a Cto trend line from close prices, then generates long signals on upward EMA-Cto crossovers combined with price pos

Strategy v6 TrendMoving averages Repaints
Updated 7 weeks ago · None stated GitHub repository of Best Chart 1m Strategy Candle Bar
228 stars

This indicator plots a customizable horizontal price line directly on the price chart and displays dynamic distance metrics, including ticks, dollars, and points relative to the current close. It monitors price interactions to trigger cross alerts and construc

Indicator v6 Support & resistance
Updated 3 months ago · None stated GitHub repository of Advanced Order Line with TradersPost
193 stars

This strategy calculates a chart-timeframe MACD oscillator alongside a higher-timeframe Simple Moving Average (SMA) trend filter using security requests. It triggers long signals when the MACD line crosses above its signal line while the higher-timeframe price

Strategy v6 TrendOscillators & momentum
Updated 2 days ago · Apache-2.0 GitHub repository of PineForge MTF Tutorial — HTF SMA Filter

Fractal Model

by fxraptor-alpha
138 stars

Fractal Model is a price-chart indicator that tracks multi-timeframe liquidity sweeps, reversal confirmation, and forward projections. It draws higher-timeframe candles beside price, marks high and low sweeps, and tracks CISD plus later IC-CISD levels after a

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 weeks ago · Custom licence GitHub repository of Fractal Model
99 stars

The Absolute Price Oscillator (APO) script calculates the difference between a fast exponential moving average (EMA) and a slow EMA for a specified source series. It uses explicit EMA calculations featuring warmup compensation to handle early bar initializatio

Indicator v6 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Absolute Price Oscillator (APO)
92 stars

This overlay indicator draws horizontal lines at ten hardcoded ETH long-liquidation prices and ten short-liquidation prices from a Hyperliquid snapshot. Longs use red and amber and shorts use green and cyan, with the three nearest levels on each side drawn thi

Indicator v6 Support & resistance
Updated 2 months ago · Custom licence GitHub repository of Moon Dev Liq Lines — ETH

Type Declaration Coverage

by frizLabz-FFriZz
59 stars

This script demonstrates type declarations supported in Pine Script v6. It defines imaginary library exports including user-defined types with fields of int float string bool color array matrix and map types as well as enums. The script also shows primitive va

Indicator v6 Repaints
Updated 1 year ago · MIT GitHub repository of Type Declaration Coverage

Momentum Rider DAILY FINAL

by greenpeas007
58 stars

This strategy combines exponential moving averages (EMA 9, 21, 50), RSI, MACD, and Supertrend indicators to enter long positions. It triggers trades using six dynamic setups based on momentum breakouts, EMA crossovers, and pullbacks. Position sizing is compute

Strategy v6 TrendOscillators & momentum Repaints
Updated 4 months ago · Custom licence GitHub repository of Momentum Rider DAILY FINAL

BTC Futures MACD

by iamrichardD
57 stars

This strategy plots a MACD in a separate pane and enters on zero-line or signal-line crosses, with an optional early momentum trigger. Volume and a trend moving average can filter signals, and shorts can be disabled so only long trades are taken. It sizes posi

Strategy v6 Oscillators & momentumScalping Repaints
Updated 1 year ago · Apache-2.0 GitHub repository of BTC Futures MACD
56 stars

This overlay indicator highlights candles with a body smaller than 50% of their total range by coloring them white on the price chart. Simultaneously, it calculates and plots horizontal lines for open prices across multiple higher timeframes, such as daily, we

Indicator v6 Support & resistanceCandlestick patterns Repaints
Updated 2 months ago · None stated GitHub repository of Daily Weekly Monthly Yearly Opens
55 stars

This indicator automatically identifies structural pivot highs and pivot lows using a fixed 15-bar left and right evaluation window. It stores recent pivot values and timestamps in dynamic arrays and, on the current bar, plots extended trendlines connecting th

Indicator v6 TrendSupport & resistance
Updated 6 months ago · Apache-2.0 GitHub repository of Auto Trendlines using line.*
53 stars

This strategy enters long or short on the price chart when price is on the correct side of a 200-period EMA, MACD agrees, RSI is not at the opposing extreme, ADX exceeds a threshold, volume beats a 20-bar average, and close breaks the recent high or low. A tim

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · MPL-2.0 GitHub repository of BTCUSD 5M Optimized Strategy

This indicator calculates the acceleration of price action by computing the slope of the linear regression slope over a rolling window. It utilizes two sequential rolling linear regression stages implemented with circular buffers to ensure deterministic comput

Indicator v6 Oscillators & momentumTrend
Updated 8 months ago · MIT GitHub repository of Acceleration (Slope of Slope) (ACCEL)

AM TBR — NQ Stats

by TamaraKGreen
46 stars

The AM TBR indicator calculates statistical levels for NQ futures using standard deviation. It plots a sigma ladder showing touch levels at 0.5 to 2.0 standard deviations, marks touch points, displays Mean Absolute Error (MAE) zones after touches, and shows Me

Indicator v6 Volatility & bandsSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of AM TBR — NQ Stats
43 stars

This overlay indicator monitors moving-average relationships for up to ten symbols. For each market it requests the close and three exponential moving averages from a user-chosen timeframe, defaulting to twelve hours, and builds a status for the faster-versus-

Indicator v6 Moving averagesScreeners & dashboards
Updated 1 year ago · None stated GitHub repository of Multi-Market MA Cross Monitor

Gann Square of Nine: Planetary Degrees

by blueprintresearch-dev
42 stars

This indicator maps planetary positions onto W.D. Gann's Square of Nine grid using astronomical ephemeris algorithms. It tracks pivot highs and lows with corresponding planetary longitude degrees, projects future target degrees ahead on the chart, and supports

Indicator v6 Support & resistanceScreeners & dashboards
Updated 2 weeks ago · None stated GitHub repository of Gann Square of Nine: Planetary Degrees

Candle Stage Analysis

by ChartsLector
41 stars

This indicator classifies market trends into structured stages based on moving average alignments, compression, and ATR distance from the 50-period SMA. It tracks multiple exponential moving averages against the 50 SMA to detect basing phases, breakouts, trend

Indicator v6 TrendMoving averages
Updated 4 days ago · None stated GitHub repository of Candle Stage Analysis

Macro Alert System

by Thanhtran-165
38 stars

The Macro Alert System is a quantitative macroeconomic monitoring indicator designed to evaluate risk regimes, interest rates, spreads, and multi-horizon market stability. It computes composite macro risk scores using empirical percentile distributions, Welch-

Indicator v6 Screeners & dashboards
Updated 5 weeks ago · None stated GitHub repository of Macro Alert System

Pine Script v6 Test Features

by tradesdontlie
33 stars

This indicator demonstrates several Pine Script v6 language features on the price chart. It requests the daily close for a fixed list of stock symbols and writes those prices to the log. On the last bar it draws labels using exact point sizes and bold or itali

Indicator v6
Updated 9 days ago · MIT GitHub repository of Pine Script v6 Test Features

Zen ABR Ladder

by Zen-Tim
29 stars

Zen ABR Ladder plots multiple Average Bar Range (ABR) lookbacks (2, 4, 8, 16, 32) alongside an Average Daily Range (ADR) scalp threshold in a separate pane. It measures bar ranges in price points and displays layered translucent shading between the scalp line

Indicator v6 Volatility & bandsScalping
Updated 2 weeks ago · MIT GitHub repository of Zen ABR Ladder

The indicator calculates a triple-smoothed moving average and a corresponding signal line to identify trend direction and potential reversal points directly on the price chart. Users can select from EMA, SMA, RMA, or WMA for both the main triple smoothing and

Indicator v6 Moving averagesTrend
Updated 11 months ago · Custom licence GitHub repository of Triple Smoothed Signals [AlgoAlpha]

Bands

by heyphat
26 stars

This library exports a Band type and functions that build a simple-moving-average basis with upper and lower envelopes from standard deviation. It classifies a source as above, below, or inside those envelopes, measures band width, and scales an imported z-sco

Library v6 Volatility & bandsMoving averages
Updated 2 months ago · AGPL-3.0 GitHub repository of Bands
23 stars

DeltaFlow Volume Profile builds a price-bin volume profile over a user-set lookback and draws it on the price chart to the right of the last bar. It splits each bin into bullish and bearish volume by comparing close with open, then scales bar length to the bin

Indicator v6 VolumeSupport & resistance Repaints
Updated 4 weeks ago · Custom licence GitHub repository of DeltaFlow Volume Profile [BigBeluga]
23 stars

The Stocks - Inside Day Strategy identifies inside day candlestick patterns on the main price chart. It enters a long position when a bar's high is below the previous high and its low is above the previous low. The strategy exits positions when a short-period

Strategy v6 Candlestick patternsOscillators & momentum
Updated 3 months ago · Custom licence GitHub repository of Stocks - Inside Day Strategy

This indicator combines six trading tools into a single chart overlay to optimize indicator limits. It calculates Bollinger Bands, projects weekend price boundaries, plots market structure elements like order blocks, breaker blocks, and MSB lines, marks New Yo

Indicator v6 Support & resistanceSMC / ICT / price action Repaints

Function Calls

by ferranbt
21 stars

Calculates an accumulated benchmark metric by repeatedly executing a user-defined function within a loop on every bar. On each iteration, the script updates a persistent variable using modified closing price values, summing the output to plot in a separate pan

Indicator v6
Updated 7 weeks ago · MPL-2.0 GitHub repository of Function Calls

zaBor RSI+AO+Stoch chart

by zabor-crypto
20 stars

This overlay indicator marks buy and sell signals on the price chart from RSI, stochastic, and optional Awesome Oscillator filters. It compares recent price and RSI pivots for regular divergences and, when enabled, hidden divergences, then combines those check

Indicator v6 Oscillators & momentumDivergence
Updated 5 days ago · MIT GitHub repository of zaBor RSI+AO+Stoch chart

Bandz Intraday Timing + FVG

by samuelharting
18 stars

This overlay indicator marks hourly and last-hour macro windows, automatic fair value gaps, and AM/PM session fair value gaps on the price chart. It can color macro candles, draw bracket guides and labels, and add dividers, timestamps, and day labels. Optional

Indicator v6 SMC / ICT / price actionSessions & time
Updated 2 weeks ago · MPL-2.0 GitHub repository of Bandz Intraday Timing + FVG

ORB Pro - Research-Based ORB

by Mrshahidali420
16 stars

The ORB Pro indicator calculates and plots Opening Range Breakout levels, stop-loss and take-profit zones, signal labels, and an status dashboard on the price chart. Built on academic research, it evaluates trades using an opening-candle direction filter, open

Indicator v6 BreakoutSessions & time Repaints
Updated 3 months ago · None stated GitHub repository of ORB Pro - Research-Based ORB

Key Intraday Levels

by traderdiegox
16 stars

This indicator plots key reference levels directly on the price chart, focusing on Smart Money Concepts (SMC) and intraday trading benchmarks. It identifies and displays previous session ranges, previous opens, and daily and weekly reference points, including

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 6 months ago · None stated GitHub repository of Key Intraday Levels

Seykota / Turtle Core

by trustdan
16 stars

This trend-following strategy implements classic Turtle Trading rules based on Ed Seykota's breakout principles. It uses 55-period Donchian Channels for trade entries and 10-period channels for exits, combined with ATR-based volatility sizing. Risk per unit is

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota / Turtle Core

Alighten Orderflow Pressure

by alighten-dev
14 stars

This indicator plots a smoothed order-flow pressure series in a separate pane. It builds a weighted blend of volume delta, close location within the bar range, and body size relative to ATR, then applies a z-score, winsorizing, and an EMA. Relative volume, reg

Indicator v6 Volume
Updated 2 weeks ago · None stated GitHub repository of Alighten Orderflow Pressure

Equity Intraday Analyst

by chris-c-thomas
14 stars

Equity Intraday Analyst is a comprehensive intraday overlay indicator for US equities and ETFs. It evaluates multi-EMA ribbons, session-anchored VWAP bands, OBV trends, momentum oscillators, TTM Squeeze, and optional market breadth indicators like NYSE TICK an

Indicator v6 TrendVolume
Updated 6 months ago · MIT GitHub repository of Equity Intraday Analyst

CC Test

by saket3395
13 stars

This indicator plots an exponential moving average of the closing price on the price chart. A single length input, defaulting to 14, sets the EMA period. There are no signals, entries, exits, stops, or position sizing. The plotted series is drawn as a blue lin

Indicator v6 Moving averages
Updated 7 weeks ago · MIT GitHub repository of CC Test
13 stars

This script identifies and visualizes bullish and bearish order blocks on the price chart. It detects low-volatility consolidation ranges followed by breakout moves accompanied by high trading volume. Users can select between Simple, Relative, or Weighted volu

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · MIT GitHub repository of Advanced Order Blocks with Volume
12 stars

This strategy plots on the price chart and looks for three-candle fair value gaps and inverse gaps on Bitcoin. It enters long when a wide enough bullish gap appears in an uptrend with RSI above 30 and volume above its average, and short on the opposite bearish

Strategy v6 SMC / ICT / price actionTrend Repaints
Updated 4 months ago · None stated GitHub repository of BTC 4h FVG/iFVG Strategy
12 stars

This indicator tracks swing highs and lows to detect market structure closures, specifically monitoring C2 and C3 candle closure progressions based on the TTrades Next Candle Model. It draws active, swept, and closed-through swing lines directly on the price c

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of C2 Next Candle Statistics Tracker
11 stars

This indicator plots a smoothed Z-score of cumulative volume delta in a separate pane, showing whether buying or selling pressure is dominant and when the reading enters extreme zones. It marks spot accumulation, climax or exhaustion, and pivot-based price-vol

Indicator v6 Oscillators & momentumVolume Repaints
Updated 7 weeks ago · MIT GitHub repository of CVD Z-Score [NeuNue]
11 stars

Calculates upper and lower Donchian Channel bands over a customizable lookback length and plots them on the main price chart. At a specified exchange hour, the strategy places a long buy stop order at the upper Donchian Channel level. Unfilled pending orders a

Strategy v6 BreakoutSupport & resistance
Updated 5 months ago · Apache-2.0 GitHub repository of Estrategia Donchian Breakout
10 stars

Calculates and plots a multi-component indicator in a separate pane, integrating Relative Strength Index (RSI), Average Directional Index (ADX), Directional Movement Index (DMI), and price Bollinger Bands. It detects institutional movement conditions by testin

Indicator v6 Oscillators & momentumVolatility & bands
Updated 6 weeks ago · AGPL-3.0 GitHub repository of Whales + RSI/ADX/DMI

The Adaptive Cycle Detector estimates the dominant market cycle from WaveTrend oscillator zero-crossing frequency and applies smoothing to recommend adaptive indicator lengths. Fast markets with frequent crossings receive shorter lengths while slow swing marke

Indicator v6 Oscillators & momentumVolatility & bands
Updated 3 days ago · MIT GitHub repository of Adaptive Cycle Detector [WavesUnchained]

Nexural ORB

by JasonTeixeira
9 stars

This indicator plots opening range breakout levels across multiple timeframes, including five, fifteen, thirty, and sixty minutes, directly on the price chart. It also displays the session open and overnight high and low levels. The script calculates an openin

Indicator v6 BreakoutSessions & time
Updated 2 weeks ago · Custom licence GitHub repository of Nexural ORB

Arbitrage Matrix [LuxAlgo]

by MeridianAlgo
9 stars

This overlay indicator builds a dashboard that compares last price, last volume, average price, or average volume across selected crypto exchanges or forex brokers. The source input can follow the chart asset automatically or lock the list to exchanges or brok

Indicator v6 Screeners & dashboards
Updated 4 months ago · MIT GitHub repository of Arbitrage Matrix [LuxAlgo]
9 stars

This multi-timeframe indicator detects and visualizes Smart Money Concepts (SMC) and ICT market structures on the price chart. It maps higher-timeframe dealing ranges, premium and discount zones, break of structure (BOS), change of character (CHoCH), order blo

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 8 months ago · None stated GitHub repository of SMC/ICT Zones Pro Generalized

Loop Sum Probe

by folknor
8 stars

A minimal test script from a Pine Script linter project that checks indentation of a for loop body. It adds the closing prices of the previous seven bars in a loop and plots the total in a separate pane. There are no inputs and no signals, and it exists to exe

Indicator v6
Updated 4 weeks ago · Custom licence GitHub repository of Loop Sum Probe

PA Trade Overlay

by Enesp4rl4k
7 stars

This script plots horizontal trade plan levels generated by an external trade assistant directly onto the price chart. It draws visual lines and text labels for entry, stop-loss, and up to two take-profit targets based on template parameters. Additionally, it

Indicator v6 Support & resistanceScreeners & dashboards
Updated 7 days ago · MIT GitHub repository of PA Trade Overlay

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