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

Corpus Correlation Rotation is a cross-asset quantitative strategy that compares the price performance of the chart symbol against a user-selected benchmark asset. It measures five-bar price changes for both symbols, computes a 20-period statistical correlatio

Strategy v5 Oscillators & momentumMoving averages
Updated 4 months ago · MIT GitHub repository of Corpus Correlation Rotation

SMC Production Confluence Engine

by shubhamtaywade82
1 stars

Combines smart money concepts with a multi-timeframe stack on the price chart. A 4-hour EMA bias, 1-hour liquidity sweeps and 15-minute order blocks and fair value gaps feed a confidence score, with a minimum score, signal cooldown and an entry mode setting. O

Indicator v6 SMC / ICT / price action Archived
Updated 5 months ago · None stated GitHub repository of SMC Production Confluence Engine
1 stars

Identifies rally, base and drop candle sequences and turns them into supply and demand zones on the price chart. It checks four patterns: rally-base-drop, rally-base-rally, drop-base-drop and drop-base-rally. Settings define the averaging length, the size of b

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 6 months ago · None stated GitHub repository of Rally Base Drop Signals

Algo Trend System TG

by Focal-QuantAI
1 stars

An indicator on the price chart that follows an ATR-based trend line with a factor setting, plus a fast and slow EMA cloud, and prints signals with fixed dollar stop loss and three take profit distances. Signals can be limited to two time sessions in a chosen

Indicator v5 TrendSessions & time
Updated 6 months ago · None stated GitHub repository of Algo Trend System TG

Simple MA Crossover Strategy

by gabriel-klettur
1 stars

The Simple MA Crossover Strategy calculates and plots a 55-period EMA and a 200-period EMA directly on the main price chart. It generates long entry signals when the 55 EMA crosses above the 200 EMA and short entry signals when it crosses below. Positions are

Strategy v5 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of Simple MA Crossover Strategy
1 stars

This overlay indicator combines three optional modules on the price chart. Volume weighted bands plot a smoothed trend and ATR-scaled envelopes in cloud or line-only form. The Keltner Hull suite calculates a Hull moving average and Keltner channels from a chos

Indicator v6 Moving averagesVolatility & bands
Updated 7 months ago · None stated GitHub repository of Keltner Hull Swing Profile

Gap and Go

by Basant1Saini
1 stars

This strategy trades opening gap continuation on the price chart. It measures the gap between the daily open and the prior daily close, then enters long after a qualifying gap up or short after a qualifying gap down when price stays beyond the open and a trend

Strategy v5 BreakoutOscillators & momentum Repaints
Updated 7 months ago · None stated GitHub repository of Gap and Go

RSGAlgo (Range/Support/Gap)

by Tradehook-org
1 stars

RSGAlgo identifies consolidation ranges, support and resistance pivot levels, and price gaps directly on the chart. It calculates range bounds using a percentage threshold over a custom lookback period and highlights consolidation zones with background colorin

Indicator v5 Support & resistanceBreakout
Updated 8 months ago · None stated GitHub repository of RSGAlgo (Range/Support/Gap)

SPX Gamma (DTE:85)

by Juice-zhi
1 stars

A price-chart overlay that draws a static set of options gamma levels for SPX (the S&P 500 index) expiring in about eighty-five days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated 2026-02-03, produced

Indicator v5 Support & resistance
Updated 8 months ago · None stated GitHub repository of SPX Gamma (DTE:85)

ES Professional Fade

by knectardev
1 stars

ES Professional Fade is an intraday mean-reversion strategy designed for fading opening gaps on ES futures. It identifies market opening gaps using defined percentage and ATR thresholds, then places stop orders to fade the move while utilizing market breadth e

Strategy v5 Mean reversionSessions & time
Updated 9 months ago · None stated GitHub repository of ES Professional Fade
1 stars

A multi-feature indicator on the price chart that prints buy and sell signals in confirmation or contrarian mode with exits, adjustable sensitivity and tuning, and a signal quality score from 1 to 4. Presets for trend, scalping, swing and contrarian styles app

Indicator v5 TrendScreeners & dashboards
Updated 1 year ago · None stated GitHub repository of Lux Algo Signals and Overlays
1 stars

This price-chart indicator simulates dollar-cost averaging between a start date and an end date. It builds a five-bar Hull moving average, smooths it with an exponential average, and colors the line by direction. Inside the window, every bar adds a fixed BTC s

Indicator v5 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of TeeLek Lab 03 DCA and Pause

BBTrend

by ivansoft
1 stars

Plots a histogram in a separate pane that compares two sets of Bollinger Bands, a short one of 20 bars and a long one of 50 bars by default. It measures how far apart the lower bands are minus how far apart the upper bands are, scaled by the short middle band.

Indicator v6 Volatility & bandsTrend
Updated 1 year ago · None stated GitHub repository of BBTrend

ATR Ratio To BTC

by zhuzp98
1 stars

An indicator that compares the volatility of the current symbol with Bitcoin. It computes the ATR of each as a fraction of its own moving average, then plots their ratio as a single line in a separate pane. A value above one means the chart symbol is moving mo

Indicator v5 Volatility & bands
Updated 1 year ago · None stated GitHub repository of ATR Ratio To BTC

Indicators

by fiji-solutions
1 stars

This basic script demonstrates how to calculate and plot a simple technical indicator in Pine Script. It computes a 14-period Exponential Moving Average (EMA) using the closing price of each bar and renders the line in a separate pane. Designed as an education

Indicator v5 Moving averagesTrend
Updated 2 years ago · None stated GitHub repository of Indicators
1 stars

A Pine v4 overlay that builds Bollinger Bands from a simple moving average and a multiple of the standard deviation of the chosen source. Inputs set the length, source, deviation multiplier and plot offset. The title suggests reversal use, but the portion of c

Indicator v4 Volatility & bandsMean reversion
Updated 3 years ago · None stated GitHub repository of Bollinger Bands Trend Reversal

Harmonic Osc

by JohnsonHsiao
1 stars

The Harmonic Osc indicator plots a z-score oscillator derived from kinetic and potential energy. Kinetic energy uses ROC of price over roc_p while potential energy ratios close to EMA over ema_p. These combine into total energy with weighting factors then stan

Indicator v5 Oscillators & momentumVolatility & bands
Updated 3 years ago · None stated GitHub repository of Harmonic Osc

Gann High Low

by rajatjpatel
1 stars

A Gann HiLo activator drawn on the price chart. It averages highs over one period and lows over another, 13 and 21 by default. When the close breaks below the prior low average, the line switches to the high average and turns maroon; when the close breaks abov

Indicator v5 TrendMoving averages
Updated 4 years ago · None stated GitHub repository of Gann High Low
1 stars

A Pine v4 strategy that plots a 12-period exponential moving average of the close in orange on the price chart. It goes long when a green candle opens above the average and short when a red candle opens below it, closing each position when the opposite signal

Strategy v4 Moving averagesTrend
Updated 4 years ago · None stated GitHub repository of FILBTC EMA Cross Strategy

The Alpha-Decreasing Exponential Moving Average (ADEMA) calculates an exponential moving average where the smoothing factor decreases dynamically relative to the bar index. On early bars, the weight given to new price data is larger, making the calculation rea

Indicator v4 Moving averagesTrend
Updated 11 days ago · GPL-3.0 GitHub repository of Alpha-Decreasing Exponential Moving Average
575 stars

This indicator builds Market Profile Time Price Opportunity (TPO) structures across defined session timeframes directly on the main price chart. It visualizes the Point of Control (POC) and Value Area boundaries using dynamic box drawings. An integrated multi-

Indicator v5 Support & resistanceScreeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of Market Profile with Screener
330 stars

This indicator plots three moving averages taken from separate timeframes onto the price chart. The user chooses either exponential or simple averages, then sets a timeframe and period for each of the three lines, defaulting to 15-minute, 60-minute, and 240-mi

Indicator v5 Moving averagesTrend
Updated 2 months ago · None stated GitHub repository of 3 Multi Timeframe EMA/SMA

ADYEN Tracker

by Allen1212
303 stars

This indicator overlays historical ARK Invest buy and sell transactions for ADYEN directly onto the main price chart. It reads hardcoded timestamp data to plot green buy labels below bars and red sell labels above bars on specific dates. A user setting allows

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

Function - HSL color

by ricardosantos79
261 stars

