Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 72)

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

This overlay indicator draws a volume profile for a chosen trading session directly on the price chart. It plots the point of control, value area high and low, an optional value area box, a live zone, and a session box with labels. Users select Tokyo, London,

Indicator v5 Sessions & timeVolume
Updated 8 weeks ago · None stated GitHub repository of Sessions & VP with prev session VP & daily/weekly opens

Hammer - Bullish

by TWODS-CAPITAL
37 stars

This indicator marks a bullish hammer candlestick on the price chart. It looks for a small real body above the bar midpoint, a lower shadow at least twice the body, and no upper shadow. A trend filter can require price below a 50-period SMA, below both a 50-pe

Indicator v5 Candlestick patternsTrend
Updated 3 years ago · MIT GitHub repository of Hammer - Bullish

Ruckard Eve A011

by ruckard
13 stars

This strategy evaluates trend reversals using fast-paced high and low closing moving averages combined with Directional Movement Index (ADX, DI+, and DI-) strength filters. It executes long, short, or reverse entries when signal criteria and strength threshold

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard Eve A011

CRT Mapper Complete

by alboogycOdR
6 stars

CRT Mapper Complete plots Candle Range Theory (CRT) structures, Turtle Soup patterns, and supply and demand zones directly on the main price chart. It identifies time-based session ranges, tracks market structure shifts, and generates entry signals using rejec

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of CRT Mapper Complete

Faith JL

by g-moe
3 stars

This indicator evaluates market sentiment and momentum using Aroon crossovers, intra-bar buy and sell volume estimation, and an ATR-based calculation. It generates modular buy and sell conditions filtered by volume thresholds, percentage bands, and Aroon signa

Indicator v5 VolumeTrend
Updated 5 months ago · None stated GitHub repository of Faith JL
2 stars

This indicator plots colored session boxes and horizontal lines on the price chart for Asia, London, New York AM, New York Lunch, and New York PM sessions. It draws high and low lines with an optional 50% midpoint line for each session. Users customize colors,

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of ICT Sessions One Setup for Life

Price Series

by Web3Degenerate
2 stars

This indicator calculates the size of each candle as the difference between its high and low prices and the ratio of the current candle size to its size ten bars ago. It also plots volume. All series are drawn in a separate pane below the price chart. The scri

Indicator v5 VolumeVolatility & bands
Updated 2 years ago · None stated GitHub repository of Price Series

Fauna Dual Mode 2.0

by nishpa800
1 stars

Overlay indicator that classifies candles into seven families: momentum blast, range expansion, gap and go, trend accelerant, trapdoor reversal, exhaustion spike and gap and recover. Each family uses ATR multiples, body-to-range ratios and volume against its a

Indicator v5 Candlestick patternsOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Fauna Dual Mode 2.0

Price Action Toolkit

by mikeyhu70
1 stars

A Pine Script v5 indicator on the price chart for market structure. It detects internal and external swing structure with adjustable sensitivity, labels breaks of structure and changes of character, and draws order blocks from the swings, with a limit on how m

Indicator v5 SMC / ICT / price action
Updated 6 months ago · None stated GitHub repository of Price Action Toolkit
1 stars

This indicator calculates TD Sequential setups by comparing the current close price to the close four bars ago. It increments or decrements a setup count and tracks direction to identify progression in trend. The setup count is plotted as a status line on the

Indicator v5 TrendSupport & resistance
Updated 1 year ago · None stated GitHub repository of TD Sequential OnChart
261 stars

This library calculates non-parametric kernel density estimation for array observations in Pine Script v5. It generates probability density functions across customizable sample sizes, bandwidths, step counts, and kernel types including Gaussian, uniform, and E

Library v5
Updated 4 years ago · None stated GitHub repository of MathStatisticsKernelDensityEstimation

Band-Zigzag TrendFollower Strategy is a trend-following trading system that combines volatility bands, such as Bollinger Bands or Keltner Channels, with pivot-based trend structure. It evaluates trend switches and invalidation levels using adaptive or sticky b

Strategy v5 TrendVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Band-Zigzag - TrendFollower Strategy [Trendoscope]
46 stars

This overlay indicator plots an average daily range and an optional median line from a chosen lookback, plus boxes and labels for four user-defined sessions defaulting to Asia, London, the New York open, and the New York initial balance. It can show a session

Indicator v5 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of Statistcal Daily Profile & Ranges

Hanging Man - Bearish

by TWODS-CAPITAL
37 stars

This overlay indicator marks a bearish hanging man candlestick on the price chart. It looks for a small real body sitting in the upper part of the range, a lower shadow at least twice the body, and no upper shadow, and only while an uptrend filter is active. T

