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

This indicator evaluates and scores trade signal quality using a four-layer filtering process drawn directly on the main chart. It evaluates volume spikes against a moving average, higher-timeframe EMA trend alignment, price breaches beyond ATR volatility band

Indicator v6 Volatility & bandsVolume Repaints
Updated 2 months ago · None stated GitHub repository of TeleNexus Fakeout Signal Quality

Reload Ranger Indicator

by GreyssonEnterprises
1 stars

An indicator that looks for reversal setups inside a Fibonacci retracement zone, defaulting to 61.8 to 78.6 percent with a sweet spot level, measured from a higher timeframe. It combines W and M pattern matching with Williams %R, MACD, RSI and an OBV EMA, and

Indicator v5 Support & resistanceOscillators & momentum Repaints
Updated 2 months ago · MIT GitHub repository of Reload Ranger Indicator

Zig Zag Channels

by VVASILEVSS
1 stars

A Pine v4 overlay that draws a zig-zag between swing highs and lows found with a highest and lowest close test over a set length, default 100. For each leg it adds dotted upper and lower channel lines offset by the largest deviation of price from the leg, and

Indicator v4 Support & resistanceTrend Repaints
Updated 3 months ago · None stated GitHub repository of Zig Zag Channels
1 stars

This is a trimmed version of the Quantum Flow gold indicator that draws smart money zones on the price chart: order blocks, breakers, liquidity pools, equal high and low sweeps and break of structure retests. Signals pass through a hard bias gate, a chop gate,

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of Quantum Flow v20 Streamlined

Kalman Trend Levels

by tthanhvu002sgu
1 stars

Applies two Kalman filters, a short one at 50 bars and a long one at 150 by default, to closing price on the price chart. Trend turns up when the short filter is above the long one and down in the opposite case. Labels mark each turn with the close, and boxes

Indicator v5 TrendSupport & resistance
Updated 3 months ago · None stated GitHub repository of Kalman Trend Levels

STT SR TMA Scale Plan

by majohnst
1 stars

The STT SR TMA Scale Plan is an intraday trading strategy that overlays price charts to execute trades based on Triangular Moving Average (TMA) crossings, VWAP breakouts, and support/resistance levels like daily pivots or Anchored VWAP. Entries are restricted

Strategy v6 TrendMoving averages
Updated 4 months ago · None stated GitHub repository of STT SR TMA Scale Plan

Tên Indicator

by mrdungx2603
1 stars

This script provides a standardized boilerplate template for developing Pine Script version 6 indicators rendered directly on the price chart. It establishes input configurations for data source selection, period length, and visual signal toggling. The file is

Indicator v6
Updated 4 months ago · None stated GitHub repository of Tên Indicator

Supertrend

by riegodavid-git
1 stars

An overlay port of the classic Supertrend indicator. It builds upper and lower bands from a price source, by default hl2, plus or minus an ATR multiple, and flips the trend when the close crosses the opposite band. A green line is drawn under price in an uptre

Indicator v6 TrendVolatility & bands
Updated 4 months ago · None stated GitHub repository of Supertrend
1 stars

This strategy identifies breakout opportunities in Bursa Malaysia stocks using a slow EMA trend filter where price exceeds the 150-period EMA and the slow EMA is above its 150 EMA. It plots fast and slow EMAs on the price chart. Entry occurs on a new 20-day hi

Strategy v5 BreakoutMoving averages
Updated 4 months ago · None stated GitHub repository of KLSE VCP Breakout Backtest

MACD

by rubbermetal
1 stars

MACD is a standard moving average convergence divergence oscillator in a separate pane. It shows the MACD line, a signal line that can use EMA or SMA smoothing, and a histogram colored in four shades for rising and falling momentum above or below zero. Optiona

Indicator v6 Oscillators & momentumDivergence
Updated 4 months ago · MPL-2.0 GitHub repository of MACD
1 stars

This strategy plots a volume-weighted moving average, a Hull moving average, and a linear regression on the price chart. It enters long when the Hull average crosses above the volume-weighted average while stochastic is above 50, on-balance volume is rising, m

Strategy v5 TrendOscillators & momentum
Updated 4 months ago · MIT GitHub repository of Advanced Indicator Suite

MTF RSI Confluence

by shubhamtaywade82
1 stars

