Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 96)

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

3 stars

RT Candle Signals LCBigMoves recolors candlestick bars directly on the chart to emphasize specific price action patterns. It identifies and highlights opening session bars based on a configurable time window, long-wick rejection candles determined by wick-to-b

Indicator v5 Candlestick patternsSessions & time
Updated 5 months ago · None stated GitHub repository of RT Candle Signals LCBigMoves

S/R Average

by g-moe
3 stars

This indicator detects confirmed pivot highs and lows using a user-set pivot length and stores those prices in rolling arrays. It optionally draws extended horizontal support and resistance lines for each stored level and plots the average of the stored resist

Indicator v5 Support & resistance
Updated 5 months ago · None stated GitHub repository of S/R Average

Numbers Renko

by regalouisei
2 stars

This indicator calculates and overlays numerical volume or time metrics directly on chart bars, primarily tailored for Renko style analysis. It compares current values against an EMA or SMA baseline to grade activity across multiple visual tiers and color scal

Indicator v5 VolumeMoving averages
Updated 8 months ago · None stated GitHub repository of Numbers Renko

ScarAlgo v1

by g-moe
3 stars

ScarAlgo v1 is a trend-following and market-structure strategy plotted directly on the main price chart. It triggers entries using an ATR-based trailing envelope filtered by a configurable multi-timeframe moving average, while employing a WaveTrend momentum os

Strategy v5 TrendSMC / ICT / price action
Updated 5 months ago · None stated GitHub repository of ScarAlgo v1
2 stars

This indicator generates geometric circular boundary plots anchored to the right edge of the chart. It calculates upper and lower arc curves across a set bar radius using circle equations and the distance to the final bar index. The indicator plots both bounds

Indicator v5 Repaints
Updated 8 months ago · None stated GitHub repository of Open Interest Chart Luxalgo

This strategy draws up to three session range boxes and optional backgrounds on the price chart. It records each session high and low, then looks for a breakout during a later trading window after a set number of candles close outside the range. Entries can be

Strategy v5 Sessions & timeBreakout
Updated 5 months ago · None stated GitHub repository of Session Breakout Box Strategy

This indicator tracks key price levels and range boundaries across user-defined trading sessions on the main price chart. It calculates session extremes, including highest high, lowest low, session midpoint, and highest or lowest candle body levels during a sp

Indicator v5 Sessions & timeSupport & resistance
Updated 5 months ago · None stated GitHub repository of Session High Low Levels with Session Breakout Box Strategy

Session High Low Levels with Session Breakout Box Strategy tracks customizable trading sessions to calculate and display key price levels directly on the main chart overlay. It identifies the highest high, lowest low, highest candle body, lowest candle body, a

Indicator v5 Sessions & timeSupport & resistance
Updated 5 months ago · None stated GitHub repository of Session High Low Levels with Session Breakout Box Strategy

Session Wicks

by g-moe
3 stars

This strategy executes long and short trades on the price chart by combining multi-timeframe smoothed Heikin-Ashi trends, higher-timeframe Hull Moving Average variations, and an ATR-based trailing stop. Users can adjust timeframes, smoothing lengths, Hull form

Strategy v5 TrendMoving averages Repaints
Updated 5 months ago · None stated GitHub repository of Session Wicks

Pivot and Price Discovery

by regalouisei
2 stars

This indicator overlays a population-sampled linear regression channel with standard deviation bounds onto the price chart to evaluate price distribution and pivot momentum. It calculates statistical moments including mean, variance, skewness, and kurtosis to

Indicator v5 TrendVolatility & bands
Updated 8 months ago · None stated GitHub repository of Pivot and Price Discovery

Session Wicks

by g-moe
3 stars

This strategy calculates smoothed Heikin-Ashi candles alongside a moving average of the Relative Strength Index to enter trend reversals. It triggers long entries when smoothed Heikin-Ashi turns bullish while RSI trades above its moving average, and short entr

Strategy v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Session Wicks

Portfolio Performance

by regalouisei
2 stars

This indicator tracks and visualizes the historical performance of a multi-asset portfolio against a selected benchmark symbol. It displays performance metrics, specification details, and asset allocations directly on the price chart using customizable on-scre

Indicator v5 Screeners & dashboards
Updated 8 months ago · None stated GitHub repository of Portfolio Performance

Session Wicks

by g-moe
3 stars

Session Wicks is a price-chart strategy that combines a Heikin Ashi weighted moving average, an RSI compared with its moving average, and a smoothed stochastic. Bullish and bearish states come from the Heikin Ashi average falling or rising and from RSI sitting

Strategy v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of Session Wicks

Sessions Toolbox

by g-moe
3 stars

Sessions Toolbox overlays key intraday trading sessions—Asia, Euro, and USA—directly on the price chart. It features optional background highlighting, markers for session open and close levels, and session-specific Volume Weighted Average Price (VWAP) lines wi

