Synced with GitHub · updated today

Free TradingView Pine Scripts

10,850 free, open-source indicators, strategies and libraries for TradingView. Copy any script and paste it into the Pine Editor to use it on your chart.

New scripts by RSS
10,850 scripts

Institutional CRT Engine

by alboogycOdR
6 stars

Institutional CRT Engine identifies Candle Range Theory setups by monitoring session-based time models for liquidity sweeps, Market Structure Shifts, and Fair Value Gaps. It plots CRT range boxes and signal labels directly on the main chart. Key settings allow

Indicator v5 SMC / ICT / price actionSessions & time Repaints
Updated 7 months ago · None stated GitHub repository of Institutional CRT Engine

This lower-pane indicator tracks a custom Supertrend built from ATR and a selectable average, then colors trend states such as rising, bear, pretrend, overbought, and oversold. It can paint bars, plot optional arrows, and show a dashboard of EMA lengths and sc

Indicator v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of J8 30 123 Spy Scalping Lower Pro
2 stars

Delta Volume Candles [LucF] plots replacement candles on the price chart and colors them from delta volume derived with lower-timeframe intrabar data. Users choose body coloring, including polarity or several volume-balance modes, optional gradients, and hollo

Indicator v5 VolumeCandlestick patterns
Updated 8 months ago · None stated GitHub repository of Delta Volume Candles [LucF]

Zero-Lag Double EMA (ZLDEMA)

by mushroom-men-Trading
2 stars

The Zero-Lag Double EMA indicator calculates a double exponential moving average with zero-lag smoothing using lag compensation and exponential warmup compensator. It plots the resulting ZLDEMA line on the price chart. The main input is the period, defaulting

Indicator v6 Moving averagesTrend
Updated 9 months ago · None stated GitHub repository of Zero-Lag Double EMA (ZLDEMA)
1 stars

This strategy plots four exponential moving averages on the price chart and compares their order. It treats a fully rising stack, shortest above the next three lengths, as bullish and the reverse order as bearish. It opens one long contract on the first bar th

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 4ema-rsi-probe-01-quad-ema-stack

Probe B Orders Strings

by GammaExpansion
1 stars

Probe B Orders Strings is a diagnostic testing strategy designed to verify order execution rules, string formatting, and price rounding behavior for stop and limit orders. Operating on a repeating 24-bar cycle, it enters alternating long and short market posit

Strategy v5
Updated 6 days ago · MIT GitHub repository of Probe B Orders Strings

Hyper Fibo System

by morindok
1 stars

Hyper Fibo System is an overlay indicator that projects Fibonacci wave cycles and linear regression lines based on two user-selected chart anchor points. It calculates the slope, midpoint, and range between the anchors, allowing traders to apply cyclic Fibonac

Indicator v5 Support & resistanceTrend
Updated 7 weeks ago · None stated GitHub repository of Hyper Fibo System

NO.1 RR Mark

by vedkanani123
1 stars

A price-chart indicator for one- to five-minute charts that marks each accepted entry as a buy or sell label with boxes for the stop and for 1R, 2R and 3R levels. Entries need a Supertrend flip, agreement from a completed higher-timeframe Supertrend, the EMA s

Indicator v6 TrendScalping Repaints
Updated 2 months ago · None stated GitHub repository of NO.1 RR Mark

KC Combo 46 Tick

by nishpa800
1 stars

Tick-chart overlay indicator that merges forty-six bullish and bearish combination markers into one study, replacing an earlier bull and bear pair. Combos blend Keltner Channel logic with a VWMA base line, ATR Supertrend, PB and J filter, pocket pivot and a di

Indicator v5 Volatility & bandsVolume Repaints
Updated 2 months ago · None stated GitHub repository of KC Combo 46 Tick
1 stars

This strategy implements a modified Ichimoku Cloud system with causal HTF trend filtering on the price chart. It computes Tenkan-sen, Kijun-sen, Senkou A and B lines using user-set lengths for displacement. Long signals trigger on cloud breakout above with Ten