A strategy that scores RSI across four timeframes, with weights falling from the chart timeframe to the 4-hour, and adds or subtracts points for RSI divergence at recent pivots. It enters long when the score rises above a threshold and short when it falls belo

Strategy v6 Oscillators & momentumDivergence Archived
Updated 5 months ago · None stated GitHub repository of MTF RSI Confluence

Talons Supertrend + ADX

by muammeryldrm42
1 stars

A strategy that trades Supertrend direction flips when ADX is above a threshold. A flip to uptrend with strong ADX opens a long, and a flip to downtrend opens a short, one position at a time. The Supertrend line is the initial stop and the take profit is 2.5 t

Strategy v5 TrendVolatility & bands
Updated 5 months ago · None stated GitHub repository of Talons Supertrend + ADX

An overlay toolkit for crypto charts combining a volume profile, anchored VWAP, optional EMA lines, a higher-timeframe EMA bias and an order flow proxy from lower-timeframe delta, relative volume and cumulative delta, with price action checks from swing pivots

Indicator v6 VolumeSupport & resistance
Updated 5 months ago · MIT GitHub repository of Crypto AMT Toolkit v7.3 Auto Performance
1 stars

This intraday trading strategy combines fast, slow, and trend exponential moving averages with MACD, RSI, and ADX filters to generate trade signals during active trading sessions. It enters long positions when the fast EMA crosses above the slow EMA above the

Strategy v6 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Señales Intradía EMA + MACD v3
1 stars

Plots a standard 14-period RSI in a separate pane with 30, 50 and 70 reference lines and detects divergence between RSI and price. It compares confirmed pivot lows and highs of the RSI against price over a minimum and maximum bar range. Regular bullish and bea

Indicator v6 Oscillators & momentumDivergence
Updated 6 months ago · None stated GitHub repository of RSI Divergence Indicator
1 stars

This compact indicator labels Elliott Wave counts on the price chart. It runs a zig-zag at several depths, chooses the depth that gives the best fit, and applies Elliott Wave rules, with a strict mode that forces an A-B-C count when the rules break. A correcti

Indicator v6 Support & resistance Repaints
Updated 6 months ago · None stated GitHub repository of Mini Elliott Wave 2026-2
1 stars

An indicator on the price chart that draws a Supertrend-style band around a Kalman-type smoothed price. The Hurst exponent, estimated by variance scaling over a lookback, adjusts both the smoother gain and the ATR multiplier, so the band widens in choppy condi

Indicator v6 TrendVolatility & bands
Updated 6 months ago · None stated GitHub repository of Hurst Exponent Adaptive Supertrend
1 stars

A separate-pane indicator that ranks up to ten user-chosen symbols, preloaded with Chinese-listed ETFs for gold, Nasdaq and other indices, by daily momentum and tracks a rotation into the top few, with the count adjustable. An optional market filter compares a

Indicator v6 Oscillators & momentumScreeners & dashboards Repaints
Updated 7 months ago · None stated GitHub repository of ETF Rotation (Daily Momentum)

Stochastic Final Version

by gabriel-klettur
1 stars

This strategy combines Exponential Moving Averages and a Stochastic Oscillator to generate trading signals directly on the main price chart. Long positions enter when %K crosses above %D below an oversold threshold of 40, exiting on a crossunder above an overb

Strategy v6 Oscillators & momentumMoving averages
Updated 7 months ago · None stated GitHub repository of Stochastic Final Version
1 stars

An indicator for four-hour charts that looks for a sharp drop followed by a slow, controlled recovery, treated as a rounded bottom, and the inverse for a rounded top. Window lengths, minimum percentage moves, a directional-bar ratio and a daily EMA direction f

Indicator v5 Mean reversionVolatility & bands
Updated 7 months ago · None stated GitHub repository of V8 Fast Rounded Bottom/Top Catcher
1 stars

Slow & Steady is a swing trading strategy that identifies trend direction using aligned EMAs of 50, 100, and 200 periods. It generates buy and sell signals when the MACD line crosses its signal line within a confirmed trend, filtered by ADX strength. Entries c

Strategy v5 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of Slow & Steady - Swing Strategy
1 stars

The Fractal Breakout Strategy identifies key market turning points using a five-bar Williams Fractal pattern. It tracks confirmed high and low fractal levels without repainting to serve as potential breakout entry triggers. When a breakout occurs, trades are e

Strategy v5 BreakoutSupport & resistance
Updated 8 months ago · None stated GitHub repository of Fractal Breakout Strategy (FB Algo)

QQQ Gamma (7DTE)

by Juice-zhi
1 stars

A price-chart overlay that draws a static set of options gamma levels for QQQ (the Nasdaq-100 ETF) expiring in seven days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated 2026-02-04, produced offline fro

Indicator v5 Support & resistance
Updated 8 months ago · None stated GitHub repository of QQQ Gamma (7DTE)
1 stars

A small overlay indicator that tracks buy-side and sell-side liquidity as the highest high and lowest low over a lookback window. When a bar makes a new extreme, it updates a step-line level and places a BSL label above a new high or an SSL label below a new l

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 9 months ago · None stated GitHub repository of BSL & SSL - Liquidity Zones

4x4 Futures Ghost Matrix

by knectardev
1 stars

This indicator generates intraday trading signals by combining dual-sigma standard deviation bands, Heikin Ashi candle vectors, and a four-bar confluence score. It triggers long and short signals during defined trading sessions using either mean-reversion boun

Indicator v5 Volatility & bandsMean reversion
Updated 9 months ago · None stated GitHub repository of 4x4 Futures Ghost Matrix
1 stars

This indicator calculates custom moving average convergence divergence values using selectable calculation methods, fast and slow lengths, source prices, and signal smoothing types. It plots an oscillator on the price chart with customizable vertical placement

Indicator v5 Oscillators & momentumMoving averages Repaints
Updated 9 months ago · None stated GitHub repository of MACD-X Overlay, More Than MACD
1 stars

Marks trend changes on the price chart using price against 20 and 50 period simple moving averages. A bullish trend needs the close above both and a bearish trend below both. A strict alternating rule allows a buy only after a sell and the reverse, so signals

Indicator v6 TrendMoving averages
Updated 9 months ago · None stated GitHub repository of RAPF v6.6 [Strict No-Repeat]

Hull Suite by InSilico

by turnupdigital
1 stars

An indicator that plots a Hull moving average on the price chart, with a choice of Hma, Thma or Ehma variants and an adjustable length and multiplier. The current value and the value two bars back form a band that is filled and coloured by trend direction, and

Indicator v6 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of Hull Suite by InSilico

TeeLek Hedging Ribbon

by theteelek
1 stars

An overlay indicator with no settings that draws coloured Hull moving average lines taken from 2-hour and 30-minute data, smoothed with EMAs. Lines turn grey, green or red depending on slope and on their position against a long-term floor derived from a 600-ba

Indicator v6 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of TeeLek Hedging Ribbon
1 stars

Despite its name, this strategy does not build a volume profile. It flags bars where volume exceeds a moving average of volume times a threshold, then goes long when the close is also above a 20-period simple moving average and the close of the oldest bar in t

Strategy v5 VolumeTrend
Updated 1 year ago · None stated GitHub repository of Volume Profile Strategy

TSI Two

by munlit
1 stars

A separate-pane True Strength Index indicator with fast and slow parameter sets, selectable by a speed input. It offers colour themes, optional overbought and oversold lines, crossing markers and a middle line, and colour inputs for the line and signal. Separa

Indicator v5 Oscillators & momentum
Updated 1 year ago · None stated GitHub repository of TSI Two

ta

by ivansoft
1 stars

A Pine Script v6 library of technical analysis functions that are not built into the language. It exports many indicators, including Awesome Oscillator, Aroon, Donchian Channel, Ichimoku Cloud, SuperTrend, Klinger Volume Oscillator, Schaff Trend Cycle, Vortex,

Library v6
Updated 1 year ago · None stated GitHub repository of ta
1 stars

A strategy that mixes a Stochastic Momentum Index, an EMA pair and MACD histogram conditions. In the visible code it opens long trades when the MACD histogram crosses above zero with price over a 20-period EMA, and closes them on the opposite cross, with stop

Strategy v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of SMI-MA Short Strategy

Hello world

by fiji-solutions
1 stars

This indicator plots the closing price of the asset. It is a basic example written in Pine Script v5 that displays the close value. The plot is configured to appear in a separate pane. No input settings are available and no trading signals or calculations are

Indicator v5
Updated 2 years ago · None stated GitHub repository of Hello world
1 stars