Indicator v5 Sessions & timeSupport & resistance
Updated 5 months ago · None stated GitHub repository of Sessions Toolbox

Squeeze Momentum

by g-moe
3 stars

This overlay indicator combines classic Bollinger Band and Keltner Channel squeeze detection with linear regression momentum and pivot-based support and resistance levels. It plots a long-term moving average filter and tracks squeeze compression and release co

Indicator v5 Volatility & bandsOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Squeeze Momentum

Pushing request.security

by regalouisei
2 stars

This indicator generates a multi-ticker dashboard table displaying key metrics across multiple symbols on a user-defined timeframe. It calculates data such as percentage price changes, RSI values, and moving average relationships using multi-symbol requests. S

Indicator v5 Screeners & dashboards
Updated 8 months ago · None stated GitHub repository of Pushing request.security

Stoch Slow

by g-moe
3 stars

This indicator calculates a Slow Stochastic Oscillator plotted in a separate pane. It calculates a smoothed %K value using a 3-period stochastic raw calculation averaged over a configurable K Period simple moving average. The %D line is calculated by applying

Indicator v5 Oscillators & momentum
Updated 5 months ago · None stated GitHub repository of Stoch Slow
2 stars

The R:R Trading System Framework is a TradingView Pine Script indicator that overlays on the price chart. It lets users select a backtest method such as Stochastic or 2x MA Cross. Multiple risk-reward levels can then be configured with adjustable stop loss per

Indicator v5 Support & resistanceOscillators & momentum
Updated 8 months ago · None stated GitHub repository of R:R Trading System Framework
3 stars

Stochastic Divergences calculates standard Stochastic Oscillator lines (%K and %D) and scans for regular and hidden divergences against price action. It evaluates pivot highs and lows over a user-defined pivot lookback period to compare oscillator peaks and tr

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

This overlay indicator builds a sentiment profile across the highest-to-lowest price range of a lookback window. It splits that range into rows and draws boxes whose length reflects bullish or bearish candle bodies, optionally using lower-timeframe intrabar op

Indicator v5 Support & resistance
Updated 8 months ago · None stated GitHub repository of Range Sentiment Profile [LuxAlgo]
3 stars

Supersaiyan Strategy is an overlay indicator that plots three exponential moving averages alongside the volume-weighted average price (VWAP). It computes a standard Moving Average Convergence Divergence (MACD) oscillator and prepares trend metrics based on EMA

Indicator v5 Moving averagesOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Supersaiyan Strategy
2 stars

This indicator logs realtime bar updates across five dimensions: volume, price, time, activity, and age to plot interactive profiles directly on the price chart. It aggregates ticks, volume, and polarity into customizable level buckets, displaying double-sided

Indicator v5 VolumeSupport & resistance Repaints
Updated 8 months ago · None stated GitHub repository of Realtime 5D Profile [LucF]

Supertrend

by g-moe
3 stars

This strategy calculates trend direction using a multi-timeframe Supertrend formula based on ATR and median price, paired with RSI and Bollinger Band indicators. It enters positions when the Supertrend flips direction, plotting uptrend and downtrend bands with

Strategy v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Supertrend
2 stars

This indicator plots a histogram of historical risk values in a separate pane. It calculates risk with standard deviation, ATR, downside deviation, drawdown, entropy-based risk, or VIX. Drawdown can use the period high or a rolling high. Users set lookback, op

Indicator v5 Volatility & bandsScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Risk Distribution Histogram
3 stars

This indicator plots multiple moving averages directly on the price chart and identifies crossover entry and exit signals. It evaluates crossovers between a fast moving average and a slower baseline, requiring price bar direction confirmation to mark long and

Indicator v5 Moving averagesTrend
Updated 5 months ago · None stated GitHub repository of 2 EMA Cross 10 EMA
2 stars

This overlay indicator plots a six-axis RSI radar on the price chart. It requests 14-period RSI for six user-chosen timeframes and places each reading on a polygon centered on the visible price range. Overbought and oversold marks sit at 70 and 30. Settings ch

Indicator v5 Oscillators & momentum
Updated 8 months ago · None stated GitHub repository of RSI Radar Multi Time Frame
3 stars

This strategy plots exponential moving averages of length 1, 15, and 21 on the price chart and also calculates a length-5 simple moving average. It enters long when the length-1 average crosses above the length-15 average and the close is above the previous cl

Strategy v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of 2 EMA cross 10 EMA Strategy
3 stars

This overlay indicator plots ATR-based horizontal levels around the previous close of a selected higher timeframe. A trading-type input maps day, multiday, swing, position, and long-term modes to daily through yearly periods. It draws trigger bands from a perc

