Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 67)

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

This indicator plots the Christiano-Fitzgerald asymmetric band-pass filter in a separate pane. It estimates the cyclical component of a series under a random-walk assumption, using ideal band-pass weights between a minimum and maximum period and forcing the we

Indicator v6 Trend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Christiano-Fitzgerald Band-Pass Filter (CFITZ)

This indicator plots the Hilbert Transform dominant cycle phase of a chosen price source in a separate pane. It follows an Ehlers method: a weighted smoother, a detrender, and in-phase and quadrature components feed a custom atan2 that returns a phase angle be

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of HT_DCPHASE: Hilbert Transform Dominant Cycle Phase
16 stars

Seykota Alt 44: ADX Pyramid is a trend-following strategy that plots on the price chart. It enters positions on Donchian Channel breakouts when the Average Directional Index (ADX) confirms a strong trend. Position sizing uses Average True Range (ATR) risk, wit

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 44: ADX Pyramid

This indicator maps price location on the chart rather than generating trade signals. It plots Classic or Fibonacci pivot support and resistance, the central pivot range with a narrow, normal, or wide width regime versus ATR, previous high and low, and the cur

Indicator v6 Support & resistance
Updated 3 days ago · MIT GitHub repository of Market Structure Pivot Map [WavesUnchained]
4 stars

Visualizes custom trading sessions directly on the main price chart. Highlights active session bars with a light background color, plots intra-session high and low levels, and optionally places labels at session opening and closing bars. Built default for VİOP

Indicator v6 Sessions & timeSupport & resistance
Updated 2 months ago · MIT GitHub repository of Session Highlight [trugurpala]

Best SMA Finder

by regalouisei
2 stars

Best SMA Finder is an overlay indicator that scores simple moving average lengths with a crossover backtest. Long Only mode records a long entry when close crosses above the average and an exit when close crosses below it. Buy and Sell mode flips between long

Indicator v6 Moving averagesTrend
Updated 8 months ago · None stated GitHub repository of Best SMA Finder

Klinger Volume Oscillator

by mushroom-men-Trading
2 stars

The Klinger Volume Oscillator computes a volume-adjusted trend indicator by applying two exponential moving averages to a volume contribution derived from the current bar's price range and a trend strength factor. It produces a KVO line and a signal line that

Indicator v6 VolumeOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Klinger Volume Oscillator
1 stars

This indicator plots CHOCH (Change of Character) and BOS market structure signals on the price chart based on SMC logic. It calculates fast and slow EMAs, RSI, ATR volatility filters, and sweep lookback to detect breakouts and pullbacks. Signals trigger entrie

Indicator v6 SMC / ICT / price actionTrend Repaints
Updated 4 days ago · None stated GitHub repository of CHOCH-Base Indikator (RUNA logic)

Median Crossover

by pineforge-4pass
1 stars

This strategy plots a rolling median and an exponential moving average of close on the price chart and enters when the two cross. A median cross above the EMA opens a long; a cross below opens a short, reversing the prior position with a fixed quantity of one.

Strategy v6 Moving averagesTrend Repaints
Updated 7 days ago · Apache-2.0 GitHub repository of Median Crossover

P_fmt_args_named_positional

by GammaExpansion
1 stars

Plots the basic bar price series (open, high, low, close) alongside a 10-period simple moving average directly on the main price chart. The indicator tests various combinations of positional and named argument formatting across multiple plot function calls and

Indicator v6 Moving averages
Updated 7 days ago · MIT GitHub repository of P_fmt_args_named_positional

A strategy that trades liquidity sweeps within a trend context. Trend comes from EMAs, ADX with DI alignment and an optional confirmed higher-timeframe EMA filter, with optional ROC and balance-of-power agreement. A swing level is swept and reclaimed by a cand

Strategy v6 SMC / ICT / price actionVolume Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of Ranger V2 POC State Delta Session Profiles

DEPV2 DEBUG S24

by YuceSezar89
1 stars

This indicator draws in a separate pane and requests data for up to twenty user-chosen symbols, defaulting to Binance crypto perpetual contracts. It combines four signal classes: trend, momentum, volatility, and volume. Signal mode can use one class, require a

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

A strategy that implements the Parabolic SAR calculation in code, with start, increment and maximum acceleration settings. It plots the current and next bar SAR values as crosses on the price chart. On each confirmed bar it places a stop order at the next SAR

Strategy v6 Trend
Updated 1 year ago · None stated GitHub repository of Parabolic SAR Strategy

Risk Manager Template

by TradersPost
228 stars

This overlay indicator estimates position size from account equity, a per-trade risk percentage, and a chosen stop distance. Stops can use ATR, a percent of price, fixed points, or a swing high or low. It derives stop and optional take-profit prices from a ris

Indicator v6 Volatility & bandsSupport & resistance
Updated 3 months ago · None stated GitHub repository of Risk Manager Template

