Synced with GitHub · updated yesterday

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

Ease of Movement

by TWODS-CAPITAL
37 stars

Ease of Movement is a technical oscillator that measures the relationship between price changes and volume. It calculates the distance moved by the price range midpoint relative to volume, smoothed by a Simple Moving Average. The indicator plots in a separate

Indicator v5 VolumeOscillators & momentum
Updated 3 years ago · MIT GitHub repository of Ease of Movement
16 stars

This strategy trades an asymmetric long and short trend system on the price chart. Longs use shorter Donchian entry and exit lengths, tighter ATR stops, more pyramid units, and a higher risk percent per unit than shorts. Each unit is sized from equity and stop

Strategy v6 TrendVolatility & bands
Updated 12 months ago · None stated GitHub repository of Seykota Alt 4: Asymmetric L/S
13 stars

This strategy uses the Noro Trend Ribbon to determine trend direction and open long or short positions. It defines a corridor from recent high and low prices and enters positions when price crosses the corridor boundaries, sized as a percentage of capital. Fas

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of R010 R Noro Trend Ribbon

Markov State Engine classifies market conditions into six distinct regimes, including strong trends, weak trends, compression, and expansion. It evaluates historical state transitions using an exit-conditional Markov model with Laplace smoothing to estimate re

Indicator v6 AI / machine learningTrend
Updated 2 days ago · MIT GitHub repository of Markov State Engine [WavesUnchained]

Dual Super Trend Indicator

by eddiebelaval
7 stars

The Dual Super Trend Indicator calculates and evaluates Supertrend values across two customizable timeframes to determine combined trend direction. A bullish signal triggers when both timeframes register a bullish Supertrend direction, while a bearish signal t

Indicator v6 TrendVolatility & bands Repaints
Updated 3 months ago · None stated GitHub repository of Dual Super Trend Indicator
6 stars

Apex Protocol v3.0 plots smart-money structure on the price chart. It marks break of structure and market structure shifts, order blocks, fair value gaps with optional midlines, automatic Fibonacci levels, and higher-high, lower-high, higher-low, and lower-low

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of Apex Protocol v3.0 - The SMC Engine

Strategy Short Template

by krosenfeld7
5 stars

Strategy Short Template provides a base structure for backtesting short-only trading strategies. It includes modular risk management with take profit and stop loss levels calculated using fixed percentages or Average True Range (ATR) multipliers. Users can sel

Strategy v4 Volatility & bands
Updated 3 years ago · Apache-2.0 GitHub repository of Strategy Short Template

Supertrend [trugurpala]

by trugurpala
4 stars

This indicator calculates the ATR-based Supertrend line overlaid directly on the price chart to identify market trend direction. It computes upper and lower bands around the median price using Average True Range (ATR) scaled by a configurable multiplier. The s

Indicator v6 TrendVolatility & bands
Updated 2 months ago · MIT GitHub repository of Supertrend [trugurpala]

DMI ADX Signals

by g-moe
3 stars

This indicator combines the Directional Movement Index (DMI) and the Stochastic oscillator to plot directional trade signals directly on the price chart. It offers two distinct signal logic modes: one based on DI line crossovers confirmed by Stochastic levels,

Indicator v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of DMI ADX Signals

This indicator projects dynamic price target levels directly on the chart based on configurable signal conditions such as crossovers and crossunders between two sources. Users can select from a wide range of built-in technical indicators, including Supertrend,

Indicator v5 SMC / ICT / price actionSupport & resistance

MTF FVG x2 [MK]

by alvinng214
2 stars

This indicator identifies and visualizes multi-timeframe Fair Value Gaps (FVGs) directly on the price chart. It projects imbalances across multiple configurable timeframes, ranging from intraday intervals to monthly periods, with options to overlay zones or pr

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of MTF FVG x2 [MK]

WaveTrend [LazyBear]

by avatar-lavventura
2 stars

The WaveTrend indicator calculates two oscillator lines, wt1 and wt2, using a channel length on hlc3 price and an average length. It plots wt1 in green and wt2 in red in a separate pane together with overbought and oversold horizontal levels and the histogram

Indicator v4 Oscillators & momentumMoving averages
Updated 7 months ago · None stated GitHub repository of WaveTrend [LazyBear]

Cycles Analysis

by regalouisei
2 stars

This indicator segments market history into bull and bear cycle periods based on user-defined percentage movements or elapsed time duration. It overlays cycle stages directly on the price chart using colored background highlights, peak and trough labels, and d

Indicator v6 TrendScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Cycles Analysis

McGinley Dynamic Indicator (MGDI)

by mushroom-men-Trading
2 stars

The McGinley Dynamic Indicator calculates an adaptive smoothed value that responds dynamically to recent price changes. It plots one line on the price chart to show trend direction and strength. Users set the lookback period for the initial average and the fac

Indicator v6 TrendMoving averages
Updated 9 months ago · None stated GitHub repository of McGinley Dynamic Indicator (MGDI)

Quatro SMA

by wynnforthework
2 stars

