Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 77)

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

Time Weighted Average Price (TWAP)

by mushroom-men-Trading
2 stars

This indicator calculates a session-based time-weighted average price as the simple average of a chosen source series since the last reset. It plots that value as a yellow line on the price chart. The source defaults to the average of open, high, low, and clos

Indicator v6 VolumeSessions & time
Updated 9 months ago · None stated GitHub repository of Time Weighted Average Price (TWAP)
1 stars

This strategy evaluates a multi-timeframe moving average setup by requesting a 6-period exponential moving average computed on a monthly calendar timeframe. It operates directly on the price chart and triggers trade executions when the current bar close crosse

Strategy v6 Moving averagesTrend
Updated 7 days ago · Apache-2.0 GitHub repository of PF MTF Isolate - Monthly EMA(6) Cross

Risk limits probe r2

by GammaExpansion
1 stars

This strategy probes TradingView risk-limit behavior in a separate pane. It cycles timed entries in a chosen direction, then closes and cancels orders on a fixed bar schedule. A mode input activates one of drawdown cash, drawdown percent, intraday cash loss, i

Strategy v6
Updated 7 days ago · MIT GitHub repository of Risk limits probe r2

DEPV2 Veri 2

by YuceSezar89
1 stars

This indicator plots OHLCV data for multiple cryptocurrency symbols on a single chart time axis in a separate pane. It uses request.security to fetch 15-minute open, high, low, close, and volume values for symbols such as BINANCE:BCHUSDT.P, BINANCE:ATOMUSDT.P,

Indicator v6 VolumeScreeners & dashboards
Updated 13 days ago · None stated GitHub repository of DEPV2 Veri 2

Liquidity Pools Pro

by vedkanani123
1 stars

A liquidity indicator on the price chart. It detects pivot highs and lows with an adaptive or manual length and groups pivots that sit within an ATR-based tolerance into pools, shown as zones with a strength bar. Strength decays over time and can be volume-wei

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of Liquidity Pools Pro
1 stars

A strategy that changes its entry type with volatility and uses a 200 EMA as a direction gate, long above and short below. When ATR is below its average it fades moves beyond the prior range. When ATR is expanding it takes range breakouts that close with a str

Strategy v6 Volatility & bandsBreakout
Updated 2 months ago · None stated GitHub repository of TN Sovereign Adaptive Regime
99 stars

The Ehlers Elegant Oscillator is a momentum indicator that computes a bounded oscillator value between approximately -1 and +1. It processes the input series through a 2-bar momentum calculation, normalizes the derivative by rolling RMS over 50 bars, applies t

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Elegant Oscillator (EEO)
47 stars

The Price Channel indicator calculates and plots the dynamic highest high and lowest low over a user-defined lookback period, alongside a central midpoint line. Built using monotonic deques for optimized streaming runtime efficiency, it plots an upper channel

Indicator v6 Support & resistanceVolatility & bands
Updated 8 months ago · MIT GitHub repository of Price Channel (PCHANNEL)
9 stars

This indicator plots a percentage rate of change in a separate pane. It smooths the ROC with a selectable average, draws a signal line and histogram, and colors long and short momentum around a configurable midline and stretch zones. Optional stall detection m

Indicator v6 Oscillators & momentum
Updated 3 days ago · MIT GitHub repository of ROC Advanced [WavesUnchained]

RSI + Stoch RSI Overlay

by eddiebelaval
7 stars

This indicator combines the standard Relative Strength Index (RSI) and Stochastic RSI into a single oscillator plot within a separate pane. It calculates RSI from price data and applies stochastic smoothing to derive %K and %D lines. Users can toggle individua

Indicator v6 Oscillators & momentum
Updated 3 months ago · None stated GitHub repository of RSI + Stoch RSI Overlay
2 stars

Risk-Adjusted Momentum Oscillator plots a normalized momentum oscillator in a separate pane, dynamically scaling momentum by ongoing drawdown risk. It calculates momentum via Rate of Change, Price Momentum, or Log Returns, applying Z-score normalization and ad

Indicator v6 Oscillators & momentumVolatility & bands
Updated 8 months ago · None stated GitHub repository of Risk-Adjusted Momentum Oscillator

Trade Volume Index (TVI)

by mushroom-men-Trading
2 stars

Calculates and plots the Trade Volume Index (TVI) in a separate pane. It tracks price changes relative to a configurable minimum tick threshold to determine whether volume represents buying or selling pressure, accumulating or subtracting volume accordingly. U

Indicator v6 Volume
Updated 9 months ago · None stated GitHub repository of Trade Volume Index (TVI)
1 stars

PF MTF probe - weekly SMA(10) cross is a multi-timeframe trend-following strategy designed to test weekly moving average interactions. It calculates a 10-period Simple Moving Average on a weekly timeframe using request.security without lookahead bias. When the

Strategy v6 Moving averagesTrend
Updated 7 days ago · Apache-2.0 GitHub repository of PF MTF probe - weekly SMA(10) cross

RSI Reversal