Indicator v5 Volatility & bandsSupport & resistance Repaints
Updated 5 months ago · None stated GitHub repository of ATR Levels + CALL/PUT

Bands Indicator

by g-moe
3 stars

This indicator plots multiple deviation bands around the volume-weighted moving average and standard deviation. Upper bands R-1 to R-6 and lower bands S-1 to S-6 appear at Fibonacci ratios of the deviation from the mid-line on the price chart. The mid-line is

Indicator v5 Volatility & bandsMoving averages
Updated 5 months ago · None stated GitHub repository of Bands Indicator

Bankai + DTEK

by g-moe
3 stars

Bankai + DTEK is an overlay indicator that combines Qualitative Quantitative Estimation (QQE) logic, trend coloring based on SuperTrend and CCI ATR, up to four customizable EMA clouds, and simplified TD Sequential signals. It plots multiple moving average clou

Indicator v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of Bankai + DTEK

Bankai DXY

by g-moe
3 stars

Bankai DXY is a multi-component trend and signal overlay script that combines EMA clouds, moving average slope filters, Aroon filters, QQE signals, Supertrend, CCI-ATR trend rules, and simplified TD Sequential counts. It overlays dynamic EMA clouds on the main

Indicator v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of Bankai DXY

Bankai ES Trend

by g-moe
3 stars

Bankai ES Trend combines multiple trend and momentum tools into an overlay indicator on the price chart. It calculates moving average slope filters, Aroon trend conditions, QQE momentum signals, Supertrend levels, and multi-period EMA clouds. It plots trend ba

Indicator v5 TrendMoving averages Repaints
Updated 5 months ago · None stated GitHub repository of Bankai ES Trend
3 stars

This strategy combines two sets of Bollinger Bands with a Laguerre RSI oscillator plotted on the price chart. It generates buy and sell signals when price touches the upper or lower bands or zones. The strategy allows enabling or disabling entries and includes

Strategy v5 Mean reversionVolatility & bands
Updated 5 months ago · None stated GitHub repository of BB + LaRSI Strategy
3 stars

Buy Low Sell High Composite is a pane oscillator that normalizes RSI, a short-versus-long EMA difference, the MACD histogram, and the Money Flow Index onto a shared scale, then sums them into one composite. It plots that composite as a colored area, the MACD s

Indicator v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of Buy Low Sell High Composite
3 stars

The CM Williams Vix Fix indicator calculates Larry Williams' synthetic VIX formula in a separate pane to identify market panic and potential price bottoms. It measures the percentage distance between the highest close over a lookback period and the current bar

Indicator v5 Volatility & bands
Updated 5 months ago · None stated GitHub repository of CM Williams Vix Fix

The Commodity Channel Index Custom indicator plots a customizable oscillator in a separate pane on the price chart. It calculates the CCI using a selected source such as HLC3 and a moving average method including SMA EMA or others. Main settings allow adjustin

Indicator v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of Commodity Channel Index Custom
3 stars

Custom Time Highlighter is an intraday overlay indicator that shades the chart background during a user-specified range of hours. Users configure the start and end hours to visually separate trading windows or session periods. It applies an orange background c

Indicator v5 Sessions & time
Updated 5 months ago · None stated GitHub repository of Custom Time Highlighter

DeMark 9

by g-moe
3 stars

This indicator tracks Tom DeMark Sequential setup counts by comparing the current close against the close four bars prior across up to six configurable timeframes. It signals potential trend exhaustion or reversal points when counts reach specified milestones,

Indicator v5 TrendOscillators & momentum Repaints
Updated 5 months ago · None stated GitHub repository of DeMark 9
3 stars

This indicator modifies traditional Donchian Channels by applying a weighted moving average to the highest high and lowest low over a customizable period, expanding the bands using twice the 14-period Average True Range. It calculates and plots upper, lower, a

Indicator v5 Volatility & bandsBreakout
Updated 5 months ago · None stated GitHub repository of Donchian Channels
3 stars

EMA Crossover 8/15 plots fast and slow moving averages directly on the price chart and detects crossover events. Users can switch between seven moving average types, including EMA, SMA, RMA, WMA, VWMA, SWMA, and ALMA, alongside custom period lengths. An option

Indicator v5 Moving averagesTrend
Updated 5 months ago · None stated GitHub repository of EMA Crossover 8/15

This indicator calculates Time Segmented Volume (TSV) by accumulating price-change weighted volume over a specified window. It plots TSV as a colored histogram alongside its simple moving average signal line and a secondary 20-period moving average in a separa

Indicator v5 VolumeOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Enhanced Time Segmented Volume

GAIN28

by g-moe
3 stars

This indicator calculates an impulse momentum value by summing candle body differences (close minus open) divided by the minimum tick over a user-defined period. On the most recent bar, it draws forward projection lines into future time coordinates using timef

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

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