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

Breakout AVAAI (TV mirror)

by tarasprystavskyj
5 stars

Breakout AVAAI is a crypto breakout strategy mirrored from a Python trading platform. It filters potential trades by evaluating ATR relative to close price and measuring momentum over 6-hour and 12-hour lookbacks. Positions are taken when volatility meets user

Strategy v5 BreakoutOscillators & momentum Repaints
Updated 3 months ago · None stated GitHub repository of Breakout AVAAI (TV mirror)
5 stars

This strategy executes long trades when price retests the prior week's low level within a specified tolerance and closes above it. Entries are restricted to configurable UTC trading hours, excluding Mondays and late Friday sessions. Stop loss and take profit t

Strategy v5 Support & resistanceSessions & time Repaints
Updated 5 months ago · MIT GitHub repository of WKL v2 — Prior Week Low Retest (Fixed)
5 stars

This indicator identifies long mean-reversion trade opportunities when price stretches significantly below the Volume Weighted Average Price (VWAP). It triggers a signal during regular trading hours when price moves a defined minimum number of ticks below VWAP

Indicator v5 Mean reversionVolume
Updated 5 months ago · Custom licence GitHub repository of Path B — VWAP Reversion (Demo)

SA-TEST 03

by durdenbtc
5 stars

This strategy calculates a 14-period RSI of close and plots it in a separate pane with horizontal lines at 30 and 70. It opens a long when RSI crosses above the oversold level and closes that long when RSI crosses below the overbought level. There are no short

Strategy v6 Oscillators & momentumMean reversion Repaints
Updated 5 months ago · MIT GitHub repository of SA-TEST 03
5 stars

This indicator calculates and plots virtual daily candlestick OHLC values shifted forward by several hours relative to the current time. By aggregating four-hour bar data from higher-timeframe requests, it constructs custom 24-hour periods and renders them as

Indicator v6 Candlestick patternsSessions & time
Updated 7 months ago · MIT GitHub repository of Day Candle Closed Hour(s) Ago

Double Smoothed Stochastic

by SiegerTerpstra
5 stars

This indicator calculates the Double Smoothed Stochastic oscillator and plots it in a separate pane below the price chart. It applies dual exponential smoothing to stochastic values to filter market noise while tracking momentum changes. Rising and falling val

Indicator v6 Oscillators & momentumMoving averages
Updated 9 months ago · None stated GitHub repository of Double Smoothed Stochastic

MACD+RSI

by Ahmed-GoCode
5 stars

This indicator plots a MACD line, signal line, and histogram together with a scaled RSI in a separate pane. MACD is the difference of fast and slow moving averages of the source, with an optional simple moving average instead of an exponential moving average f

Indicator v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of MACD+RSI

ZigZag

by rubystar0512
5 stars

This library calculates ZigZag pivots and draws connecting lines on the price chart. It changes direction when price moves beyond a percentage deviation after a set pivot depth, then stores each pivot with optional labels for reversal price, cumulative volume,

Library v5 Support & resistance
Updated 2 years ago · None stated GitHub repository of ZigZag

HTF Raid Indicator

by jerryinyang
5 stars

HTF Raid Indicator plots higher timeframe candle overlay boxes and tracks liquidity raids directly on the price chart. It calculates higher timeframe open, high, low, and close values using a custom tracking function and renders the higher timeframe candles us

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 years ago · None stated GitHub repository of HTF Raid Indicator

RSI + Stoch RSI

by mjkid221
5 stars

This indicator combines the standard Relative Strength Index (RSI) and the Stochastic RSI oscillator into a single pane. It calculates and plots the baseline RSI line along with its 70 and 30 overbought and oversold thresholds. Simultaneously, it computes the

Indicator v5 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of RSI + Stoch RSI

Custom AAVWAP

by ak2k2
5 stars

Custom AAVWAP is an indicator that automatically calculates and plots three Anchored Volume Weighted Average Price (AVWAP) series directly on the price chart. It locates the highest price, lowest price, and highest volume bars within a user-defined lookback pe

Indicator v5 VolumeSupport & resistance Repaints
Updated 3 years ago · MPL-2.0 GitHub repository of Custom AAVWAP

ADW - Momentum

by ADWilkinson
5 stars

This indicator calculates the Relative Momentum Index (RMI) and plots it in a separate pane alongside a smoothed exponential moving average line. It displays horizontal thresholds for overbought and oversold boundaries, plus a dashed centerline at 50. A colore

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · Custom licence GitHub repository of ADW - Momentum

This strategy draws on the price chart and defines a long setup when the 50-period EMA is above the 200-period EMA, price is above the faster EMA, RSI is below 50, and stochastic %K crosses above %D. Entries use a percentage of equity. Take profit and stop los

Strategy v4 TrendOscillators & momentum
Updated 3 years ago · Apache-2.0 GitHub repository of 2 EMAs + RSI + Stochastic Long Strategy

ICT Time Range

by vitahoang
5 stars

This overlay indicator marks configurable trading sessions and higher-timeframe ranges on the price chart. It draws session boxes with optional high, low, open, and middle lines, labels, and background shading, and it can extend those lines through a chosen ti

Indicator v5 SMC / ICT / price actionSessions & time
Updated 3 years ago · None stated GitHub repository of ICT Time Range
5 stars

This indicator scans price bars for four Pivot Boss candlestick reversal setups and plots markers on the price chart. Extreme reversal compares a trigger bar with average lookback size and body coverage. Outside reversal looks for an engulfing bar larger than

Indicator v4 Candlestick patterns
Updated 3 years ago · None stated GitHub repository of [CP] Pivot Boss Candlestick Scanner
5 stars

Greeffer's Scalping Strategy combines multi-timeframe Exponential Moving Averages, Bollinger Bands, and Donchian Channels to execute dip-buying trades directly on the price chart. It triggers long entries when price dips below both the lower Donchian Channel a

Strategy v5 Moving averagesVolatility & bands
Updated 4 years ago · None stated GitHub repository of Greeffer's Scalping Strategy
5 stars

This indicator calculates smoothed Heikin Ashi and typical price series to identify trend direction and generate directional signals. It derives synthetic Heikin Ashi values and applies multi-layered exponential and triple exponential moving average smoothing

Indicator v4 TrendMoving averages
Updated 5 years ago · MIT GitHub repository of Smoothed Heikin Ashi Signals

RSI+EMA+ST

by sawantuday
5 stars

This strategy overlays a fast EMA, a slow EMA, and a Supertrend line on the price chart. It opens a long when RSI is above 50, the fast EMA is above the slow EMA, and Supertrend direction is bullish, and only after 2010. It closes all positions when the fast E

Strategy v4 TrendOscillators & momentum
Updated 5 years ago · CC0-1.0 GitHub repository of RSI+EMA+ST

This strategy plots five simple moving averages on the price chart and trades crosses of price against the longest signal average. It enters long when the close crosses above the 150-period SMA and enters short when the close crosses below it, but only from th

Strategy v4 TrendMoving averages
Updated 6 years ago · LGPL-3.0 GitHub repository of 150MA Cross BuyAndSell Strategy [d3nv3r]

Antigravity Elite

by eltonaguiar
4 stars

Antigravity Elite is an overlay strategy that switches among seven named engines or auto-detects one, including Connors RSI, EMA stack, Supertrend, volatility-spike reversal, multi-sigma Bollinger reversal, and a weighted consensus. It enters long by default,

Strategy v6 TrendOscillators & momentum
Updated yesterday · None stated GitHub repository of Antigravity Elite

BB Remix

by InNoobWeTrust
4 stars

This indicator plots a quadruple Bollinger Band overlay on the price chart by combining fast and slow period lengths with inner and outer standard deviation multipliers. It calculates average upper and lower band boundaries, tracks band directional momentum, a

Indicator v6 Volatility & bandsTrend
Updated yesterday · None stated GitHub repository of BB Remix
4 stars

This indicator calculates a short RSI and treats a cross above or below a center level as a raw buy or sell. On the live bar it sends alerts that mark the signal active, cancel it, or confirm it when the bar closes, and it increments a revision each time the s