by GammaExpansion
1 stars

This long-only strategy calculates an RSI and a long exponential moving average. It enters when RSI crosses above the oversold level while price is above the trend average and no position is open. It closes when RSI crosses the midline or a mirrored overbought

Strategy v6 Oscillators & momentumMoving averages
Updated 7 days ago · MIT GitHub repository of RSI Reversal

Hacim Sıralaması (ATH)

by YuceSezar89
1 stars

This indicator ranks the current bar’s volume against stored historical volume in a separate pane. On the last bar it shows all-history rank, a percentile, the ratio of current volume to the highest stored volume, and the date of that peak. A comparison window

Indicator v6 VolumeScreeners & dashboards
Updated 13 days ago · None stated GitHub repository of Hacim Sıralaması (ATH)

Liquidity Trail Matrix

by vedkanani123
1 stars

A trend indicator on the price chart built from several ATR trail bands whose width follows presets for scalping, balanced or deep trend use. The chosen flip band decides the trend, and retest signals are scored with a minimum score, retest window and cooldown

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Liquidity Trail Matrix
1 stars

A swing strategy on the price chart that takes long signals when a 9 EMA crosses above a 21 EMA with RSI above 50, and shorts on the opposite cross. An optional multi-timeframe filter checks a weekly EMA trend and four-hour RSI momentum before accepting a sign

Strategy v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of TN Sovereign Adv Swing
99 stars

Calculates John Ehlers' Even Better Sinewave indicator to isolate cyclical components in price action. It applies a high-pass filter to remove low-frequency trend components, followed by a Super Smoother filter to reduce high-frequency noise, and normalizes th

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Even Better Sinewave (EBSW)
47 stars

Price Momentum Oscillator (PMO) calculates a double-smoothed Rate of Change (ROC) to track directional price momentum. It derives the percentage price change over a selected lookback period, applies an initial exponential smoothing pass, and refines it with a

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Price Momentum Oscillator (PMO)
9 stars

This indicator plots a smoothed RSI in a separate pane with a signal line, a 50 midline, and configurable overbought and oversold bands. It colors momentum long or short, fills the oscillator against the signal and the zones, and draws a histogram. Optional ma

Indicator v6 Oscillators & momentumDivergence
Updated 3 days ago · MIT GitHub repository of RSI Advanced [WavesUnchained]
2 stars

Rolling Z-Score Trend [QuantAlgo] calculates a rolling Z-score using mean and standard deviation over a user-defined lookback window to evaluate statistical price deviations and momentum. Plotted in a separate indicator pane, it displays the rolling Z-score li

Indicator v6 TrendOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Rolling Z-Score Trend [QuantAlgo]

Triangular Moving Average (TRIMA)

by mushroom-men-Trading
2 stars

The Triangular Moving Average (TRIMA) indicator calculates a double-smoothed moving average that places greater weight on the middle values of the chosen lookback period. It dynamically generates a triangular weighting array to smooth price fluctuations and fi

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

This strategy is a multi-timeframe parity probe that plots on the price chart. It requests the 60-minute close with lookahead off and treats a change in that value as a higher-timeframe close roll. On each roll it enters one long unit. On the next bar after a

Strategy v6
Updated 7 days ago · Apache-2.0 GitHub repository of PF MTF probe 01 — 60m close roll

S Exit Brackets

by GammaExpansion
1 stars

A backtesting verification strategy designed to test bracket exit order execution rules in Pine Script v6. It automatically triggers long and short entries at predetermined bar index cycles, applying tight and mixed exit brackets using absolute price stops, li

Strategy v6
Updated 7 days ago · MIT GitHub repository of S Exit Brackets
1 stars

A strategy that enters on a 9 and 21 EMA crossover, optionally confirmed by RSI above 40 for longs or below 60 for shorts. Trades must agree with a 200 EMA market filter and a weekly 20 EMA taken from the previous completed week. Position size is set so the di

Strategy v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of TN Sovereign Advanced Swing
99 stars

Calculates John Ehlers' Fisher Transform oscillator and a delayed signal line. The indicator normalizes price data within a lookback period to a bounded scale, applies exponential smoothing, and uses logarithmic transformation to convert price distributions in

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Fisher Transform (FISHER)
47 stars

This indicator calculates price relative strength as the ratio of a base price series to the close of a comparison symbol. It plots the raw ratio and an exponentially smoothed ratio in a separate pane. Smoothing length controls the EMA and hides the smoothed p

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Price Relative Strength (PRS)
9 stars

This indicator calculates and plots multi-timeframe support and resistance zones using ATR-based reversal structure swings. It builds zones across configurable higher timeframes and the current chart timeframe, applying scoring based on touch quality, rejectio

Indicator v6 Support & resistance
Updated 3 days ago · MIT GitHub repository of S/R Zones MTF [WavesUnchained]

Session Volume Averages

by eddiebelaval
7 stars

This indicator plots trading volume bars in a separate pane alongside historical volume benchmarks for up to three user-defined trading sessions. For each active session, it calculates two benchmarks over a selectable sample size of past sessions: an overall s

