Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 75)

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

46 stars

This indicator summarizes higher-timeframe candle range statistics by time of day and shows them in a table in a separate pane. It groups candles into slots for 5-minute, 15-minute, 1-hour, 4-hour, 8-hour, or 12-hour periods over a chosen lookback in days, and

Indicator v5 Screeners & dashboardsSessions & time Repaints
Updated 8 weeks ago · None stated GitHub repository of HTF Candle Stats by Time of Day

Kicking - Bearish

by TWODS-CAPITAL
37 stars

This indicator identifies and highlights bearish kicking candlestick patterns directly on the price chart. It searches for a two-bar formation consisting of a bullish marubozu followed by a bearish marubozu that opens with a gap down below the prior candle's l

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

This strategy draws trend ribbons and price corridors directly on the price chart using configurable moving averages of highs, lows, and closes. It identifies trend direction from ribbon state changes and generates long entries when price drops below the corri

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard Noro TrendRibbon

CRT State Engine

by alboogycOdR
6 stars

This indicator overlays a CRT state engine on the price chart using New York time. It tracks optional 1AM, 5AM and 9AM models, session states, market structure, liquidity pools, and a volume profile with point of control and value area. Live entry markers need

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT State Engine
3 stars

The Grid Bot Simulator strategy models automated grid trading directly on the price chart. It divides a user-specified price channel between upper and lower bounds into equal grid intervals. Depending on the chosen market direction filter, the strategy execute

Strategy v5 Support & resistanceMoving averages
Updated 5 months ago · None stated GitHub repository of Grid Bot Simulator
1 stars

A volume pattern indicator that draws toggleable signals on the price chart. It includes relative volume patterns such as SAAB, Kratos, Grand Slam, MOAB, Hiroshima and Nagasaki, several long and short setups, high-volume markers across a range of lookbacks, an

Indicator v5 Volume
Updated 2 months ago · None stated GitHub repository of Heavy Weapons Single v3.1

A Pine Script v5 indicator that approximates a Tom DeMark style count on the price chart. It compares each bar with the one four bars earlier, keeps a running count over a lookback window, and plots a green up triangle at nine and a red down triangle at thirte

Indicator v5 Oscillators & momentum
Updated 6 months ago · None stated GitHub repository of Tom DeMark 9 and 13 Buy/Sell Signals

Day High Low Test

by ivansoft
1 stars

Experimental overlay that marks the day's high and low and the session open on the price chart, with lines, labels and background shading. It includes special handling for Moscow Exchange futures sessions (main and evening) and uses lower-timeframe requests to

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Day High Low Test

[RS]Function - Days in a Month

by ricardosantos79
261 stars

This utility indicator calculates and plots the total number of days in a specified calendar month and year. It plots a constant numeric value in a separate pane based on user-defined inputs for the year and month. The underlying function bounds the month inpu

Indicator v5
Updated 4 years ago · None stated GitHub repository of [RS]Function - Days in a Month
106 stars

This overlay strategy plots a short Bollinger Band and enters long when the close crosses above the lower band while a 14-period SMA is above a 42-period SMA. It enters short when the close crosses below that lower band while the faster SMA is below the slower

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Best TradingView Strategy

MTF Swing Highs and Lows

by TamaraKGreen
46 stars

This indicator plots multi-timeframe swing highs and lows on the price chart. It finds pivots with Bill Williams fractals or, when the filter is on, a stricter regular fractal, then stores the latest high and low. Users can show daily, four-hour, one-hour, 30-

Indicator v5 Support & resistance
Updated 8 weeks ago · None stated GitHub repository of MTF Swing Highs and Lows

Kicking - Bullish

by TWODS-CAPITAL
37 stars

This indicator detects a bullish kicking candlestick pattern on the price chart. It marks a two-candle sequence in which the prior candle is a black marubozu and the current candle is a white marubozu that gaps above the prior high. A K label is drawn below th

Indicator v5 Candlestick patterns
Updated 3 years ago · MIT GitHub repository of Kicking - Bullish
13 stars

This strategy plots a trend ribbon and colored background on the price chart using moving averages calculated across price highs and lows. It generates trade signals to automate orders through Zignaly webhooks or email alerts. Users can configure the moving av

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard Noro TrendRibbon

Heikin Ashi

by g-moe
3 stars

This indicator combines a standard relative strength index (RSI) with a Heikin Ashi moving average trend visualization in a separate pane. It calculates the RSI along with a customizable moving average overlay supporting SMA, EMA, SMMA, WMA, and VWMA types. Ad

Indicator v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of Heikin Ashi

