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
1 stars

This strategy executes trend-following trades based on Supertrend reversals filtered by exponential moving averages. Long trades enter when the Supertrend turns bullish while the close is above the 50 and 200 EMAs. Short trades enter when the Supertrend turns

Strategy v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of Tn Sovereign Supertrend v6
1 stars

Calculates a VWAP-based pivot on a higher timeframe, either chosen automatically or set by the user, and extends it with up to fifteen Fibonacci multiples as horizontal levels on the price chart. Settings cover VWAP length, how many past periods to plot, line

Indicator v4 Support & resistance
Updated 6 months ago · None stated GitHub repository of VWAP Expanded Pivots Alt2

GOOGL Tracker

by Allen1212
303 stars

GOOGL Tracker visualizes historical buy and sell transactions made by ARK Invest funds on Alphabet Inc. (GOOGL). The script plots labeled markers directly on the price chart at specific historical timestamps to indicate when ARK funds bought or sold shares, al

Indicator v4
Updated 2 years ago · None stated GitHub repository of GOOGL Tracker

Test 32 Perlin

by ricardosantos79
261 stars

Test 32 Perlin is an experimental indicator that implements a 2D Perlin noise generation algorithm within Pine Script using native array data structures. It uses a custom pseudo-random number generator to build gradient vector grids, then calculates smoothed n

Indicator v4
Updated 4 years ago · None stated GitHub repository of Test 32 Perlin
106 stars

This strategy backtests hammer and star candlestick patterns on the price chart. It filters setups with an exponential moving average slope angle, optional swing high and low checks, and entry-candle size versus ATR. It opens one position at a time inside a us

Strategy v5 Candlestick patternsTrend
Updated 2 years ago · GPL-3.0 GitHub repository of NoSKi Hammer Star Backtester %

Force Index (FI)

by mihakralj
99 stars

This indicator calculates the Force Index as the exponential moving average of the change in close multiplied by volume. It plots the smoothed value in a separate pane and draws a dotted zero line. The period input sets the EMA smoothing length, defaulting to

Indicator v6 Oscillators & momentumVolume
Updated 4 weeks ago · Apache-2.0 GitHub repository of Force Index (FI)

My Script

by be-thomas
65 stars

This indicator is a simple demonstration of Pine Script type casting from official TradingView documentation. It defines a length variable as a float, explicitly casts it to an integer, and uses it to compute a 10-period Simple Moving Average of the closing pr

Indicator v4 Moving averages
Updated 5 days ago · GPL-3.0 GitHub repository of My Script

SMI Ergodic Indicator

by TWODS-CAPITAL
37 stars

The SMI Ergodic Indicator calculates and displays the True Strength Index oscillator alongside an exponential moving average signal line in a separate pane. It evaluates price momentum through double smoothing across configurable short and long periods. Users

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of SMI Ergodic Indicator

Sergiosqueeze D004

by ruckard
13 stars

Sergiosqueeze D004 is a trading strategy designed for automated execution via Zignaly alerts. It utilizes squeeze momentum logic to open long positions when momentum expands positively and short positions when momentum expands negatively, exiting when the sign

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

This overlay indicator scans confirmed swing pivots for non-overlapping five-point Wolfe Wave wedges. It scores each candidate from 0 to 100 using contraction, channel traversal, apex, the fifth-point zone, risk/reward, timing, symmetry, and leg purity, then p

Indicator v6 Support & resistance
Updated 2 days ago · MIT GitHub repository of Wolfe Wave Scanner Pro [WavesUnchained]
3 stars

Calculates and plots multi-timeframe linear regression channels with customizable deviation bands directly on the price chart. The indicator overlays channels from multiple higher timeframes, ranging from intraday minutes to daily charts. Users can independent

Indicator v5 TrendSupport & resistance
Updated 5 months ago · None stated GitHub repository of LinReg MTF More TFs

Grid Bot Simulator

by regalouisei
2 stars

Calculates evenly spaced grid levels across a user-defined price range bounded by upper and lower limits. It triggers simulated buy signals when price drops across a grid level and sell signals when price crosses upward through a level, evaluated via bar extre

Indicator v5 Support & resistanceMean reversion
Updated 8 months ago · None stated GitHub repository of Grid Bot Simulator
1 stars

This Pine Script strategy enters long positions at specific times of day on the price chart. It places entries at 00:15 and 06:15 each day. It then exits or closes positions at 00:45 and 06:45 using a limit order above the average entry price and a stop order

Strategy v6 Sessions & timeMean reversion
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 70 - exit close same pass

Statistical Trailing Stop

by vedkanani123
1 stars

An overlay indicator that draws a trailing stop whose distance comes from a statistical distribution of recent price movement. Data length sets the sample window, distribution length sets how much history is normalised, and a base level setting picks one of fo

Indicator v6 Volatility & bandsTrend
Updated 2 months ago · None stated GitHub repository of Statistical Trailing Stop

KC Combo SR v5.3

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.3

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