Cointegration

by mihakralj
99 stars

Calculates the statistical cointegration between the current chart instrument and a user-selected secondary ticker using the Engle-Granger method. It evaluates the stationarity of the regression residuals and plots the Augmented Dickey-Fuller test statistic in

Indicator v6 Mean reversion
Updated 4 weeks ago · Apache-2.0 GitHub repository of Cointegration

Calculates the Hilbert Transform In-Phase and Quadrature components of a price series to measure underlying cyclic behavior. It processes the input source through smoothing, detrending, and Hilbert phase calculation steps to generate two orthogonal component l

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of HT_PHASOR: Hilbert Transform Phasor Components
16 stars

This strategy enters long or short when price breaks a Donchian channel and RSI confirms the same direction. It sizes each unit from a risk percent of equity and can add units after a set ATR advance, up to a unit limit. An initial ATR stop and a trailing stop

Strategy v6 TrendOscillators & momentum
Updated 12 months ago · None stated GitHub repository of Seykota Alt 45: Dual Momentum

The Market Tradability Engine calculates multi-factor tradability, balance, compression, and direction scores to evaluate market regime quality. It classifies market conditions into eight distinct states, including Balance, Compression, Ready, Breakout, Trend,

Indicator v6 TrendVolatility & bands
Updated 3 days ago · MIT GitHub repository of Market Tradability Engine [WavesUnchained]

CVD Momentum Divergence

by eddiebelaval
7 stars

This indicator approximates cumulative volume delta from each bar's volume and candle body, then detrends and normalizes both price and CVD so they can be compared in a separate pane. It plots the two smoothed series and an optional histogram of their differen

Indicator v6 Oscillators & momentumVolume
Updated 3 months ago · None stated GitHub repository of CVD Momentum Divergence
4 stars

This indicator computes a momentum value via linear regression on the difference between close price and a mid-value average that blends highest-lowest range and high-close average over the Keltner Channel length. It overlays Bollinger Bands and Keltner Channe

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 months ago · MIT GitHub repository of Squeeze Momentum [trugurpala]
2 stars

Calculates and projects Bitcoin price trajectory using a power law model displayed as a clock layout in a separate pane. It maps historical price movements, average power law curves, and Bitcoin halving cycles over time. Users can toggle spiral visualization m

Indicator v6 TrendSupport & resistance
Updated 8 months ago · None stated GitHub repository of Bitcoin Power Law Clock [LuxAlgo]

Least Squares Moving Average (LSMA)

by mushroom-men-Trading
2 stars

This indicator calculates and plots the Least Squares Moving Average (LSMA) directly on the price chart. It fits a linear regression line over a user-selected lookback period and source series to project the prevailing price trend. By using an optimized circul

Indicator v6 TrendMoving averages
Updated 9 months ago · None stated GitHub repository of Least Squares Moving Average (LSMA)

Momentum ROC Combo

by pineforge-4pass
1 stars

A strategy that combines the Momentum and Rate of Change indicators, shown in a separate pane with a zero line. It enters long when momentum crosses above zero while rate of change is positive, and short when momentum crosses below zero while rate of change is

Strategy v6 Oscillators & momentum
Updated 7 days ago · Apache-2.0 GitHub repository of Momentum ROC Combo

P_fmt_comment_before_version

by GammaExpansion
1 stars

P_fmt_comment_before_version is a basic test script created to demonstrate and verify Pine Script formatting and parsing capabilities. The indicator calculates and plots the closing price of the active instrument in a separate chart pane. It contains no config

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

An overlay indicator that classifies the market into regimes such as trend, chop and squeeze using ADX, range efficiency, relative volume, ATR expansion and VWAP slope. It also measures how far price is from VWAP and an EMA to flag rich, cheap or extreme readi

Indicator v6 Volatility & bandsMean reversion
Updated 8 days ago · GPL-3.0 GitHub repository of Regime Engine + TCO Gatekeeper

DEPV2 DEBUG S25

by YuceSezar89
1 stars

The script is a multi-symbol crypto indicator that computes trading signals across twenty major pairs including BTCUSDT, ETHUSDT and others. It evaluates four core methods for signals: trend based on price levels, momentum using rate of change, volatility via

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

Apex Nexus Flip Engine v9

by vedkanani123
1 stars

An overlay indicator that builds a zero-lag trailing line from an ATR multiple and flips between buy and sell labels when price breaks it for a set number of closes. Gates for choppiness, baseline slope, volatility expansion, efficiency and ADX can block weak

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Apex Nexus Flip Engine v9
1 stars

A strategy that trades liquidity sweeps confirmed by order flow. It takes the highest high and lowest low of a prior window of 10, 20 or 50 bars, depending on a rigor setting. A bullish sweep is a low below the prior low that closes back above it with positive

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of TN Footprint Liquidity Sweep