Indicator v5 Candlestick patternsTrend
Updated 3 years ago · MIT GitHub repository of Hanging Man - Bearish
13 stars

This strategy uses a 100-period RSI to generate long and short signals with 5% pre-entry buffers. Long entries trigger at RSI 45 and shorts at RSI 55. Exits occur at RSI 55 for longs and 47 for shorts, with emergency stops at RSI 10. Higher-timeframe EMA confi

Strategy v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard Fiery RSI A008
6 stars

This overlay indicator maps a timed CRT session range and draws a range box, supply and demand zones, a midpoint take-profit line, and optional entry labels. It tracks range, manipulation, and distribution states, and can filter signals with market structure,

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT Mapper Complete with TURTLES
3 stars

Farid Makram Custom Levels is a multi-signal indicator for TradingView that combines RSI momentum analysis with MOBO oscillator signals based on the DPO. It generates buy and sell signals when RSI crosses its moving average or when DPO crosses zero, with confi

Indicator v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of Farid Makram Custom Levels
2 stars

This indicator highlights ICT Silver Bullet trading sessions directly on the price chart. It identifies Fair Value Gaps (FVGs) and filters them based on trend direction and strictness rules, with options to extend unfilled zones. It also tracks swing highs and

Indicator v5 SMC / ICT / price actionSessions & time
Updated 2 months ago · None stated GitHub repository of ICT Silver Bullet [LuxAlgo]

RSI Chart Signals

by Web3Degenerate
2 stars

This indicator plots a customized RSI line on the price chart along with buy and sell signals triggered by bullish and bearish engulfing candle patterns. It calculates RSI using a user-adjustable length and custom overbought and oversold thresholds. Signals oc

Indicator v5 Oscillators & momentumCandlestick patterns
Updated 2 years ago · None stated GitHub repository of RSI Chart Signals

Cube

by morindok
1 stars

The Cube indicator draws a 3D cube projection on the price chart using two user-specified points defined by time and price inputs. It connects multiple polylines at calculated ratios of time and price deltas to form the cube's edges and faces. The main setting

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Cube
1 stars

Tick-chart-safe overlay indicator that classifies candles into seven families: momentum blast, range expansion, gap and go, trend accelerant, trapdoor reversal, exhaustion spike and gap and recover. Each family uses ATR multiples, body-to-range ratios and volu

Indicator v5 Candlestick patternsOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Fauna Dual Mode 2.0 Tick-Friendly
1 stars

A Pine Script v5 indicator on the price chart for market structure, filed by its author as a broken copy that may not run correctly. It aims to detect internal and external swings with adjustable sensitivity, label breaks of structure and changes of character,

Indicator v5 SMC / ICT / price action
Updated 6 months ago · None stated GitHub repository of Price Action Toolkit (Broken)

MathStatisticsKernelFunctions

by ricardosantos79
261 stars

MathStatisticsKernelFunctions is a Pine Script utility library providing statistical kernel weighting functions, including uniform, triangular, Epanechnikov, quartic, triweight, and tricubic kernels. Each function takes a distance relative to the kernel origin

Library v5
Updated 4 years ago · None stated GitHub repository of MathStatisticsKernelFunctions
106 stars

This strategy plots multiple indicators on the price chart for Bank Nifty index. It calculates MACD on different timeframes, RSI, ADX, Stochastic oscillator, and Bollinger Bands. The strategy generates buy signals when MACD shows upticks across timeframes, RSI

Strategy v5 TrendOscillators & momentum Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Bank Nifty Bullish Intraday

Time Based Ranges

by TamaraKGreen
46 stars

Time Based Ranges is an overlay indicator that marks session windows and price levels on the chart. It draws boxes for named time zones and optional inner intervals, plus open-price and midnight price lines. Users choose a timezone, toggle zone and interval di

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 8 weeks ago · None stated GitHub repository of Time Based Ranges

Harami - Bearish

by TWODS-CAPITAL
37 stars

This indicator detects a bearish Harami candlestick pattern on the price chart. It requires a long bullish candle in an uptrend followed by a smaller bearish candle whose range sits inside the previous body. Trend context is optional and uses a 50-period SMA,

Indicator v5 Candlestick patternsTrend
Updated 3 years ago · MIT GitHub repository of Harami - Bearish
13 stars

This strategy executes trades based on a smoothed Stochastic oscillator inspired by FieryTrading's Stochastic Trend concept, specifically tailored for automated crypto execution via Zignaly alerts. It opens positions when Stochastic values cross configured tri

Strategy v5 Oscillators & momentumScalping
Updated 1 year ago · None stated GitHub repository of Ruckard Fiery Stoch A004
6 stars

