Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 81)

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

BTC/USD - RSI

by hasnocool
106 stars

This strategy calculates the Relative Strength Index (RSI) to generate mean-reversion signals based on multi-tier overbought and oversold thresholds. When the RSI falls below the oversold levels without an active trade, it enters a long position; conversely, w

Strategy v5 Oscillators & momentumMean reversion
Updated 2 years ago · GPL-3.0 GitHub repository of BTC/USD - RSI

On Neck - Bearish

by TWODS-CAPITAL
37 stars

This indicator identifies the bearish On Neck candlestick pattern on the price chart. The pattern is a two-bar continuation setup occurring during a downtrend, where a long black (bearish) candle is followed by a small white (bullish) candle that opens below t

Indicator v5 Candlestick patterns
Updated 3 years ago · MIT GitHub repository of On Neck - Bearish
13 stars

This strategy runs on the price chart to identify trade entries using volume sequences, specifically tracking consecutive declining volume candles followed by a volume surge at lower price levels. It provides webhook execution support for Zignaly copy trading

Strategy v5 VolumeVolatility & bands
Updated 1 year ago · None stated GitHub repository of Ruckard Voladder A002
6 stars

This indicator plots Candle Range Theory setups on the price chart. It marks session-based CRT ranges for one-hour or four-hour models and labels buy and sell signals after a liquidity sweep. Entry logic either waits for a market structure shift plus a fair va

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of Institutional CRT Engine Dual Mode

This intraday strategy is designed for short-term scalping on equity and index markets like SPY. It evaluates price movement using configurable exponential and Hull moving averages combined with an ATR-based Supertrend calculation. The script plots signal arro

Strategy v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of J8 30 123 SPY Scalping PRO 2 Jerry
2 stars

The Detrended Rhythm Oscillator combines a Detrended Price Oscillator with ZigZag pivot logic to measure market cycle lengths and dominant swing rhythms. It plots detrended oscillations in a separate pane along with dynamic distance labels between swing highs

Indicator v5 Oscillators & momentumSupport & resistance Repaints
Updated 8 months ago · None stated GitHub repository of Detrended Rhythm Oscillator

Utils

by mushroom-men-Trading
2 stars

This Pine Script v5 library supplies utility functions and types for indicators on TradingView. The core feature is the valueColorSpectrum object, which maps oscillator values to colors using configurable level thresholds for custom visual themes. It supports

Library v5
Updated 9 months ago · None stated GitHub repository of Utils
1 stars

This indicator calculates a Fibonacci-scaled sinusoidal wave cycle derived from two user-selected chart reference points. Plotted directly on the main price chart, it projects an extended trendline alongside moving averages adjusted by normal and inverse slope

Indicator v5 TrendSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Hyper Fibo System {Morindok}

KC Combo Bear 44 v4.4

by nishpa800
1 stars

Bearish-only overlay indicator with forty-four combination markers built on Keltner Channel logic, drawn on the price chart. Letter codes on markers show which members fired, such as PB, PBJ, RC, RS, pocket pivot and displacement. This version removes the per-

Indicator v5 Volatility & bandsVolume
Updated 2 months ago · None stated GitHub repository of KC Combo Bear 44 v4.4
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns, in a version labelled stable by its file name. A lookback setting decides when a zone is invalidated and a tolerance margin allows small breaches. Algorithm modes range from loose

Indicator v5 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones V4

HighLow

by ivansoft
1 stars

Experimental overlay that tracks the high, low and open of different periods, such as session, day and week, using varip variables and chart points, and draws dotted lines and labels at the periods' extremes. Colour, text size, line width and line style are ad

Indicator v5 Support & resistanceSessions & time Repaints
Updated 1 year ago · None stated GitHub repository of HighLow
106 stars

This strategy enters a long position on Monday when the bar falls inside the 14:00 to 16:01 session window. It closes that long on Tuesday during the same window, or earlier if price hits a percentage stop loss or take profit measured from the average entry pr

Strategy v5 Sessions & time
Updated 2 years ago · GPL-3.0 GitHub repository of Buy Monday, Exit Tuesday

