Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 43)

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

Detrending Plot

by JohnsonHsiao
1 stars

This indicator calculates the difference between the current closing price and historical closing prices across six selectable lookback periods. It plots each detrended series in a distinct color along with a zero baseline in a separate indicator pane. Users c

Indicator v5 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of Detrending Plot
1 stars

A separate-pane tool that plots a very long RSI, 500 periods by default, with a ribbon of five exponential moving averages of the RSI at 1 to 5 bars. Dashed guide levels are set at 85, 70, 50, 20 and 10 and can be changed. A lookback period setting is also pro

Indicator v5 Oscillators & momentumMoving averages
Updated 4 years ago · None stated GitHub repository of RSI+EMAs for Bootsie Strategy

This indicator combines three tools on the price chart: a Supertrend built from Heikin Ashi data with a one-bar ATR and a multiplier of 1.85, an Ichimoku cloud, and a chop candle colouring based on an arctangent measure of price movement. Each part has its own

Indicator v5 TrendVolatility & bands
Updated 4 years ago · None stated GitHub repository of Supertrend Ichimoku Chop Combination
575 stars

This overlay indicator scans a pasted list of symbols for ICT liquidity sweep patterns using prior swing sweeps. The screening method looks back one, two, or three swings and can list long and short signals in a results table with adjustable rows, position, an

Indicator v5 SMC / ICT / price actionScreeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Liquidity Sweep Pattern Scanner
330 stars

This indicator plots candle range and open-to-close movement as percentages in a separate pane. Range is the high-low difference divided by the low, and change is the close-open difference divided by the open. Both series draw as columns. Teal columns show ran

Indicator v5 Volatility & bands
Updated 2 months ago · None stated GitHub repository of Percent & Volatility [Alorse]

Vol Box

by namuan
318 stars

Calculates realized volatility by smoothing squared log returns with an exponential moving average annualized by periods per year. It projects expected upper and lower price boundaries across a user-defined forward horizon, plotting them as step lines or displ

Indicator v5 Volatility & bands
Updated 2 months ago · MIT GitHub repository of Vol Box

Color Triangular Gradient

by ricardosantos79
261 stars

This script defines a helper function to generate colors via triangular interpolation using TradingView's color.from_gradient. The function blends between minimum, mid, and maximum color points based on an input value. It applies the function to the RSI indica

Indicator v5 Support & resistance
Updated 4 years ago · None stated GitHub repository of Color Triangular Gradient
257 stars

Donald - Test Logic Futures is an overlay strategy designed for intraday futures trading. It combines kernel regression functions with exponential moving averages to evaluate price retracements and entry timing. Trades are filtered by session execution windows

Strategy v5 TrendMoving averages Repaints
Updated 7 weeks ago · None stated GitHub repository of Donald - Test Logic Futures

Wick Power Shift

by harryguiacorn
220 stars

Wick Power Shift calculates and plots the smoothed average sizes of upper and lower candlestick wicks in a separate pane. It measures lower wick length (distance from the lower body to the low) and upper wick length (distance from the upper body to the high),

Indicator v5 Candlestick patterns
Updated 1 year ago · None stated GitHub repository of Wick Power Shift
106 stars

This strategy plots on the price chart and enters when three smoothed moving averages are aligned, RSI is on the matching side of 50, and a Williams fractal appears. An upward stack with RSI above 50 and a down fractal opens a long; the opposite setup opens a

Strategy v5 Moving averagesOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of 3SmmaCrossUp + Fractal + RSI

Moon Dev GEX Walls & Trap

by moondevonyt
92 stars

This indicator estimates gamma exposure levels and intraday context for index instruments like SPY and ES. It calculates VWAP with standard deviation bands as a gamma flip proxy, highlighting market regimes through background colors. It plots prior day high, l

Indicator v5 Support & resistanceSessions & time
Updated 2 months ago · Custom licence GitHub repository of Moon Dev GEX Walls & Trap

Color Picker Showcase

by be-thomas
65 stars

This educational script demonstrates Pine Script dynamic coloring techniques by plotting the closing price in a separate pane. It evaluates whether the current bar is bullish or bearish by comparing the close price to the open price. If the bar is bullish, it

