Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 58)

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

Criptom4N(r)

by IAMATOMIC001
3 stars

This indicator plots SuperTrend lines and SMA values on the price chart. It generates buy and sell signals from crossovers between close price and SuperTrend. Additional features include ATR-based stop loss and take profit levels, candlestick coloring, and swi

Indicator v5 TrendMoving averages Repaints
Updated 12 months ago · None stated GitHub repository of Criptom4N(r)

This strategy evaluates market conditions on the price chart by combining composite RSI STARC bands, an EMA and SMA crossover, VWAP standard deviation bands, and security-derived volume metrics. It enters long positions when cumulative delta, momentum breakout

Strategy v5 Oscillators & momentumMoving averages Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Version Alpha: Composite Momo + Volume + Price Strategy

Smart Money Concepts

by TamTH-Dev
2 stars

This indicator maps market structure and session activity directly on the price chart. It detects and labels internal and swing structures with customizable confluence filters and candle coloring. Additionally, it highlights major trading killzones including N

Indicator v5 SMC / ICT / price actionSessions & time Repaints
Updated 6 weeks ago · None stated GitHub repository of Smart Money Concepts

饥饿者~01

by wynnforthework
2 stars

This strategy overlays execution signals directly on the main price chart. It calculates entry points using a Kalman gain filter and dynamic approach percentages. Positions execute in both long and short directions, scaling out across three predefined take-pro

Strategy v5 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of 饥饿者~01

RSI Swing Signal

by Web3Degenerate
2 stars

This indicator plots an RSI oscillator in a separate pane and marks long and short setups when RSI is oversold or overbought and a swing low or swing high fractal forms with a reversing candle. It sizes a stop from the recent extreme plus an ATR multiple, then

Indicator v5 Oscillators & momentumCandlestick patterns
Updated 2 years ago · None stated GitHub repository of RSI Swing Signal
1 stars

JAT+BSM Pro v13 Extended is a multi-timeframe trading strategy overlay that combines kinematic regression models, Bayesian inference, and consolidation zone analysis. It processes multi-layer volatility bands, volume profile buckets, and pattern structure targ

Strategy v5 TrendVolatility & bands
Updated 2 days ago · None stated GitHub repository of JAT+BSM Pro v13 Extended

SR v5

by 7b809
1 stars

An overlay indicator that marks support and resistance from pivot lows and highs filtered by a volume delta, with zones sized by ATR. Each signal is numbered and given a status of allowed or ignored, depending on whether it repeats the previous allowed type, a

Indicator v5 Support & resistanceVolume
Updated 2 weeks ago · None stated GitHub repository of SR v5
1 stars

This strategy draws on the price chart and uses a 21-period EMA of the current symbol close as a fast line and a 55-period SMA of the close price from a higher timeframe (default 60 minutes) as a slow line. Long conditions trigger on EMA crossover above the sl

Strategy v5 Moving averagesTrend
Updated 4 months ago · MIT GitHub repository of Corpus MTF Security Close
1 stars

This indicator marks swing highs and lows from pivot bars on the price chart and projects dates ahead using Gann and Hurst cycle timing ideas. The first version uses one pivot setting and tables show the pivot dates and nearby future dates, with colours for bu

Indicator v5 Support & resistance
Updated 6 months ago · None stated GitHub repository of Gann Hurst Pivot HL 2024 V1

Volume Spike Reversal

by Basant1Saini
1 stars

The Volume Spike Reversal strategy identifies potential price reversals driven by high volume activity. It triggers long entries when a volume spike occurs while price is below a 20-period simple moving average, combined with oversold RSI readings and bullish

Strategy v5 VolumeOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Volume Spike Reversal

V5 Combination by yzz

by webcrack4
1 stars

Combines multiple analytical tools on the main price chart, prominently featuring an interactive Volume Profile and Market Profile alongside an overlaid MACD indicator. It calculates volume or price distribution over visible, anchored, or full ranges, plotting

Indicator v5 VolumeSupport & resistance
Updated 9 months ago · None stated GitHub repository of V5 Combination by yzz
1 stars

An indicator that measures historical volatility from the standard deviation of log returns, annualised, then compares it with its own EMA. The result is normalised by a Bollinger-style deviation multiplier and plotted in a separate pane against dashed hot-mar

Indicator v5 Volatility & bands
Updated 1 year ago · None stated GitHub repository of Historical Volatility

MTM Metric EMA

by JohnsonHsiao
1 stars

This indicator plots momentum bias metrics using three exponential moving averages (EMAs) of periods 20, 60, and 180. It calculates short_bias as the difference between the fast and mid EMAs, and mid_bias as the difference between the mid and long EMAs. These

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · None stated GitHub repository of MTM Metric EMA

This indicator scans a pasted list of symbols and shows matching long and short setups in a table in a separate pane. It uses a Supertrend crossover, then applies an ATR or fixed-point volatility range so quiet, sideways conditions can be skipped. Optional fil

Indicator v5 TrendVolatility & bands
Updated 1 year ago · MPL-2.0 GitHub repository of Trend Following Setup - Sideways Market Skipper Scanner
330 stars

