Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 84)

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

MSNR [OPTIMIZED]AI

by alboogycOdR
6 stars

This indicator detects and draws support and resistance structure levels directly on the price chart. It identifies Apex/Vortex (A/V) pivot levels, price gap levels, and Quasimodo (QM) pattern levels, tracking whether each level is fresh or previously tested.

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of MSNR [OPTIMIZED]AI
3 stars

This indicator calculates and plots a linear regression line alongside upper and lower deviation bands directly on the price chart. It determines linear regression slope and channel width using weighted and simple moving average formulas across a user-specifie

Indicator v5 TrendSupport & resistance
Updated 5 months ago · None stated GitHub repository of Linear Regression

Financial Growth

by regalouisei
2 stars

This indicator plots financial growth metrics in a separate pane as a customizable table. It calculates year-over-year and quarter-over-quarter changes plus CAGR for user-selected items including revenue, net income, EBITDA, EPS, dividends, total assets, liabi

Indicator v5 Screeners & dashboards Repaints
Updated 8 months ago · None stated GitHub repository of Financial Growth

Live Tick Counter

by morindok
1 stars

This indicator calculates and plots a multi-factor order-flow analysis using tick counts, volume ratios, big player volume, recent delta momentum, and a K-nearest neighbors pattern matching algorithm. It evaluates bull and bear thresholds across multiple weigh

Indicator v5 VolumeScreeners & dashboards Repaints
Updated 7 weeks ago · None stated GitHub repository of Live Tick Counter

KC Combo Bull v4.7.1

by nishpa800
1 stars

Overlays a Keltner Channel and an ATR supertrend on the price chart and marks candles where several built-in detectors agree on the same bar. The detectors cover pullback patterns, displacement, relative volume and high-volume bars, shown as lettered markers.

Indicator v5 Volatility & bandsTrend
Updated 2 months ago · None stated GitHub repository of KC Combo Bull v4.7.1

Filtered Stoch

by hasnocool
106 stars

Filtered Stoch is a long-only strategy that combines a Stochastic RSI oscillator with a trend filter based on the highest EMA of price highs. A bullish trend state is identified when close prices trade above the EMA filter level. The strategy enters a long pos

Strategy v5 Oscillators & momentumTrend
Updated 2 years ago · GPL-3.0 GitHub repository of Filtered Stoch

Relative Volatility Index

by TWODS-CAPITAL
37 stars

This indicator plots the Relative Volatility Index in a separate pane. It measures the standard deviation of the close and splits that volatility into upward and downward price changes, then smooths each side with a fixed 14-period exponential moving average a

Indicator v5 Volatility & bandsOscillators & momentum
Updated 3 years ago · MIT GitHub repository of Relative Volatility Index

Sergdi D002

by ruckard
13 stars

This strategy detects trend reversals on the 4H timeframe using ADX crossover signals. Long entries occur when +DI crosses above -DI, and short entries when +DI crosses below -DI. Built-in risk management includes ATR-based stop loss, optional take profit, tra

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Sergdi D002

Cyberpunk MACD Pulse Engine

by eddiebelaval
7 stars

The Cyberpunk MACD Pulse Engine is a momentum indicator displayed in a separate pane. It calculates MACD line, signal line, and histogram values using configurable parameters or preset modes tailored for scalping, swing trading, and custom setups. The indicato

Indicator v5 Oscillators & momentumDivergence
Updated 3 months ago · None stated GitHub repository of Cyberpunk MACD Pulse Engine
6 stars

MSNR Ultimate detects and plots horizontal support and resistance structures directly on the price chart. It combines swing apex and valley (A/V) pivot levels, gap detection, and Qualified Move (QM) levels. Users can filter levels to display only fresh, unmiti

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of MSNR Ultimate [KingdomFinancier]
3 stars

This indicator calculates a TTM-style squeeze by comparing Bollinger Bands with Keltner Channels alongside a linear regression momentum oscillator. It measures volatility compression when Bollinger Bands contract within the Keltner Channels and tracks the dura

Indicator v5 Oscillators & momentumVolatility & bands
Updated 5 months ago · None stated GitHub repository of Linear Regression