A Pine Script v5 indicator that draws bullish and bearish order block zones on the price chart, with volume information shown inside each zone. Swing length sets how pivots are found, zones can be combined, sized with a maximum ATR multiplier and limited to a

Indicator v5 SMC / ICT / price actionVolume
Updated 6 months ago · None stated GitHub repository of Volumized Order Blocks 2026 (Resized)

getSeries

by ivansoft
1 stars

A Pine Script v5 library whose functions build arrays of values that meet a condition. One function collects the latest values where a condition is true since a reset condition, optionally keeping only a set number of values, and another keeps values within a

Library v5
Updated 1 year ago · None stated GitHub repository of getSeries

[RS]Signal to Noise Bands

by ricardosantos79
261 stars

This overlay indicator plots a simple moving average of close as a center line and two pairs of bands around it. Width equals the standard deviation of close times the base-ten log of the ratio of the powered signal to the powered deviation. A second pair keep

Indicator v5 Volatility & bandsMoving averages
Updated 4 years ago · None stated GitHub repository of [RS]Signal to Noise Bands

This strategy builds upon the Big Snapper system by combining trend-following moving averages, Chaikin Volatility, and volume filtering to generate trade signals directly on the main chart. Long and short entries trigger when Snapper signals align with medium

Strategy v5 TrendVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Big Snapper Chaiking Volatility + TP RSI

Session highs, lows & opens

by TamaraKGreen
46 stars

This indicator tracks and plots high, low, and opening levels for major trading sessions directly on the price chart. It calculates price boundaries across defined periods including London, New York, Asia, and New York afternoon sessions. The tool does not gen

Indicator v5 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of Session highs, lows & opens

Klinger Oscillator

by TWODS-CAPITAL
37 stars

The Klinger Oscillator evaluates long-term volume flow trends while staying responsive to short-term price movements. It calculates signed volume by determining whether the typical price (HLC3) increased or decreased relative to the previous bar. The main osci

Indicator v5 VolumeOscillators & momentum
Updated 3 years ago · MIT GitHub repository of Klinger Oscillator
13 stars

This strategy uses Noro TrendRibbon direction changes to decide long or short bias. It builds a corridor from recent high and low prices, opening a long below that corridor while longing and a short above it while shorting, with the entry tied to a percentage

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard Noro TrendRibbon

CRT State Engine Complete

by alboogycOdR
6 stars

This indicator overlays an institutional Candle Range Theory (CRT) framework directly on the price chart. It analyzes session states across New York time models (1 AM, 5 AM, and 9 AM), detects market structure breaks, identifies order blocks, and tracks liquid

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

The Heikin Ashi Buy Sell Arrows indicator calculates custom Heikin-Ashi values on the current chart to identify potential trend reversals. A buy signal is generated when a Heikin-Ashi candle forms with no lower wick following a sell sequence, while a sell sign

Indicator v5 Candlestick patternsTrend
Updated 5 months ago · None stated GitHub repository of Heikin Ashi Buy Sell Arrows
1 stars

A volume pattern indicator that draws toggleable signals on the price chart, with displacement tuned to a nine standard deviation multiplier. It includes relative volume patterns such as SAAB, Kratos, Grand Slam, Hiroshima and Nagasaki, long and short setups,

Indicator v5 Volume
Updated 2 months ago · None stated GitHub repository of Heavy Weapons Single v3.3 DISP 9
1 stars

A Pine Script v5 indicator that draws bullish and bearish order block zones on the price chart with volume shown inside, and adds lower-timeframe blocks within range. Swing length, maximum ATR multiplier, zone count and invalidation method shape the main zones

Indicator v5 SMC / ICT / price actionVolume
Updated 6 months ago · None stated GitHub repository of Volumized Order Blocks 2026-3

lower_tf

by ivansoft
1 stars

A Pine Script v5 library for working with intrabar data from a lower timeframe. It chooses a lower timeframe for the chart based on a precision setting, either by how many chart bars should be covered or by the approximate number of intrabars per chart bar, be

Library v5
Updated 1 year ago · None stated GitHub repository of lower_tf

Function - Compound Interest

by ricardosantos79
261 stars

The script is an indicator that calculates compound interest. It provides a function f_compound_interest which takes principle, rate and duration as inputs. The function applies the compound interest formula using math.pow to return the future value. This valu

Indicator v5
Updated 4 years ago · None stated GitHub repository of Function - Compound Interest
106 stars

This script tracks daily on-chain whale holdings across various cryptocurrencies using IntoTheBlock metric feeds. It applies Bollinger Bands to day-to-day asset changes to identify statistically significant outlier movements based on a user-selected standard d

Strategy v5 VolumeVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Big Whale Purchases and Sales
46 stars

This overlay indicator marks Asia, London and New York sessions using New York clock times. It draws a session candle plus an optional vertical line at the session open, horizontal open, high, mid and low lines, and a 25 percent level of the session range. Use

Indicator v5 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of Session Range Candles + 25% Level

Know Sure Thing

by TWODS-CAPITAL
37 stars

This indicator calculates the Know Sure Thing oscillator in a separate pane. It builds four rate-of-change series from the close, smooths each with a simple moving average, and adds them with weights of one, two, three, and four. It plots that composite as the

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Know Sure Thing
13 stars

This strategy plots a Noro trend ribbon on the price chart and uses ribbon side changes to choose long or short bias. It builds a corridor from recent high and low prices. A long opens when price is below that corridor during a long bias, and a short opens whe

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard Noro TrendRibbon

CRT State Engine v6

by alboogycOdR
6 stars

This overlay indicator tracks an institutional CRT state machine on the price chart. It can plot draw-on-liquidity lines from pivot strength, session boxes for CBDR, Asia, London, London lunch and New York, and key levels colored for consolidation, manipulatio

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

This indicator plots buy and sell labels on the price chart. A buy appears when a short stochastic crosses up from below 20 while a slow MACD histogram is positive and a faster MACD histogram is negative. A sell uses the opposite stochastic and MACD alignment.

Indicator v5 Oscillators & momentumCandlestick patterns
Updated 5 months ago · None stated GitHub repository of Heikin Ashi with MACD Signals
1 stars

Fibo Boxes projects price and time step zones directly on the chart starting from a designated target start time. It steps through historical data using an initial bar count and step multiplier, establishing high and low bounding boxes across calculated step r

Indicator v5 Support & resistanceMoving averages
Updated 7 weeks ago · None stated GitHub repository of Fibo Boxes by BITMOON618
1 stars

Tick-chart-safe overlay indicator of single-bar detections on the price chart, titled as a non-repainting version. It covers relative volume tiers named SAAB, Kratos, Grand Slam and MOAB, regular-at-time volume tiers, momentum LONG and SHORT tiers, high-volume

Indicator v5 VolumeOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Heavy Weapons Singles Uncapped
1 stars

A Pine Script v5 indicator that draws bullish and bearish order block zones on the price chart with volume information inside each zone. Swing length, maximum ATR multiplier, zone count, zone combining and invalidation by close or wick control how zones form a

Indicator v5 SMC / ICT / price actionVolume
Updated 6 months ago · None stated GitHub repository of Volumized Order Blocks LTF 2026

Polarity Divergences

by ivansoft
1 stars

An indicator on the price chart that compares the direction of each chart bar with the net direction of the smaller intrabars inside it, fetched from a lower timeframe chosen by the chart timeframe. When the two disagree, the candle is coloured orange. Optiona

Indicator v5 Divergence
Updated 1 year ago · None stated GitHub repository of Polarity Divergences

Bitfinex Shorts Strat

by hasnocool
106 stars

This strategy calculates a 7-period Relative Strength Index (RSI) on external Bitfinex Bitcoin short position data to execute trades on the price chart. It enters a long position when the short-position RSI drops below a low threshold, and enters a short posit

Strategy v5 Oscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Bitfinex Shorts Strat
46 stars

This overlay indicator projects higher-timeframe open, high, and low statistics onto the price chart. It can show one or two selected timeframes, with an optional New York midnight session start, and uses a lookback window to draw average and median levels. Pl

Indicator v5 Support & resistanceSessions & time
Updated 8 weeks ago · None stated GitHub repository of Statistical OHLC Projections

Least Squares Moving Average

by TWODS-CAPITAL
37 stars

This indicator plots a least-squares moving average on the price chart. It fits a linear regression to the selected source over a chosen lookback and draws that value as a single line. The length setting changes how many bars enter the regression, the offset s

Indicator v5 Moving averages
Updated 3 years ago · MIT GitHub repository of Least Squares Moving Average
13 stars

Ruckard Noro TrendRibbon A006 is a trend-following strategy based on Noro's trend ribbon concept using moving averages. It features customizable moving average types, lengths, and price sources to generate entry and exit signals, displayed directly on the pric

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard Noro TrendRibbon A006

CRT State Engine v7

by alboogycOdR
6 stars

CRT State Engine v7 is an overlay indicator that tracks institutional CRT session states on the price chart. It analyzes market structure, detects buy-side and sell-side liquidity pools, and plots a volume profile with point of control and value area. Optional

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

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