Improvising [Alorse] is a price-chart strategy that looks for a one-bar candle reversal filtered by a 10-period EMA, a 14-period RSI, and a rising or falling MACD. Longs require a bearish bar followed by a bullish close above the EMA, RSI below 65, and a risin

Strategy v5 Oscillators & momentumMoving averages
Updated 2 months ago · None stated GitHub repository of Improvising [Alorse]
261 stars

This script provides a collection of utility functions to handle complex numbers and compute a Discrete Fourier Transform (DFT) in Pine Script. It implements array-based mathematical structures to perform operations on real and imaginary components, facilitati

Indicator v5
Updated 4 years ago · None stated GitHub repository of Function Discrete Fourier Transform
257 stars

This is a futures trading strategy for instruments like ES. It plots an Ichimoku Cloud using Tenkan, Kijun, Senkou A, Senkou B and Chikou lines along with pivot highs and lows to mark resistance and support levels directly on the price chart. Inputs let users

Strategy v5 TrendSupport & resistance Repaints
Updated 7 weeks ago · None stated GitHub repository of Futures No Repain ES

AC- MY SCRIPT1

by hasnocool
106 stars

This strategy plots an Optimized Trend Tracker and a selectable moving-average support line on the price chart. It builds the average as SMA, EMA, WMA, TMA, VAR, WWMA, ZLEMA, or TSF, then offsets long and short stops by a percent of that average. Optional mark

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of AC- MY SCRIPT1

Smoothed candles

by be-thomas
65 stars

This indicator draws smoothed candlesticks on the price chart. It applies a simple moving average of a user-set length, defaulting to nine, separately to open, high, low, and close, then plots those four values with plotcandle. Wick color is green when the raw

Indicator v5 Moving averagesCandlestick patterns
Updated 6 days ago · GPL-3.0 GitHub repository of Smoothed candles
55 stars

Calculates dynamic trendlines and horizontal support and resistance levels using pivot highs and pivot lows with a fixed length of 10 bars. When a new pivot high or low is confirmed, the script updates extended trendlines connecting the two most recent pivots,

Indicator v5 TrendSupport & resistance
Updated 6 months ago · Apache-2.0 GitHub repository of AAPL Dynamic Line Analysis

Chaikin Oscillator

by TWODS-CAPITAL
37 stars

This script is a momentum indicator that calculates the Chaikin Oscillator. It measures the difference between the short and long period exponential moving averages of the Accumulation Distribution Oscillator. The indicator plots the oscillator values in a sep

Indicator v5 Oscillators & momentumVolume
Updated 3 years ago · MIT GitHub repository of Chaikin Oscillator

This indicator implements swing chart construction rules based on Perry Kaufman's Trading Systems and Methods. It runs up to three swing models simultaneously across two, three, and four-bar reversal thresholds, plotting swing lines directly on the price chart

Indicator v5 Support & resistanceTrend
Updated 2 weeks ago · MIT GitHub repository of Zen TSaM Swing Chart Multi-Mode 2/3/4

Diverlong C002

by ruckard
13 stars

Diverlong C002 is a trading strategy designed to identify entries using Squeeze Momentum Indicator divergences and execute exits based on Curie Closing Lines. Long and short signals trigger when price movements contradict Squeeze Momentum values across indicat

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

VSA Pro: Trend and Rejection is an overlay strategy combining SuperTrend trend filtering with Volume Spread Analysis principles. It calculates SuperTrend direction to enter long positions when a new bullish trend starts and exits all positions when the trend t

Strategy v5 TrendVolume
Updated 4 months ago · MIT GitHub repository of VSA Pro: Trend and Rejection

Multi Timeframe MA

by suyons
7 stars

Calculates and overlays up to ten moving averages from custom timeframes directly onto the main price chart. Each moving average line allows individual configuration of its timeframe, period length, and average type, supporting Simple Moving Average (SMA), Exp

Indicator v5 Moving averagesTrend Repaints
Updated 4 months ago · None stated GitHub repository of Multi Timeframe MA

WR-SR + SMC Strategy v4.0

by alboogycOdR
6 stars

The WR-SR + SMC Strategy v4.0 combines wick rejection for support and resistance level detection with Smart Money Concepts including CHoCH and BOS structure changes, fair value gap zones and order blocks. It signals trading entries and exits on the price chart

Strategy v5 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of WR-SR + SMC Strategy v4.0

RSI2 Optimized STEPFUN

by eltonaguiar
4 stars

This strategy draws on the price chart and trades a two-period RSI. It enters long when RSI crosses above the oversold level and short when RSI crosses below the overbought level. An optional SMA trend filter, volume confirmation, and cooldown can block entrie

Strategy v5 Oscillators & momentumMoving averages
Updated 2 days ago · None stated GitHub repository of RSI2 Optimized STEPFUN

Volume Profile Lite [Lab]

by mitchell-917
4 stars

This indicator calculates an approximate volume profile over a specified lookback period or current intraday session. It divides the high-low range into a configured number of price bins, assigns each bar's volume to the corresponding bin based on its closing