Open Interest

by TWODS-CAPITAL
37 stars

Open Interest requests the chart symbol's open-interest series, or an overridden symbol, and plots it in a separate pane. It builds a ticker ending in _OI and loads open, high, low, and close. On intraday futures charts the request uses the daily timeframe. Wh

Indicator v5 Volume
Updated 3 years ago · MIT GitHub repository of Open Interest
13 stars

Ruckard Voladder B002 is a price-chart strategy that opens long trades after three or more consecutive candles of falling volume, followed by a higher-volume candle, while price is lower across that span. The comments leave the long exit logic uncertain. By de

Strategy v5 Volume
Updated 1 year ago · None stated GitHub repository of Ruckard Voladder B002

Hidden Relative Strength

by eddiebelaval
7 stars

The Hidden Relative Strength indicator normalizes price changes of a symbol by dividing them by ATR volatility, then subtracts the normalized move of a benchmark symbol such as QQQ to derive raw relative strength. This value is accumulated over time, scaled by

Indicator v5 Volatility & bandsOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Hidden Relative Strength
6 stars

Institutional CRT Engine v5.0 identifies institutional trading setups using Candle Range Theory (CRT) across user-selected session anchor bars in Asia, London, and New York. It plots session range boxes directly on the price chart and monitors for liquidity sw

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of Institutional CRT Engine v5.0

J8 Refactor

by g-moe
3 stars

J8 Refactor is a multi-indicator trading strategy that combines a custom Supertrend, multiple moving average filters, RSI levels, and MACD logic with Bollinger Bands. It executes entries based on multi-condition alignment and offers customizable exits, includi

Strategy v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of J8 Refactor

Diluted EPS Signal

by regalouisei
2 stars

This indicator tracks fundamental earnings data directly on the price chart. It retrieves consensus earnings-per-share estimates and reported diluted EPS using financial data requests. When a new earnings report is detected, it calculates the percentage surpri

Indicator v5
Updated 8 months ago · None stated GitHub repository of Diluted EPS Signal

Volatility of Volatility (VOV)

by mushroom-men-Trading
2 stars

The Volatility of Volatility (VOV) indicator measures the rate of variation in price volatility over time. It first computes a rolling standard deviation of the chosen price source over a specified initial lookback period. It then calculates a second standard

Indicator v5 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Volatility of Volatility (VOV)

Hypercube 4D

by morindok
1 stars

This indicator draws a four-dimensional hypercube (tesseract) geometric projection directly on the price chart. The user selects two anchor points via interactive chart inputs to define the time and price boundaries. The script calculates a center coordinate,

Indicator v5
Updated 7 weeks ago · None stated GitHub repository of Hypercube 4D

KC Combo Bear Tick

by nishpa800
1 stars

Tick-chart bearish overlay indicator with 23 combination markers that mix Keltner Channel logic with other engines. Inputs cover a VWMA base line, an ATR Supertrend, a PB and J filter, Keltner bands with slope thresholds, pocket pivot size, and a displacement

Indicator v5 Volatility & bandsVolume Repaints
Updated 2 months ago · None stated GitHub repository of KC Combo Bear Tick
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns. A lookback setting decides when a zone is invalidated, a tolerance margin allows small breaches, and a long term mode keeps more zones. Algorithm modes range from looser to strict

Indicator v5 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones V4

HighLow

by ivansoft
1 stars

An indicator on the price chart that tracks the high, low, open and close of calendar periods, with session, day, week, month and year contexts, and keeps a short history of recent periods. It handles Moscow Exchange futures sessions with their main and evenin

Indicator v5 Support & resistanceSessions & time
Updated 1 year ago · None stated GitHub repository of HighLow
106 stars

This strategy enters a long position on Monday when the current bar falls inside the 1400-1601 session window. It closes that long on Wednesday inside the same window, and also exits at a percentage stop loss or take profit. Default stop loss is 4 percent and

Strategy v5 Sessions & time
Updated 2 years ago · GPL-3.0 GitHub repository of Buy Monday, Exit Wednesday

