Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 46)

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

DMI Direction

by JohnsonHsiao
1 stars

This indicator measures directional movement bias by calculating the difference between the positive and negative directional indicators (+DI and -DI). It plots the resulting spread as a histogram in an off-chart pane around a white zero baseline. Positive val

Indicator v5 TrendOscillators & momentum
Updated 3 years ago · None stated GitHub repository of DMI Direction
1 stars

A price chart overlay by Loxx that applies an N-pole Gaussian filter to a chosen price source, with an optional standard deviation filter that ignores small moves. Sources include regular prices and several Heiken Ashi variants, and Heiken Ashi smoothing can u

Indicator v5 TrendMoving averages
Updated 4 years ago · None stated GitHub repository of STD-Filtered N-Pole Gaussian Filter

ICT Liquidity Void Screener

by ArunKBhaskar
575 stars

This indicator draws liquidity void lines on the price chart to highlight potential market structure breaks and liquidity pools in ICT SMC trading. It calculates voids using high/low levels or OTE values and filters them with ATR periods or fixed percentage th

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Liquidity Void Screener

RSI + EMA [Alorse]

by Alorse
330 stars

The RSI + EMA strategy combines Relative Strength Index momentum with dual moving average trend filtering to identify trade entries and exits. It plots two configurable moving averages (SMA or EMA) on the main price chart. A long trade opens when the fast movi

Strategy v5 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of RSI + EMA [Alorse]

This overlay indicator draws a fixed-range volume profile on the price chart, splitting traded activity into up and down volume at each price level. It also plots a sentiment profile, a developing point of control, and value-area high and low around a configur

Indicator v5 VolumeSupport & resistance
Updated 2 months ago · MIT GitHub repository of Volume Profile and Indicator by DGT

ColorScheme

by ricardosantos79
261 stars

ColorScheme is a Pine Script v5 library that stores named colors in paired string and color arrays. It creates an empty registry, checks that the key and color arrays stay the same length, and adds, reads, or renames entries by unique keys. Duplicate or missin

Library v5
Updated 4 years ago · None stated GitHub repository of ColorScheme
257 stars

Donald SPX - Options Trading is an overlay indicator designed for intraday SPX analysis. It plots a 200-period Weighted Moving Average (WMA) on the price chart while evaluating multi-timeframe market structure across Daily, 15-minute, 5-minute, and 2-minute ba

Indicator v5 Moving averagesTrend Repaints
Updated 7 weeks ago · None stated GitHub repository of Donald SPX - Options Trading

Bollinger Bands Force

by harryguiacorn
220 stars

This indicator modifies standard Bollinger Bands to measure directional trend force based on line alignment. It calculates a simple moving average basis along with upper and lower volatility bands. When all three lines move upward or downward simultaneously, i

Indicator v5 Volatility & bandsTrend
Updated 1 year ago · None stated GitHub repository of Bollinger Bands Force

5 Minute Scalp

by hasnocool
106 stars

This strategy overlays three exponential moving averages on the price chart, with periods of 9, 50, and 200. It calculates a MACD histogram from a 1-minute timeframe, applies Bollinger Bands to the histogram, and tracks two RSI oscillators of different lengths

Strategy v5 ScalpingMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of 5 Minute Scalp

Conditional Colors

by be-thomas
65 stars

Calculates pivot high and low levels based on a user-defined leg length and plots them directly on the price chart. When a new pivot level is confirmed, the script updates its stored level variable and briefly hides the plot to create a clear break in the draw

Indicator v5 Support & resistance
Updated 6 days ago · GPL-3.0 GitHub repository of Conditional Colors

SMC Swings

by iamc1oud
56 stars

This indicator detects Smart Money Concepts market structure elements directly on the price chart. It tracks real-time and historical internal and swing market structure, identifying Break of Structure and Change of Character events. The script also highlights

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