Strategy v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of TN Sovereign Ichimoku Causal
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns. Algorithm modes range from looser to strict engulfing, with a threshold separating big from small candles. Settings limit how many zones and how much history are kept, with a sepa

Indicator v5 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones V2

ConditionalAverages

by ivansoft
1 stars

Pine library of functions that average values only when a condition is met. Functions cover a cumulative average when a condition is true, an average over the last chosen number of occurrences, an average over a chosen number of bars back, an average since a c

Library v5
Updated 1 year ago · None stated GitHub repository of ConditionalAverages

EDIT-tracker

by Allen1212
303 stars

EDIT-tracker is a Pine Script v4 overlay indicator that marks historical ARK Invest purchases and sales of the EDIT stock on the price chart. With the ETF input set to ALL, it places green Buy labels below bars and red Sell labels above bars on fixed calendar

Indicator v4
Updated 2 years ago · None stated GitHub repository of EDIT-tracker

Function: Decision Tree

by ricardosantos79
261 stars

Function: Decision Tree is a Pine Script v4 study that demonstrates a weighted decision-tree path sampler in a separate pane. A small pseudo-random generator reseeds itself from a stored float and picks node indices whose weights are at least the random draw.

Indicator v4 AI / machine learning
Updated 4 years ago · None stated GitHub repository of Function: Decision Tree
114 stars

This indicator adapts Donovan Wall's range filter to create trend-following trade labels on the price chart. It calculates a smoothed average price range using exponential moving averages and gates price fluctuations that fall within this threshold. When price

Indicator v4 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Smart Labelling: Range Filter

BTC Hashrate ribbons

by hasnocool
106 stars

This strategy tracks Bitcoin network hashrate data from external sources like Quandl, Glassnode, or IntoTheBlock using short and long moving averages. It generates buy or sell signals when the short hashrate moving average crosses above or below the long movin

Strategy v5 Moving averagesTrend
Updated 2 years ago · GPL-3.0 GitHub repository of BTC Hashrate ribbons
99 stars

Calculates John Ehlers' Rocket RSI indicator by combining a two-pole SuperSmoother filter with a summation-based RSI and a Fisher Transform. It measures price momentum, applies smoothing to reduce lag and noise, computes relative directional change, and applie

Indicator v6 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Rocket RSI (RRSI)

Fill example 2

by be-thomas
65 stars

This indicator computes a simple moving average of the close over a fixed length of ten bars and plots a percentage oscillator equal to the gap between that average and the close, scaled by one hundred. It draws the oscillator in a separate pane and fills the

Indicator v4 Oscillators & momentumMoving averages
Updated 5 days ago · GPL-3.0 GitHub repository of Fill example 2

Typical Price (HLC3)

by mihakralj
47 stars

This indicator calculates the typical price by averaging the high, low, and close prices for each bar. It plots the HLC3 series on the price chart with a yellow line of width two. The calculation uses multiplication by 0.333333 for optimization instead of divi

Indicator v6 Support & resistance
Updated 8 months ago · MIT GitHub repository of Typical Price (HLC3)

Net Volume

by TWODS-CAPITAL
37 stars

Net Volume plots signed bar volume in a separate pane. It multiplies each bar's volume by the sign of the close-to-close change, so a rising close is positive and a falling close is negative. The result is drawn as one blue series titled NV. On the last bar it

Indicator v5 Volume
Updated 3 years ago · MIT GitHub repository of Net Volume
13 stars

This strategy plots on the price chart and enters from a moving-average filter, ADX and Gann colours. Price above a 200-period EMA allows only longs; price below allows only shorts. A Gann aqua colour with ADX above a key level opens a long, and a Gann brown c

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Ruckard TradingZone ADX Gann

This overlay indicator detects tweezer tops and bottoms and kangaroo-tail pin bars, then draws supply and demand zones from those patterns. It scores each zone, decays freshness, merges overlapping zones, and can invalidate a zone after a close-through or afte

