Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 78)

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

9 stars

Smart Money Dashboard plots key Smart Money Concepts on the price chart, including Order Blocks with mitigation tracking, Fair Value Gaps, and Equal Highs or Lows sweeps. It analyzes Cumulative Volume Delta for divergence and combines multi-timeframe structure

Indicator v6 SMC / ICT / price actionVolume
Updated 3 days ago · MIT GitHub repository of Smart Money Dashboard

Ulcer Index (UI)

by mushroom-men-Trading
2 stars

This indicator calculates the Ulcer Index as a measure of downside volatility. It tracks the highest source value over the chosen lookback, converts the percentage drawdown from that high into a squared average, and takes the square root. The value plots as a

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Ulcer Index (UI)
1 stars

The strategy monitors the lower timeframe close crossing above the previous daily high obtained via request.security on the daily chart. It enters a long position of one unit upon detection of this cross-up condition and closes the position when the close fall

Strategy v6 BreakoutMean reversion
Updated 7 days ago · Apache-2.0 GitHub repository of PF MTF probe 04 — D high[1] break

S_calc_on_order_fills

by GammaExpansion
1 stars

This strategy tests order fill recalculation behavior across an eight-bar cycle. It enters long positions using a market order at phase zero and a limit order below the close at phase four. When an open position is detected upon order fill, it immediately subm

Strategy v6
Updated 7 days ago · MIT GitHub repository of S_calc_on_order_fills
1 stars

A separate-pane momentum indicator that combines fast and slow RSI, smoothed momentum, an ATR trend band and a memory of past similar setups to score each bar. A weighted confidence and rank are built from similarity, momentum agreement, trend alignment, volat

Indicator v6 Oscillators & momentumAI / machine learning
Updated 2 months ago · None stated GitHub repository of Neural Momentum Matrix AI Pro
1 stars

The Tn Sovereign BB Breakout v6 strategy identifies volatility squeezes on the price chart by checking when Bollinger Bands lie inside Keltner Channels. It enters long positions on crossover above the upper BB band when a volume audit passes, and shorts on cro

Strategy v6 Volatility & bandsBreakout
Updated 2 months ago · None stated GitHub repository of Tn Sovereign BB Breakout v6
99 stars

This indicator calculates John Ehlers' two-pole Highpass Filter (HPF) to isolate cyclic noise from market data. By subtracting the highpass filter output from the input price series, it removes high-frequency fluctuations and plots the smooth underlying trend

Indicator v6 Trend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Highpass Filter (HPF)
47 stars

This indicator calculates the Schaff Trend Cycle oscillator using custom exponential moving averages with deterministic warm-up logic. It computes a MACD line from user-defined fast and slow lengths, passes it through a double stochastic calculation over a spe

Indicator v6 Oscillators & momentumTrend
Updated 8 months ago · MIT GitHub repository of Schaff Trend Cycle (STC)