A separate-pane histogram that shows a fast trend above zero and a slow trend below zero, each as colored bars. The fast trend uses 21, 55 and 89 period simple averages and the slow trend uses 3, 8 and 20 period averages. Green means a bullish stack, yellow a

Indicator v5 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of Trend Histogram (Fast and Slow)

Super Trend + MACD

by akash-yellgetti
1 stars

A strategy script that combines a custom ATR-based Supertrend calculation with MACD line and signal crossovers. It draws green triangles for MACD bullish crosses, red triangles for bearish crosses, and separate triangles for the Supertrend direction on the pri

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Super Trend + MACD
1 stars

This indicator draws a stochastic momentum oscillator in a separate pane. It measures how far the close sits from the midpoint of the highest high and lowest low over the Percent K length, then double-smooths that relative distance and the full range with nest

Indicator v4 Oscillators & momentum
Updated 2 years ago · None stated GitHub repository of UCS Stochastic Momentum Index

Hello World

by RobACurtis
1 stars

A beginner example that writes a short greeting on the price chart one letter at a time, using plotchar on the last bar only. Settings choose the horizontal offset, the vertical placement (top, bottom, above bar, below bar or absolute) and a colour palette, ei

Indicator v4
Updated 2 years ago · None stated GitHub repository of Hello World

Total Divergence+

by krosenfeld7
1 stars

Total Divergence+ is a price-chart indicator that looks for divergences between price and several oscillators. It can show RSI, Stochastic RSI, Stochastic, ADX, MACD, and Price Volume Trend divergences, each with its own display switch. Lookback lengths set ho

Indicator v4 DivergenceOscillators & momentum
Updated 3 years ago · Apache-2.0 GitHub repository of Total Divergence+
1 stars

A Pine v4 indicator in a separate pane that combines several market breadth and sentiment readings into one smoothed oscillator. It draws on the S&P 500, the VIX, percent-of-stocks-above-average breadth series, a put-call ratio, an RSI and momentum of the inde

Indicator v4 Oscillators & momentumVolatility & bands
Updated 3 years ago · None stated GitHub repository of Tykhe Sentiment Indicator

DMI & ADX

by JohnsonHsiao
1 stars

This indicator computes and plots the Directional Movement Index and Average Directional Index using Pine Script's built-in DMI function. It renders the positive directional indicator (+DI), negative directional indicator (-DI), and the ADX line in a separate

Indicator v5 TrendOscillators & momentum
Updated 3 years ago · None stated GitHub repository of DMI & ADX

SAMA

by rajatjpatel
1 stars

A smoothed moving average drawn on the price chart. Before averaging, each price is clamped inside a narrow standard deviation channel built around a short weighted average, which limits the effect of sharp spikes. The clamped price then goes through two weigh

Indicator v5 Moving averagesTrend
Updated 4 years ago · None stated GitHub repository of SAMA
1 stars

This Pine v4 strategy trades a crossover of a 10-period and a 30-period simple moving average. It enters long on an upward cross when RSI is above 50 and short on a downward cross when RSI is below 50, with a fixed order quantity. Each entry gets a stop loss a

Strategy v4 TrendMoving averages Archived
Updated 4 years ago · None stated GitHub repository of Take Profits and Stop Losses
1 stars

This indicator is a Chandelier Exit style trailing stop, similar to a Supertrend, calculated from Heikin Ashi candles rather than the current chart candles. A long stop trails below the highest recent close and a short stop trails above the lowest, each offset

Indicator v5 TrendVolatility & bands
Updated 4 years ago · None stated GitHub repository of Chandelier Exit Heikin Ashi Signal
1 stars

The EOSBTC EMA Cross Strategy evaluates price action relative to an Exponential Moving Average (EMA) on the main price chart. It enters a long position when a candle opens above the EMA and closes green, and enters a short position when a candle opens below th

Strategy v4 TrendMoving averages
Updated 4 years ago · None stated GitHub repository of EOSBTC EMA Cross Strategy
948 stars

This indicator calculates a moving average where historical prices are weighted according to a sine function over a user-defined length. It plots directly on the price chart, coloring the line based on whether the slope is rising or falling. Optional settings

Indicator v6 Moving averagesTrend
Updated 11 days ago · GPL-3.0 GitHub repository of Sine Weighted Moving Average

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