Indicator v6 Candlestick patternsSupport & resistance
Updated 2 days ago · MIT GitHub repository of Tweezer & Kangaroo Zones [WavesUnchained]

Institutional CRT Engine

by alboogycOdR
6 stars

This indicator plots an institutional candle-range-theory model on the price chart. It tracks a chosen one-hour or four-hour session candle, stores that candle’s high and low, and uses a state machine to mark the range. An optional higher-timeframe filter requ

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of Institutional CRT Engine

This indicator draws a SPY scalping panel in a separate pane. It calculates a Supertrend side from ATR smoothed by a selectable average, defaulting to HMA, and uses three moving averages of selectable type, defaulting to EMA lengths 13, 50, and 75. Colors mark

Indicator v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of J8 30 123 Spy Scalping Lower Pro 2 Jerry
2 stars

Delta Volume Channels calculates volume-weighted delta channels and reference moving averages using lower timeframe intrabar volume data. It plots directly on the main price chart, displaying dynamic channel fills, reference lines, delta volume-weighted lines,

Indicator v5 VolumeVolatility & bands
Updated 8 months ago · None stated GitHub repository of Delta Volume Channels [LucF]

Zero-Lag EMA (ZLEMA)

by mushroom-men-Trading
2 stars

Calculates and plots a Zero-Lag Exponential Moving Average directly on the price chart. It reduces traditional moving average lag by computing a signal from the current price and a lagged price offset by half the smoothing period, followed by exponential smoot

Indicator v6 Moving averagesTrend
Updated 9 months ago · None stated GitHub repository of Zero-Lag EMA (ZLEMA)
1 stars

PF Probe 4EMA-RSI Probe 02 RSI Pullback is a stateful momentum strategy that triggers trades based on Relative Strength Index dip-and-recovery patterns. It arms a persistent long variable when RSI drops below a pullback threshold and opens a long trade when RS

Strategy v6 Oscillators & momentumMean reversion
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 4EMA-RSI-Probe-02-RSI-Pullback

S Commission Slippage

by GammaExpansion
1 stars

This strategy serves as a test fixture for commission and slippage calculations across market, stop, and limit orders, utilizing percentage-based commission settings. It periodically opens long and short positions based on bar index cycles, applying predefined

Strategy v5
Updated 6 days ago · MIT GitHub repository of S Commission Slippage

Hyper Fibo System

by morindok
1 stars

Hyper Fibo System plots dynamic price lines, Fibonacci waves, symmetry projections, and regression channels based on two user-selected anchor points. The script calculates slope, midpoints, and cross levels between anchor points to project Fibonacci wave cycle

Indicator v5 Support & resistanceTrend
Updated 7 weeks ago · None stated GitHub repository of Hyper Fibo System
1 stars

An indicator for the price chart that classifies conditions as trend, range, transition or shock and lets only the matching module signal: a Supertrend flip or continuation in trends, a fade of a completed range edge in ranges, and a break of the completed Asi

Indicator v6 TrendSessions & time
Updated 2 months ago · None stated GitHub repository of NO.1 ULTIMATE BUY/SELL SIGNAL

KC Combo Bear

by nishpa800
1 stars

Time-chart bearish overlay indicator with 23 combination markers that mix Keltner Channel logic with other engines. Inputs cover a VWMA base line, an ATR Supertrend, a PB and J filter, Keltner bands with slope thresholds, pocket pivot size, and a displacement

Indicator v5 Volatility & bandsVolume Repaints
Updated 2 months ago · None stated GitHub repository of KC Combo Bear
1 stars

This strategy draws on the price chart and trades ICT-style market structure. It uses swing pivots to set a bullish or bearish bias, then requires a fair value gap larger than a fraction of ATR and a simplified engulfing order block. Long and short entries fir

