Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 89)

Scripts written for Pine Script version 5. They still run in TradingView as they are, and the Pine Editor can convert them to version 6.

Pine scripts4,643
Code shown here2,378open licence
Updated in a year2,687
No repaint flag4,051

Pine Script v5: Indicators, Strategies and Libraries

2 stars

This indicator calculates a custom RSI oscillator enhanced with machine learning using the K-nearest neighbors algorithm. It combines the standard RSI with KNN predictions for improved signal generation. The script applies smoothing using ALMA and Kalman filte

Indicator v5 AI / machine learningOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Machine Learning RSI BullVision

Nexus Prime Engine v1

by vedkanani123
1 stars

An overlay always-in flip indicator where a buy closes a short and enters long, and a sell does the reverse. It uses a zero-lag EMA trail sized by ATR, smoothed price, an ADX regime read with trending and sideways thresholds, RSI and Stochastic RSI checks, and

Indicator v5 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Nexus Prime Engine v1
1 stars

Detects opening drive moves on the price chart by combining displacement, swing structure and return-to-level checks into named bull and bear signals. Inputs set sensitivity, swing length, the displacement deviation length and multiplier, and return percentage

Indicator v5 Sessions & timeVolatility & bands
Updated 2 months ago · None stated GitHub repository of TNT Opening Drive OD v2

Volatility Stop

by TWODS-CAPITAL
37 stars

This indicator plots a Volatility Stop on the price chart. It trails a stop from the running high or low of the source, offset by the average true range times a multiplier, and flips the trail when the source crosses the stop. An uptrend colors the stop one wa

Indicator v5 Volatility & bandsTrend
Updated 3 years ago · MIT GitHub repository of Volatility Stop

Trailering S002

by ruckard
13 stars

Trailering S002 is a long-only automated strategy template built for Zignaly webhook execution. It evaluates historical price stats and maximum excursion to trigger long trades, dynamically adjusting capital allocation based on active signal conditions. The sc

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Trailering S002

SMC Luxmod Nuburo4

by alboogycOdR
6 stars

This indicator identifies Smart Money Concepts (SMC) structure directly on the price chart. It detects and plots internal and swing market structures, including Break of Structure (BOS) and Change of Character (CHoCH). The script highlights order blocks, stron

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of SMC Luxmod Nuburo4
3 stars

This indicator calculates the Money Flow Index (MFI) and detects regular and hidden divergences between price action and the MFI oscillator in a separate pane. It identifies high and low pivot points using a configurable lookback length and evaluates trade con

Indicator v5 Oscillators & momentumDivergence Repaints
Updated 5 months ago · None stated GitHub repository of MFI Divergences Lower
2 stars

This indicator applies a k-Nearest Neighbors machine learning algorithm to calculate price predictions and direction on the main chart. It analyzes sequences of historical price data points to locate similar patterns and averages nearest neighbor matches. User

Indicator v5 AI / machine learningTrend Repaints
Updated 8 months ago · None stated GitHub repository of Machine Learning: kNN (New Approach)
1 stars

An overlay indicator that uses a wide SuperTrend-style trail with a zero-lag bias to print always-in buy and sell flips while ignoring small moves. Settings set the trail factor, price smoothing, minimum bars between flips, a break buffer and a minimum adverse

Indicator v5 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Nexus Prime Engine v2.1 Anti-Noise
1 stars

Overlay indicator for detecting extreme opening-drive anomalies, drawing swing-based zones and many combined markers. Version three adds a conditional gate requiring a relative volume, Grand Slam, unified combo, all-time high volume, HCT or large displacement

Indicator v5 BreakoutSessions & time
Updated 2 months ago · None stated GitHub repository of TNT Opening Drive OD v3

Volty Expan Close Strategy

by TWODS-CAPITAL
37 stars

Volty Expan Close Strategy is a volatility expansion breakout strategy that enters long or short positions when price exceeds the closing price by a specified ATR multiple. It calculates an ATR-based volatility threshold using a simple moving average of true r

Strategy v5 Volatility & bandsBreakout
Updated 3 years ago · MIT GitHub repository of Volty Expan Close Strategy

Trailering T002

by ruckard
13 stars

This automated trading strategy operates in a separate pane and is designed to integrate with Zignaly copy-trading and profit-sharing webhooks. It focuses on long positions, adjusting position size based on the number of triggered sub-strategy consensus condit

Strategy v5 Trend
Updated 1 year ago · None stated GitHub repository of Trailering T002

SMC LuxMod Nuburo5

by alboogycOdR
6 stars

This Smart Money Concepts indicator highlights market structure and institutional levels on the main price chart. It detects internal and swing structure breaks (BOS) and character changes (CHoCH), along with strong or weak high and low points. The script iden

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of SMC LuxMod Nuburo5
3 stars

The MFI Divergences Lower v2 indicator calculates the Money Flow Index (MFI) and plots it in a separate pane along with overbought, oversold, and middle threshold lines. It identifies regular and hidden bullish or bearish divergences by comparing price swing p

Indicator v5 Oscillators & momentumDivergence
Updated 5 months ago · None stated GitHub repository of MFI Divergences Lower v2
2 stars

This indicator assists with trade planning and position risk management by projecting trade parameters directly onto the price chart. It draws an interactive entry box defined by time and price boundaries, up to five take-profit levels with percentage allocati

Indicator v5 Support & resistance
Updated 8 months ago · None stated GitHub repository of MAD Position Starter & Calculator

The Parallel Price Universe Oscillator calculates detrended price movements relative to two derived moving averages weighted by fast and slow Fibonacci ratios. It extracts smoothed angular slopes using arctangent functions, aggregates them into a unified momen

Indicator v5 Oscillators & momentumMoving averages
Updated 7 weeks ago · None stated GitHub repository of Parallel Price Universe Oscillator
1 stars

Detects opening drive moves on the price chart by combining displacement, swing structure and return-to-level checks into named bull and bear signals. Inputs set sensitivity, swing length, the displacement deviation length and multiplier, and return percentage

Indicator v5 Sessions & timeVolatility & bands
Updated 2 months ago · None stated GitHub repository of TNT Opening Drive OD v3

Volume Oscillator

by TWODS-CAPITAL
37 stars

This indicator plots a volume oscillator in a separate pane. It calculates exponential moving averages of volume over short and long lengths, then expresses their difference as a percentage of the longer average. A horizontal zero line marks when the short ave

Indicator v5 Volume
Updated 3 years ago · MIT GitHub repository of Volume Oscillator

Trailering U002

by ruckard
13 stars

Trailering U002 is an automated strategy designed to connect TradingView signals directly to the Zignaly copy-trading platform. It executes long positions guided by historical statistical advice and price excursion calculations, adjusting position sizing accor

Strategy v5
Updated 1 year ago · None stated GitHub repository of Trailering U002

SMC Mod Nuburo 5

by alboogycOdR
6 stars

The indicator plots Smart Money Concepts market structure directly on the price chart. It detects real-time internal and swing structure breakouts, including Break of Structure and Change of Character, along with strong and weak high or low levels. It identifi

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of SMC Mod Nuburo 5
3 stars

MicroQuant Momentum is a momentum oscillator indicator that calculates the True Strength Index fast and slow components. It plots the TSI Fast, TSI Slow, and their difference histogram in a separate pane. Buy and sell signals trigger on crossovers of the fast

Indicator v5 Oscillators & momentum
Updated 5 months ago · None stated GitHub repository of MicroQuant Momentum

This overlay indicator enables manual identification and analysis of harmonic patterns on the price chart using interactive point selection. Users select five anchor points (X, A, B, C, and D) directly on the chart via interactive input prompts. The script eva

Indicator v5 Support & resistance
Updated 8 months ago · None stated GitHub repository of Manual Harmonic Patterns - With interactive inputs
1 stars

Parallel Universe Price Forecast is an indicator that detrends price using moving averages to extract slopes and angles from two universes weighted by fast and slow factors. It normalizes the combined angle into a symmetrical oscillator and projects the price

Indicator v5 Moving averagesVolatility & bands
Updated 7 weeks ago · None stated GitHub repository of Parallel Universe Price Forecast
37 stars

This indicator plots a volume-weighted average price on the price chart. It accumulates the selected source, defaulting to the average of high, low, and close, against volume and resets when the chosen anchor begins. Anchors include session, week, month, quart

Indicator v5 VolumeVolatility & bands Repaints
Updated 3 years ago · MIT GitHub repository of Volume Weighted Average Price

Trailering V005

by ruckard
13 stars

Trailering V005 is an automated trading strategy template designed for integration with the Zignaly platform. It calculates position sizing and entry conditions based on price excursion and historical statistical metrics, adjusting exposure depending on trigge

Strategy v5 Sessions & time
Updated 1 year ago · None stated GitHub repository of Trailering V005
6 stars

SMC Scalping State Engine v2.2.1 is a Pine Script v5 strategy that plots Smart Money Concepts elements on the XAUUSD price chart. It uses a state transition system to detect market structure breaks, order blocks, fair value gaps, key levels and EMA alignments

Strategy v5 SMC / ICT / price actionTrend
Updated 7 months ago · None stated GitHub repository of SMC Scalping State Engine v2.2.1

MicroQuant Trend

by g-moe
3 stars

MicroQuant Trend is a Supertrend-based indicator that calculates dynamic bands using EMA of high and low prices adjusted by ATR. It plots green circles for uptrend direction and red for downtrend. Background colors change to green or red when the trend flips.

Indicator v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of MicroQuant Trend
2 stars

Market Sessions by Leviathan highlights key global trading sessions including Tokyo, London, New York, and Sydney directly on the main price chart. It renders customizable colored boxes for each session based on UTC times. Additional visual features include se

Indicator v5 Sessions & time
Updated 8 months ago · None stated GitHub repository of Market Sessions - By Leviathan
1 stars

The indicator combines pivot high and low points with multi-period slope and momentum analysis to identify market trends and range conditions. It calculates short- and medium-term price slopes, EMA slopes, and price acceleration against a statistical Z-Score t

Indicator v5 TrendOscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of POT {Morindok} by @BITMOON618
37 stars

This indicator plots a volume-weighted moving average of a chosen price source on the price chart. It uses TradingView's built-in volume-weighted moving average, so bars with higher volume pull the average more than quieter bars. Length sets the lookback, Sour

Indicator v5 Moving averagesVolume
Updated 3 years ago · MIT GitHub repository of Volume Weighted Moving Average

Trailucering A002

by ruckard
13 stars

Trailucering A002 is a Pine Script strategy template designed for automated crypto trading via Zignaly webhook alerts. It identifies market breakout opportunities and executes trades directly on the main price chart. Position exits are managed using customizab

Strategy v5 Breakout
Updated 1 year ago · None stated GitHub repository of Trailucering A002
6 stars

Time-Filtered MTF CRT Detector identifies multi-timeframe Candle Range Theory (CRT) patterns based on specific time-filtered H4 candles such as 1AM, 5AM, or 9AM models. It plots horizontal high and low range lines directly on the main price chart, complete wit

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of Time-Filtered MTF CRT Detector
3 stars

MicroQuant Trend Strat is a trend-following strategy overlaid on the price chart that utilizes a modified Supertrend calculation built with EMA bands and Average True Range volatility bounds. It opens long positions when the trend direction turns bullish and s

Strategy v5 TrendVolatility & bands
Updated 5 months ago · None stated GitHub repository of MicroQuant Trend Strat

This indicator overlays volume profiles and session ranges directly onto the price chart for specified periods, including Tokyo, London, New York, Daily, Weekly, Monthly, Quarterly, and Yearly sessions. It calculates and plots Point of Control (POC), Value Are

Indicator v5 VolumeSessions & time
Updated 8 months ago · None stated GitHub repository of Market Sessions and Volume Profile - By Leviathan

PPUO Forecast Signals

by morindok
1 stars

The PPUO Forecast Signals indicator derives a Parallel Universe Oscillator from detrended price series using slow and fast moving averages of varying lengths. It extracts smoothed angles from the detrended values, weights and aggregates them into a universe me

Indicator v5 TrendOscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of PPUO Forecast Signals
1 stars

An overlay indicator that tries to show only larger reversals through a very wide ATR trail. A main buy or sell requires a trail break with confirmation closes, a swing high or low break, minimum travel from the last flip, and a minimum pullback from the leg p

Indicator v5 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Nexus Prime Engine v6 Major Only

Ultra Combo v57

by nishpa800
1 stars

Overlay indicator that marks combination signals on the price chart. Groups include PBJ or PB with F2, E3 and cluster patterns, sequential combos, back-to-back day combos, Heavy Weapon with any bullish or bearish signal, GZ1 and high-volume mega combos, first-

Indicator v5 VolumeOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Ultra Combo v57

Vortex Indicator

by TWODS-CAPITAL
37 stars

This indicator plots the standard Vortex Indicator lines in a separate pane to identify trend direction and momentum. It calculates positive trend movement and negative trend movement relative to the true range over a user-defined length. The script outputs tw

Indicator v5 TrendOscillators & momentum
Updated 3 years ago · MIT GitHub repository of Vortex Indicator

Traiversal A001

by ruckard
13 stars

Traiversal A001 is a breakout reversal strategy designed primarily for cryptocurrency trading. It identifies reversal entry opportunities three candles following a breakout and closes positions when a breakout in the opposite direction occurs. The script inclu

Strategy v5 BreakoutMean reversion
Updated 1 year ago · None stated GitHub repository of Traiversal A001

WED & MIDNIGHT DST System

by alboogycOdR
6 stars

Calculates and plots horizontal support and resistance levels based on weekly Wednesday price action and daily midnight opening candles. It accounts for Daylight Saving Time adjustments to capture monthly Wednesday high, low, and open levels along with daily U

Indicator v5 Support & resistanceSessions & time
Updated 7 months ago · None stated GitHub repository of WED & MIDNIGHT DST System
3 stars

This strategy executes trades based on a modified Supertrend indicator combining exponential moving averages, price channels, and ATR bands. It enters long positions when the trend direction turns bullish and short positions when it turns bearish, filtered by

Strategy v5 TrendVolatility & bands
Updated 5 months ago · None stated GitHub repository of MicroQuant Trend Strat +TS

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