Synced with GitHub · updated today

Free TradingView Pine Scripts

8,340 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
8,340 scripts

Modified Momentum QQE-ZigZag

by wynnforthework
2 stars

This indicator blends a modified multi-timeframe RSI and Quantitative Qualitative Estimation (QQE) logic with an ATR-based Supertrend overlay on the price chart. Users can select between Wilders and Cutlers RSI calculations, adjust the multi-timeframe length m

Indicator v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Modified Momentum QQE-ZigZag

Data Panel

by etnt
2 stars

Data Panel calculates and displays fundamental financial metrics and closing range percentages directly on the price chart in an organized table. It requests financial metrics such as basic earnings per share, total revenue, net income, and total equity across

Indicator v5 Screeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of Data Panel

DataCleaner

by Electrified-Trading
2 stars

DataCleaner is a Pine Script utility library providing functions to calculate outlier levels and generate cleaned versions of input data series. It utilizes moving averages and standard deviations to detect extreme statistical deviations, replace outlier value

Library v5
Updated 1 year ago · MPL-2.0 GitHub repository of DataCleaner

Relative Volume

by ryangaraygay
2 stars

Relative Volume calculates an exponential moving average and standard deviation of volume over a user-defined lookback period to identify statistical volume anomalies. When volume exceeds standard deviation thresholds and meets a minimum volume level, the indi

Indicator v5 Volume
Updated 1 year ago · MIT GitHub repository of Relative Volume
2 stars

This indicator highlights buy setups on the chart when price is trending above an exponential moving average and the Relative Strength Index falls within a narrow neutral-to-bullish zone. When the closing price is above the configured EMA and the RSI is betwee

Indicator v5 Moving averagesOscillators & momentum
Updated 2 years ago · None stated GitHub repository of HMD 25 Week EMA and 55% RSI Indicator

HTF Candles & Pivots

by itmakesyousick
2 stars

The HTF Candles & Pivots indicator plots higher timeframe candles alongside traditional pivot points, support and resistance levels on the current price chart. It calculates open, high, low, and close values from a user-selected timeframe and displays them wit

Indicator v5 Candlestick patternsSupport & resistance
Updated 3 years ago · None stated GitHub repository of HTF Candles & Pivots
2 stars

The Moving Average Based Zig Zag indicator computes a smoothed price series with a volume-weighted Hull Moving Average applied to the chosen pivot source, either high-low or open-close. It detects pivot highs and lows on this moving average to construct a conn

Indicator v5 Moving averagesTrend
Updated 3 years ago · None stated GitHub repository of Moving Average Based Zig Zag
2 stars

This strategy serves as a backtesting boilerplate and starter template using normalized price metrics. It calculates normalized high and low values across user-defined lookback periods to establish directional bias and evaluate divergence thresholds. Users can

Strategy v4 TrendOscillators & momentum
Updated 3 years ago · None stated GitHub repository of CBB 2023 Strategy Default

MML Multi Indikator Script

by theupslidedown
2 stars

This strategy plots a range filter and high and low target bands on the price chart, and colors bars from filter direction. Inputs cover a backtest date window, WaveTrend Cipher B channel and average lengths, overbought and oversold levels, divergence threshol

Strategy v4 TrendOscillators & momentum
Updated 3 years ago · None stated GitHub repository of MML Multi Indikator Script
2 stars

This strategy detects large and smaller fractals on the price chart by comparing highs or lows across a configurable number of bars. It tracks recent fractal levels, draws optional retest lines, and marks a retest signal when price returns a set percentage of

Strategy v4 Support & resistanceBreakout
Updated 4 years ago · MIT GitHub repository of Fractals strategy remaster

The script plots the Volume Weighted Average Price on the price chart. It calculates VWAP using a specified source such as hlc3 and an anchor period like Session, Week, Month or Quarter. The main settings control whether to hide the VWAP on daily or weekly tim

Indicator v6 VolumeSupport & resistance
Updated today · Custom licence GitHub repository of Volume Weighted Average Price

