Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 63)

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

1 stars

A strategy for MNQ futures built on the 09:30 to 10:00 New York opening range. It looks for one qualified 15-minute breakout candle, checks body size, close location, wick and ATR limits, then waits for a one or two bar pullback on the 5-minute chart. Entry fo

Strategy v6 BreakoutSessions & time Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of MNQ One-and-Done Confirmed Expansion

DEPV2 Debug S14

by YuceSezar89
1 stars

DEPV2 Debug S14 is a multi-symbol quantitative signal generator that evaluates up to 20 cryptocurrency tickers using four analytical dimensions: trend, momentum, volatility, and volume. Traders can select different signal generation modes, including single met

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 Debug S14
1 stars

Plots seven mirrored price lines on the price chart. Each is twice a moving average minus the close, using Fibonacci lengths from 8 to 144 and a selectable EMA, SMA or WMA type, with coloured fills between neighbouring lines that can be switched off. It also m

Indicator v6 Moving averagesVolume
Updated 7 weeks ago · None stated GitHub repository of Symmetric Fib Volume Dashboard

Volume MAs Cloud Trend

by vedkanani123
1 stars

An overlay indicator that draws a cloud around a selectable volume-based moving average, with positive and negative band multipliers setting the upper and lower edges. The signal type setting chooses how the trend is read, with the cloud as the default, and th

Indicator v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of Volume MAs Cloud Trend
1 stars

This strategy draws on the price chart and combines optional long and short signals from a 9/21 EMA crossover, a breakout of the prior 20-bar high or low, RSI momentum, and a MACD histogram flip. A toggleable 200-period simple moving average allows longs only

Strategy v6 TrendOscillators & momentum Repaints
Updated 2 months ago · None stated GitHub repository of TN Asymmetric Swing Sovereign
1 stars

Draws a linear regression line over the last chosen number of bars on the price chart, with upper and lower channel lines offset by a standard deviation multiple or by the largest deviation of highs and lows. Inputs set length, source, deviation multipliers, l

Indicator v6 TrendSupport & resistance
Updated 1 year ago · None stated GitHub repository of Linear Regression Channel

Midnight VWAP

by TradersPost
228 stars

The Midnight VWAP indicator calculates and overlays two distinct Volume Weighted Average Price (VWAP) lines on the price chart based on customizable session timeframes. It tracks an overnight or pre-market session alongside regular trading hours, resetting cal

Indicator v6 Moving averagesSessions & time
Updated 3 months ago · None stated GitHub repository of Midnight VWAP
99 stars

This indicator calculates Bollinger Bands from a chosen price source. It keeps a circular buffer with running sum and sum of squares so the middle band is a simple average and the upper and lower bands sit a chosen number of standard deviations away. Period, s

Indicator v6 Volatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Bollinger Bands (BBANDS)

This indicator calculates and plots a Fibonacci-weighted moving average directly on the main price chart. It assigns weights based on the Fibonacci sequence, giving greater importance to recent bars while factoring in historical price points. Users can adjust

Indicator v6 Moving averagesTrend
Updated 8 months ago · MIT GitHub repository of Fibonacci Weighted Moving Average (FWMA)
16 stars

This trend-following strategy initiates long or short trades on Donchian channel breakouts. Position sizing is calculated from an Average True Range (ATR) volatility model. The script scales into winning trades up to a user-defined unit limit only when RSI con

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 36: BE + Momentum
9 stars

Kestrel Export - CCI is a reference data generator designed to export Commodity Channel Index values and divergence metrics for parity testing against external systems. It calculates standard CCI, EMA smoothing, signal lines, overbought or oversold extreme zon

Indicator v6 Oscillators & momentum
Updated 3 days ago · MIT GitHub repository of Kestrel Export - CCI

MTF Trend Strategy

by trugurpala
4 stars

This strategy trades a chart-timeframe exponential moving average crossover only when a higher-timeframe close agrees with a higher-timeframe exponential moving average. A bullish cross opens a long and a bearish cross opens a short. Each entry places an avera

Strategy v6 TrendMoving averages Repaints
Updated 2 months ago · MIT GitHub repository of MTF Trend Strategy
2 stars

This indicator tracks macroeconomic and financial conditions to estimate recession risk across multiple market dimensions. It requests external data for the S&P 500 moving average growth rate, US 10-year minus 3-month yield curve inversion, M2 money supply tre

Indicator v6 Screeners & dashboardsMoving averages
Updated 8 months ago · None stated GitHub repository of Recession Warning Traffic Light

Hilbert Trendline (HTIT)

by mushroom-men-Trading
2 stars

This indicator calculates a Hilbert Transform instantaneous trendline from a chosen price source and plots it on the price chart. It smooths the source, estimates an adaptive cycle period between 6 and 50 bars from quadrature components, and updates a recursiv

Indicator v6 Trend
Updated 9 months ago · None stated GitHub repository of Hilbert Trendline (HTIT)

Supply & Demand Zones

by jayadevrana
1 stars

The Supply & Demand Zones indicator calculates and plots potential institutional supply and demand levels directly on the main price chart. It defines base candles by measuring body size against total candle range, and detects impulse candles when candle body

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 4 days ago · MPL-2.0 GitHub repository of Supply & Demand Zones
1 stars

This indicator draws a visible-range volume profile directly on the main price chart as a companion tool for smart money concepts (SMC) analysis. It calculates volume distribution across selectable price rows, plotting high-volume nodes, a configurable Value A

Indicator v6 VolumeSupport & resistance
Updated 4 days ago · None stated GitHub repository of SMC Volume Profile Overlay

Linear Regression Channel

by pineforge-4pass
1 stars

This strategy builds a linear-regression midline of close and places upper and lower bands at a multiple of close standard deviation. It enters long when price is below the lower band and the close rises versus the prior bar, and short when price is above the

Strategy v6 Mean reversionVolatility & bands
Updated 7 days ago · Apache-2.0 GitHub repository of Linear Regression Channel

P_err_two_declarations

by GammaExpansion
1 stars

This script is a minimal parser test fixture from the OptiPine test suite designed to evaluate syntax handling when multiple script declarations are present. It defines both an indicator and a strategy header before plotting the closing price in a separate cha

Indicator v6
Updated 7 days ago · MIT GitHub repository of P_err_two_declarations

MNQ Volume Delta Strategy

by rosijay17-cmd
1 stars

An intraday strategy for MNQ futures built around volume delta and cumulative volume delta. Delta comes from either simple bar polarity or lower-timeframe volume. It adds delta z-scores, relative volume, close location, EMA and VWAP alignment filters, plus div

Strategy v6 VolumeDivergence
Updated 8 days ago · GPL-3.0 GitHub repository of MNQ Volume Delta Strategy

DEPV2 DEBUG S15

by YuceSezar89
1 stars

This indicator watches up to twenty user-chosen symbols, defaulting to Binance crypto perpetuals, and combines four signal classes: trend, momentum, volatility, and volume. Signal mode can use one class, require several classes to agree, require a chosen seque

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S15
1 stars

Calculates a volume profile across a user-selected historical time range and projects it forward from a designated mirror timestamp directly onto the price chart. The script collects price and volume data between start and end timestamps, splits the range into

Indicator v6 VolumeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of TimeMirrorVol {Morindok}

Volume MAs Oscillator

by vedkanani123
1 stars

A separate-pane oscillator derived from a selectable volume-adjusted moving average, with adaptive bands set by a band length, a smoothing value and separate positive and negative multipliers. A signal type setting picks the reading. Optional oversold and over

Indicator v6 Oscillators & momentumVolume
Updated 2 months ago · None stated GitHub repository of Volume MAs Oscillator

This price-chart strategy runs a confirmed-bar state machine that watches MACD line crosses filtered by a 200-period EMA. A lookback audit scores recent candle direction and RSI alignment against the MACD lines, and it enters long or short only when that densi

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of TN Causal Backtracking Sovereign
228 stars

This strategy generates trading signals based on a selectable momentum engine, supporting MACD, RSI, Stochastic, or Rate of Change. Entries trigger on signal crosses, zero-line crosses, or threshold crosses, with an optional moving average trend filter. Risk m

Strategy v6 Oscillators & momentumTrend
Updated 3 months ago · None stated GitHub repository of Momentum Strategy Template
99 stars

This indicator plots the Bull-Bear Power Ratio as two oscillator lines in a separate pane. BR compares the range above the previous close with the range below it, and AR compares the range above the open with the range below it. Both ratios are summed over a r

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Bull-Bear Power Ratio (BRAR)

Fisher Transform

by mihakralj
47 stars

Calculates the Fisher Transform oscillator and its signal line to convert price action into a Gaussian probability distribution. It normalizes input prices within a specified lookback window, applies exponential smoothing, and scales the bounded value logarith

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Fisher Transform
16 stars

This trend-following strategy executes Donchian channel breakout entries combined with Ed Seykota-inspired risk management. It opens long or short positions when price breaks 55-bar highs or lows, provided optional volume and market regime filters align. Posit

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 37: BE + Time

This indicator maps Stephen Klinger's volume force in a separate pane. It builds a Klinger volume oscillator from fast and slow exponential averages of a volume-force series, then subtracts a signal average to form a histogram. Display normalization keeps zero

Indicator v6 Oscillators & momentumVolume
Updated 3 days ago · MIT GitHub repository of Klinger Volume Force Map [WavesUnchained]
7 stars

Arbitrage Detector [LuxAlgo] compares price and volume data across multiple crypto exchanges or forex brokers against the charted asset. It calculates cross-venue spreads and measures their percentile ranks to highlight market anomalies, plotting a smoothed gr

Indicator v6 Screeners & dashboardsVolume
Updated 3 months ago · None stated GitHub repository of Arbitrage Detector [LuxAlgo]

MTF VİOP Strategy

by trugurpala
4 stars

This overlay strategy combines a higher-timeframe trend filter with chart-timeframe entries. The trend timeframe, default five minutes, uses a fast and slow EMA together with Supertrend. On the chart, recommended at one minute, it looks for an entry EMA cross,

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of MTF VİOP Strategy
2 stars

Calculates Murrey Math Lines support and resistance levels anchored to the largest price impulse found within a rolling lookback window via Kadane's algorithm. It projects fractional Murrey grid lines alongside base and inverse lines with text labels directly

Indicator v6 Support & resistance
Updated 8 months ago · None stated GitHub repository of Rolling Largest Impulse Murreys Lines

Historical Volatility (HV)

by mushroom-men-Trading
2 stars

This indicator calculates and plots Close-to-Close Historical Volatility in a separate chart pane. It measures statistical market volatility by computing the standard deviation of logarithmic price returns over a customizable lookback period. The script utiliz

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Historical Volatility (HV)

Trend Dashboard

by jayadevrana
1 stars

This indicator plots an EMA line with length 50 on the price chart to show the trend direction. It evaluates whether price sits above the EMA for three custom timeframes and displays the results as UP or DOWN labels in a table at the top right. The table color

Indicator v6 TrendMoving averages
Updated 4 days ago · MPL-2.0 GitHub repository of Trend Dashboard

smc_core_types

by skipp-dev
1 stars

This Pine Script library provides core enumeration types used across the SMC script ecosystem. It exports standardized definitions for moving average options including SMA, EMA, RMA, WMA, VWMA, Hull, and Zero Lag variations. Additionally, it defines break mode

Library v6
Updated 4 days ago · None stated GitHub repository of smc_core_types

LTF_p02_BOOL

by pineforge-4pass
1 stars

This strategy computes bullish flags for 1-minute bars using request.security_lower_tf on a 15-minute chart. It tallies the number of bullish sub-bars and enters a long position when the count reaches at least 9 and the 9-period EMA crosses above the 21-period

Strategy v6 TrendMoving averages
Updated 7 days ago · Apache-2.0 GitHub repository of LTF_p02_BOOL

P_err_type_string_to_float

by GammaExpansion
1 stars

This test script is a fixture designed to verify type conversion error handling in Pine Script. It assigns a string value to a float variable and plots the resulting variable in a separate indicator pane. The script contains no user-configurable settings, tech

Indicator v6
Updated 7 days ago · MIT GitHub repository of P_err_type_string_to_float
1 stars

An indicator that watches for shifts in volatility in a separate pane. Each bar it ranks the last N log returns and computes a rank-based Mood scale statistic over all candidate split points, taking the largest standardized value. When that value passes a thre

Indicator v6 Volatility & bands
Updated 8 days ago · GPL-3.0 GitHub repository of Mood Test Change-Point Detector

DEPV2 DEBUG S16

by YuceSezar89
1 stars

DEPV2 DEBUG S16 is a multi-symbol indicator that plots trading signals for 20 major Binance cryptocurrency pairs including BTCUSDT, ETHUSDT, SOLUSDT and others. It applies four distinct methods: TREND, MOMENTUM, VOLATILITY and VOLUME to generate signals. Three

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S16
1 stars

This indicator analyzes order flow, dollar volume changes, and price movement across up to five configurable currency symbols in a separate pane. It calculates volume flow scores using normalized metrics such as percent change or Z-scores, integrated with Chai

Indicator v6 VolumeOscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of Volume Multi Currency Analyzer

Volume MAs Supertrend

by vedkanani123
1 stars

An overlay Supertrend that is built on a volume-weighted moving average instead of raw price, with a choice of nine average types and a length. It uses an ATR period with separate long and short multipliers, so the two band sides can sit at different distances

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Volume MAs Supertrend

LQDT Monitor

by ivansoft
1 stars

An indicator on the price chart that tracks the day's opening price, high and low and marks bars where the bar range moves away from the previous bar, as pressure. A small down character above the bar marks downward pressure, a small up character below the bar

Indicator v6 Sessions & time
Updated 1 year ago · None stated GitHub repository of LQDT Monitor
228 stars

Multi-Timeframe Analysis Suite calculates trend direction and momentum conditions across five user-selected timeframes using moving averages, RSI, and Stochastic oscillators. It evaluates moving average slope and oscillator levels to compute trend alignment, m

Indicator v6 Screeners & dashboardsTrend
Updated 3 months ago · None stated GitHub repository of Multi-Timeframe Analysis Suite
99 stars

The Bulls Bears Index (BBI) calculates a composite moving average by taking the arithmetic mean of four separate Simple Moving Averages (SMAs) with distinct lookback periods: ultra-short, short, medium, and long. Optimized for streaming efficiency using circul

Indicator v6 TrendMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Bulls Bears Index (BBI)

Fisher04 is an oscillator that implements John Ehlers' 2004 Fisher transform from Cybernetic Analysis. It normalizes the midpoint of high and low against the highest and lowest values over the length input, then applies a recursive smoothing step and clamps th

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Fisher04 - Ehlers 2004 Cybernetic Analysis
16 stars

This trend-following strategy identifies breakout entries using Donchian channels and plots signals directly on the price chart. It executes long and short trades, adding fractional units when relative strength index values confirm momentum. Exits rely on aver

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 38: Triple Combo

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