This overlay indicator maps a timed session range in SAST, then marks supply and demand zones, a midpoint target, and a four-hour manipulation trendline. It tracks range, manipulation, and distribution states and can plot long or short entry signals when marke

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of CRT Mapper Complete with TURTLES

Fractals

by g-moe
3 stars

The Fractals indicator identifies potential reversal points on the price chart by detecting local swing highs and lows. It plots down fractal markers above the bar for swing highs and up fractal markers below the bar for swing lows. The Periods setting control

Indicator v5 TrendSupport & resistance
Updated 5 months ago · None stated GitHub repository of Fractals
2 stars

The ICT Silver Bullet with Signals indicator identifies and highlights key Inner Circle Trader concepts directly on the main price chart. It marks designated Silver Bullet session time windows, detects higher-timeframe Fair Value Gaps (FVGs), and plots support

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of ICT Silver Bullet with Signals

Time Session

by Web3Degenerate
2 stars

This indicator marks a user-chosen clock session on the price chart. It tests whether the current bar falls inside the selected session string and paints a translucent red background while that condition is true, leaving other bars uncolored. The only setting

Indicator v5 Sessions & time
Updated 2 years ago · None stated GitHub repository of Time Session

FBF KC Companion v1

by nishpa800
1 stars

A companion indicator that draws about fifteen signal types on the price chart. It layers Keltner channel re-entry signals, triggered by a basis cross or a slope turn, over a pullback base, pocket pivot and pocket pivot down markers, displacement and a consoli

Indicator v5 Volatility & bandsVolume
Updated 2 months ago · None stated GitHub repository of FBF KC Companion v1
1 stars

A Pine Script v5 indicator on the price chart for market structure. It finds internal and external swings with adjustable sensitivity, labels breaks of structure and changes of character with selectable line style and width, and draws order blocks from the swi

Indicator v5 SMC / ICT / price action
Updated 6 months ago · None stated GitHub repository of Price Action Toolkit (Variant 1)

MathTransformsHartley

by ricardosantos79
261 stars

MathTransformsHartley is a Pine Script v5 mathematical library that implements the Discrete Hartley Transform (DHT). It provides functions to calculate naive transforms, fast discrete Hartley transforms (FDHT), and inverse discrete Hartley transforms (IDHT) wi

Library v5
Updated 4 years ago · None stated GitHub repository of MathTransformsHartley

This strategy overlays Supertrend on the price chart and trades only inside a set session and backtest date range. It enters long when Supertrend turns up, or after a chosen candle delay while the trend is up, and enters short on the opposite conditions. It cl

Strategy v5 TrendVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of BankNifty 5min Supertrend Based Strategy
46 stars

This indicator draws configurable time-based sessions on the price chart. It plots session open lines, average high and low lines, and an expected range line. Optional high-low boxes and likely range boxes mark session ranges, with labels comparing average and

Indicator v5 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of Time based ranges with stats

Harami - Bullish

by TWODS-CAPITAL
37 stars

This indicator identifies and highlights Bullish Harami candlestick patterns on the price chart. A Bullish Harami occurs when a small-bodied green candle is completely encompassed within the body of the preceding long red candle during a downtrend. The underly

Indicator v5 Candlestick patterns
Updated 3 years ago · MIT GitHub repository of Harami - Bullish

Ruckard Irene A003

by ruckard
13 stars

Ruckard Irene A003 is an overlay strategy that combines fast moving averages with Directional Movement Index (ADX, DI+, DI-) filters to execute trades. It evaluates price momentum relative to high and low moving averages while checking ADX strength thresholds.

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Ruckard Irene A003
6 stars

This overlay indicator maps a timed session range from a chosen SAST start hour and session length, then draws the range box, midpoint, supply and demand zones, and an optional four-hour manipulation trendline. It tracks range, manipulation, and distribution s

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of CRT Mapper Complete with TURTLES

Fractals with Divergence Scanner is an overlay indicator that combines Exponential Moving Averages, an eight-line EMA ribbon cloud, and WaveTrend divergence analysis. It calculates baseline EMA trends alongside WaveTrend oscillators to detect regular and hidde

Indicator v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of Fractals with Divergence Scanner

Variable Declarations

by Web3Degenerate
2 stars

Educational script demonstrating how to declare and persist variables using the var keyword in Pine Script. It calculates a running count of bullish candles where the close exceeds the open and plots the cumulative counter in a separate pane. It marks each bul

Indicator v5
Updated 2 years ago · None stated GitHub repository of Variable Declarations

First Bar Fable v3

by nishpa800
1 stars

A composite detection indicator that marks fifteen or more toggleable signals on the price chart, each labelled S1 onward. They include relative volume setups combined with displacement and a pullback-and-jump pattern, plus named patterns such as Typhoon, Musa

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of First Bar Fable v3

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