This strategy plots three exponential moving averages on the price chart and trades when they stack in order. It opens a long when the fast average rises above the middle and the middle rises above the slow, the close is above an optional regime average, and v

Strategy v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of Tn Sovereign Triple EMA v6
1 stars

Calculates a VWAP-based pivot on a higher timeframe, either chosen automatically or set by the user, and extends it with up to fifteen Fibonacci multiples as horizontal levels on the price chart. Settings cover VWAP length, how many past periods to plot, line

Indicator v4 Support & resistance
Updated 6 months ago · None stated GitHub repository of VWAP Expanded Pivots Alt2

GRMN-tracker

by Allen1212
303 stars

GRMN-tracker overlays historical ARK Invest buy and sell labels on the Garmin price chart. With the ETF input set to ALL, it marks each recorded trade date with a red sell or green buy label and a count of how many ARK funds traded that day. Selecting ARKX ins

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

Test-008-Fusion

by ricardosantos79
261 stars

This indicator stores recent price extremes in Pine arrays and plots their averages on the price chart. It splits a fixed-length array into a lows half and a highs half. When price makes a new high or low over that length, it inserts the price at the front of

Indicator v4 Support & resistance
Updated 4 years ago · None stated GitHub repository of Test-008-Fusion
106 stars

This strategy combines the Price Moving Average Ratio Percentile (PMARP) with Madrid Moving Average Ribbon concepts to identify overextended price conditions and trend shifts. It calculates PMAR or PMARP across selectable moving average types and a lookback wi

Strategy v5 Moving averagesOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of PMAR and Madrid MA Strategy
99 stars

Calculates and plots Fractal Chaos Bands directly on the price chart. The indicator identifies local fractal swing highs and lows, tracking the highest fractal high and lowest fractal low across a user-specified lookback period using monotonic deques. The resu

Indicator v6 Volatility & bandsSupport & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of Fractal Chaos Bands (FCB)

My Script

by be-thomas
65 stars

This indicator plots visual character markers directly on the price chart to identify bearish candles. It evaluates each bar and displays a symbol whenever the opening price is greater than the closing price. The script includes no user-configurable input para

Indicator v4 Candlestick patterns
Updated 5 days ago · GPL-3.0 GitHub repository of My Script

SMI Ergodic Oscillator

by TWODS-CAPITAL
37 stars

This indicator plots the SMI Ergodic Oscillator in a separate pane. It calculates the True Strength Index of close prices using the short and long lengths, smooths that result with an exponential moving average signal, and plots the difference as a histogram.

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of SMI Ergodic Oscillator
13 stars

This indicator plots a squeeze-momentum histogram in a separate pane. It compares Bollinger Bands with Keltner Channels to mark squeeze on, squeeze off, or no squeeze, and colors the zero line by that state. The histogram is a linear regression of close agains

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of TradingLatino Abajo A001

This indicator overlays Wyckoff schematic analysis on the chart, identifying accumulation and distribution phases (A through E) alongside key events like Selling Climax, Automatic Rally, Spring, UTAD, and Sign of Strength. It calculates range quality scores, a

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 days ago · MIT GitHub repository of Wyckoff Schematics [WavesUnchained]

LFWD Watermark + Checklist

by eddiebelaval
7 stars

This visual utility overlays a custom motivational watermark and a trading rules checklist directly on the price chart using UI tables. It produces no trading signals or technical calculations. Users can customize the watermark text, font sizes, background col

Indicator v5 Screeners & dashboardsSMC / ICT / price action
Updated 3 months ago · None stated GitHub repository of LFWD Watermark + Checklist

NY SMC Suite Pro

by alboogycOdR
6 stars

NY SMC Suite Pro is an overlay indicator that visualizes Smart Money Concepts (SMC) and custom intraday trading sessions on the price chart. It detects and plots order blocks, fair value gaps, liquidity pools, market structure breaks (BOS and CHoCH), and chang

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of NY SMC Suite Pro

This indicator calculates and plots a linear regression channel directly on the price chart using a combination of Weighted Moving Average (WMA) and Simple Moving Average (SMA) values to derive slope and intercept. It projects a center regression line along wi

Indicator v5 TrendSupport & resistance
Updated 5 months ago · None stated GitHub repository of LinReg MTF More TFs EXPORT ONLY

This indicator detects harmonic patterns using a Zigzag pivot engine and derives trend-following entry and stop levels relative to key pattern legs. It overlays dynamic trailing levels on the price chart to assist in tracking market direction following pattern

Indicator v5 TrendSupport & resistance Repaints
Updated 8 months ago · None stated GitHub repository of Harmonic Patterns Based Trend Follower
1 stars

This strategy runs on the price chart and enters long positions at the top of each hour when the position is flat. It then closes those longs at the end of the hour while simultaneously entering a short position with a stop loss just below the low. Later in th

Strategy v6 Sessions & timeMean reversion
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 72 - opposite entry close

Mirror Oscilator

by morindok
1 stars

