Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 54)

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

5 stars

This diagnostic indicator computes a native footprint volume profile alongside broadening macro wall projections directly on the price chart. It aggregates 1-minute footprint data over user-specified start and end timestamps, calculates value area levels, and

Indicator v6 VolumeSupport & resistance Repaints
Updated 4 days ago · MPL-2.0 GitHub repository of VP + RSD Macro Wall Profile Diagnostic
5 stars

This indicator estimates a kernel density of the selected source over a chosen bar window and plots the price where that density peaks, the mode. Weights can emphasize recent bars by sequence and inferred volume. The user chooses the kernel, window anchor, sou

Indicator v6 Support & resistanceVolume
Updated 8 months ago · None stated GitHub repository of Weighted KDE Mode
4 stars

This strategy overlays the price chart and switches among RSI-2 mean reversion, SuperTrend, MACD crossover, triple EMA, Bollinger Bands, or a combined multi-indicator mode. It enters from the selected signals and exits with percentage take-profit and stop-loss

Strategy v6 Oscillators & momentumMoving averages
Updated 2 days ago · None stated GitHub repository of Simpleton v0.01 KIMI - Enhanced
4 stars

This indicator calculates the Relative Strength Index alongside a smoothing moving average and multiple length tiers based on a fixed timeframe. It draws in a separate pane below the price chart, plotting tiered RSI levels and an optional multi-length average.

Indicator v6 Oscillators & momentumMoving averages
Updated 2 days ago · None stated GitHub repository of RSI multi-length fixed timeframe

This strategy builds the opening range high and low during the first configurable minutes of the New York regular session, then enters on a close break of that range. A long triggers when price crosses above the range high while flat; a short triggers on a cro

Strategy v6 BreakoutSessions & time
Updated 2 months ago · MIT GitHub repository of ES Opening Range Breakout [trugurpala]

ROC = Rate of Change

by piecioshka
2 stars

This indicator calculates the rate of change of a chosen source over a set number of bars and plots it as columns in a separate pane, colored green above zero and red below. A horizontal zero line marks the sign change. Optional markers appear on the price cha

Indicator v6 Oscillators & momentum
Updated 12 days ago · MIT GitHub repository of ROC = Rate of Change

TTM Squeeze Pro

by TamTH-Dev
2 stars

This indicator identifies volatility compression and momentum direction in a separate pane. It calculates Bollinger Bands against three tiers of Keltner Channels to detect low, medium, and high squeeze states, displaying them as color-coded dots along the zero

Indicator v6 Volatility & bandsOscillators & momentum
Updated 6 weeks ago · None stated GitHub repository of TTM Squeeze Pro

This indicator displays company fundamentals in a separate pane. It plots one selected series, such as EPS, revenue, margins, cash flow, assets, equity, or ratios, across a chosen number of fiscal quarters or years. Four optional tables cover profitability and

Indicator v6 Screeners & dashboards Repaints
Updated 8 months ago · None stated GitHub repository of Financial Statement Indicator PRO by zdmre

Chaikin A/D Oscillator (ADOSC)

by mushroom-men-Trading
2 stars

This indicator calculates the Chaikin Accumulation/Distribution Oscillator in a separate pane. It builds a cumulative accumulation/distribution line from the money-flow multiplier of high, low, close and volume, then subtracts a long exponential moving average

Indicator v6 Oscillators & momentumVolume
Updated 9 months ago · None stated GitHub repository of Chaikin A/D Oscillator (ADOSC)

Martingale Lab

by jayadevrana
1 stars

Martingale Lab is an educational indicator that tests position sizing models, including flat stake, martingale, and anti-martingale, on simulated trade results from an EMA crossover strategy. It logs trade returns in R-multiples using ATR-based stop losses and

Indicator v6 Moving averagesScreeners & dashboards
Updated 4 days ago · MPL-2.0 GitHub repository of Martingale Lab