Indicator v5 VolumeSupport & resistance
Updated 11 months ago · Custom licence GitHub repository of Volume Profile Lite [Lab]

Jash_test

by jash-git
3 stars

Jash_test is a price-chart overlay that plots five exponential moving averages using Fibonacci lengths: 3 and 13 as the fast pair, 34 and 55 as the slow pair, and 144 as a longer filter. It colors them red, orange, blue, purple, and black. On the current bar a

Indicator v5 TrendMoving averages
Updated 4 weeks ago · None stated GitHub repository of Jash_test
3 stars

CSW Breakout Signals plots breakout buy and sell labels on the price chart when price breaks support or resistance after a trend change. Each signal can show a numbered confirmation score built from a moving-average cross, momentum, opening-range alignment, re

Indicator v5 BreakoutTrend
Updated 5 months ago · None stated GitHub repository of CSW Breakout Signals

Version Kappa: Composite Momo + Volume + Price Strategy evaluates trend, momentum, and volume dynamics to generate trading signals on the price chart. It calculates a composite RSI wrapped in Starc Bands, tracking momentum across both current and higher timefr

Strategy v5 Oscillators & momentumVolume Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Version Kappa: Composite Momo + Volume + Price Strategy

SSL Oscillator

by TamTH-Dev
2 stars

The SSL Oscillator is a separate pane indicator that combines momentum channel calculations with Quantitative Qualitative Estimation (QQE) logic. It evaluates moving average differences, standard deviation channels, and smoothed RSI values across multiple conf

Indicator v5 Oscillators & momentumMoving averages
Updated 6 weeks ago · None stated GitHub repository of SSL Oscillator

0.35 Hedging Strategy

by wynnforthework
2 stars

This strategy executes a recovery zone hedging system directly on the price chart. It initiates an initial position at periodic bar intervals when flat, setting a target take profit and an adverse recovery boundary. If the market moves against the position int

Strategy v5 Mean reversion
Updated 1 year ago · None stated GitHub repository of 0.35 Hedging Strategy

Simple Pullback Strategy

by Web3Degenerate
2 stars

This strategy executes long trades during pullbacks within an established uptrend, plotting moving averages, entry prices, and stop levels on the price chart. It buys when the close is above the long-term simple moving average and below the short-term moving a

Strategy v5 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of Simple Pullback Strategy
1 stars

An extended version of the JAT+BSM strategy that adds a strategy preset, a risk aggression choice and a pattern type filter to the AlphaTrend style core, MACD, consolidation layers, volume profile and candlestick and macro pattern drawings. Forecasts use kinem

Strategy v5 TrendOscillators & momentum
Updated 2 days ago · None stated GitHub repository of JAT+BSM Pro v13 Extended

V9 Watchlist Ranker

by kevinesk
1 stars

Evaluates intraday trading rules across ten ticker symbols simultaneously using multi-symbol data requests. It monitors 5-minute volume surges, price breakout pivots, moving average positioning, and session time filters customized for Bursa Malaysia trading ho

Indicator v5 Screeners & dashboardsScalping
Updated 4 months ago · None stated GitHub repository of V9 Watchlist Ranker
1 stars

Corpus Switch And Strings is a multi-asset strategy that calculates the price spread between two configurable symbols on a set timeframe. It evaluates the spread using a string switch selection to compute either a 9-period Exponential Moving Average, a 9-perio

Strategy v5 Moving averagesOscillators & momentum
Updated 4 months ago · MIT GitHub repository of Corpus Switch And Strings
1 stars

This indicator marks swing highs and lows from pivot bars on the price chart and projects dates ahead using Gann and Hurst cycle timing ideas. Tables show the pivot dates and nearby future dates, with colours for bullish and bearish pivots. The left and right

Indicator v5 Support & resistance
Updated 6 months ago · None stated GitHub repository of Gann Hurst Pivot HL 2024 V1.1
1 stars

This volume divergence indicator detects bullish and bearish divergences on the price chart. Bullish divergence occurs when price forms a lower low but volume forms a higher low, and bearish divergence when price forms a higher high but volume forms a lower hi

Indicator v5 DivergenceVolume
Updated 8 months ago · None stated GitHub repository of VolDivAlgo (Volume Divergence)
1 stars

This indicator plots a standard MACD line, signal line, and color-coded histogram in a separate pane, with a zero line. It finds pivot highs and lows on both price and the histogram using a shared pivot length. Alerts fire when a histogram pivot high or low is

Indicator v5 Oscillators & momentumDivergence
Updated 9 months ago · None stated GitHub repository of MACD Histogram Divergence

V5 Combination by yzz

by webcrack4
1 stars

V5 Combination by yzz is a composite chart indicator that integrates a Volume Profile and Market Profile (TPO) tool with a MACD oscillator overlay. The profile section calculates price distribution across configurable range modes, plotting the Point of Control

Indicator v5 VolumeSupport & resistance
Updated 9 months ago · None stated GitHub repository of V5 Combination by yzz

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