The Mirror Oscilator calculates a specialized oscillator in a separate pane by analyzing fractal periods and dynamic symmetry levels. It computes fractal turning points based on high and low prices over a specified period, derives symmetrical price relationshi

Indicator v5 Oscillators & momentumSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Mirror Oscilator

StealthTrail SuperTrend

by vedkanani123
1 stars

An ATR SuperTrend indicator on the price chart with an adaptive multiplier that scales with volatility relative to its average. Flips use a cushion measured in ATR and a signal cooldown, and can require an RSI threshold and optional volume. Risk presets draw a

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of StealthTrail SuperTrend

KC Combo v2

by nishpa800
1 stars

Draws a Keltner Channel and ATR supertrend on the price chart and marks candles where gated combinations of pullback, displacement and volume detectors fire together. Inputs set the base moving average, channel length, ATR multiplier and displacement threshold

Indicator v5 Volatility & bandsTrend
Updated 2 months ago · None stated GitHub repository of KC Combo v2

Tn Sovereign VAMO

by raybird
1 stars

Calculates a Volatility-Adjusted Momentum Oscillator (VAMO) by dividing the price Rate of Change by the Average True Range, smoothed by an EMA signal line. Long positions enter when VAMO crosses above its signal line above zero, and short positions enter on be

Strategy v6 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of Tn Sovereign VAMO

Cycle Swing Momentum

by mikeyhu70
1 stars

This indicator plots an adaptive swing momentum oscillator in a separate pane, built from custom moving averages and a cycle length setting. It can read an internal lower timeframe, chosen automatically or by hand, to produce a signal line. Optional divergence

Indicator v4 Oscillators & momentumDivergence Repaints
Updated 6 months ago · None stated GitHub repository of Cycle Swing Momentum

GRMNU Tracker

by Allen1212
303 stars

GRMNU Tracker plots historical trade activity by ARK Invest for the GRMNU ticker directly onto the price chart using chart labels. It marks specific historical dates with buy or sell markers along with the count of participating ARK funds. Users can filter by

Indicator v4
Updated 2 years ago · None stated GitHub repository of GRMNU Tracker

Test-011-Game

by ricardosantos79
261 stars

This experimental indicator implements a cellular automaton game on an 8x8 grid using Pine Script arrays. It evaluates the north, south, east, and west neighbors of each cell with toroidal wrapping and updates active states according to survival and reproducti

Indicator v4
Updated 4 years ago · None stated GitHub repository of Test-011-Game

Relative Vigor Index

by hasnocool
106 stars

This strategy overlays two exponential moving averages and ATR-based price targets directly on the price chart while calculating the Relative Vigor Index internally. It enters long positions when the RVI line crosses above its signal line during an established

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

This Pine Script indicator computes the FSI using Ehlers Fourier series analysis on the close price. It applies fundamental and harmonic bandpass filters, derives quadrature components for phase shift, estimates signal power over the cycle period, and reconstr

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of FSI - Ehlers Fourier Series Indicator

My Script

by be-thomas
65 stars

This indicator serves as a basic drawing demonstration from the official documentation, plotting directly on the price chart. On every bar, it draws a line segment connecting the previous bar's low price to the current bar's high price using the native line dr

Indicator v4
Updated 5 days ago · GPL-3.0 GitHub repository of My Script

Smoothed Moving Average

by TWODS-CAPITAL
37 stars

The Smoothed Moving Average indicator calculates and plots a smoothed moving average directly on the price chart. It initializes using a simple moving average over the user-defined length and recursively updates using previous average values to reduce noise an

Indicator v5 Moving averagesTrend
Updated 3 years ago · MIT GitHub repository of Smoothed Moving Average
13 stars

TradingLatino Abajo B002 is a momentum and volatility indicator that calculates a Squeeze Momentum oscillator in a separate pane. It compares Bollinger Bands and Keltner Channels to detect squeeze conditions while calculating momentum using linear regression b

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of TradingLatino Abajo B002
9 stars

ZigZag Core calculates and overlays market structure swing high and low points using customizable pivot depth, minimum pivot spacing, and flexible reversal filtering modes such as Percentage, ATR, or Hybrid. It plots connecting swing legs, developing legs, mar

Indicator v6 Support & resistanceTrend Repaints
Updated 2 days ago · MIT GitHub repository of ZigZag Core [WavesUnchained]
7 stars

This overlay strategy tracks the high and low of a user-defined London session and plots the previous session levels as support and resistance. It flags a break beyond a level when price closes past an ATR buffer, then waits a set number of bars for a retest w

Strategy v5 Sessions & timeSupport & resistance
Updated 3 months ago · None stated GitHub repository of London SR Cleaner WR (TP 0.20)

NY SMC Suite Pro

by alboogycOdR
6 stars

This overlay indicator maps New York smart-money concepts on the price chart. It highlights three killzone sessions, draws order blocks and fair value gaps, and notes change-in-state-of-delivery events plus market-structure shifts. A statistics dashboard score

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

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