This strategy identifies breakout entries on low-timeframe cryptocurrency charts by combining rolling pivot support and resistance levels with a smoothed trend filter and a 3-period exponential moving average. Long and short entries trigger when price momentum

Strategy v5 TrendBreakout Repaints
Updated 2 years ago · None stated GitHub repository of V1 Binancash - Futures Strategy Futures 1M Candles
41 stars

ATR Matrix calculates Average True Range and a 50-period Simple Moving Average to display multi-tier volatility levels and risk-reward metrics. It project stop levels using negative ATR multiples from an entry price, alongside target levels from 0x to 11x ATR

Indicator v5 Volatility & bandsSupport & resistance

Average Directional Index

by TWODS-CAPITAL
37 stars

This indicator calculates the Average Directional Index (ADX) to measure market trend strength. It computes directional movement and true range smoothed by a Wilder's moving average (RMA) over configurable lengths. The resulting ADX value plots as a single red

Indicator v5 Trend
Updated 3 years ago · MIT GitHub repository of Average Directional Index

Ichimoku Bands

by benso87
24 stars

This indicator plots Ichimoku-style conversion and base lines as Donchian midpoints on the price chart, then surrounds each line with upper and lower bands derived from the standard deviation of that line. The conversion and base lengths set the lookback for e

Indicator v5 TrendVolatility & bands
Updated 4 years ago · MPL-2.0 GitHub repository of Ichimoku Bands
20 stars

This indicator calculates smoothed Chaikin Money Flow across multiple lookback periods and visualizes them as a multi-row heatmap in a separate pane. Each horizontal band represents a different lookback length, with colors transitioning from red for negative m

Indicator v5 VolumeOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Swami Chart - Chaikin Money Flow

Divergenced C002

by ruckard
13 stars

Divergenced C002 is a trading strategy that identifies entry points using price divergences against the Squeeze Momentum Indicator. It compares price moves across Squeeze Momentum color changes to trigger long or short positions. Exits are generated by Curie c

Strategy v5 DivergenceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Divergenced C002
9 stars

This strategy scaffold calculates a standard Volume Weighted Average Price (VWAP) alongside upper and lower volatility bands set 1.5 ATRs away. It generates long entry signals when a confirmed bar closes below the lower band and short entry signals when a conf

Strategy v5 Mean reversionMoving averages
Updated 2 weeks ago · Custom licence GitHub repository of Nexural VWAP Reversion Scaffold

RSI Divergence Strategy - Eterna MCP

by EternaHybridExchange
9 stars

This strategy calculates the Relative Strength Index (RSI) and identifies bullish and bearish divergences using RSI and price pivot points. It plots the RSI oscillator, overbought and oversold threshold lines, and divergence markers in a separate pane. A long

Strategy v5 Oscillators & momentumDivergence
Updated 7 months ago · MIT GitHub repository of RSI Divergence Strategy - Eterna MCP

Volume Surge (Memecoin)

by muammeryldrm42
7 stars

This strategy identifies momentum breakouts by detecting sudden volume spikes relative to a simple moving average alongside rapid bar price gains. It plots signal triangles and volume spike markers directly on the price chart. When volume and bar return exceed

Strategy v5 BreakoutVolume
Updated 3 months ago · MIT GitHub repository of Volume Surge (Memecoin)
7 stars

The script displays a table on the price chart showing current trading volume, optionally multiplied by close price and converted to T/B/M/K units based on magnitude. It computes median and standard deviation of volume over the last 500 bars by default, displa

Indicator v5 VolumeScreeners & dashboards
Updated 4 months ago · None stated GitHub repository of Trading Volume Table
7 stars

This strategy combines the Moving Average Convergence Divergence oscillator with an Exponential Moving Average trend filter. It enters long positions when the MACD histogram crosses above zero while price stays above the long-term EMA filter. Long trades close

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · MPL-2.0 GitHub repository of MACD EMA Filter Strategy

My Indicator Name [Lab]

by mitchell-917
4 stars