Strategy v6 SMC / ICT / price actionSessions & time
Updated 2 months ago · None stated GitHub repository of TN Sovereign ICT SMC v6
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns, with a zone invalidated after a set number of level breaches. Algorithm modes range from looser to strict engulfing, and a threshold separates big from small candles. Settings lim

Indicator v5 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones V4

Day ATR

by ivansoft
1 stars

Calculates daily median and 85th percentile ranges for high-to-open and open-to-low distances over a 30-day lookback period using higher timeframe daily data. At each new trading day, the script projects expected upper and lower volatility levels directly on t

Indicator v5 Volatility & bandsSupport & resistance
Updated 1 year ago · None stated GitHub repository of Day ATR

EDR-tracker

by Allen1212
303 stars

EDR-tracker is an overlay indicator that marks historical ARK Invest purchases and sales of EDR on the price chart. It places green buy labels below bars and red sell labels above bars at hardcoded dates. Each label shows the trade direction and how many ARK E

Indicator v4
Updated 2 years ago · None stated GitHub repository of EDR-tracker
261 stars

Implements a Discrete Fourier Transform (DFT) custom function in Pine Script to decompose time-series amplitude data into frequency domain components. The function calculates arrays of complex numbers representing frequency amplitudes and phase angles by itera

Indicator v4
Updated 4 years ago · None stated GitHub repository of Function: Discrete Fourier Transform
114 stars

This indicator implements a distance-based pair trading strategy applied across two timeframes of the same instrument. It calculates the spread or statistical distance between price data on the active chart and a secondary timeframe using selected metrics like

Indicator v4 Mean reversion
Updated 1 year ago · None stated GitHub repository of SpreadTrade: Distance (v.2)
106 stars

This strategy calculates the WaveTrend oscillator from HLC3 averages and its smoothed difference to generate long signals on BTC price charts. It enters positions when WT1 crosses above WT2 and stays below a limit value. Stop loss triggers at the recent bar lo

Strategy v5 Oscillators & momentumMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of BTC WaveTrend R:R=1:1.5
99 stars

The Ehlers Roofing Filter isolates cyclical market components by eliminating low-frequency macro trends and high-frequency market noise. It combines a two-pole Butterworth high-pass filter with a Super Smoother filter. The high-pass stage removes cycle compone

Indicator v6 TrendOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Roofing Filter (ROOFING)

For Loop

by be-thomas
65 stars

This script demonstrates how to implement a custom Simple Moving Average (SMA) function using an explicit loop construct in Pine Script v4. It defines a function that iterates through past bar values up to a specified length of 14, sums the closing prices, and

Indicator v4 Moving averages
Updated 5 days ago · GPL-3.0 GitHub repository of For Loop
47 stars

The Ultimate Channel calculates an ultra-smoothed centerline alongside upper and lower volatility bands directly on the main price chart. It processes true range values through an advanced infinite impulse response smoothing filter to establish dynamic channel

Indicator v6 Volatility & bandsTrend
Updated 8 months ago · MIT GitHub repository of Ultimate Channel (UCHANNEL)

On Balance Volume

by TWODS-CAPITAL
37 stars

This indicator plots the standard On Balance Volume (OBV) in a separate pane by accumulating volume based on the direction of price changes. It includes an optional smoothing line that can apply a Simple, Exponential, Smoothed, Weighted, or Volume-Weighted Mov

Indicator v5 VolumeMoving averages
Updated 3 years ago · MIT GitHub repository of On Balance Volume
13 stars

This Pine Script v5 strategy draws on the price chart and sends TradingView orders toward Zignaly. It uses a selectable moving average, defaulting to a 200-period EMA of close, together with an SSL calculation based on a 10-period SMA. The user can trade long

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard TradingZone SSL EMA

This indicator computes and plots multiple technical analysis features on a separate pane. It calculates EMA-based trend indicators including fast and slow EMAs along with their slope, momentum oscillators such as RSI, Stochastic RSI, and MACD histogram, WaveT