Financials on Chart

by regalouisei
2 stars

Financials on Chart displays fundamental company financial metrics in a tabular overlay directly on the price chart. It retrieves statement items such as income statement and balance sheet data across reporting periods including fiscal year, financial quarter,

Indicator v5 Screeners & dashboards
Updated 8 months ago · None stated GitHub repository of Financials on Chart

Live Tick Counter

by morindok
1 stars

Live Tick Counter tracks up and down ticks on each price movement while weighting them against volume. It calculates a cumulative probability of upward movement by combining tick counts and volume totals from the last lookback bars plus the current bar. The in

Indicator v5 Volume Repaints
Updated 7 weeks ago · None stated GitHub repository of Live Tick Counter

KC Combo SR Ext Tick

by nishpa800
1 stars

Tick-chart extension study for a Keltner Channel combo indicator, carrying eighteen extra bullish and bearish markers on the price chart. They combine PB, RS and RC members with relative volume or Grand Slam and MOAB tiers, and high-volume ranks from 500 to 49

Indicator v5 Volatility & bandsVolume
Updated 2 months ago · None stated GitHub repository of KC Combo SR Ext Tick

John Day Stop Loss

by hasnocool
106 stars

This long-only Pine v5 strategy plots RSI, Money Flow Index, Stochastic RSI, and a MACD calculation in a separate pane. Visible buy logic requires Money Flow below a maximum and a Stochastic RSI K-line cross above D while below the oversold band; the matching

Strategy v5 Oscillators & momentumVolume
Updated 2 years ago · GPL-3.0 GitHub repository of John Day Stop Loss
37 stars

This overlay indicator detects the bullish Rising Three Methods continuation pattern on the price chart. It looks for a long white candle, three small black candles whose bodies stay inside the first candle’s range, and a long white candle that closes above th

Indicator v5 Candlestick patternsTrend Repaints
Updated 3 years ago · MIT GitHub repository of Rising Three Methods - Bullish

Sergdi E002

by ruckard
13 stars

Sergdi E002 is a directional trading strategy based on higher-timeframe Directional Movement Index crossovers. It enters long when the 4-hour DI+ crosses above DI- and short when DI+ crosses below DI-. The strategy features extensive risk management options in

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Sergdi E002
6 stars

NY SMC Suite Multi-Killzone is a Smart Money Concepts indicator that plots session killzones and structural supply and demand zones directly on the price chart. It identifies Order Blocks, Fair Value Gaps, Change in State of Delivery levels, and wick rejection

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of NY SMC Suite Multi-Killzone

This indicator plots linear regression bands on the price chart for multiple timeframes. It calculates regression lines with standard deviation bands for up to three timeframes, each configurable with length, deviation, color, width, and background transparenc

Indicator v5 TrendVolatility & bands
Updated 5 months ago · None stated GitHub repository of Linear Regression MTF + Bands

This indicator fits a trigonometric series to historical prices and projects future price movement directly on the price chart. Using the Quinn and Fernandes algorithm alongside least-squares fitting, it identifies dominant cycle frequencies across a user-defi

Indicator v5 Trend
Updated 8 months ago · None stated GitHub repository of Fourier Extrapolator of Price w/ Projection Forecast [Loxx]

Live Tick Counter

by morindok
1 stars

Live Tick Counter tracks real-time upward and downward tick price movements on active candles using intrabar variable updates. It accumulates directional tick statistics during live market execution and calculates directional probabilities over a customizable

Indicator v5 Volume Repaints
Updated 7 weeks ago · None stated GitHub repository of Live Tick Counter

KC Combo SR EXT v1.0

by nishpa800
1 stars

Combines bullish and bearish signals in one price chart overlay, built on a Keltner Channel, an ATR supertrend and several volume and displacement detectors. Markers flag candles where those detectors line up with a support or resistance structure. This extens

Indicator v5 Support & resistanceVolume
Updated 2 months ago · None stated GitHub repository of KC Combo SR EXT v1.0

Mov Avg Speed Strategy

by hasnocool
106 stars

This strategy evaluates market trend and momentum by combining moving average rate of change, Stochastic Oscillator levels, and MACD signal line directions on the main chart overlay. It calculates a directional signal from each of the three indicators and requ

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Mov Avg Speed Strategy

Rising Window - Bullish

by TWODS-CAPITAL
37 stars

This indicator detects a bullish Rising Window, a two-candle pattern in which the current low is above the previous high during an uptrend. It plots an RW label below price, tints the background, and fires an alert when the pattern appears. Trend context can u

Indicator v5 Candlestick patternsTrend
Updated 3 years ago · MIT GitHub repository of Rising Window - Bullish

Sergio Squeeze C002

by ruckard
13 stars

Sergio Squeeze C002 is a Pine Script v5 strategy template designed to interact with Zignaly for automated trading. It relies on the SqueezeMomentum indicator to generate signals: it opens long positions when the indicator shows positive shine and short positio

Strategy v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Sergio Squeeze C002

Dollar Normalized Volume v2

by eddiebelaval
7 stars

Dollar Normalized Volume v2 calculates dollar volume by multiplying the closing price of each bar by the bar volume. It renders the computed traded value as gray columns in a separate pane, providing a measure of total currency turnover rather than raw unit vo

Indicator v5 Volume
Updated 3 months ago · None stated GitHub repository of Dollar Normalized Volume v2
6 stars

Plots smart money concepts and session visuals directly on the price chart. It highlights trading killzones with session boxes, draws trend lines, and marks upper or lower wick rejections. Additionally, it identifies Order Blocks (OB), Fair Value Gaps (FVG), C

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of NY SMC Suite Multi-Killzone
3 stars

Linear Regression Slope is a momentum and trend strength indicator that calculates the mathematical slope of a linear regression line using weighted and simple moving averages. It plots the resulting slope oscillator alongside a reference zero line in a separa

Indicator v5 Oscillators & momentumTrend
Updated 5 months ago · None stated GitHub repository of Linear Regression Slope

This indicator retrieves and displays fundamental financial metrics across up to fourteen selected symbols in a separate pane. It queries financial statements including income statement and balance sheet data such as basic EPS, revenue, EBIT, and debt metrics

Indicator v5 Screeners & dashboards
Updated 8 months ago · None stated GitHub repository of Fundamentals Graphing [Kioseff Trading]
1 stars

This indicator measures real-time tick height movements on a chosen higher timeframe overlay. It accumulates upward and downward tick price distances using tick step precision, then computes directional probability percentages based on recent historical bars.

Indicator v5 VolumeScreeners & dashboards Repaints
Updated 7 weeks ago · None stated GitHub repository of Live Tick Height Counter MTF

KC Combo SR v5.0

by nishpa800
1 stars

Combines bullish and bearish signals in one price chart overlay, built on a Keltner Channel, an ATR supertrend and several volume and displacement detectors. Markers flag candles where those detectors line up with a support or resistance structure. Version 5.0

Indicator v5 Support & resistanceVolume
Updated 2 months ago · None stated GitHub repository of KC Combo SR v5.0

My Strategy

by hasnocool
106 stars

This overlay strategy combines a Schaff Trend Cycle, an ATR trailing stop, and a fixed 200-period simple moving average. It enters long when the cycle turns upward, the ATR bias is bullish, and price is at or above the average, and short on the opposite alignm

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of My Strategy

RSI Strategy

by TWODS-CAPITAL
37 stars

This script implements a classic Relative Strength Index mean-reversion strategy overlaid directly on the price chart. It calculates an RSI value based on close prices over a user-defined length. A long position enters when the RSI crosses above the oversold l

Strategy v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of RSI Strategy

Sergiosqueeze

by ruckard
13 stars

This strategy executes trades based on the Squeeze Momentum indicator and overlays directly on the price chart. It opens long positions when momentum is positive and active, and enters short positions when momentum is negative and active. Trades exit when the

Strategy v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Sergiosqueeze

DX with Price-Aligned Color

by eddiebelaval
7 stars