Indicator v5
Updated 6 days ago · GPL-3.0 GitHub repository of Color Picker Showcase

Power Of Index

by iamc1oud
56 stars

This indicator maps Smart Money Concepts (SMC) features directly on the price chart. It detects and visualizes internal and swing market structure breaks (BOS and CHoCH), bullish and bearish order blocks, equal highs and lows, and strong or weak swing points.

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of Power Of Index

This overlay strategy is written for the SOLUSDT perpetual on the one-minute chart. It tracks confirmed pivot highs and lows as resistance and support circles, then marks strong buy or sell states when close crosses those levels. Long and short conditions comp

Strategy v5 Support & resistanceBreakout Repaints
Updated 2 years ago · None stated GitHub repository of SOLUSDTPERP 1m - Strategy Candle Bar

1-Month RS

by ChartsLector
41 stars

This indicator calculates the relative strength of the current asset compared to a benchmark symbol such as SPY. It stores the price ratio across a configurable lookback window, ranks the current ratio as a percentile from 0 to 100, and plots the result as a c

Indicator v5 Oscillators & momentumTrend
Updated 4 days ago · None stated GitHub repository of 1-Month RS

Auto Pitchfork

by TWODS-CAPITAL
37 stars

This indicator draws an automatic pitchfork on the price chart from successive pivot highs and lows. Depth sets how many bars are used to find those pivots. The type setting chooses Original, Schiff, Modified Schiff, or Inside geometry. It plots a median line

Indicator v5 Support & resistance
Updated 3 years ago · MIT GitHub repository of Auto Pitchfork

Daily Volume

by benso87
24 stars

Daily Volume is an overlay indicator that displays current daily volume statistics inside an on-chart table in the top-right corner. It fetches higher-timeframe daily data to report real-time current daily volume, yesterday's total volume, and a simple moving

Indicator v5 VolumeScreeners & dashboards
Updated 4 years ago · MPL-2.0 GitHub repository of Daily Volume

Normalize Heatmap Indicator

by palitojendthen
20 stars

The Normalize Heatmap Indicator scales a chosen price source between 0 and 1 over a set lookback period using stochastic-style min-max normalization. It paints price candles on the main chart using configurable Rainbow or RGB color gradients based on the norma

Indicator v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Normalize Heatmap Indicator

Divergenced A002

by ruckard
13 stars

Divergenced A002 is a momentum divergence strategy designed to identify entry opportunities using Squeeze Momentum Indicator shifts alongside price action. It enters long when momentum reaches higher lows during lower price lows and enters short on opposite di

Strategy v5 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of Divergenced A002
12 stars

This overlay indicator assigns a next-candle bias from the prior candle: previous-candle high, previous-candle low, an inside-bar version of that bias, or none. Outside bars clear the bias. After each confirmed bar it records whether price tags the prior high

Indicator v5 SMC / ICT / price actionCandlestick patterns
Updated 1 year ago · None stated GitHub repository of Simplified Next Day Bias Model

The script calculates a variant of the Fear & Greed Index using rate of return, accumulation distribution money flow weighted by volume, and volatility from VIX. It offers display options for the raw index value or price candles scaled by the index level. Smoo

Indicator v5 Oscillators & momentumVolatility & bands Repaints
Updated 4 years ago · MPL-2.0 GitHub repository of Trading Psychology - Fear & Greed Index by DGT

Momentum Combo Strategy

by EternaHybridExchange
9 stars

This strategy scores bullish and bearish confluence from RSI, MACD, a stochastic of RSI, and a fixed ten-bar momentum reading. It opens a long or a short only when the position is flat and the matching count reaches the minimum confirmation setting, then close

Strategy v5 Oscillators & momentum
Updated 7 months ago · MIT GitHub repository of Momentum Combo Strategy

Tiered Exit (Memecoin)

by muammeryldrm42
7 stars

This strategy enters long trades when a fast EMA crosses above a slow EMA. Position risk and profits are managed through tiered exit stages: three custom percentage-based profit targets with partial exits, a hard percentage stop loss, and a trailing drawdown e

Strategy v5 TrendMoving averages Repaints
Updated 3 months ago · MIT GitHub repository of Tiered Exit (Memecoin)

This indicator plots a linear regression channel on the price chart. It fits a regression line to a chosen source over a lookback length, then draws the base line plus optional upper and lower deviation bands scaled by multipliers. Fibonacci ratios mark intern

Indicator v5 TrendSupport & resistance
Updated 4 months ago · None stated GitHub repository of Regression Trend with Fibonacci

An Ichimoku-based trading strategy that plots the complete Ichimoku Kinko Hyo system directly on the price chart. Long signals trigger when Tenkan-Sen is above Kijun-Sen and positioned above the current Kumo cloud, exiting when Tenkan-Sen falls below Kijun-Sen

Strategy v5 TrendSupport & resistance
Updated 1 year ago · MPL-2.0 GitHub repository of Ichimoku Kinko Hyo: Tenkan Kumo Strategy

This indicator draws a volume profile on the price chart for a user-chosen start-to-end window. It splits that window into three time segments and colors buy and sell volume separately for the left, middle, and right parts. Histogram rows stack volume by price

Indicator v5 VolumeSupport & resistance
Updated 3 years ago · MIT GitHub repository of Volume Profile Visible Range With Timely Segmented Coloring

SuperTrend

by trsdn
6 stars

The SuperTrend indicator computes upper and lower bands from ATR values using a multiplier on a selected source such as HL2. It maintains adaptive trend lines that shift color from green to red based on price position relative to the bands. The green line func

Indicator v5 TrendVolatility & bands
Updated 7 days ago · MIT GitHub repository of SuperTrend

MTF Trend Dashboard Lab

by mitchell-917
4 stars

This indicator evaluates and displays market trend direction across four user-defined timeframes simultaneously. For each timeframe, it calculates a moving average and compares the timeframe close price against it to determine a bullish, bearish, or neutral bi

Indicator v5 Screeners & dashboardsMoving averages
Updated 11 months ago · Custom licence GitHub repository of MTF Trend Dashboard Lab

Smart Money Concepts

by Hugs-4-Bugs
4 stars

This indicator maps smart money structure on the price chart. It labels internal and swing breaks of structure and changes of character, and it can color candles by the detected trend. It draws internal and swing order blocks filtered by ATR or cumulative mean

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Smart Money Concepts

Nazilli SuperTrend

by Kalumur
4 stars

The Nazilli SuperTrend indicator combines an ALMA moving average with multiple SuperTrend configurations to identify trend changes on the price chart. It plots the ALMA line in blue and red colors for up and down trends, along with SuperTrend lines for four di

Indicator v5 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of Nazilli SuperTrend

Swing Trade

by might-tree
4 stars

This strategy plots three swing lines on the price chart. A small swing marks the current high after one higher high, or the current low after one lower low. A medium swing requires two consecutive rising highs or falling lows, and a large swing requires three

Strategy v5 TrendSupport & resistance
Updated 3 years ago · None stated GitHub repository of Swing Trade
4 stars

This indicator calculates multi-timeframe metrics and presents them in an on-chart table panel. It inspects daily (1D) and weekly (1W) higher-timeframe data to analyze swings, support and resistance levels, RSI momentum, and relative volume conditions. The pan

Indicator v5 Screeners & dashboardsSupport & resistance
Updated 4 years ago · None stated GitHub repository of SnagProfit Logic 1D 1W

EMA-Tarama

by gocaman
3 stars

This indicator plots six exponential moving averages on the price chart and places buy and sell labels when the first EMA crosses the third. It calculates MACD from fast and slow averages, with selectable SMA or EMA smoothing, and classifies the histogram as r

Indicator v5 Moving averagesOscillators & momentum
Updated 2 days ago · None stated GitHub repository of EMA-Tarama
3 stars

This strategy overlays the price chart to generate trading signals by combining Quantitative Qualitative Estimation (QQE), a custom SuperTrend, and a CCI ATR trend metric. It colors candles green or red according to combined trend alignment and enters long or

Strategy v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Bankai DTEK Strategy

RSI + MACD Strategy

by monch1962
3 stars

This strategy combines the Relative Strength Index (RSI), Moving Average Convergence Divergence (MACD), and a volume filter to identify long trade entries. A buy signal requires RSI to be oversold, MACD to cross above its signal line, and volume to exceed 1.5

Strategy v5 Oscillators & momentumVolume
Updated 7 months ago · None stated GitHub repository of RSI + MACD Strategy

Stella's Volume Profile

by stella-entry
3 stars

Stella's Volume Profile estimates volume distribution across price levels over a designated lookback period. It divides the high-low price range into discrete rows and accumulates volume to identify the Point of Control, representing the price level with the h

Indicator v5 VolumeSupport & resistance
Updated 8 months ago · MIT GitHub repository of Stella's Volume Profile

HSN Algo

by IAMATOMIC001
3 stars

Calculates and plots Smart Money Concepts (SMC) features directly on the price chart, including supply and demand zones, internal and swing market structure breaks of structure, and order blocks. Supply and demand zones track price rejections using box drawing

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 12 months ago · None stated GitHub repository of HSN Algo

This indicator calculates and plots the traditional Relative Strength Index momentum oscillator in a separate chart pane. It measures recent price changes to evaluate overbought and oversold market conditions. The script uses a configurable length period setti

Indicator v5 Oscillators & momentum
Updated 2 years ago · None stated GitHub repository of Relative Strength Index (Momentum Oscillator)

This indicator identifies and plots bullish and bearish order blocks directly on the price chart. It defines an order block when a directional candle is followed by consecutive rising or falling bars that meet a configurable minimum percentage price change thr

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of Jawaun's Advanced Order Block Finder

Currency Strength Chart

by itmakesyousick
3 stars

Currency Strength Chart plots relative strength lines for major currencies in a separate pane. It compares EUR, USD, JPY, GBP, CHF, AUD, CAD and NZD using logarithmic price ratios, with optional histogram bars and a currency-pair strength table. Users choose r

Indicator v5 Screeners & dashboards
Updated 4 years ago · None stated GitHub repository of Currency Strength Chart

Grid Bot [psyll]

by cullyk
2 stars

Grid Bot places a configurable number of long and short orders between a user-set grid top and bottom and draws those levels on the price chart. Direction can be longs, shorts, or both, with default or burst entry and an optional instant first fill. Exits use

Strategy v5 Mean reversionSupport & resistance
Updated 8 months ago · MIT GitHub repository of Grid Bot [psyll]

Momentum-based ZigZag + 趋势

by wynnforthework
2 stars

This strategy combines momentum-based ZigZag calculations with a Supertrend overlay and an EMA trend filter to generate trading entries. It allows selecting between QQE, MACD, or Moving Averages to drive the ZigZag pivot logic. The strategy includes adjustable

Strategy v5 TrendOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of Momentum-based ZigZag + 趋势

Inside Bars

by etnt
2 stars

This indicator marks inside bars, candles whose high and low sit entirely inside an earlier parent bar’s range, including nested sequences of inside bars. It stores the parent bar’s high and low when a new inside-bar sequence starts and draws those levels on t

Indicator v5 Candlestick patternsSupport & resistance
Updated 1 year ago · MPL-2.0 GitHub repository of Inside Bars

Interpolation

by Electrified-Trading
2 stars

Interpolation is a Pine Script utility library providing mathematical interpolation and easing functions, including linear and quadratic transitions. Designed for signal processing, custom smoothing algorithms, and sigmoid transformations, each exported functi

Library v5
Updated 1 year ago · MPL-2.0 GitHub repository of Interpolation

VGF Price-Volume TEMA

by ryangaraygay
2 stars

This indicator colors chart bars based on a Triple Exponential Moving Average (TEMA) applied to candle body volume (candle body multiplied by volume). It categorizes market flow into trending bullish, trending bearish, or non-trending messy conditions based on

Indicator v5 VolumeCandlestick patterns
Updated 1 year ago · MIT GitHub repository of VGF Price-Volume TEMA

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