Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 38)

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

7 stars

This indicator plots raw volume or dollar volume on a logarithmic or linear scale in a separate pane below the main chart. It calculates Bollinger Bands around the chosen volume series using standard deviation and selectable moving average smoothing types, inc

Indicator v5 VolumeVolatility & bands
Updated 4 months ago · None stated GitHub repository of Log Volume + Bollinger Band

This long-only trend-following strategy combines Ichimoku Kinko Hyo components with higher timeframe moving average filters. It triggers long entries when price trades above a higher timeframe EMA and a bullish Tenkan-Sen cross above Kijun-Sen occurs under fav

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · MPL-2.0 GitHub repository of Ichimoku Kinko Hyo Momentum Strategy
7 stars

This strategy trades crossovers between a weekly-anchored Volume Weighted Average Price (VWAP) and a 4-hour 90-period exponential moving average. It plots both indicators directly on the price chart. A long position is opened when weekly VWAP crosses above the

Strategy v5 Moving averagesTrend Repaints
Updated 3 years ago · MIT GitHub repository of 4H Bullish Buy 4H Bearish Sell Weekly

FX Market Sessions

by itmakesyousick
7 stars

This indicator draws up to three named market-session boxes on the price chart, defaulting to London, New York, and Tokyo. Each session has its own time window, label, color, optional extension of the box and end line, experimental Fibonacci lines, and an open

Indicator v5 Sessions & time
Updated 3 years ago · None stated GitHub repository of FX Market Sessions

RSI

by trsdn
6 stars

This indicator calculates standard Relative Strength Index values along with a simple moving average filter. It plots the momentum line in a separate pane alongside customizable dotted horizontal reference lines for overbought and oversold thresholds. Users ca

Indicator v5 Oscillators & momentum
Updated 7 days ago · MIT GitHub repository of RSI

Stochastic Cross

by latentwill
4 stars

This strategy evaluates momentum conditions in a separate pane to trigger long and short positions. Although titled after stochastic crossovers, the code calculates two Relative Strength Index series for trade signals. It enters long when the primary oscillato

Strategy v5 Oscillators & momentumMean reversion
Updated 8 days ago · None stated GitHub repository of Stochastic Cross
4 stars

Ichimoku Cloud — Large Cap is a long-only trend-following strategy designed for large-cap stocks. It calculates standard Ichimoku components, including Tenkan-sen, Kijun-sen, Senkou Span A, Senkou Span B, and Chikou Span. Trades enter on a bullish Tenkan/Kijun

Strategy v5 TrendSupport & resistance
Updated 5 months ago · None stated GitHub repository of Ichimoku Cloud — Large Cap

Elliott Wave [LuxAlgo]

by YooooungLee
4 stars

This overlay indicator marks Elliott Wave structure on the price chart. Comments describe detection of impulse and corrective waves across three ZigZag lengths, Fibonacci retracement levels, and numbered wave labels. Users choose high and low sources, turn eac

Indicator v5 Support & resistance
Updated 10 months ago · Apache-2.0 GitHub repository of Elliott Wave [LuxAlgo]
4 stars

This indicator plots a fast and a slow moving average on the price chart and marks bullish and bearish crossovers. The user can choose SMA, EMA, RMA, or WMA, the price source, and both lengths. Triangle shapes appear below or above the bar at each crossover, a

Indicator v5 TrendMoving averages
Updated 11 months ago · Custom licence GitHub repository of MA Crossover Indicator [Lab]
4 stars

This indicator marks a bearish long upper shadow candlestick pattern on the price chart. It treats a bar as a match when the upper shadow is greater than 75 percent of the full high-to-low range. On a match it draws an LUS label above the bar, tints the backgr

Indicator v5 Candlestick patterns
Updated 1 year ago · None stated GitHub repository of Long Upper Shadow - Bearish

KARPUZLU-RSI

by Kalumur
4 stars

Calculates a custom-period Relative Strength Index alongside an Exponential Moving Average of the RSI in a separate pane. It identifies pivot highs and lows directly on the RSI plot to highlight trendlines and potential divergence patterns. The area between th

Indicator v5 Oscillators & momentumMoving averages
Updated 2 years ago · None stated GitHub repository of KARPUZLU-RSI

Trend Finder w/ COV

by kevinhhl
4 stars

This indicator measures price volatility using the Coefficient of Variation, calculated by dividing the standard deviation by the simple moving average over a specified lookback period. It filters out ranging market conditions by comparing the current variatio

Indicator v5 TrendVolatility & bands
Updated 3 years ago · None stated GitHub repository of Trend Finder w/ COV

MACD Indicator (14,21)

by might-tree
4 stars

This script plots three MACD lines calculated from exponential moving averages on the close price. The first line subtracts the 14-period EMA from the 21-period EMA, the second subtracts the 41-period EMA from the 90-period EMA, and the third subtracts the 90-

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · None stated GitHub repository of MACD Indicator (14,21)
4 stars

Snagprofit Buy Sell is an overlay trend-following indicator that calculates smoothed triple exponential moving averages (TMA) based on Heikin-Ashi and standard price inputs. It plots two trend lines directly on the chart and fills the space between them in gre