This indicator scans the chart for 101 distinct patterns, including single-bar, two-bar, and multi-bar candlestick patterns, classic chart patterns, and harmonic patterns. It features a complex situation context engine for confluence detection and displays a B

Indicator v5 Candlestick patternsSupport & resistance Repaints

Expectancy Lab

by jayadevrana
1 stars

Expectancy Lab plots fast and slow exponential moving averages on the price chart to generate crossover signals. It simulates one trade at a time using an ATR-based stop loss and a risk-to-reward target multiplier. The script tracks historical trade outcomes t

Indicator v6 Moving averagesTrend
Updated 2 days ago · MPL-2.0 GitHub repository of Expectancy Lab

SMC Context Overlay

by skipp-dev
1 stars

SMC Context Overlay ingests context data inputs to render Smart Money Concepts elements directly on the price chart. It visualizes market structure events such as Break of Structure (BOS), Change of Character (CHOCH), support and resistance levels, as well as

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 days ago · None stated GitHub repository of SMC Context Overlay

Drawing Visual Noise Geometry

by pineforge-4pass
1 stars

This strategy plots a 14-period simple moving average as a chart line and fills the space between two overlapping lines. It creates a small label on each bar, then overwrites the label text. It enters one long contract when close crosses above the line level a

Strategy v6 TrendMoving averages
Updated 5 days ago · Apache-2.0 GitHub repository of Drawing Visual Noise Geometry

Limit Verification Probe R2

by GammaExpansion
1 stars

This strategy probes limit order verification across four modes in a cycling pattern. It opens positions using resting limits, marketable limits, stop-limits, or exit limits with an offset. The script runs cycles to verify order behavior and plots probe values

Strategy v6 Screeners & dashboardsSupport & resistance
Updated 5 days ago · MIT GitHub repository of Limit Verification Probe R2

TorkEma

by engtuncay
1 stars

This indicator calculates and plots a standard exponential moving average (EMA) directly on the main price chart. Users can customize the calculation period length and the input price source. The script renders a single orange line overlaying price action to a

Indicator v5 Moving averagesTrend
Updated 5 days ago · None stated GitHub repository of TorkEma

Volume Breakout Strategy

by kanylbullen
1 stars

This strategy identifies breakouts using Keltner Channels combined with volume spike filters, ADX trend strength, RSI thresholds, and an optional EMA trend direction filter. It triggers long entries when price crosses above the upper channel and short entries

Strategy v5 BreakoutTrend Repaints
Updated 6 days ago · None stated GitHub repository of Volume Breakout Strategy
1 stars

DEPV2 B1 Seviyeler calculates and plots key high-timeframe price levels across weekly, monthly, and yearly periods. For each period, it tracks the current open, high, and low, along with the previous period's high, low, and close values. The indicator uses cus

Indicator v6 Support & resistance
Updated 11 days ago · None stated GitHub repository of DEPV2 B1 Seviyeler (W/M/Y)

This indicator scans and ranks a custom watchlist of up to nine symbols alongside a benchmark reference symbol by daily ATR percentage. It computes the Average True Range as a percentage of the close using daily timeframe security calls without lookahead bias.

Indicator v6 Screeners & dashboardsVolatility & bands
Updated 12 days ago · MPL-2.0 GitHub repository of Taught to Trade — Volatility Scanner (ATR%)

Bmoon System Signals

by morindok
1 stars

Bmoon System Signals is a fractal-based mirror indicator that overlays on the price chart. It calculates mirrored price levels using two user-defined mirror levels (P1 and P2) with options for logarithmic or arithmetic mirroring. The indicator detects multi-ba

Indicator v6 Support & resistanceTrend
Updated 7 weeks ago · None stated GitHub repository of Bmoon System Signals

MM Trap Pro

by Alaamo7
1 stars

MM Trap Pro is an overlay indicator that detects volume-backed bull and bear trap patterns on the price chart. It calculates a simple moving average of volume and identifies high-volume candles with significant body percentages that fail to break previous high

Indicator v6 VolumeCandlestick patterns
Updated 2 months ago · Custom licence GitHub repository of MM Trap Pro

Squeeze2backtester

by GreyssonEnterprises
1 stars

Squeeze2backtester is an indicator-based backtester that identifies volatility squeezes by comparing Bollinger Bands with Keltner Channels. It simulates trade executions directly on the price chart, tracking entry prices, stop-loss thresholds, breakeven levels

Indicator v4 Volatility & bandsBreakout Repaints
Updated 2 months ago · MIT GitHub repository of Squeeze2backtester
1 stars

This strategy executes trades based on Triangular Moving Average (TMA) crossings, Support and Resistance filters (such as Daily Pivots, Anchored VWAP, and 5-day moving averages), and volume or percentage gain criteria. Exits are driven by specific session time

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

Strategy Template

by mrdungx2603
1 stars

This is a Pine Script v6 strategy template that sets up a trading strategy drawing on the price chart. It includes inputs for data source, fast and slow length parameters, take profit and stop loss percentages, and a time-based trading session filter. The stra

Strategy v6 Moving averagesTrend
Updated 4 months ago · None stated GitHub repository of Strategy Template

KLSE Trend Template

by kevinesk
1 stars

This indicator evaluates Mark Minervini's Trend Template criteria directly on the price chart. It checks eight technical conditions based on 21, 50, 150, and 200-period exponential moving averages, alongside 52-week (260-bar) highs and lows. The script plots t

Indicator v5 TrendMoving averages
Updated 4 months ago · None stated GitHub repository of KLSE Trend Template

While Loop Counter

by Snappni
1 stars

This strategy sums the last len closing prices using a while loop then divides by len to obtain an average. It enters long when close exceeds the average and short when below. Positions close automatically on reversal. No stop loss is applied and entries occur

Strategy v6 Mean reversionTrend
Updated 4 months ago · MIT GitHub repository of While Loop Counter
1 stars

This indicator plots three exponential moving averages and shades London and New York session hours on the price chart. It generates buy and sell signals when the fast EMA crosses the slow EMA in the direction of the 200 EMA trend filter. Entries require confi

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

SQZ+MOM - (Buy/Sell) Indicator

by gabriel-klettur
1 stars

This script calculates squeeze conditions by comparing Bollinger Bands with Keltner Channels and plots linear regression momentum lines directly on the main price chart. It checks whether Bollinger Bands fall inside Keltner Channels to identify volatility sque

Indicator v6 Volatility & bandsOscillators & momentum
Updated 7 months ago · None stated GitHub repository of SQZ+MOM - (Buy/Sell) Indicator
1 stars

This indicator calculates volume distribution across price slices over a lookback period and plots boxes on the price chart to represent high volume nodes. It measures volume in each slice and draws horizontal boxes whose width corresponds to volume intensity,

Indicator v6 VolumeSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of High Volume Nodes (HVN)

Scalper Quick Strike

by Basant1Saini
1 stars

Scalper Quick Strike is a Pine Script strategy that trades on intraday charts using multiple EMAs and Stochastic oscillator. It calculates fast medium and slow EMAs along with a smoothed Stochastic to detect trend alignment and momentum shifts. Long entries tr

Strategy v5 TrendOscillators & momentum
Updated 7 months ago · None stated GitHub repository of Scalper Quick Strike
1 stars

This strategy detects bounces from support and resistance levels using swing pivot highs and lows. It waits for the price to touch an identified pivot level within a user-defined percentage tolerance and confirms an entry when a rejection candlestick forms, ch

Strategy v5 Support & resistanceCandlestick patterns
Updated 8 months ago · None stated GitHub repository of Springboard Algo (S/R Bounce)

ES Professional Fade

by knectardev
1 stars

The ES Professional Fade strategy trades overnight price gaps during regular trading hours on intraday charts. It establishes an opening range and enters counter-trend positions when price fails near overnight extremes. Positions target the previous day's clos

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

This indicator plots a custom MACD oscillator directly on the main price chart while incorporating multi-depth Zigzag pattern detection. It supports four MACD calculation modes—Traditional, AS Histogram, Leader, and Source—with customizable fast, slow, and sig

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

Screener Template

by NakliTechie
1 stars

This template indicator provides a baseline framework for building custom Pine Script market screeners. It sets up a standard configurable length parameter and offers structured comment blocks for adding calculations, filtering conditions, and outputs. Designe

Indicator v5 Screeners & dashboards
Updated 1 year ago · MIT GitHub repository of Screener Template

[Z] Moving Average

by zhuzp98
1 stars

This indicator calculates and plots eight separate moving averages directly on the price chart. It provides seven Simple Moving Averages with default periods of 5, 10, 20, 30, 60, 120, and 200, alongside one 20-period Exponential Moving Average. Each moving av

Indicator v5 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of [Z] Moving Average

Hello world

by fiji-solutions
1 stars

This indicator demonstrates custom user-defined functions in Pine Script v5 and plots their results in a separate pane. It defines a one-line addition function, a multi-line function that multiplies two numbers and then scales the product by a fixed multiplier

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

This indicator calculates a stochastic momentum reading in a separate pane. It compares the close with the midpoint of the highest high and lowest low over a percent-K lookback, then smooths that relative range with nested exponential moving averages using the

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

This indicator plots Stochastic RSI %K and %D lines over the price chart. It detects bullish and bearish divergences by comparing price highs and lows to those of Stochastic RSI within a lookback period. Users set divergence range (short, medium, long), price

Indicator v4 Oscillators & momentumTrend Repaints
Updated 3 years ago · Apache-2.0 GitHub repository of Stochastic RSI Divergence+

Detrending Plot

by JohnsonHsiao
1 stars

This indicator calculates the difference between the current closing price and historical closing prices across six selectable lookback periods. It plots each detrended series in a distinct color along with a zero baseline in a separate indicator pane. Users c

Indicator v5 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of Detrending Plot

YFI XBT Binance 1m

by tseitz
1 stars

This strategy plots a close VWAP and percentage-offset high and low VWAP bands on the price chart. It enters long when the bar opens above the high band, optionally only on a green candle, and short when the bar opens below the low band, optionally only on a r

Strategy v4 VolumeBreakout Repaints
Updated 4 years ago · None stated GitHub repository of YFI XBT Binance 1m
948 stars

This indicator plots a Sharp Modified Moving Average on the price chart. It calculates the line as three times a weighted moving average minus twice a simple moving average of the selected source. The line turns green when it rises and pink when it falls. Opti

Indicator v6 Moving averages
Updated 10 days ago · GPL-3.0 GitHub repository of Sharp Modified Moving Average
575 stars

This overlay indicator scans a pasted list of symbols for ICT liquidity sweep patterns using prior swing sweeps. The screening method looks back one, two, or three swings and can list long and short signals in a results table with adjustable rows, position, an

Indicator v5 SMC / ICT / price actionScreeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Liquidity Sweep Pattern Scanner
330 stars

This indicator plots candle range and open-to-close movement as percentages in a separate pane. Range is the high-low difference divided by the low, and change is the close-open difference divided by the open. Both series draw as columns. Teal columns show ran

Indicator v5 Volatility & bands
Updated 2 months ago · None stated GitHub repository of Percent & Volatility [Alorse]

Vol Box

by namuan
318 stars

Calculates realized volatility by smoothing squared log returns with an exponential moving average annualized by periods per year. It projects expected upper and lower price boundaries across a user-defined forward horizon, plotting them as step lines or displ

Indicator v5 Volatility & bands
Updated 2 months ago · MIT GitHub repository of Vol Box

8473-Tracker

by Allen1212
303 stars

8473-Tracker visualizes historical buying and selling transactions executed by ARK Invest funds for specific stock holdings. It plots green buy labels below price bars and red sell labels above price bars on specific historical trade dates. An input setting al

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

Color Triangular Gradient

by ricardosantos79
261 stars

This script defines a helper function to generate colors via triangular interpolation using TradingView's color.from_gradient. The function blends between minimum, mid, and maximum color points based on an input value. It applies the function to the RSI indica

Indicator v5 Support & resistance
Updated 4 years ago · None stated GitHub repository of Color Triangular Gradient

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