Indicator v6 Oscillators & momentum Repaints
Updated 2 days ago · MIT GitHub repository of OptionX Noisy Test Lifecycle
4 stars

This strategy executes trades on 5-minute index futures using Exponential Moving Averages, RSI, ADX, and volume filters across multiple timeframes. It supports trend pullback and VWAP reversion regimes with entry confirmation on breakout of prior high or low p

Strategy v6 TrendMean reversion
Updated 2 days ago · None stated GitHub repository of Lucid 100K Prop Bot (MES 5m)

Donchian Breakout

by latentwill
4 stars

This strategy enters long when the close is above an exponential moving average and RSI is above a threshold, and enters short when the close is below that average and RSI is below the threshold. A bearish signal also closes an open long. Exits use the stop an

Strategy v5 BreakoutOscillators & momentum Repaints
Updated 7 days ago · None stated GitHub repository of Donchian Breakout
4 stars

This strategy plots a fast and a slow simple moving average on the price chart and trades long only. It enters when the fast average crosses above the slow average and closes the position when the fast average crosses back below. There is no stop loss or take

Strategy v6 TrendMoving averages
Updated 2 weeks ago · MIT GitHub repository of SMA cross + TokIO check
4 stars

This indicator calculates and plots predicted future Bollinger Bands mid, upper, and lower lines for 300 bars ahead using linear extrapolation. It draws these prediction lines in a separate pane below the price chart. Users can adjust the prediction horizon in

Indicator v6 Volatility & bandsMoving averages Repaints
Updated 2 weeks ago · MIT GitHub repository of GOM BB Prediction (300 bars)
4 stars

JoppanFX | Forex Sessions highlights four major global trading sessions—Sydney, Tokyo, London, and New York—directly on the price chart. The indicator calculates active market hours by converting time into each region's specific IANA timezone, ensuring automat

Indicator v6 Sessions & time
Updated 3 weeks ago · None stated GitHub repository of JoppanFX | Forex Sessions
4 stars

Meridian Futures Levels plots session structure for US index futures on the price chart. It marks the full futures session, overnight high and low, an optional overnight midpoint, and the regular-trading-hours open. It draws a configurable opening range with m

Indicator v6 Sessions & timeSupport & resistance
Updated 7 weeks ago · MPL-2.0 GitHub repository of Meridian - Futures Levels

Alert Examples

by trugurpala
4 stars

This indicator calculates fast and slow exponential moving averages along with RSI for detecting crossovers and overbought/oversold conditions. It plots the two EMAs on the price chart with dynamic coloring and displays triangle shapes on crossovers. Bullish c

Indicator v6 TrendOscillators & momentum
Updated 2 months ago · MIT GitHub repository of Alert Examples

This indicator calculates a smoothed, volume-weighted MACD oscillator displayed in a separate pane. It offers several moving average algorithms, including Ehlers SuperSmoother, DEMA, TEMA, RMA, and standard EMA, alongside an optional volume scaling factor to d

Indicator v6 Oscillators & momentumDivergence
Updated 4 months ago · MPL-2.0 GitHub repository of MACD Integration for GemHunter (Smoothed)

Confluence Pivot Zones [FEELS]

by VolodymyrFilias
4 stars

Confluence Pivot Zones identifies recent high and low swing pivots and clusters nearby levels into support and resistance zones based on ATR distance. It scores these confluence zones by strength and volume details while filtering out zones that do not meet th

Indicator v6 Support & resistance
Updated 4 months ago · MIT GitHub repository of Confluence Pivot Zones [FEELS]

Hedge Fund SMC Strategy - QuantAlgo

by thesenegalesehitch
4 stars

This overlay strategy combines EMA trend following with simple Smart Money Concepts filters. It reads H4 and H1 bias, then looks for a liquidity sweep plus a displacement candle in that direction, gated by ADX, ATR, and volume. Entries are allowed only in Lond

Strategy v6 SMC / ICT / price actionTrend Repaints
Updated 4 months ago · Custom licence GitHub repository of Hedge Fund SMC Strategy - QuantAlgo

DCA Long Nonstop

by Jaden300
4 stars

DCA Long Nonstop runs a perpetual dollar-cost averaging ladder on any ticker. It opens a base order at market entry then adds safety orders when price drops soStep percent below the base price, with each subsequent safety order sized larger by 5 percent. When

Strategy v6 Mean reversion
Updated 5 months ago · None stated GitHub repository of DCA Long Nonstop
4 stars

This strategy executes trend-following trades based on exponential moving average crossovers filtered by a daily trend baseline. It calculates a fast EMA and a slow EMA alongside a daily 200 EMA fetched from a daily timeframe. When the fast EMA crosses above t

Strategy v5 TrendMoving averages
Updated 6 months ago · MIT GitHub repository of EMA Crossover 21/50 + Daily Filter
4 stars

This strategy draws on the price chart and is set up for daily ETF trading. It can enter through a classic surge-and-consolidation breakout, a pullback toward stacked EMAs, a relative-volume spike with price momentum, or a pause inside a strong trend. EMA leng

Strategy v6 BreakoutTrend
Updated 7 months ago · None stated GitHub repository of Qullamaggie Breakout Strategy

PVA Volume

by soko8
4 stars

PVA Volume is a custom volume histogram indicator designed for Price Volume Analysis. It calculates a 10-period average volume and tracks the peak volume-to-price spread over the past 10 bars. The script colors the volume columns to reflect trading activity: l

Indicator v5 Volume
Updated 9 months ago · None stated GitHub repository of PVA Volume

KDJ Indicator

by YooooungLee
4 stars

This indicator calculates the standard KDJ oscillator lines using the raw stochastic value (RSV) smoothed with exponential moving averages. It plots the K, D, and J lines alongside horizontal overbought (80) and oversold (20) levels in a separate pane. The scr

Indicator v6 Oscillators & momentumDivergence
Updated 10 months ago · Apache-2.0 GitHub repository of KDJ Indicator
4 stars

This indicator calculates a standard Relative Strength Index (RSI) and applies dynamic color schemes and gradient functions to demonstrate custom visual formatting in Pine Script. Users can select preset color palettes like Red-Green, Blue-Orange, or Heat Map,

Indicator v5 Oscillators & momentum
Updated 11 months ago · Custom licence GitHub repository of Color Themes & Gradients [Lab]

This indicator plots a Volatility-Adjusted Momentum Oscillator in a separate pane. It divides the rate of change of close by the average true range, scales the result by 100, and overlays an exponential moving average as a signal line. Horizontal lines and bac

Indicator v6 Oscillators & momentumVolatility & bands
Updated 12 months ago · MIT GitHub repository of Volatility-Adjusted Momentum Oscillator (VAMO)

Chande Kroll Stop

by Hugs-4-Bugs
4 stars

This indicator plots the Chande Kroll Stop on the price chart. It builds a long stop from the lowest low over a lookback plus a multiple of average true range, then takes the lowest of that series over a second window. It builds a short stop from the highest h

Indicator v5 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Chande Kroll Stop

FluidTrades - SMC Lite

by ShabbirHasan1
4 stars

FluidTrades - SMC Lite identifies Smart Money Concepts (SMC) market structure elements directly on the main price chart. It plots supply and demand zones as styled boxes, along with optional zig-zag structure lines and price action labels such as higher highs,

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · Custom licence GitHub repository of FluidTrades - SMC Lite

VT-Lite

by algoboy-kevin
4 stars

VT-Lite is a Pine Script v5 mean-reversion strategy that draws in a separate pane. It sizes equity-percent entries from a short-term EMA and ATR band distance, with a volatility EMA threshold and a choice of close, low, or ATR-band source. It can add reentries

Strategy v5 Mean reversionVolatility & bands
Updated 2 years ago · None stated GitHub repository of VT-Lite

This strategy plots Ichimoku conversion and base lines on the price chart using Donchian midpoints. It detects conversion-base crossovers and classifies the cross, the close, and a 26-bar price lag relative to the displaced cloud. Inputs enable or disable long

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Davids Ichimoku Conversion Base Break

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