SMC HTF Confluence

by skipp-dev
1 stars

SMC HTF Confluence calculates multi-timeframe market structure and setup scores using confirmed higher-timeframe data. It evaluates exponential moving averages for trend alignment, RSI for divergences, ATR for volatility regimes, and Bollinger Band Squeezes re

Indicator v6 TrendSMC / ICT / price action Repaints
Updated 4 days ago · None stated GitHub repository of SMC HTF Confluence

Drawing Delete Halt

by pineforge-4pass
1 stars

This validation strategy monitors price crosses against a dynamic level derived from a 20-period simple moving average drawn as a line object. It enters a long position when the closing price crosses over the line level and exits when price crosses under it. A

Strategy v6 Moving averagesTrend
Updated 7 days ago · Apache-2.0 GitHub repository of Drawing Delete Halt

P Syn Time Functions

by GammaExpansion
1 stars

This indicator plots the sum of several time variables using Pine Script v6. It defines multiple timestamp values with different formats and timezones, then applies functions including dayofweek, hour, minute, second, year, month, dayofmonth, weekofyear, timef

Indicator v6
Updated 7 days ago · MIT GitHub repository of P Syn Time Functions

A strategy for 5-minute charts that turns a triggered retest of a broken 15-minute delta level into orders. Entry needs a new trigger, a flat position, a cooldown module allowing the trade and, by default, agreement with the 4-hour bias. The stop sits at the z

Strategy v6 VolumeSupport & resistance Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of Delta Break and Retest Stage 7 Orders and Risk

DEPV2 C2 · SIRALAMA

by YuceSezar89
1 stars

This indicator ranks five user-selected symbols in a separate pane. On a chosen signal timeframe it computes a 12-bar log return, an ATR percentage, a directional state, and a score equal to direction times return divided by ATR. An RSI reading above 40 gates

Indicator v6 Oscillators & momentumVolatility & bands
Updated 13 days ago · None stated GitHub repository of DEPV2 C2 · SIRALAMA

Nexus Fusion Engine ML

by vedkanani123
1 stars

An oscillator in a separate pane, adapted from an earlier oscillator under an open license. It smooths price with a selectable method such as DEMA, adds a signal line and marks crosses with dots. Overbought and oversold zones default to 80 and 20. Optional lay

Indicator v6 Oscillators & momentumDivergence
Updated 2 months ago · None stated GitHub repository of Nexus Fusion Engine ML

Quad Rotation 9 3

by rubbermetal
1 stars

Quad Rotation 9 3 is the fast pane of a four-stochastic setup with periods 9, 14, 40 and 60. It plots the 9/3 stochastic K and D lines in a separate pane with oversold and overbought zones, K/D cross triangles inside extreme zones, and a convergence band weigh

Indicator v6 Oscillators & momentumDivergence
Updated 4 months ago · MPL-2.0 GitHub repository of Quad Rotation 9 3

SMC Confluence Engine v4

by shubhamtaywade82
1 stars

Scores smart money confluence across a four-layer timeframe stack on the price chart. A 4-hour EMA bias and premium or discount zone set direction, 1-hour structure confirms it, 15-minute order blocks and liquidity sweeps define the entry zone, and a chart-tim

Indicator v6 SMC / ICT / price actionSupport & resistance Archived
Updated 5 months ago · None stated GitHub repository of SMC Confluence Engine v4
1 stars

This compact indicator labels Elliott Wave counts on the price chart. It runs a zig-zag at several depths, chooses the depth that gives the best fit, and applies Elliott Wave rules, with a strict mode that forces an A-B-C count when the rules break. A correcti

Indicator v6 Support & resistance Repaints
Updated 6 months ago · None stated GitHub repository of Mini Elliott Wave 2026-4
1 stars

A strategy that reads an external oscillator, called the thermometer, through a source input and trades a chosen signal symbol, SPX by default, according to high and low temperature thresholds of 75 and 25. Buy and sell modes include buying high and selling lo

Strategy v6 Oscillators & momentumMean reversion Repaints
Updated 7 months ago · None stated GitHub repository of Thermometer Strategy
1 stars

This indicator combines Volume Weighted Bands, a Keltner Hull Suite, High Volume Nodes, and Supply and Demand Zones directly on the main price chart. It calculates a smoothed volume-weighted trend line surrounded by ATR-based bands to define market bias and hi

Indicator v6 TrendVolatility & bands
Updated 7 months ago · None stated GitHub repository of Keltner Hull Suite Integrated

Average Price VWAP

by ivansoft
1 stars

An indicator in a separate pane that works on the average of open and close and an anchored volume weighted average price. The VWAP and optional standard deviation bands are drawn on the price chart, with a settable multiplier and anchor period, daily by defau

Indicator v6 VolumeMean reversion
Updated 1 year ago · None stated GitHub repository of Average Price VWAP

Dynamic Linear Regression

by TradersPost
228 stars

Dynamic Linear Regression calculates and plots linear regression trendlines and standard deviation channels directly on the price chart over a user-selected time period. Traders can configure static channels locked at the end time, dynamic channels that contin

Indicator v6 TrendSupport & resistance
Updated 3 months ago · None stated GitHub repository of Dynamic Linear Regression

This indicator plots Average Directional Movement Index Rating in a separate pane. It smooths true range and directional movement to produce plus DI, minus DI, the directional index, and ADX. ADXR averages the current ADX with the ADX from the rating period ba

Indicator v6 TrendOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Average Directional Movement Index Rating (ADXR)
55 stars

Calculates swing points, dynamic support and resistance channels, and a baseline trend moving average directly on the price chart. It identifies structural highs and lows using 10-bar pivot logic, plotting colored triangles offset to confirmed swing bars. Dyna

Indicator v6 Support & resistanceTrend
Updated 6 months ago · Apache-2.0 GitHub repository of Structural Levels & Key Zones
47 stars

This indicator calculates and plots standard deviation projection levels based on historical session ranges. It draws the session open line alongside positive and negative standard deviation bands (0.5, 1.0, 2.0, 3.0, and 4.0 SD) directly on the main chart, ac

Indicator v6 Sessions & timeVolatility & bands
Updated 8 weeks ago · None stated GitHub repository of Session Standard Deviations with Stats
47 stars

The Cubic Regression Moving Average calculates a fitted endpoint using a degree-three polynomial over a specified lookback period via normal equations solved by closed-form elimination. It plots the resulting trend line directly on the price chart. Users can a

Indicator v6 TrendMoving averages
Updated 8 months ago · MIT GitHub repository of Cubic Regression Moving Average
16 stars

This strategy enters long or short when price breaks a Keltner channel built from an exponential moving average and an ATR multiple. It sizes each unit from a fixed equity risk percentage and an ATR stop, then can add units as price moves in the trade directio

Strategy v6 TrendVolatility & bands
Updated 12 months ago · None stated GitHub repository of Seykota Alt 23: Keltner Channel

Commodity FlowTrend plots a money-flow oscillator in a separate pane. It calculates a manually smoothed Money Flow Index from price and real trade volume, overlays a CCI reading scaled to the same range, and colors a histogram plus an optional background by ex

Indicator v6 Oscillators & momentumVolume
Updated 3 days ago · MIT GitHub repository of Commodity FlowTrend [WavesUnchained]

Smart Trader Episode 03 divides a specified lookback window into bar groups or blocks on the main price chart. It calculates aggregated composite OHLC candles for each block, draws structural group boxes, and identifies trend segments using custom angle thresh

Indicator v6 TrendCandlestick patterns
Updated 4 months ago · MIT GitHub repository of Smart Trader Ep 03 - Candles and Tradelines

EMA Cloud Dots

by lunarticktrading
7 stars