The Quatro SMA strategy identifies trend direction using four Simple Moving Averages combined with a volume confirmation filter. Long entries trigger when three fast SMAs align sequentially above a 200-period SMA while current bar volume exceeds 2.5 times its

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Quatro SMA

Getting User Input

by Web3Degenerate
2 stars

The script Getting User Input is a Pine Script v5 indicator that demonstrates various user input settings. It provides boolean toggles for on/off states, color pickers, integer and float numeric controls, symbol choices, price levels, price sources, timestamp

Indicator v5 Sessions & time
Updated 2 years ago · None stated GitHub repository of Getting User Input
1 stars

This Pine Script strategy identifies trend changes by checking for crossovers between fast and slow EMAs on the current timeframe. It confirms the trend with a higher timeframe EMA confluence gate set to 60 minutes. The strategy draws its signals directly on t

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of MTF probe 11 - HTF bracket manual trail

P_fmt_long_line

by GammaExpansion
1 stars

The P_fmt_long_line indicator calculates a complex expression on a separate pane. It sums open, high, low, close values and derived ranges like hl2, hlc3 and ohlc4 across the current bar and the prior nine bars, plus their maximum and minimum. The result is as

Indicator v6
Updated 6 days ago · MIT GitHub repository of P_fmt_long_line
1 stars

An indicator in a separate pane that splits each bar's volume into a buy part and a sell part, drawn as stacked columns. The split is estimated from lower-timeframe sub-bars, each classed as up or down by its own close versus open, so it approximates order flo

Indicator v6 Volume
Updated 7 days ago · GPL-3.0 GitHub repository of Stacked Buy/Sell Volume Columns

DEPV2 DEBUG S28

by YuceSezar89
1 stars

DEPV2 DEBUG S28 is a Pine Script v6 indicator that draws in a separate pane. It watches up to twenty user-chosen symbols, defaulting to Binance perpetual crypto pairs, and combines four method classes: trend, momentum, volatility, and volume. Signal mode can u

Indicator v6 TrendOscillators & momentum Repaints
Updated 12 days ago · None stated GitHub repository of DEPV2 DEBUG S28

Fable Bear HTF v1.2

by nishpa800
1 stars

A bearish-side detection indicator for higher timeframe charts that marks numbered signals on the price chart. It combines relative volume tiers, displacement based on a standard deviation multiplier, a VWMA with ATR Supertrend latch, pocket pivots and fair va

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Fable Bear HTF v1.2
1 stars

An ICT-style strategy on the price chart that requires two confirmations before entering: an inverse fair value gap flip and a change in state of delivery, which is a structure break from recent swing levels. Optional filters are an EMA trend check, a liquidit

Strategy v6 SMC / ICT / price actionSessions & time
Updated 2 months ago · None stated GitHub repository of TN IFVG CISD Double Confirm

VuManChu B Divergences

by GreyssonEnterprises
1 stars

This indicator plots a WaveTrend oscillator in a separate pane, modeled after Market Cipher B. It marks wave crossings with small circles, green buy dots when waves cross up at oversold levels, and red sell dots when they cross down at overbought levels. Gold

Indicator v4 Oscillators & momentumDivergence
Updated 2 months ago · MIT GitHub repository of VuManChu B Divergences

A Pine Script v5 indicator in a separate pane, the third revision of a Hurst spectral oscillator. The hl2 price is run through bandpass filters for cycles from 1 day to 18 years and the waves are plotted with an optional composite. Bandwidth and period are set

Indicator v5 Oscillators & momentum Repaints
Updated 6 months ago · None stated GitHub repository of Hurst Spectral Analysis Oscillator V3

Supertrend

by webcrack4
1 stars

This indicator calculates a classic Supertrend line on the price chart using Average True Range (ATR) and a user-defined multiplier. It identifies prevailing market trends by dynamically trailing support and resistance levels. When price closes across the band

Indicator v4 TrendVolatility & bands
Updated 9 months ago · None stated GitHub repository of Supertrend

Price Spike Detector

by ivansoft
1 stars

An indicator in a separate pane that measures candle wick sizes, the distance from the body to the high and to the low, and shows them as columns for the chart timeframe along with 15-minute and 60-minute versions requested with lookahead. Percentile levels ov

Indicator v6 Volatility & bandsCandlestick patterns Repaints
Updated 1 year ago · None stated GitHub repository of Price Spike Detector

SlimGains

by tseitz
1 stars

A Pine v4 strategy with small percentage targets, using a 12/26 MACD, a 14-period RSI and a 15-bar high-low lookback. Inputs set separate take-profit and stop-loss percentages for longs and shorts, an RSI level to close longs, a MACD bar count, and switches fo

Strategy v4 Oscillators & momentum Repaints
Updated 4 years ago · None stated GitHub repository of SlimGains
330 stars

The MACD + RSI Strategy [Alorse] combines moving average convergence divergence (MACD) crossovers with recent Relative Strength Index (RSI) extreme levels to generate long trading signals overlaid directly on the price chart. A long entry triggers when the MAC