Indicator v5 TrendMoving averages
Updated 4 years ago · None stated GitHub repository of Snagprofit Buy Sell

DIP FINDER BIST

by gocaman
3 stars

DIP FINDER BIST is a multi-symbol dashboard indicator designed for the BIST stock market. It scans predefined groups of Turkish stocks across user-selected timeframes to identify potential market bottoms and oversold conditions. The script evaluates multiple t

Indicator v5 Screeners & dashboardsOscillators & momentum
Updated 2 days ago · None stated GitHub repository of DIP FINDER BIST

Alert Test

by g-moe
3 stars

Alert Test is a utility indicator designed to demonstrate and test TradingView alert functionality in Pine Script v5. It monitors the closing price of the current bar against a hardcoded threshold level of 3000. When the closing price exceeds this value, it tr

Indicator v5
Updated 5 months ago · None stated GitHub repository of Alert Test
3 stars

This Pine Script v5 indicator overlays RSI, MACD line, signal line, and histogram on the price chart. It also plots a custom composite indicator derived from normalized RSI and MACD values. Buy and sell signals trigger when RSI crosses oversold/overbought leve

Indicator v5 Oscillators & momentumVolume
Updated 7 months ago · None stated GitHub repository of Interactive Debugging Demo

Stella's MACD + RSI Combo

by stella-entry
3 stars

Stella's MACD + RSI Combo plots both the Moving Average Convergence Divergence oscillator and the Relative Strength Index in a separate chart pane. It evaluates momentum by comparing the MACD line against its signal line alongside RSI overbought and oversold t

Indicator v5 Oscillators & momentumMoving averages
Updated 8 months ago · MIT GitHub repository of Stella's MACD + RSI Combo
3 stars

This indicator combines a Delta Money Flow Profile with Bjorgum price levels directly on the main price chart. It calculates buying and selling volume delta using either candle polarity or buying/selling pressure to display money flow profiles, normalized dist

Indicator v5 Support & resistanceVolume
Updated 12 months ago · None stated GitHub repository of DeltaProfile TimePrice Bjorgum Levels
3 stars

This indicator detects bearish M and bullish W chart formations on the price chart based on Steve Mauro's Beat The Market Maker (BTMM) methodology. It emphasizes second-leg entries confirmed by a clean close across the 13 EMA, volume filters, and minimum ATR p

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of BTMM M&W Pattern Detection
3 stars

This strategy plots a 12-line moving average rainbow directly on the price chart using customizable types such as EMA, SMA, RMA, WMA, HMA, or VWMA. It enters positions based on moving average alignment and turnover signals across the ribbon. Exits are managed

Strategy v5 Moving averagesTrend
Updated 2 years ago · None stated GitHub repository of Moving Average Rainbow (Stormer)

This indicator measures a 20-bar rolling correlation between lagged changes in several price factors and the close change over the previous 10 bars. It is configured to draw in a separate pane. The factors include the gap between a 13-period EMA and a 30-perio

Indicator v5 Moving averagesVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Factor Indicator: Correlation with Price Change

Currency Strength Chart

by itmakesyousick
3 stars

Currency Strength Chart plots the relative strength of major currencies including EUR, USD, JPY, GBP, CHF, AUD and CAD on a separate pane. It calculates values from price or oscillator sources such as RSI, CCI or Stochastics then smooths the result. Users choo

Indicator v5 Oscillators & momentum
Updated 4 years ago · None stated GitHub repository of Currency Strength Chart
2 stars

This indicator tracks market volatility regimes by calculating the ratio between the CBOE Volatility Index (VIX) and the 3-Month Volatility Index (VIX3M). Plotted in a separate pane, a line displays the VIX to VIX3M ratio alongside a dashed reference line at 1

Indicator v5 Volatility & bands
Updated 10 months ago · MIT GitHub repository of VIX Curve Regime (Simple)

Heikin Ashi Supertrend

by wynnforthework
2 stars

This strategy applies a Supertrend calculation to Heikin Ashi price data to identify trend direction and potential market reversals. It executes trades based on Supertrend trend shifts and incorporates an On-Balance Volume filter. Risk management includes a co

Strategy v5 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Heikin Ashi Supertrend

Daily Deviation

by Electrified-Trading
2 stars

This library calculates arrays of daily price deviations from the open to the high, low, and close over a user-specified number of days. It optionally filters outliers using a maximum deviation threshold. The fromOpen function returns a normalized value showin

Library v5 Volatility & bandsSupport & resistance
Updated 1 year ago · MPL-2.0 GitHub repository of Daily Deviation

MA Based Trend BarColor

by ryangaraygay
2 stars

MA Based Trend BarColor plots three configurable moving averages directly on the price chart. Users can customize the calculation type (SMA, EMA, or VWMA), source price, and lookback length for fast, medium, and slow periods. The script evaluates the stacked a

Indicator v5 TrendMoving averages
Updated 1 year ago · MIT GitHub repository of MA Based Trend BarColor

Day Trading Range

by Web3Degenerate
2 stars

This indicator plots daily trading range lines on the price chart using higher timeframe data. It detects new trading days and draws the open price line in white, upper and lower ATR bands in aqua based on the ATR length and multiplier, yesterday's high in red

Indicator v5 Volatility & bandsSupport & resistance
Updated 2 years ago · None stated GitHub repository of Day Trading Range

HTF Candles & Pivots

by itmakesyousick
2 stars

This indicator overlays high time frame candles and pivot points on the current price chart. It plots candles from selected higher timeframes using open-close, high-low or both display styles with optional wicks and bar colors. Pivot points follow traditional

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

This indicator calculates pivot highs and lows using a defined period to draw ZigZag lines directly on the price chart. It projects customizable Fibonacci retracement levels and ratio labels across identified pivot swings. It also displays real-time retracemen

Indicator v5 Support & resistance Repaints
Updated 3 years ago · None stated GitHub repository of ZigZag with Retracement Levels

Trading Rush Choppy Market

by theupslidedown
2 stars

Trading Rush Choppy Market identifies trending versus choppy market conditions based on consecutive bar close price movements. It evaluates sequences of higher or lower closes over the previous six bars to assign trend strength levels. When conditions indicate

Indicator v5 TrendVolatility & bands
Updated 3 years ago · None stated GitHub repository of Trading Rush Choppy Market
2 stars

This indicator detects trend changes and divergences using a Zigzag tool combined with an oscillator such as RSI or external sources. It plots zigzag lines on the price chart to mark potential trend reversals and identifies regular and hidden divergences. The

Indicator v5 TrendOscillators & momentum
Updated 4 years ago · MIT GitHub repository of Zigzag Trend/Divergence Detector

CROSV

by kasutu
1 stars

A multi-layer chart overlay built around three EMAs of 20, 50 and 200 bars, with line colours that change by their relative order and a wide coloured zone around the 50 EMA. It adds automatic trend lines drawn from pivot points, with adjustable pivot period an

Indicator v5 Moving averagesTrend
Updated 2 weeks ago · None stated GitHub repository of CROSV

XAU Scalp v2

by mrme000m
1 stars

XAU Scalp v2 is an indicator that calculates a composite trading score using multiple components for XAUUSD gold. It stacks four EMAs to determine trend direction and strength, overlays SuperTrend signals derived from ATR(10), adds RSI(14) momentum, detects Bo

Indicator v5 ScalpingMoving averages
Updated 7 weeks ago · None stated GitHub repository of XAU Scalp v2
1 stars

An overlay indicator that tracks unswept pivot highs and lows as liquidity levels and detects sweeps, where a wick pierces a level and the bar closes back inside. Each sweep gets a 0 to 100 score from wick size, relative volume, close position and proximity to

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 7 weeks ago · MPL-2.0 GitHub repository of LHS v2 Liquidity Sweep Score

Manchu Strategy Indicator

by GreyssonEnterprises
1 stars

An indicator that shades a trading session window on the price chart, defaulting to a Chicago time zone morning session with weekday toggles. It adds a Donchian channel based trend fill, an optional 100 line, and a WaveTrend oscillator with buy, gold, sell and

Indicator v5 Sessions & timeOscillators & momentum
Updated 3 months ago · MIT GitHub repository of Manchu Strategy Indicator

A/D Context v20.9

by VVASILEVSS
1 stars

A Pine v5 indicator in a separate pane that measures accumulation and distribution flow with Williams or Chaikin A/D, a smoothing EMA, Chaikin Money Flow and ATR. It marks divergences between price and flow pivots and draws a line that closes with an end marke

Indicator v5 DivergenceVolume
Updated 3 months ago · None stated GitHub repository of A/D Context v20.9

Adaptive Volume Profile Engine

by tthanhvu002sgu
1 stars

Builds volume profiles over several lookbacks from 20 up to 500 bars and picks the point of control that scores best. The score blends how prominent the profile peak is with a friction measure of how often price touched that level within an ATR-based zone. Old

Indicator v5 VolumeSupport & resistance
Updated 3 months ago · None stated GitHub repository of Adaptive Volume Profile Engine
1 stars

KLSE Market Regime Dashboard displays a macro market regime overview and sector relative strength metrics in an on-chart table. It retrieves daily data from global macro benchmarks (FBMKLCI, Dow Jones, S&P 500, VIX) and key Malaysian sector leadership proxies

Indicator v5 Screeners & dashboardsTrend
Updated 4 months ago · None stated GitHub repository of KLSE Market Regime Dashboard

Talons Order Block Strategy

by muammeryldrm42
1 stars

A strategy that marks order blocks after an impulsive move: a candle opposite to the move whose follow-through exceeds an ATR multiple. A box is drawn on the price chart and a limit order is placed at the block midpoint when price retests it. An optional 200-p

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of Talons Order Block Strategy
1 stars

This indicator draws a four-line exponential moving average ribbon on the price chart with 8, 21, 48 and 200 period lines by default. Shaded clouds between the fast and slow pairs change colour with direction, and the 21 EMA acts as the pivot. Optional feature

Indicator v5 Moving averagesTrend Repaints
Updated 6 months ago · None stated GitHub repository of Saty Pivot Ribbon Pro

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