This indicator calculates fast and slow exponential moving averages of close prices and plots colored dots in a separate pane to show trend direction. Green dots appear when the fast EMA exceeds the slow EMA, while red dots signal the opposite. The script pull

Indicator v6 TrendMoving averages
Updated 2 weeks ago · None stated GitHub repository of EMA Cloud Dots
7 stars

This indicator plots a standard Relative Strength Index calculated from closing prices alongside a dynamic volatility band derived from the high and low price RSIs. The upper and lower bands envelope the main RSI line to highlight intrabar price extremes relat

Indicator v6 Oscillators & momentumVolatility & bands
Updated 3 months ago · None stated GitHub repository of RSI Divergence (Close inside Band)
6 stars

This indicator classifies price action into four distinct market regimes: Trend, Expansion, Compression, or Mean Reversion. It determines states using a simplified Hurst exponent estimate, ADX slope thresholds, and realized volatility measurements. Based on th

Indicator v6 TrendVolatility & bands
Updated 2 months ago · MIT GitHub repository of Capital41 Regime Matrix v3

This overlay script is a headless volume-profile parity shell rather than a signal indicator. It fixes a one-minute source, Chicago regular-hours session, four-tick rows, a 70 percent value area, and named algorithms for the point of control, value area, and r

Indicator v6 Volume
Updated 4 days ago · MPL-2.0 GitHub repository of VP Research Preview — Profile Parity Shell

Weighted Percentile Nearest Rank calculates a weighted percentile level over a configurable lookback window and plots it directly on the price chart. Data points are weighted using linear time decay and optional inferred volume based on candle body size. The s

Indicator v6 Support & resistanceVolume
Updated 8 months ago · None stated GitHub repository of Weighted Percentile Nearest Rank

TRCD + Scaled RLI

by InNoobWeTrust
4 stars

This indicator draws in a separate pane and combines a true-range component with a scaled relative liquidity index. The liquidity reading applies RSI to ATR and can tint a gradient background between low and high liquidity colors. Optional tables show an ATR-b

Indicator v6 Volatility & bandsOscillators & momentum
Updated 2 days ago · None stated GitHub repository of TRCD + Scaled RLI
4 stars

This strategy trades E-mini and Micro E-mini S&P 500 futures on the price chart. It enters long when a fast EMA crosses above a slow EMA during New York regular trading hours, and enters short on the opposite cross unless long-only mode is on. Each entry place

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of ES S&P500 Strategy [trugurpala]
2 stars

Calculates the Relative Strength Index oscillator in a separate pane with configurable overbought and oversold thresholds. Includes options for smoothing the RSI line using various moving averages or Bollinger Bands, gradient fill zones, and regular divergence

Indicator v6 Oscillators & momentumVolatility & bands
Updated 12 days ago · MIT GitHub repository of RSI = Relative Strength Index

Volume Price Analysis

by TamTH-Dev
2 stars

The Volume Price Analysis (VPA) indicator computes the Rate of Flow (RoF) from price and volume data using selected moving average types. It applies smoothing and signals for analysis, with normalization for subjective value levels. Plots appear in a separate

Indicator v6 VolumeMoving averages
Updated 6 weeks ago · None stated GitHub repository of Volume Price Analysis

This indicator plots horizontal lines for the 50 percent level of the daily price range along with high and low values for daily, Asian, London, and New York sessions plus the true day open. It includes an optional confluence checklist that users can enable to

Indicator v6 Support & resistanceSMC / ICT / price action

FlowScope [Hapharmonic]

by regalouisei
2 stars

FlowScope draws a volume profile on the price chart by aggregating a chosen number of candles into one profile and splitting that range into price boxes. It stores a volume distribution for each profile, colors boxes with a custom low-to-high gradient, the can

Indicator v6 Volume
Updated 8 months ago · None stated GitHub repository of FlowScope [Hapharmonic]

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