Indicator v6 VolumeSessions & time
Updated 3 months ago · None stated GitHub repository of Session Volume Averages
1 stars

This strategy monitors two higher timeframes of 60 minutes and 240 minutes. It calculates whether the close on each timeframe exceeds the prior bar close, then checks if both are rising. When both conditions hold and no position exists, it enters a long trade

Strategy v6 Trend
Updated 7 days ago · Apache-2.0 GitHub repository of PF MTF probe 02 — dual TF closes
1 stars

This strategy tests and demonstrates TradingView risk management using strategy.risk.max_intraday_filled_orders. It tracks the bar count within each day, triggering long entries and position exits across the initial bars of a trading session. Once the maximum

Strategy v6
Updated 7 days ago · MIT GitHub repository of S Risk Max Intraday Filled Orders

Meridian Flow

by vedkanani123
1 stars

A market structure indicator on the price chart. It finds swing pivots, labels them HH, HL, LH and LL, and marks break of structure and change of character events using close or wick confirmation. Order blocks can be created from those events, tracked until mi

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of Meridian Flow
1 stars

This strategy calculates fast and slow exponential moving averages alongside the Average Directional Index. It plots both moving averages on the price chart and displays an on-screen table tracking trend strength, directional bias, and volatility. A long posit

Strategy v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of Tn Sovereign ADX Trend
99 stars

This indicator plots John Ehlers’s 2004 Fisher Transform in a separate pane. It normalizes the midpoint of high and low over a rolling highest-lowest range, applies recursive smoothing, and clamps the result before taking a scaled inverse hyperbolic tangent wi

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Fisher Transform 2004

Rate of Change (ROC)

by mihakralj
47 stars

This indicator plots the absolute price change between the current source value and the value a set number of bars earlier. It draws a single ROC line in a separate pane. The source series and lookback length are the main settings. During warm-up the lookback

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Rate of Change (ROC)

Signal Quality Engine [WavesUnchained] is a range-fade indicator that identifies exhaustion at range extremes and signals potential reversals. It applies an ADX and EMA slope regime gate to stand down during strong trends. Using distance, structure, and moment

Indicator v6 Mean reversionSupport & resistance
Updated 3 days ago · MIT GitHub repository of Signal Quality Engine [WavesUnchained]
7 stars

Smart Krypto Futures Daytrade Suite is an all-in-one technical indicator tailored for intraday cryptocurrency trading. It plots higher-timeframe supply and demand zones, Fair Value Gaps with optional mitigation filtering, session VWAP, dynamic moving averages,

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of Smart Krypto Futures Daytrade Suite

True Range

by mushroom-men-Trading
2 stars

This indicator calculates and plots the standard True Range metric for each bar in a separate chart pane. The True Range measures market volatility by taking the maximum value among three price differences: current high minus current low, absolute difference b

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of True Range

PF MTF probe 03 — 60m SMA(20)

by pineforge-4pass
1 stars

The strategy computes the 20-period SMA on the 60-minute timeframe using request.security to obtain the HTF series. It generates long signals on SMA crossovers where the HTF close crosses above the SMA from below and exits long positions on downward crossovers

Strategy v6 Moving averagesTrend
Updated 7 days ago · Apache-2.0 GitHub repository of PF MTF probe 03 — 60m SMA(20)

S Trailing

by GammaExpansion
1 stars

S Trailing is a Pine Script v6 strategy that applies trailing stops to periodic cycle-based entries. It divides the bar index into cycles of 40 bars and activates at specific phases: long entry with trailing price stop at phase 0, short entry at phase 14, plus

Strategy v6 Mean reversionScalping
Updated 7 days ago · MIT GitHub repository of S Trailing

MTF Trend Signals

by vedkanani123
1 stars

A separate-pane indicator adapted from the AK MACD Bollinger Bands idea. It draws MACD-based Bollinger bands whose fill colour follows RSI against its moving average and the 55 and 45 levels. Buy and sell markers come from multi-timeframe alignment, using an a

Indicator v6 Oscillators & momentumTrend
Updated 2 months ago · None stated GitHub repository of MTF Trend Signals

TN Sovereign Audit

by raybird
1 stars

A strategy on the price chart that scores each bar from 0 to 4 using four checks: volume against its average, price against a higher-timeframe EMA, bar movement against an ATR noise level, and a fast EMA above a slow EMA. The score maps to signal grades, and a

Strategy v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of TN Sovereign Audit
99 stars

This indicator plots John Ehlers' Hann-windowed RSI in a separate pane. It weights successive price differences with Hann window coefficients, then normalizes the weighted up and down sums into a bounded oscillator between minus one and plus one. A period inpu

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Hann-Windowed RSI (RSIH)
47 stars

This indicator calculates the Rate of Change Percentage (ROCP), measuring the relative percentage difference between the current price source and its value a specified number of bars ago. It includes explicit warm-up tracking to ensure deterministic evaluation

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Rate of Change Percentage (ROCP)

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