Indicator v6 TrendOscillators & momentum
Updated 2 days ago · MIT GitHub repository of Vein Feature Exporter Core 4H [WavesUnchained]
7 stars

This strategy plots RSI on the price chart and enters a long when RSI falls below the oversold level or a short when it rises above the overbought level, only while flat. It exits with a take profit and stop loss measured in pips from the current close. Inputs

Strategy v6 Oscillators & momentumScalping
Updated 3 months ago · None stated GitHub repository of XAUUSD 1-Minute Scalping Strategy
6 stars

Institutional CRT Engine Dual Mode implements Candle Range Theory across selectable 1-hour and 4-hour timeframes. It anchors to defined session opening hours across Asian, London, and New York market periods to establish range boundaries. The indicator evaluat

Indicator v5 SMC / ICT / price actionSessions & time Repaints
Updated 7 months ago · None stated GitHub repository of Institutional CRT Engine Dual Mode

J8 30 123 SPY Scalping PRO 2 Jerry is an overlay strategy designed for short-term SPY scalping and spread setups. It combines multiple Exponential Moving Averages with a custom Supertrend calculation based on flexible moving average types and ATR lengths to pl

Strategy v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of J8 30 123 SPY Scalping PRO 2 Jerry

About the Pine Script Library

The ForexR Pine Script Library collects open-source TradingView indicators, strategies and libraries that are published on GitHub. Every script links to its repository, so you can see the author's latest version, issues and licence. Where the licence allows it, the full code is on the script's page, ready to copy into TradingView's Pine Editor. Stars, updates and licences are synced from GitHub every day, and new scripts are added every week.

Each script is read automatically before it is listed: it must declare an indicator, strategy or library for Pine Script version 4 or later, and copies of the same code are listed only once. The summaries and tags are written automatically from the code and the README. They describe what a script does; they are not a recommendation, and nothing here is tested or endorsed by ForexR.

Indicators and backtests describe the past. Check any strategy in the Strategy Tester and on a demo account before you trade with it. CFDs and leveraged forex are complex instruments with a high risk of losing money rapidly.

Pine Script Library FAQ

What is Pine Script?

Pine Script is the programming language of TradingView. Indicators, strategies and libraries written in it run directly on TradingView charts: an indicator draws lines, zones or signals, a strategy places simulated trades that the Strategy Tester reports on, and a library holds functions other scripts can import.

How do I add a Pine Script to my TradingView chart?

Open a script here and press Copy script. In TradingView, open the Pine Editor at the bottom of the chart, create a new indicator or strategy, select all of the template text and paste over it. Press Save, then Add to chart. A strategy's trades appear in the Strategy Tester tab.

Are these Pine Scripts free?

Yes. Every script listed here is published on GitHub, so you can read and use it at no cost. ForexR shows the full code only when the author published it under an open licence, such as MIT, GPL or the Mozilla Public License that TradingView adds to new scripts. For other scripts the Copy button reads the file straight from GitHub. Check the licence before reusing code in your own work.

Why are there no Pine Script v3 or older scripts?

Pine Script versions 1 to 3 are years out of date and miss most of the functions current scripts rely on. The library lists scripts written for versions 4, 5 and 6, and you can filter by version. Version 6 is the current one.

What does "Repaints" mean?

A repainting script can change its signals after the fact: on the live bar, or when it reads a higher timeframe before that bar has closed. Its history then looks better than it would have traded in real time. Scripts where the code or the author says so are marked Repaints, and the "Hide repainting" filter leaves them out.

How does ForexR choose which scripts to list?

A crawler searches GitHub every week for Pine Script files, reads each one and keeps scripts written for Pine version 4 or later in repositories with at least one star. Copies of the same code are listed once, under the most-starred repository. Repositories that ship programs, hide downloads behind passwords or show signs of bought stars are left out. Stars, updates and licences are refreshed from GitHub every day, and the summaries are written automatically from each script's code and README.

Trade on TradingView With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers