Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 14)

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

RSI Technique - V

by Tikam02
20 stars

RSI Technique - V identifies rapid reversal pivot points based on the Relative Strength Index. It monitors an RSI oscillator, configurable via the lookback setting, looking for sharp V-shaped spikes around extreme zones. A bullish signal appears when the indic

Indicator v5 Oscillators & momentumMean reversion
Updated 2 years ago · Apache-2.0 GitHub repository of RSI Technique - V

This indicator scans a pasted list of symbols, up to the first forty, and shows long and short momentum setups in a configurable table in a separate pane. It compares RSI with an SMA of RSI using Break Flip or Break Continuous scanning. Optional filters cover

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated 1 year ago · None stated GitHub repository of Momentum Setup: RSI Direction Confirmation Scanner

多空排列指标

by midoks
16 stars

This indicator plots four exponential moving averages of the close, with fixed lengths of 5, 15, 30, and 60, directly on the price chart. It marks a bullish alignment when the three faster averages are all above the 60-period average, and a bearish alignment w

Indicator v5 TrendMoving averages
Updated 3 weeks ago · Apache-2.0 GitHub repository of 多空排列指标
16 stars

This overlay indicator visualizes Smart Money Concepts on the price chart. It marks buy-side and sell-side liquidity from selectable 1-minute, 5-minute, 15-minute, and 1-hour swings, then recolors levels after they are swept. It also plots market structure shi

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · MIT GitHub repository of PHASE 404 - Smart Money Indicator
16 stars

This indicator calculates trend direction and market zones using exponential moving average crossovers combined with a secondary baseline. It identifies various bull and bear conditions based on the relative position of price and the fast and slow averages, co

Indicator v5 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of CDC ActionZone V3 2020 + EMA
15 stars

This indicator overlays Bollinger Bands and smoothed HAMA candles directly on the main price chart. It calculates standard Bollinger Bands using a simple moving average and standard deviation, alongside custom smoothed open, high, low, and close values. A cent

Indicator v5 TrendMoving averages
Updated 4 months ago · Apache-2.0 GitHub repository of NSDT HAMA Candles with Bollinger Bands

HLevel

by stupenkov
14 stars

HLevel is a Pine Script v5 utility library designed to manage horizontal price levels for cryptocurrency charts. It defines custom types for pivots and levels, along with methods to initialize, add, track, and expire price levels based on pivot high and pivot

Library v5
Updated 3 years ago · None stated GitHub repository of HLevel
13 stars

This strategy overlays the price chart to trade DAX futures during European market hours. It calculates exponential and simple moving averages, RSI, MACD, Bollinger Bands, ATR, and realized volatility to simulate VIX levels. Trades execute when session time fi

Strategy v5 Sessions & timeOscillators & momentum
Updated 8 months ago · Custom licence GitHub repository of ClaudeHedge - DAX Session Strategy
13 stars

BitLa Microtendencias B008 is a Pine Script v5 strategy drawn on the price chart. It enters long when a 10-period EMA crosses over a 120-period EMA and enters short on the opposite cross. Optional percentage stop loss is on by default, while take profit, trail

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of BitLa Microtendencias B008
12 stars

This educational indicator demonstrates the Pine Script execution model by tracking execution counts across chart bars. It calculates bar-by-bar price data including open, high, low, close, and volume, alongside basic moving averages and an oscillator. The scr

Indicator v5 Screeners & dashboards
Updated 1 year ago · None stated GitHub repository of PINE Tutorial 1: Execution Model

RS: Market Profile

by agejevasv
12 stars

This indicator plots a Market Profile on the price chart using time-price opportunity letters or symbols. It marks the point of control, a configurable value area, and the initial balance, and it can highlight a volume-profile point of control and session VWAP

Indicator v5 VolumeSupport & resistance
Updated 2 years ago · None stated GitHub repository of RS: Market Profile

Quant

by hirawatt
11 stars

Quant is a Pine Script utility library providing custom functions for quantitative analysis. It includes an exported function to calculate the percentage change between consecutive values of any float series. Additionally, it offers a function to calculate mar

Library v5
Updated 2 years ago · MIT GitHub repository of Quant

Bte Acc

by f-cksociety
11 stars

Bte Acc is a chart indicator form of the PineCoders Backtesting and Trading Engine. It seeks an entry trigger from a main or alternate entry method, then checks trade direction, filters, date range, ATR readiness, and remaining capital before filling on the ne

Indicator v5 TrendOscillators & momentum Repaints
Updated 4 years ago · MPL-2.0 GitHub repository of Bte Acc

This indicator estimates crypto liquidation levels by tracking Open Interest changes from Binance USDT perpetual contracts. It calculates Open Interest delta spikes relative to a simple moving average and projects estimated liquidation price levels across mult

Indicator v5 Support & resistanceSMC / ICT / price action

Awesome Oscillator - Eterna MCP

by EternaHybridExchange
9 stars

This strategy implements Bill Williams' Awesome Oscillator (AO) calculated as the difference between two simple moving averages of the median price. It generates long and short entries using three classic signal triggers: zero-line crossovers, twin peaks diver

Strategy v5 Oscillators & momentumMoving averages
Updated 7 months ago · MIT GitHub repository of Awesome Oscillator - Eterna MCP

5000x Breakout Scanner

by jmragsdale
8 stars

This indicator marks momentum breakouts on the price chart. A signal appears only when the bar makes a new high over the lookback, volume is at least a chosen multiple of the 20-bar average, the percentage change from the prior close meets a minimum, the close

Indicator v5 BreakoutVolume
Updated 7 weeks ago · None stated GitHub repository of 5000x Breakout Scanner
8 stars

This strategy calculates a StockCharts Technical Rank metric alongside an O'Neil-style relative strength rating, plotting both curves in a separate pane. It evaluates long-term, medium-term, and short-term exponential moving average deviations, rate-of-change

Strategy v5 Oscillators & momentumMoving averages
Updated 4 years ago · None stated GitHub repository of SCTR & ONeil + RSI strategy

Breaker Block

by muammeryldrm42
7 stars

The Breaker Block strategy identifies failed Smart Money Concepts (SMC) order blocks and trades their retests. It uses an ATR impulse condition to detect bullish and bearish order blocks, tracking when price breaks through them. When price retests a broken ord

Strategy v5 SMC / ICT / price actionTrend
Updated 3 months ago · MIT GitHub repository of Breaker Block

Temp RSI

by benniebendiksen
7 stars

This strategy calculates the relative strength index of the closing price using a user-set length and prints that value in labels on the price chart. It also requests the close from a selectable higher timeframe, though the shown logic does not use that series

Strategy v5 Oscillators & momentum
Updated 1 year ago · MIT GitHub repository of Temp RSI

Signals

by Harshil427
7 stars

Calculates and plots dynamic support and resistance zones alongside manipulation zones directly on the price chart. It identifies price interactions around these levels, generating signals for bullish and bearish breakouts, tests, retests, and rejections. Sett

Indicator v5 Support & resistanceBreakout
Updated 1 year ago · None stated GitHub repository of Signals
7 stars

This strategy evaluates market trend alignment across multiple timeframes by plotting a 90-period Simple Moving Average from the daily and 4-hour timeframes alongside a weekly VWAP directly on the price chart. Long trades are entered when the weekly VWAP cross

Strategy v5 TrendMoving averages Repaints
Updated 3 years ago · MIT GitHub repository of 1D Bullish Buy 4H Bearish Sell

FX Market Sessions

by itmakesyousick
7 stars

This indicator highlights key trading sessions directly on the price chart using colored boxes and text labels. It tracks up to three customizable sessions, defaulting to London, New York, and Tokyo, and can display opening ranges, session extensions, and Fibo

Indicator v5 Sessions & timeSupport & resistance
Updated 3 years ago · None stated GitHub repository of FX Market Sessions
7 stars