Performance Table

by ivansoft
1 stars

Shows a table of percentage price changes for a list of symbols over a list of periods, such as one week, one to twelve months, year to date and five years. Both lists are text inputs, with the chart symbol optionally included. Cells are coloured green or red

Indicator v6 Screeners & dashboards Repaints
Updated 1 year ago · None stated GitHub repository of Performance Table

Rotating Quotes

by TradersPost
228 stars

Rotating Quotes displays customizable trading psychology quotes and reminders in a table widget in a separate pane. It cycles through a pipe-separated list of quotes at a user-defined time interval, either sequentially or in random order. User inputs allow ful

Indicator v6 Screeners & dashboards
Updated 3 months ago · None stated GitHub repository of Rotating Quotes
99 stars

This indicator calculates the Commodity Channel Index in a separate pane. It forms typical price from high, low, and close, tracks a simple moving average with a circular buffer, and divides the price deviation by a scaled mean absolute deviation. The Length i

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Commodity Channel Index (CCI)

The HT_SINE indicator calculates the Hilbert Transform SineWave and LeadSine components based on the dominant cycle of a selected price source. Using in-phase and quadrature signal processing along with a custom atan2 implementation, it measures the phase of t

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of HT_SINE: Hilbert Transform - SineWave
16 stars

This strategy implements a Donchian breakout trend-following system with sector-adaptive profit targets and ATR-based volatility sizing. It enters positions on Donchian channel breakouts, pyramiding additional units at ATR increments up to a configurable maxim

Strategy v6 BreakoutTrend
Updated 12 months ago · None stated GitHub repository of Seykota Alt 46: Sector Adaptive

This indicator evaluates how price relates to one selected moving-average family rather than treating a crossover as a signal. It scores trend quality, historical respect of the average, extension, compression, acceleration, and exhaustion, then plots a relati

Indicator v6 TrendMoving averages
Updated 3 days ago · MIT GitHub repository of Market–Average Relationship Engine [WavesUnchained]

Delta Hedging Pressure

by eddiebelaval
7 stars

Delta Hedging Pressure estimates directional market bias using a volume-weighted delta calculation plotted in a separate pane. It multiplies candle volume by bar direction (positive for bullish closes and negative for bearish closes) to compute directional pre

Indicator v6 Volume
Updated 3 months ago · None stated GitHub repository of Delta Hedging Pressure

Stoch RSI [trugurpala]

by trugurpala
4 stars

Calculates and plots the Stochastic RSI oscillator in a separate pane using customizable RSI, Stochastic, and SMA smoothing lengths for %K and %D lines. It generates bullish crossover signals when %K crosses above %D in oversold territory below 20, and bearish

Indicator v6 Oscillators & momentum
Updated 2 months ago · MIT GitHub repository of Stoch RSI [trugurpala]

Linear Time Moving Average (LTMA)

by mushroom-men-Trading
2 stars

This indicator calculates a linear time-weighted moving average of a chosen price source and plots it on the price chart. Inside the lookback, each bar receives a weight that rises with recency, equal to the period minus its offset, and the result is the weigh

Indicator v6 TrendMoving averages
Updated 9 months ago · None stated GitHub repository of Linear Time Moving Average (LTMA)
1 stars

This strategy plots market structure on the price chart from confirmed swing highs and lows and flags breaks of those levels. Breaks can use the wick or the close, and structure logic can stay standard or include sweeps. ChoCH mode selects Ping, Verify, or bot

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 4 days ago · None stated GitHub repository of CHOCH-Strategy (Structure Only)

MTF Array Stats

by pineforge-4pass
1 stars

MTF Array Stats is a multi-timeframe strategy created as an engine validation probe. It collects daily close prices into a rolling 20-element array buffer. Using array functions, it calculates the median and percentile rank of the latest daily close relative t

Strategy v6 Oscillators & momentum
Updated 7 days ago · Apache-2.0 GitHub repository of MTF Array Stats

P_fmt_comments

by GammaExpansion
1 stars

This indicator is a Pine Script v6 parser fixture rather than a trading signal. It defines a function that doubles its numeric input, stores a string that looks like a comment, and plots the doubled close plus the length of that string in a separate pane. Trai

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

An overlay indicator that tracks Asia, London and New York sessions in a chosen timezone and classifies how the day is developing into numbered profiles. It adds opening range boxes, previous day high and low sweeps, higher-timeframe market structure, a TDI an

Indicator v6 Sessions & timeSupport & resistance Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of Session Profile + Trading Coach Merged

DEPV2 DEBUG S26

by YuceSezar89
1 stars

This indicator generates trading signals for multiple cryptocurrency symbols using four methods: trend, momentum, volatility, and volume. It supports three signal modes - single method, simultaneous confirmation requiring a minimum number of agreeing methods,

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

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