This indicator plots a four-layer Smart Money Concepts framework directly on the price chart. It maps external and internal market structure points (HH, HL, LH, LL), projects structural expectation zones for upcoming swing levels, detects Break of Structure (B

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 days ago · MIT GitHub repository of SMC Structure & Expectation [WavesUnchained]

This indicator segments recent price bars into defined groups and visual boxes to serve as a visual chart ruler. It includes automated trend detection with configurable angle thresholds to plot uptrend, downtrend, and range segments directly on the price chart

Indicator v6 TrendSupport & resistance

PF MTF probe 05 — 60m RSI(14)

by pineforge-4pass
1 stars

The script is a Pine Script strategy that fetches the RSI(14) value from the 60-minute timeframe via request.security and signals long entries on crossovers above 50 while closing longs on crossunders below 50. It maintains a single fixed position of 1 unit wi

Strategy v6 Oscillators & momentum
Updated 7 days ago · Apache-2.0 GitHub repository of PF MTF probe 05 — 60m RSI(14)

S_close_variants

by GammaExpansion
1 stars

S_close_variants is a Pine Script v6 strategy that tests different close calls in the strategy library. It enters long positions at specific phases of a 30-bar cycle and uses close, close with comment, close with fixed qty, close with qty percent, close all, a

Strategy v6
Updated 7 days ago · MIT GitHub repository of S_close_variants

Nexus Big Move v7

by vedkanani123
1 stars

A trend flip indicator on the price chart with BUY and SELL labels. It builds a zero-lag trail from ATR and an optional volume-weighted source, then lets a flip through only when several gates pass: choppiness, baseline slope, volatility expansion, efficiency

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Nexus Big Move v7

Tn Sovereign CCI v6

by raybird
1 stars

This strategy draws on the price chart and trades a fast and slow Commodity Channel Index against an exponential moving average regime. It enters long when the fast CCI crosses above the lower extreme, the slow CCI is already above that level, and price is abo

Strategy v6 Oscillators & momentumMoving averages
Updated 2 months ago · None stated GitHub repository of Tn Sovereign CCI v6

Calculates the dominant cycle period of a price series using John Ehlers' Hilbert Transform algorithm, cross-checked against the TA-Lib implementation. It applies weighted price smoothing, FIR detrending, in-phase and quadrature component processing, and a hom

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Hilbert Transform Dominant Cycle Period
47 stars

Calculates the linear regression slope for a selected price source over a configurable rolling lookback window. It tracks running sums using ring buffers to determine the rate of price change per bar. Configurable settings include the lookback period and price

Indicator v6 Trend
Updated 8 months ago · MIT GitHub repository of Slope, Linear Regression (SLOPE)

This indicator plots a double-smoothed Supertrend baseline on the price chart, combining a Supertrend midline with WMA and EMA smoothing to show trend direction. Direction uses an ATR-scaled baseline slope with hysteresis, while percentile-ranked slope magnitu

Indicator v6 TrendMoving averages
Updated 3 days ago · MIT GitHub repository of Smooth Trend Radar [WavesUnchained]
7 stars

This multi-timeframe indicator calculates Stochastic oscillator directional bias across three user-defined timeframes. It compares %K and %D to determine whether momentum is bullish or bearish on each timeframe. When all three timeframes align in the same dire

Indicator v6 Oscillators & momentumTrend Repaints
Updated 3 months ago · None stated GitHub repository of Stoch MTF 3 TF Direction Only

PF MTF Probe 06 60m Volume Sum

by pineforge-4pass
1 stars

A test strategy from a reference corpus that requests 60-minute volume and its 20-bar average from a lower-timeframe chart, with lookahead off. It enters one long unit when hourly volume is more than twice its average and closes the position when that conditio

Strategy v6 Volume
Updated 7 days ago · Apache-2.0 GitHub repository of PF MTF Probe 06 60m Volume Sum

S_exit_partial

by GammaExpansion
1 stars

This strategy is a deterministic test fixture that repeats a 48-bar cycle based on bar index. It opens fixed-size long entries at set phases and attaches limit and stop exits that reserve quantity, split size by percent, apply to later entries when no entry id

Strategy v6
Updated 7 days ago · MIT GitHub repository of S_exit_partial
1 stars

This strategy adapts the Chandelier Exit indicator to build a trend-following system with added audit filters. It calculates trailing stop levels using ATR and highest highs or lowest lows to determine directional shifts. Entries are filtered through a long-te

Strategy v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Tn Sovereign Chandelier

This indicator computes the InPhase and Quadrature components of the Hilbert Transform Phasor using Ehlers' FIR filter algorithm. It processes the input source (default HLC3) through smoothing, detrender, and phase shift steps to generate the components. Plots

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Hilbert Transform Phasor Components
47 stars

This indicator calculates the Spearman rank correlation coefficient between two series: a selected price source from the active chart and a price source from a secondary ticker symbol. Over a customizable lookback period, it ranks the values within a sliding w

Indicator v6
Updated 8 months ago · MIT GitHub repository of Spearman Rank Correlation (SPEARMAN)
9 stars

Smooth Trend Radar Strategy calculates a double-smoothed Supertrend baseline using WMA and EMA to identify trend direction and sideway regimes. It plots baseline rejection signals on flips, trend slope filters, and statistical overextension highlights with can

Strategy v6 TrendMoving averages
Updated 3 days ago · MIT GitHub repository of Smooth Trend Radar Strategy
7 stars

This Pine Script strategy implements the Supertrend Elite Trend System for crypto markets. It combines signals from ten indicators including Supertrend, ALMA smoothing, CTI correlation, STC trend catcher, Gunxo sniper, DEMA with DMI, MM percentile, and DMI loo

Strategy v6 TrendMoving averages
Updated 3 months ago · None stated GitHub repository of Supertrend Elite Trend System

Volume Accumulation (VA)

by mushroom-men-Trading
2 stars

This indicator calculates and plots a cumulative volume accumulation line in a separate pane. For each bar, it computes the bar midpoint between high and low, subtracts the midpoint from the close price, and multiplies the difference by the bar volume before a

Indicator v6 Volume
Updated 9 months ago · None stated GitHub repository of Volume Accumulation (VA)
1 stars

This strategy analyzes closing prices from three simultaneous multi-timeframe security feeds: 60-minute, 240-minute, and daily. It identifies confluence when all three closes are rising (allUp) or falling (allDown) from the prior bar. When allUp and no long po

Strategy v6 TrendSMC / ICT / price action
Updated 7 days ago · Apache-2.0 GitHub repository of PF MTF probe 07 - triple TF close

S_margin

by GammaExpansion
1 stars

S_margin is a strategy designed to test margin rules, leverage calculations, and liquidation price tracking in Pine Script v6. Operating on a repeating 40-bar cycle, it enters a long position sizing at 300% equity on phase 0, exits on phase 18, enters a short

Strategy v6
Updated 7 days ago · MIT GitHub repository of S_margin
1 stars

This strategy identifies pivot-based Darvas Box levels on the price chart and trades re-entries following box sweeps. A long position arms when the price dips below the lower boundary and triggers when it closes back inside, provided the price is above a highe

Strategy v6 Support & resistanceBreakout
Updated 2 months ago · None stated GitHub repository of TN Sovereign Darvas Box v6
99 stars

This indicator calculates John Ehlers' Hilbert Transform sine wave from a chosen price source, defaulting to hlc3. It smooths price, estimates the dominant cycle with a homodyne discriminator, clamps that period between 6 and 50 bars, and extracts phase with a

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Hilbert Transform SineWave
47 stars

This indicator applies a square root transform to a user-selected price series and plots the result in a separate pane. The function returns na when the source is negative and raises a runtime error if the source is na. The only input chooses the series, defau

Indicator v6
Updated 8 months ago · MIT GitHub repository of Square Root Transformation (SQRT)

This indicator plots a Stochastic RSI in a separate pane on a 0–100 scale. It computes RSI of the source, then a stochastic of that RSI, and smooths the K and D lines with a selectable average including SMA, EMA, and JMA-style options. It marks midline and K/D

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

Swing Trade Strategy

by eddiebelaval
7 stars

Swing Trade Strategy evaluates market conditions by aggregating directional signals across ten trend and momentum indicators, including an Arnaud Legoux Moving Average, Relative Momentum Index, Double Exponential Moving Average, Directional Movement Index, and

Strategy v6 TrendOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Swing Trade Strategy

Volume Force (VF)

by mushroom-men-Trading
2 stars

Volume Force (VF) is an indicator that calculates the force of volume behind price movements. It measures price change multiplied by volume and smooths the result using an EMA-style formula with adjustable smoothing period. The script plots the VF line on a se

Indicator v6 VolumeOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Volume Force (VF)
1 stars

A test strategy from a reference corpus that calls a user-defined MACD histogram function on 60-minute, 4-hour and daily data with lookahead off. It goes long when all three histograms are positive and short when all three are negative, closing the opposite po

Strategy v6 Oscillators & momentumTrend
Updated 7 days ago · Apache-2.0 GitHub repository of PF MTF Probe 08 Triple TF MACD Histogram

S_pending_entries

by GammaExpansion
1 stars

S_pending_entries is a strategy that places different types of pending buy and sell orders including limit, stop, and stop-limit orders at specific phases in a 68-bar cycle. It calculates reference price levels around the current close and plots them along wit

Strategy v6 Support & resistanceSessions & time
Updated 7 days ago · MIT GitHub repository of S_pending_entries
1 stars

This strategy plots Donchian upper and lower channels along with the midpoint on the price chart. It generates long signals on a price crossover above the upper Donchian band when volume exceeds a moving average multiple if the filter is enabled, and short sig

Strategy v6 TrendBreakout
Updated 2 months ago · None stated GitHub repository of TN Sovereign Donchian Breakout

This indicator implements John Ehlers' Hilbert Transform Trend vs Cycle Mode algorithm cross-checked against TA-Lib standards. It analyzes dominant cycle periods, phase changes, and sine wave components from a price input to determine whether the market is tre

Indicator v6 Trend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Hilbert Transform Trend vs Cycle Mode (HT_TRENDMODE)
47 stars

Calculates and plots the square root mathematical transformation of a chosen price or series input in a separate pane. This non-linear mapping compresses larger values, helping to stabilize variance across price data. The calculation includes built-in safety c

Indicator v6
Updated 8 months ago · MIT GitHub repository of Square Root Transformation (SQRT)

Structural Wave Field is a market structure indicator that evaluates structural flow, internal wave energy, and structural integrity across multiple time horizons. It combines momentum, velocity, and acceleration with wave segmentation and Elliott-context sequ

Indicator v6 SMC / ICT / price actionTrend
Updated 3 days ago · MIT GitHub repository of Structural Wave Field [WavesUnchained]

Volume Oscillator (VO)

by mushroom-men-Trading
2 stars

This indicator calculates a volume oscillator in a separate pane. It builds short and long simple moving averages of volume with circular buffers, then plots the percentage difference of the short average relative to the long average. A further moving average

Indicator v6 Volume
Updated 9 months ago · None stated GitHub repository of Volume Oscillator (VO)

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