This Pine Script strategy combines Triple Exponential Moving Average, Bollinger Bands, and RSI to generate trading signals on the price chart. It plots the TEMA line along with the Bollinger Bands basis and outer bands. Long entries trigger when RSI crosses be

Strategy v5 Moving averagesVolatility & bands
Updated 4 years ago · GPL-3.0 GitHub repository of TEMA + Bollinger Bands Strategy

Bollinger Bands

by trsdn
6 stars

This indicator plots classic Bollinger Bands on the price chart. It calculates a simple moving average of the selected source over the chosen length, then places upper and lower bands at a multiple of the standard deviation around that basis. The basis, upper

Indicator v5 Volatility & bandsMoving averages
Updated 7 days ago · MIT GitHub repository of Bollinger Bands
6 stars

This strategy tracks momentum using an 8-period and 21-period Exponential Moving Average (EMA) crossover system. It enters long positions when the 8 EMA crosses above the 21 EMA and closes open long positions when the 8 EMA crosses below the 21 EMA. Each trade

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of TradersPost Example MOMO Strategy

MultiVolatility

by wanjo-tech
6 stars

This indicator estimates multi-horizon volatility in a separate pane. It requests the chart symbol's daily and 15-minute close, volume, time, and turnover, then walks backward until each window covers a target number of hours. It computes the variance and stan

Indicator v5 Volatility & bands
Updated 2 years ago · None stated GitHub repository of MultiVolatility

Swing Points

by eonfutures
6 stars

Calculates and identifies local swing highs and swing lows on the main price chart based on a configurable lookback length. The indicator marks identified pivots with customizable labels and shapes, and can project horizontal lines across the chart from pivot

Indicator v5 Support & resistance
Updated 2 years ago · None stated GitHub repository of Swing Points

Edge 59

by subos2008
6 stars

Edge 59 is a price-chart strategy that combines an ADX directional filter, a weighted moving average, and a trend-follower channel. The channel uses an exponential moving average of close, optionally smoothed by linear regression, and a percentage of a fixed 2

Strategy v5 TrendOscillators & momentum Repaints
Updated 2 years ago · Custom licence GitHub repository of Edge 59
6 stars

This indicator overlays three moving averages and a volume-weighted average price on the price chart. Each average can be shown or hidden, with default lengths of 20, 50 and 200. A single switch changes all three from simple to exponential averages. The VWAP u

Indicator v5 Moving averagesVolume
Updated 3 years ago · None stated GitHub repository of VOIDRLM Moving Averages

MTF trend alignment

by broomva
5 stars

This strategy plots the same-length exponential moving average on the chart and on two higher timeframes. It enters long when the chart average is above the first higher-timeframe average, that average is above the second, and price is above the chart average.

Strategy v5 TrendMoving averages
Updated 2 days ago · MIT GitHub repository of MTF trend alignment
5 stars

This strategy calculates fast and slow exponential moving averages to execute trend-following trades based on CDC ActionZone logic. It colors price bars across six conditions depending on price position relative to the fast and slow EMAs. Entries occur when th

Strategy v5 TrendMoving averages
Updated 2 weeks ago · MIT GitHub repository of Xsodus CDC ActionZone V3

Breakout AVAAI (TV mirror)

by tarasprystavskyj
5 stars

Breakout AVAAI is a crypto breakout strategy mirrored from a Python trading platform. It filters potential trades by evaluating ATR relative to close price and measuring momentum over 6-hour and 12-hour lookbacks. Positions are taken when volatility meets user

Strategy v5 BreakoutOscillators & momentum Repaints
Updated 3 months ago · None stated GitHub repository of Breakout AVAAI (TV mirror)
5 stars

This strategy executes long trades when price retests the prior week's low level within a specified tolerance and closes above it. Entries are restricted to configurable UTC trading hours, excluding Mondays and late Friday sessions. Stop loss and take profit t

Strategy v5 Support & resistanceSessions & time Repaints
Updated 5 months ago · MIT GitHub repository of WKL v2 — Prior Week Low Retest (Fixed)
5 stars

This indicator identifies long mean-reversion trade opportunities when price stretches significantly below the Volume Weighted Average Price (VWAP). It triggers a signal during regular trading hours when price moves a defined minimum number of ticks below VWAP

Indicator v5 Mean reversionVolume
Updated 5 months ago · Custom licence GitHub repository of Path B — VWAP Reversion (Demo)

MACD+RSI

by Ahmed-GoCode
5 stars

This indicator plots a MACD line, signal line, and histogram together with a scaled RSI in a separate pane. MACD is the difference of fast and slow moving averages of the source, with an optional simple moving average instead of an exponential moving average f

Indicator v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of MACD+RSI

ZigZag

by rubystar0512
5 stars

This library calculates ZigZag pivots and draws connecting lines on the price chart. It changes direction when price moves beyond a percentage deviation after a set pivot depth, then stores each pivot with optional labels for reversal price, cumulative volume,

Library v5 Support & resistance
Updated 2 years ago · None stated GitHub repository of ZigZag

HTF Raid Indicator

by jerryinyang
5 stars

HTF Raid Indicator plots higher timeframe candle overlay boxes and tracks liquidity raids directly on the price chart. It calculates higher timeframe open, high, low, and close values using a custom tracking function and renders the higher timeframe candles us

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 years ago · None stated GitHub repository of HTF Raid Indicator

RSI + Stoch RSI

by mjkid221
5 stars

This indicator combines the standard Relative Strength Index (RSI) and the Stochastic RSI oscillator into a single pane. It calculates and plots the baseline RSI line along with its 70 and 30 overbought and oversold thresholds. Simultaneously, it computes the

Indicator v5 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of RSI + Stoch RSI

Custom AAVWAP

by ak2k2
5 stars

Custom AAVWAP is an indicator that automatically calculates and plots three Anchored Volume Weighted Average Price (AVWAP) series directly on the price chart. It locates the highest price, lowest price, and highest volume bars within a user-defined lookback pe

Indicator v5 VolumeSupport & resistance Repaints
Updated 3 years ago · MPL-2.0 GitHub repository of Custom AAVWAP

ADW - Momentum

by ADWilkinson
5 stars

This indicator calculates the Relative Momentum Index (RMI) and plots it in a separate pane alongside a smoothed exponential moving average line. It displays horizontal thresholds for overbought and oversold boundaries, plus a dashed centerline at 50. A colore

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · Custom licence GitHub repository of ADW - Momentum

ICT Time Range

by vitahoang
5 stars

This overlay indicator marks configurable trading sessions and higher-timeframe ranges on the price chart. It draws session boxes with optional high, low, open, and middle lines, labels, and background shading, and it can extend those lines through a chosen ti

Indicator v5 SMC / ICT / price actionSessions & time
Updated 3 years ago · None stated GitHub repository of ICT Time Range
5 stars

Greeffer's Scalping Strategy combines multi-timeframe Exponential Moving Averages, Bollinger Bands, and Donchian Channels to execute dip-buying trades directly on the price chart. It triggers long entries when price dips below both the lower Donchian Channel a

Strategy v5 Moving averagesVolatility & bands
Updated 4 years ago · None stated GitHub repository of Greeffer's Scalping Strategy

Donchian Breakout

by latentwill
4 stars

This strategy enters long when the close is above an exponential moving average and RSI is above a threshold, and enters short when the close is below that average and RSI is below the threshold. A bearish signal also closes an open long. Exits use the stop an

Strategy v5 BreakoutOscillators & momentum Repaints
Updated 8 days ago · None stated GitHub repository of Donchian Breakout
4 stars

This strategy executes trend-following trades based on exponential moving average crossovers filtered by a daily trend baseline. It calculates a fast EMA and a slow EMA alongside a daily 200 EMA fetched from a daily timeframe. When the fast EMA crosses above t

Strategy v5 TrendMoving averages
Updated 7 months ago · MIT GitHub repository of EMA Crossover 21/50 + Daily Filter

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