This script provides two color helpers: one converts red, green and blue channels into hue, saturation and lightness, and the other builds a Pine color from hue, saturation, lightness and transparency. Integer inputs set those four values within fixed ranges.

Indicator v5
Updated 4 years ago · None stated GitHub repository of Function - HSL color
257 stars

This strategy executes trades on futures contracts by combining custom smoothed price bars with a multi-timeframe stochastic oscillator and Ichimoku elements. It calculates percentage-based stop-loss and take-profit targets for long and short positions. It ove

Strategy v5 Oscillators & momentumTrend Repaints
Updated 6 weeks ago · None stated GitHub repository of ESH2023 5M Futures No Repaint
219 stars

This indicator plots reference levels for previous daily high and low prices directly on the price chart. It requests daily timeframe data using the security function and plots the offset values as continuous lines, displaying resistance in red and support in

Indicator v4 Support & resistanceSessions & time
Updated 5 years ago · None stated GitHub repository of 昨日高低點標示

EMA Crossover Strategy

by TradersPost
218 stars

EMA Crossover Strategy plots a fast and a slow exponential moving average on the price chart. It treats a confirmed fast-over-slow cross as a long condition and a confirmed cross under as a short condition. Position size is a percentage of equity. Optional per

Strategy v6 TrendMoving averages
Updated 3 months ago · None stated GitHub repository of EMA Crossover Strategy

Five-in-one Strategy

by capissimo
114 stars

Five-in-one Strategy combines five analytical tools into a single price chart overlay: the Dual Thrust Trading Algorithm (DTTA), Semafore, HalfTrend, Nick Rypock Trailing Reverse, and Tweezer or Kangaroo Tail candlestick patterns. It generates trade signals us

Indicator v4 TrendBreakout Repaints
Updated 1 year ago · None stated GitHub repository of Five-in-one Strategy

5msm VISHNU

by hasnocool
106 stars

This strategy overlays several classic studies on the price chart. It calculates a MACD-style oscillator from fast and slow moving averages with a signal line, a 200-period exponential moving average, and Williams Alligator smoothed averages for the jaw, teeth

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of 5msm VISHNU
99 stars

This indicator calculates Bill Williams' Awesome Oscillator in a separate pane. It forms the bar midpoint from high and low, then subtracts a slow simple moving average of that midpoint from a faster one. Default periods are 5 and 34. The histogram is green wh

Indicator v6 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Awesome Oscillator (AO)

Example 3

by be-thomas
65 stars

This indicator calculates and plots a 5-period simple moving average and a 20-period simple moving average directly on the price chart. It visualizes the channel between the two moving averages by filling the background space with dynamic colors. When the 5-pe

Indicator v5 TrendMoving averages
Updated 5 days ago · GPL-3.0 GitHub repository of Example 3

9 to Futere

by iamc1oud
56 stars

9 to Futere is an overlay indicator that projects the closing price forward onto future bars while identifying potential trading setups relative to past price action. It plots a forward-offset line based on a customizable candle count set to nine bars by defau

Indicator v4 Support & resistance
Updated 2 months ago · None stated GitHub repository of 9 to Futere

Supertrend Strategy

by dcaoyuan
55 stars

This indicator calculates a Supertrend line combined with a 200-period exponential moving average for trend filtering. It plots the Supertrend lines and background fills directly on the price chart, generating buy and sell signal labels when the trend directio

Indicator v6 TrendMoving averages
Updated 6 months ago · Apache-2.0 GitHub repository of Supertrend Strategy
47 stars

This indicator calculates John Ehlers' Detrended Synthetic Price using a dual exponential moving average (EMA) approach. It derives a fast quarter-cycle EMA and a slow half-cycle EMA from a specified dominant cycle period, applying exact warm-up normalization

Indicator v6 Oscillators & momentumMoving averages
Updated 8 months ago · MIT GitHub repository of Detrended Synthetic Price (DSP)

TTM Squeeze Divergence

by TamaraKGreen
46 stars

The TTM Squeeze Divergence indicator plots a classic TTM Squeeze momentum oscillator in a separate pane alongside Bollinger Bands and Keltner Channels squeeze status dots on the zero line. It detects regular and hidden bullish and bearish divergences between p

Indicator v6 Oscillators & momentumVolatility & bands Repaints
Updated 7 weeks ago · None stated GitHub repository of TTM Squeeze Divergence

Bollinger Bands %B

by TWODS-CAPITAL
37 stars

This indicator calculates and plots the Bollinger Bands %B oscillator in a separate pane below the price chart. It measures the relative position of the price compared to standard Bollinger Bands, normalizing values where zero represents the lower band and one

Indicator v5 Volatility & bandsOscillators & momentum
Updated 3 years ago · MIT GitHub repository of Bollinger Bands %B

Zen Bar Count

by Zen-Tim
29 stars

This indicator counts bars from the start of each trading day and resets the count when the daily session changes. It plots the running count in the data window and, when enabled, draws that number below the bar every N bars. A second interval switches the lab

Indicator v5 Sessions & time
Updated 2 weeks ago · MIT GitHub repository of Zen Bar Count
24 stars

This strategy plots a Supertrend and a double exponential moving average on the price chart. Supertrend direction flips mark buy and sell signals, with optional labels and trend highlighting. The DEMA uses a selectable timeframe and source and is requested wit

Strategy v5 TrendMoving averages Repaints
Updated 4 years ago · MPL-2.0 GitHub repository of Super Duper Trend Strategy
16 stars

This strategy enters long or short Donchian breakouts and sizes each unit from a percentage of equity and ATR. It sets an initial ATR stop, trails with a chandelier stop, and tightens that trail after a chosen number of bars. Optional profit targets close one

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 25: Time Profit Lock

Divergenced I002

by ruckard
13 stars

Divergenced I002 is a trading strategy that identifies entry points using Squeeze Momentum Indicator divergences across price and momentum structure. Long positions trigger on bullish momentum divergences, while short positions trigger on bearish divergences.

Strategy v5 DivergenceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Divergenced I002

This indicator detects compressed corrective coils inside a higher-timeframe trend and signals when they resolve into clean directional breaks. It plots compression bands, fractal boxes, efficiency scores, and a light dashboard on the price chart. Signals clas

Indicator v6 Volatility & bandsSMC / ICT / price action
Updated 2 days ago · MIT GitHub repository of Compression Fractal Release [WavesUnchained]
9 stars

Volatility Contraction Score is a separate-pane indicator that scores how tightly price and volume are contracting. It compares short and long true-range averages and close standard deviations, then folds in a five-bar volume ratio against a longer volume aver

Indicator v6 Volatility & bandsVolume
Updated 4 months ago · MIT GitHub repository of Volatility Contraction Score

Williams %R Reversal - Eterna MCP

by EternaHybridExchange
9 stars

This strategy tracks the Williams %R oscillator to trade mean-reversion bounces from overbought and oversold extremes. It opens long or short positions when a reversal signal occurs alongside confirming price direction, while generating JSON-formatted alert pa

Strategy v5 Oscillators & momentumMean reversion
Updated 7 months ago · MIT GitHub repository of Williams %R Reversal - Eterna MCP
8 stars

Stochastic with STC X combines three momentum oscillators into a single separate indicator pane: a standard Stochastic Oscillator, the Schaff Trend Cycle (STC), and an adapted WaveTrend oscillator. It plots smoothed %K and %D lines with visual circle markers f

Indicator v4 Oscillators & momentum
Updated 4 years ago · None stated GitHub repository of Stochastic with STC X

Heikin Ashi Dots

by lunarticktrading
7 stars

Heikin Ashi Dots calculates trend momentum using Heikin-Ashi candle values retrieved across a customizable timeframe. It evaluates the relationship between the open and close of the current and prior Heikin-Ashi bars, plotting a horizontal series of colored ci

Indicator v6 TrendCandlestick patterns
Updated 2 weeks ago · None stated GitHub repository of Heikin Ashi Dots

Smooth Theil-Sen

by eddiebelaval
7 stars

This indicator calculates and plots a smoothed Theil-Sen robust linear regression line directly on the price chart alongside statistical deviation bands. It uses Gaussian kernel weighting to blend between median and mean calculations for slopes and residuals.

Indicator v6 TrendVolatility & bands
Updated 3 months ago · None stated GitHub repository of Smooth Theil-Sen

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