This indicator calculates the Directional Index from plus and minus directional movement and true range, then plots the DX line in a separate pane. Line color is lime when DX is rising and price is up, red when DX is rising while price is down or when DX is fa

Indicator v5 Oscillators & momentumTrend
Updated 3 months ago · None stated GitHub repository of DX with Price-Aligned Color
6 stars

This indicator draws six New York killzone boxes on the price chart, covering morning, afternoon, and opening windows plus their extended ranges. It detects order blocks, fair value gaps, and change-in-state-of-delivery marks on a selectable timeframe, and dra

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of NY SMC Suite Multi-Killzone

LinReg Bands

by g-moe
3 stars

LinReg Bands calculates a linear regression channel and multiple deviation bands over a user-defined length directly on the price chart. It determines the linear regression slope using weighted and simple moving averages, then projects three configurable upper

Indicator v5 TrendVolatility & bands Repaints
Updated 5 months ago · None stated GitHub repository of LinReg Bands

Gann Square of 144

by regalouisei
2 stars

This indicator overlays a Gann Square of 144 grid on the price chart for technical analysis. Users define a starting date, manual min and max price levels, and can enable automatic price and bar adjustments. The grid features vertical divisions, optional extra

Indicator v5 Support & resistanceTrend
Updated 8 months ago · None stated GitHub repository of Gann Square of 144
1 stars

This indicator projects price and time levels using Fibonacci golden ratio scaling from an interactively selected anchor candle. Once a user selects a starting time, the script identifies its mid-price and plots vertical time lines into both the past and futur

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Magical Ruller by BITMOON618

KC Combo SR v5.1

by nishpa800
1 stars

Combines bullish and bearish signals in one price chart overlay, built on a Keltner Channel, an ATR supertrend and several volume and displacement detectors. Markers flag candles where those detectors line up with a support or resistance structure. Version 5.1

Indicator v5 Support & resistanceVolume
Updated 2 months ago · None stated GitHub repository of KC Combo SR v5.1

My strategyP

by hasnocool
106 stars

This strategy draws on the price chart and opens a long when a five-period exponential moving average crosses above a ten-period exponential moving average. It opens a short when a six-period exponential moving average crosses below an eleven-period exponentia

Strategy v5 Moving averagesTrend
Updated 2 years ago · GPL-3.0 GitHub repository of My strategyP

Shooting Star - Bearish

by TWODS-CAPITAL
37 stars

This indicator marks a bearish shooting star on the price chart. It looks for a small real body near the low, an upper shadow at least twice the body, and no meaningful lower shadow, and it only confirms the pattern while price is in an uptrend. The trend filt

Indicator v5 Candlestick patternsTrend
Updated 3 years ago · MIT GitHub repository of Shooting Star - Bearish

Sergiosqueeze B002

by ruckard
13 stars

Sergiosqueeze B002 is an automated trading strategy based on Squeeze Momentum and moving average closing lines designed to work with Zignaly copy trading webhooks. It executes long or short positions based on momentum direction and exits when momentum weakens.

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Sergiosqueeze B002

Fisher Transformator Index

by eddiebelaval
7 stars

This indicator plots a modified Fisher Transform oscillator alongside an adjustable trigger line in a separate pane. It calculates normalized median price values, applies smoothing and clipping, and transforms the result into Gaussian probability distribution

Indicator v5 Oscillators & momentumTrend
Updated 3 months ago · None stated GitHub repository of Fisher Transformator Index

LinReg MTF

by g-moe
3 stars

LinReg MTF plots up to three linear regression channels on the price chart, each from its own timeframe. For every enabled timeframe it draws an upper band, lower band, and midline from a chosen price source, regression length, and deviation. Users can show or

Indicator v5 Trend
Updated 5 months ago · None stated GitHub repository of LinReg MTF

Gaps Profile [vnhilton]

by regalouisei
2 stars

Gaps Profile draws boxes on the price chart for price gaps that meet a minimum absolute percentage size. It can place the profile to the left or the right of price and highlight the largest or newest up or down gap, or highlight none. Color themes include a si

Indicator v5 Support & resistance
Updated 8 months ago · None stated GitHub repository of Gaps Profile [vnhilton]

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