OutSide Bar Strategy

by TWODS-CAPITAL
37 stars

The OutSide Bar Strategy identifies outside bar candlestick patterns directly on the main price chart. It triggers a long entry when a bar's high exceeds the previous high and its low drops below the previous low, provided the bar closes higher than its open.

Strategy v5 Candlestick patternsBreakout
Updated 3 years ago · MIT GitHub repository of OutSide Bar Strategy
13 stars

This price-chart strategy looks for a long volume pattern: three or more candles with falling volume, then a higher-volume candle, while price is lower from the start of that sequence to the end. Long strict mode is on by default and short strict mode is off.

Strategy v5 Volume
Updated 1 year ago · None stated GitHub repository of Ruckard Voladder C002

MA & BB Levels [ST]

by eddiebelaval
7 stars

This indicator draws horizontal daily and weekly levels on the price chart from two exponential moving averages and a Bollinger-style envelope. It calculates EMA 9, EMA 20, and an EMA-based band with a configurable standard-deviation width, then requests those

Indicator v5 Moving averagesVolatility & bands Repaints
Updated 3 months ago · None stated GitHub repository of MA & BB Levels [ST]

Key Levels Pro

by alboogycOdR
6 stars

The script plots horizontal lines on the price chart for key trading levels, including previous day high and low, daily session ranges split into Asia and London, and gaps labeled NDOG daily, NWOG weekly, and NMOG monthly. It optionally shows wick rejection sy

Indicator v5 Support & resistanceSessions & time
Updated 7 months ago · None stated GitHub repository of Key Levels Pro

This indicator combines MACD calculations, Bollinger Bands, and Keltner Channels to identify trend conditions and momentum shifts. It plots colored MACD lines, dot signals, and a squeeze cloud in a separate pane to highlight overbought or oversold momentum lev

Indicator v5 Oscillators & momentumVolatility & bands Repaints
Updated 5 months ago · None stated GitHub repository of Jerry Buy Sell Indicator Premium
2 stars

Divergence-Support/Resistence combines dual Zigzag pivot detection with momentum oscillators to identify divergence patterns and plot support and resistance levels directly on the price chart. Users can select from various built-in oscillators, such as RSI, CC

Indicator v5 DivergenceSupport & resistance Repaints
Updated 8 months ago · None stated GitHub repository of Divergence-Support/Resistence

Volatility Ratio (VR)

by mushroom-men-Trading
2 stars

The Volatility Ratio (VR) indicator measures short-term price range relative to average historical volatility. It calculates the current bar's True Range and divides it by an Average True Range (ATR) computed via Wilder's smoothed moving average with initial b

Indicator v5 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Volatility Ratio (VR)

KC Combo Bear v4.6

by nishpa800
1 stars

Overlays a Keltner Channel and an ATR supertrend on the price chart and marks candles where several built-in detectors agree on the same bar. The detectors cover pullback patterns, displacement, relative volume and high-volume bars, shown as lettered markers.

Indicator v5 Volatility & bandsTrend
Updated 2 months ago · None stated GitHub repository of KC Combo Bear v4.6
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns. A lookback setting decides when a zone is invalidated, a tolerance margin allows small breaches, and a long term mode keeps more zones. Algorithm modes range from looser to strict

Indicator v5 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones V4

HighLowTest

by ivansoft
1 stars

A test indicator in a separate pane that exercises an imported period high and low library. It detects session, day, week, month and year changes, with extra handling for Moscow Exchange futures sessions, and plots the change markers as lines so the period det

Indicator v5 Sessions & time
Updated 1 year ago · None stated GitHub repository of HighLowTest

This strategy takes long trades only. It enters when a fast simple moving average crosses above a slower one and either weekly CCI or ADX meets its threshold, depending on the toggles. It closes the long when price falls below a third moving average, and it ca

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Buy Only Strategy with Dynamic Re-Entry and Exit

Parabolic SAR

by TWODS-CAPITAL
37 stars