This indicator is a starter template that plots a simple moving average of a user-selected source over a chosen length. It draws the average as a single line on the price chart. The length input sets the lookback, and the source input selects which price serie

Indicator v5 Moving averages
Updated 11 months ago · Custom licence GitHub repository of My Indicator Name [Lab]
4 stars

This indicator plots an anchored volume-weighted average price on the price chart. It resets the VWAP at a chosen anchor such as the session, week, month, quarter, year, or corporate events including earnings, dividends, and splits. Optional bands sit above an

Indicator v5 VolumeVolatility & bands
Updated 1 year ago · None stated GitHub repository of Volume Weighted Average Price

SOKE OVASI

by Kalumur
4 stars

SOKE OVASI is an overlay indicator that combines an Arnaud Legoux Moving Average (ALMA), a Kaufman Adaptive Moving Average (KAMA), and a suite of multiple exponential moving averages (EMAs). It calculates moving averages across higher timeframes, defaulting to

Indicator v5 Moving averagesTrend Repaints
Updated 2 years ago · None stated GitHub repository of SOKE OVASI
4 stars

This indicator plots dynamic fractal-based trend lines directly on the price chart. It calculates local highs and lows using a configurable fractal period, derives angle slopes between swing points, and draws projected ray lines across recent segments. The scr

Indicator v5 TrendSupport & resistance
Updated 4 years ago · None stated GitHub repository of Snagprofit Trend Line

KARPUZLU-RSI KRIPTO

by gocaman
3 stars

Calculates a Relative Strength Index (RSI) with an exponential moving average (RSI-EMA) in a separate pane. It plots fixed overbought and oversold reference bands and fills the area between the RSI and its EMA based on directional momentum. The script detects

Indicator v5 Oscillators & momentumDivergence
Updated 2 days ago · None stated GitHub repository of KARPUZLU-RSI KRIPTO

jash GGMA Granville

by jash-git
3 stars

This indicator overlays five Fibonacci Exponential Moving Averages (EMA 3, 13, 34, 55, and 144) on the price chart, combining Guppy Multiple Moving Average concepts with Granville's rules. Fast EMAs track short-term momentum, slow EMAs reflect medium-term tren

Indicator v5 Moving averagesTrend
Updated 4 weeks ago · None stated GitHub repository of jash GGMA Granville
3 stars

This strategy evaluates price movement over a specified lookback period against custom percentage or price change thresholds. It generates buy or sell signals when movement rules are met, overlaid directly on the price chart. Users can customize entry criteria

Strategy v5 BreakoutOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Bars%Move Strategy
3 stars

This indicator calculates a Wilder-style RSI from price changes and can smooth it with a simple moving average. It also flags simple bullish and bearish divergence by comparing RSI and price extremes over a lookback window, and it wraps those functions with op

Indicator v5 Oscillators & momentumDivergence
Updated 7 months ago · None stated GitHub repository of RSI Library with Debugging
3 stars

This overlay indicator draws bullish and bearish order blocks on the price chart. It can show internal, external, or all blocks, plus a second set from a chosen timeframe that defaults to four hours. Mitigation can use wicks, touch, close, or average, and over

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 12 months ago · None stated GitHub repository of IDM/MTFOB/MTFFVG MOD@blueprintsud

BTMM Pattern Detection

by jcortes254
3 stars

This overlay indicator marks bearish M patterns and bullish W patterns on the price chart, with optional structure lines and labels. It also detects evening and morning stars, railroad tracks, and cordofwoods, and can draw order blocks, fair value gaps, and br

Indicator v5 Candlestick patternsSMC / ICT / price action
Updated 1 year ago · None stated GitHub repository of BTMM Pattern Detection

This indicator identifies Shooting Star and Inverted Hammer candlestick patterns overlayed directly on the price chart. It evaluates candle body weakness, upper shadow length, and lower shadow proportions in combination with a trend lookback calculation. A Sho

Indicator v5 Candlestick patternsTrend
Updated 2 years ago · None stated GitHub repository of Shooting Star and Inverted Hammer Pattern
3 stars

This indicator plots three normalized rate-of-change lines of a volume-weighted price deviation in a separate pane. It measures the close against the typical price, multiplies that difference by volume, and smooths the result with a simple moving average of le

Indicator v5 Oscillators & momentumMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Mid Term Alpha Indicator

Currency Strength Chart

by itmakesyousick
3 stars

This indicator calculates and visualizes the relative strength of major forex currencies in a separate pane. It evaluates cross pairs from selected brokers using price action or oscillators like RSI, CCI, and Stochastics, smoothed by various moving average typ

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

My First Indicator

by wynnforthework
2 stars

This strategy plots EMA 25 in yellow and EMA 100 in green on the price chart. It generates buy signals on EMA 25 crossing above EMA 100 when ATR length 14 rises over two prior bars and volume exceeds prior bar. It opens a long position of 1 unit on signal. It

Strategy v5 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of My First Indicator

Nice Volume

by etnt
2 stars

Nice Volume enhances standard volume analysis by plotting colored volume bars and a trend-colored moving average in a separate pane. It identifies key volume conditions such as Pocket Pivots and volume relative to an EMA. High volume spikes trigger percentage

Indicator v5 VolumeScreeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of Nice Volume

LocalLimit

by Electrified-Trading
2 stars

LocalLimit is a Pine Script library designed to calculate local upper and local lower limits for price or indicator series. By tracking local price extrema through multi-phase state logic, it helps scripts construct dynamic support and resistance boundaries. T

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

MACD Cross Strategy

by Web3Degenerate
2 stars

This strategy executes trades based on the initial MACD line crossover in the direction of the long-term trend defined by a 200 EMA filter. Position risk is calculated using a lookback swing high or low padded by an ATR multiple. The trade features a dual take

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of MACD Cross Strategy

HTF Candles & Pivots

by itmakesyousick
2 stars

The script plots higher timeframe candles and pivot points directly on the price chart. Higher timeframe candles can display in Open-Close or High-Low style with adjustable thickness and wick visibility. They support multiple history access modes including new

Indicator v5 Candlestick patternsSupport & resistance
Updated 3 years ago · None stated GitHub repository of HTF Candles & Pivots

Zigzag S/R MT [LM]

by WISEPLAT
2 stars

The script calculates a custom ZigZag for support and resistance levels on the current timeframe and three additional timeframes: weekly, daily, and 240 minutes. It plots these levels as lines on the price chart, with options to show or hide up to four levels

Indicator v5 Support & resistanceTrend
Updated 3 years ago · None stated GitHub repository of Zigzag S/R MT [LM]

Despite the name, an indicator that combines many studies on the price chart: RSI overbought and oversold signals, MACD, Bollinger Bands, ATR, Stochastic, ADX trend strength, VWAP with bands, pivot-based support and resistance levels, simple candlestick patter

Indicator v5 Oscillators & momentumVolatility & bands
Updated 2 days ago · None stated GitHub repository of Advanced Multi-Indicator Strategy
1 stars

Draws a SOFR minus Euribor rate-difference line from data the user pastes into a settings box, so no intraday feed for those rates is needed. The line can be shown in basis points or in scaled units using a scale and offset, with optional EMA smoothing and a b

Indicator v5
Updated 2 days ago · None stated GitHub repository of C.OG Line - Pasted Data

SCDTM Indicator

by GreyssonEnterprises
1 stars

An indicator that applies a multi-step checklist on the price chart. The first step compares 9 and 18 period EMAs on the daily, four-hour and one-hour timeframes and requires all three to agree. The second uses Bollinger %B thresholds and a Stochastic RSI, wit

Indicator v5 TrendOscillators & momentum Repaints
Updated 3 months ago · MIT GitHub repository of SCDTM Indicator

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