Strategy v4 Oscillators & momentumMoving averages
Updated 2 months ago · None stated GitHub repository of MACD + RSI Strategy [Alorse]

BATM-tracker

by Allen1212
303 stars

This indicator tracks historical ARK Invest transactions for BATM on the main price chart. It visualizes past buy and sell activity by plotting color-coded labels directly above or below corresponding price bars using specific calendar timestamps. The primary

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

MathConstantsElectromagnetic

by ricardosantos79
261 stars

MathConstantsElectromagnetic is a Pine Script library that provides a collection of predefined electromagnetic constants based on 2007 CODATA reference values. It exports functions for physical parameters including elementary electron charge, magnetic flux qua

Library v5
Updated 4 years ago · None stated GitHub repository of MathConstantsElectromagnetic

Sideway Zones Live

by dearvn
257 stars

Sideway Zones Live is an overlay indicator that estimates inner and outer sideways bands from recent highs and lows with a rational quadratic kernel. It tracks swing pivots over a loopback period and counts bars that remain between the outer high and low. Afte

Indicator v5 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of Sideway Zones Live

RSI Divergence Template

by TradersPost
218 stars

This indicator plots the Relative Strength Index in a separate pane and marks regular and hidden bullish and bearish divergences. It compares confirmed price pivots with RSI pivots within a lookback window: regular divergence contrasts a price extreme with the

Indicator v6 Oscillators & momentumDivergence
Updated 3 months ago · None stated GitHub repository of RSI Divergence Template
114 stars

Aggregate Signal (Improved) calculates a composite indicator by normalizing and averaging multiple technical metrics, including the Relative Strength Index, Commodity Channel Index, Center of Gravity, and a slope-based sigmoid transform. Each factor is normali

Indicator v4 Oscillators & momentum
Updated 1 year ago · None stated GitHub repository of Aggregate Signal (Improved)

ATR RSI Strategy v2

by hasnocool
106 stars

This strategy combines Average True Range (ATR) and the Relative Strength Index (RSI) to generate volatility-filtered momentum trades on the price chart. It checks whether a normalized ATR moving average falls within user-defined bounds and requires current AT

Strategy v5 Oscillators & momentumVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of ATR RSI Strategy v2

Coppock Curve

by mihakralj
99 stars

This indicator calculates the Coppock Curve as a weighted moving average of the sum of a long and a short rate of change of a chosen source. It plots that oscillator in a separate pane and draws a dotted zero line. Inputs set the source, the long ROC lookback,

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Coppock Curve

ATR

by be-thomas
65 stars

This indicator calculates the Average True Range over a user-chosen period and shows the latest value in a single-cell table at the top right of the price chart. A helper builds a format string from the symbol's minimum tick so the number is printed to tick pr

Indicator v4 Volatility & bandsScreeners & dashboards
Updated 5 days ago · GPL-3.0 GitHub repository of ATR
47 stars

This indicator applies the hyperbolic tangent to a chosen source series and plots the result in a separate pane. It centers the transform on a 200-bar simple moving average of that source, multiplies the deviation by a steepness factor, and maps the output int

Indicator v6 Moving averagesMean reversion
Updated 8 months ago · MIT GitHub repository of Hyperbolic Tangent (TANH)

NQ Stats Helper

by TamaraKGreen
46 stars

NQ Stats Helper is an overlay indicator that plots custom trading session ranges, session high and low boundaries, and 50% equilibrium levels directly on the price chart. It visualizes major sessions like New York, London, and Asia with colored range boxes and

Indicator v5 Sessions & timeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of NQ Stats Helper

Elders Force Index

by TWODS-CAPITAL
37 stars

This indicator calculates the Elders Force Index as an exponential moving average of the close-to-close price change multiplied by volume. It plots that oscillator in a separate pane and draws a horizontal zero line. The only input is the EMA length, which def

Indicator v5 Oscillators & momentumVolume
Updated 3 years ago · MIT GitHub repository of Elders Force Index
16 stars

This strategy trades Donchian breakouts measured on weekly bars while orders execute on the chart timeframe. It allows long and short entries when price breaks the prior weekly channel and exits against the shorter weekly channel. Position size risks a set per

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 4: Weekly Donchian

RSIScreener A003

by ruckard
13 stars

RSIScreener A003 is an indicator that plots RSI oscillator values on the price chart for multiple monitored symbols. It calculates RSI with user-defined length and source, along with customizable overbought and oversold levels. The script can enforce a higher

Indicator v5 Oscillators & momentumSupport & resistance
Updated 1 year ago · None stated GitHub repository of RSIScreener A003
9 stars

MFI Advanced is a separate pane volume-and-momentum oscillator that enhances the traditional Money Flow Index with pluggable smoothing options such as JMA, KAMA, and SuperSmoother. It plots a smoothed fast MFI line, a signal line, a slow trend context line, an

Indicator v6 Oscillators & momentumVolume
Updated 2 days ago · MIT GitHub repository of MFI Advanced [WavesUnchained]

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