This indicator calculates and plots the standard Parabolic Stop and Reverse directly on the price chart using cross markers. It tracks potential trend direction and reversal points as price moves, plotting dots above or below the price candles. The main input

Indicator v5 Trend
Updated 3 years ago · MIT GitHub repository of Parabolic SAR
13 stars

This strategy identifies volume-based rebound signals on the price chart. It detects three or more consecutive lower volume candles followed by a higher volume candle, with price remaining lower from the start of the volume sequence, signaling potential long e

Strategy v5 VolumeBreakout
Updated 1 year ago · None stated GitHub repository of Ruckard Voladder D002
7 stars

Session Dominance Profile [Pointalgo] is an overlay indicator that calculates a volume profile broken down by global trading sessions over a specified lookback period. It divides the historical high-low range into price bins and categorizes volume into Asian,

Indicator v5 VolumeSessions & time
Updated 3 months ago · None stated GitHub repository of Session Dominance Profile [Pointalgo]

Key Trading Levels Pro

by alboogycOdR
6 stars

Key Trading Levels Pro plots previous-day high and low, Asia and London session ranges, and new daily, weekly, and monthly opening gaps on the price chart. It can mark candles whose wicks touch a level while the body closes on the other side. Users toggle each

Indicator v5 Support & resistanceSessions & time
Updated 7 months ago · None stated GitHub repository of Key Trading Levels Pro
3 stars

The Jerry Buy Zone Strategy calculates standard MACD line values and applies Bollinger Bands directly to the MACD line to identify momentum breakouts. Long entries trigger when the MACD line crosses above zero while remaining above the upper Bollinger Band, or

Strategy v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Jerry Buy Zone Strategy

Dominance Pie Chart

by regalouisei
2 stars

This indicator draws a pie chart of cryptocurrency market-cap dominance in a separate pane. It requests CRYPTOCAP close values for Bitcoin, Ethereum, several major altcoins, Tether, and the others bucket, then accumulates those shares into wedge angles. Precom

Indicator v5 Screeners & dashboards
Updated 8 months ago · None stated GitHub repository of Dominance Pie Chart

Yang-Zhang Volatility (YZV)

by mushroom-men-Trading
2 stars

This indicator calculates Yang-Zhang historical volatility from open, high, low, and close prices, including overnight gaps. It estimates daily variance, smooths it with a bias-corrected RMA, and plots the square root of that smoothed variance as a single line

Indicator v5 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Yang-Zhang Volatility (YZV)

Icosahedron

by morindok
1 stars

Icosahedron is a chart overlay that draws a wireframe icosahedron between two user-chosen time and price points. It scales fixed fractional coordinates by the time span and price difference of those points, then connects the resulting vertices with thin blue p

Indicator v5
Updated 7 weeks ago · None stated GitHub repository of Icosahedron

KC Combo Bear v4.7

by nishpa800
1 stars

Overlays a Keltner Channel and an ATR supertrend on the price chart and marks candles where several built-in detectors agree on the same bar. The detectors cover pullback patterns, displacement, relative volume and high-volume bars, shown as lettered markers.

Indicator v5 Volatility & bandsTrend
Updated 2 months ago · None stated GitHub repository of KC Combo Bear v4.7
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns, in a version labelled stable by its file name. Settings set how many bars back removal of invalidated zones begins, how much history is kept after invalidation, and a tolerance ma

Indicator v5 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones V4

libhl

by ivansoft
1 stars

A Pine Script v5 library that records the open, high, low and close points of successive periods and keeps the latest few in an array. It exports types for period contexts and alignment, a helper that detects when a period such as a week or month changes relat

Library v5 Support & resistance Repaints
Updated 1 year ago · None stated GitHub repository of libhl

This Pine Script strategy detects bullish engulfing candlestick patterns to generate buy and sell signals overlaid directly on the price chart. It supports backtesting over a user-defined date range with inputs for profit target, stop loss percentage, order si

Strategy v5 Candlestick patterns
Updated 2 years ago · GPL-3.0 GitHub repository of Buy&Sell Bullish Engulfing - The Quant Science

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