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 Array Basic State is a strategy designed to demonstrate state tracking using Pine Script arrays. It calculates a 20-period exponential moving average (EMA) and populates an array with closing prices during the initial bars. The strategy enters a long po

Strategy v5 TrendMoving averages
Updated 4 months ago · MIT GitHub repository of Corpus Array Basic State

Order Blocks Advanced

by shubhamtaywade82
1 stars

Draws order block zones on the price chart in two sets, internal blocks from short pivots and swing blocks from longer pivots, as shaded boxes with optional labels. Candidates can be filtered by ATR or cumulative mean range, and a block is mitigated by either

Indicator v6 SMC / ICT / price actionSupport & resistance Archived
Updated 5 months ago · None stated GitHub repository of Order Blocks Advanced

Talons VWAP + Volume

by muammeryldrm42
1 stars

A strategy that trades crosses of price through VWAP when volume is higher than its 20-bar average by a set multiple. A cross up with a volume spike opens a long and a cross down opens a short, one position at a time. The stop is an ATR multiple from entry and

Strategy v5 VolumeMean reversion
Updated 5 months ago · None stated GitHub repository of Talons VWAP + Volume
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-3

Smart Levels Pro

by Focal-QuantAI
1 stars

An indicator on the price chart that draws previous day, previous week and previous month highs and lows as extended horizontal lines, with choices for colour, style and width. Optional equilibrium lines mark the midpoint of each high and low pair. It also sho

Indicator v6 Support & resistanceSessions & time
Updated 6 months ago · None stated GitHub repository of Smart Levels Pro

M2

by AlanGuo
1 stars

An indicator that adds up M2 money supply for the United States, Europe, China and Japan, each converted to dollars, and plots the total on the chart using a left-hand price scale. Region switches choose which economies are included, and settings add SMA smoot

Indicator v6
Updated 7 months ago · None stated GitHub repository of M2

Hammers and Stochastic Strategy

by gabriel-klettur
1 stars

Hammers and Stochastic Strategy overlays signals on the price chart by combining candlestick pattern detection with the Stochastic oscillator. It identifies standard hammer and inverted hammer candles and validates them with Stochastic oversold and overbought

Strategy v5 Candlestick patternsOscillators & momentum
Updated 7 months ago · None stated GitHub repository of Hammers and Stochastic Strategy

Keltner Hull Suite

by ymlee1104
1 stars

This overlay indicator draws a volume-weighted trend line and ATR bands on the price chart. It marks a bullish or bearish state when close moves outside those bands and keeps the previous state while price stays between them. Users can show a filled cloud or o

Indicator v6 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of Keltner Hull Suite

Chandelier Exit

by Basant1Saini
1 stars

This strategy calculates ATR-based Chandelier Exit bands anchored to highest and lowest price extremes, plotting trailing stop levels directly on the price chart. It enters long or short positions when price crosses opposite bands, subject to an optional 200-p

Strategy v5 TrendVolatility & bands
Updated 7 months ago · None stated GitHub repository of Chandelier Exit

Matrix Scalper Algo

by Tradehook-org
1 stars

A Pine v5 indicator that combines a higher-timeframe trend with a short-term entry on the price chart. The trend is a fast EMA above or below a slow EMA on a chosen higher timeframe, shown as a background color. An entry marks when price crosses a 9-period EMA

Indicator v5 ScalpingTrend Repaints
Updated 8 months ago · None stated GitHub repository of Matrix Scalper Algo

SPX Gamma (DTE:14)

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 fourteen days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated 2026-02-03, produced offline f

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

Order Blocks

by Ahmed1926
1 stars

An overlay indicator that draws bullish and bearish order block boxes using a candle range setting, with breaker source prices selectable. Optional extras include previous day high and low lines, break of structure lines, highlighted breaker candles and retest

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 9 months ago · None stated GitHub repository of Order Blocks
1 stars

This Pine Script indicator calculates and plots support and resistance levels from a selected higher timeframe. It identifies peaks and troughs on the higher timeframe and assigns strength to each level based on a weighted combination of touches, bounces, and

Indicator v5 Support & resistanceVolume
Updated 9 months ago · None stated GitHub repository of OA Destek & Direnç Gücü

Franken-Strength

by anil-sn
1 stars

An oscillator in a separate pane that blends a TMO-style momentum count with a scaled RSI. The TMO part compares the close with a run of earlier opens, smooths the result with selectable EMA, SMA or RMA stages, and plots a main line, a signal line and a colour

Indicator v5 Oscillators & momentum
Updated 9 months ago · None stated GitHub repository of Franken-Strength
1 stars

Teaching script that demonstrates several ways to request data from other symbols and timeframes in Pine. It shows a daily close shifted so it only uses completed daily bars, a daily candle overlay with its 10-period EMA drawn using a tuple request, an array r

Indicator v6
Updated 1 year ago · None stated GitHub repository of Advanced Security Requests

TD Sequential 9/13

by zhuzp98
1 stars

This indicator tracks DeMark's TD Sequential 9 and 13 setup and countdown conditions directly on the price chart. It compares the current close price to the close four bars prior to determine setup counts, switching direction when price crosses. When setup or

Indicator v5 Oscillators & momentumSupport & resistance
Updated 1 year ago · None stated GitHub repository of TD Sequential 9/13

Hello World

by fiji-solutions
1 stars

This indicator plots a background color fill on the price chart to highlight a specific time session. It checks if the current time falls within the user-defined session range and colors the background red when active. The main setting lets users customize the

Indicator v5 Sessions & time
Updated 2 years ago · None stated GitHub repository of Hello World

[e2] Setup

by amico1234
1 stars

Calculates and plots sequential countdown setups similar to DeMark TD Setup, tracking price flips with a configurable lookback and count limit directly on the price chart. It identifies completed counts, perfection, intersections, and multi-setup occurrences s

Indicator v4 Support & resistanceTrend
Updated 2 years ago · None stated GitHub repository of [e2] Setup

Advance VWAP

by nvFede
1 stars

A Pine v4 overlay that calculates a volume-weighted average price which restarts at the beginning of each day, using the typical price by default. The line turns green when rising and red when falling. Two more lines sit two standard deviations of the VWAP ove

Indicator v4 VolumeMean reversion
Updated 3 years ago · None stated GitHub repository of Advance VWAP

Efficiency Ratio

by JohnsonHsiao
1 stars

Efficiency Ratio measures market efficiency and trend strength over a configurable rolling window by dividing net price displacement by the sum of absolute bar-by-bar price changes. It plots the calculated ratio as an oscillator in a separate pane alongside ho

Indicator v5 TrendOscillators & momentum
Updated 3 years ago · None stated GitHub repository of Efficiency Ratio

V Bottom/Top Pattern

by rajatjpatel
1 stars

A strategy that looks for V-shaped reversals using deviation-based pivots from an imported library. A deviation multiplier and depth set how large a move counts as a pivot. After a pivot, the script checks for a first breakout and then a confirmation breakout,

Strategy v5 BreakoutSupport & resistance
Updated 4 years ago · None stated GitHub repository of V Bottom/Top Pattern

ETHUSDT Binance 5m

by tseitz
1 stars

The script calculates multiple offset VWAP lines alongside Doji candle filters to generate trading signals on a five-minute cryptocurrency chart. It identifies bullish entry conditions when non-Doji green candles break above upper VWAP thresholds, and bearish

Strategy v4 Moving averagesCandlestick patterns
Updated 4 years ago · None stated GitHub repository of ETHUSDT Binance 5m
948 stars

The Adaptive Laguerre Filter calculates a smoothed, dynamically adjusted trendline plotted directly on the main price chart. It dynamically adjusts its damping factor (alpha) based on recent price range variations and median percentile calculations over a spec

Indicator v4 TrendMoving averages
Updated 11 days ago · GPL-3.0 GitHub repository of Adaptive Laguerre Filter
575 stars

ICT Mitigation Block Scanner is an overlay indicator that screens a pasted list of symbols for ICT mitigation blocks or retracement conditions. It lists long and short hits in a configurable table and can draw a zig zag with colored boxes on the price chart. U

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

This strategy plots a Supertrend line from ATR length and factor, plus a single EMA, on the price chart. It enters long when Supertrend turns bullish or while the trend is bullish and price crosses back above the EMA below the last entry price. Short entries m

Strategy v5 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of Supertrend + EMA rebound [Alorse]

ACIC-tracker

by Allen1212
303 stars

This indicator plots historical ARK Invest buy and sell labels for ACIC directly on the price chart. It places green buy labels below bars and red sell labels above bars at fixed calendar dates, and marks how many selected funds traded that day with an X count

Indicator v4
Updated 2 years ago · None stated GitHub repository of ACIC-tracker
261 stars

This indicator defines a function that computes a weighted mean of sample values using a matching weight array. It returns zero when the arrays differ in length or are empty, otherwise it divides the sum of each value times its weight by the sum of the weights

Indicator v5
Updated 4 years ago · None stated GitHub repository of Function - Array Average Weighted
257 stars

This strategy is designed for 1-minute S&P 500 futures trading using multi-timeframe data and Fibonacci-weighted standard deviation bands around volume-weighted moving averages. It requests data from multiple higher timeframes without lookahead to prevent repa

Strategy v5 Volatility & bandsMoving averages
Updated 6 weeks ago · None stated GitHub repository of ES - Futures 1M No Repaint Fixed

STRG-Kijun

by harryguiacorn
219 stars

STRG-Kijun is an Ichimoku-based trend-following strategy that generates trading signals when the Kijun-sen (base line) changes slope direction. It plots the standard Ichimoku cloud, baseline, lagging span, and directional signal arrows directly on the price ch

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of STRG-Kijun
219 stars

This indicator marks swing highs on the price chart. It treats a bar as a high when that bar's high equals the highest high across a window of twice the user setting plus one bar, centered on the bar offset by the setting. When the condition is true, it places

Indicator v4 Support & resistance Repaints
Updated 5 years ago · None stated GitHub repository of 教學:尋找高低點3

Debug Panel Template

by TradersPost
218 stars

The Debug Panel Template displays an on-chart information dashboard on the price pane to assist developers in monitoring real-time market data and custom variables. It calculates and shows price changes, bar metrics like wick sizes and total range, volume stat

Indicator v6 Screeners & dashboards
Updated 3 months ago · None stated GitHub repository of Debug Panel Template

Coppock Curve Strategy

by capissimo
114 stars

This study builds a Coppock curve from two rate-of-change readings smoothed by a weighted moving average and marks signals on the price chart. Long entries occur when the curve crosses above zero or a simple moving-average trigger, and short entries occur on t

Indicator v4 Oscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of Coppock Curve Strategy

5212 EMA Strategy

by hasnocool
106 stars

This strategy combines a triple exponential moving average system with a Stochastic RSI oscillator to identify trend-following entry opportunities directly on the price chart. It plots 50, 100, and 200-period EMAs while computing smoothed Stochastic RSI values

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of 5212 EMA Strategy

The indicator calculates the Average Directional Movement Index (ADX) along with +DI and -DI lines to measure trend strength and direction. It plots ADX, +DI and -DI in a separate pane on the chart. The main setting is the period length for smoothing, defaulti

Indicator v6 TrendOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Average Directional Movement Index (ADX)

Example 1

by be-thomas
65 stars

This script is a TradingView documentation example demonstrating how to fill background spaces between plots and horizontal lines in a separate indicator pane. It calculates and plots the sine of the high price, the cosine of the low price, and the sine of the

Indicator v5
Updated 5 days ago · GPL-3.0 GitHub repository of Example 1

Volume Flow Analysis

by iamrichardD
57 stars

This indicator calculates volume moving averages, volume spikes, and price-volume momentum to detect institutional order flow. It plots in a separate pane and generates visual signals for high-volume activity and flow persistence. Key inputs adjust the volume

Indicator v6 VolumeScalping
Updated 1 year ago · Apache-2.0 GitHub repository of Volume Flow Analysis
56 stars

An overlay indicator that plots dynamic trendlines and support/resistance channels on the price chart. It detects pivot high and low points across a configurable lookback period to draw S/R zones and calculate trendline slopes using ATR, standard deviation, or

Indicator v5 Support & resistanceTrend Repaints
Updated 2 months ago · None stated GitHub repository of Trendline Support Resistance 2024

SMA

by dcaoyuan
55 stars

This indicator plots three simple moving averages of the closing price on the price chart. The lengths default to 9, 21, and 36 and are labeled Fast MA, Slow MA, and Slowest MA. Each length can be changed independently through the inputs. It only draws the thr

Indicator v6 Moving averages
Updated 6 months ago · Apache-2.0 GitHub repository of SMA
47 stars

The Convolution Moving Average (CONV) indicator calculates a smoothed price series via FIR convolution with a custom kernel. It plots the CONV value as an overlay line directly on the price chart. The main input allows selecting any source series while the ker

Indicator v6 Moving averagesTrend
Updated 8 months ago · MIT GitHub repository of Convolution Moving Average (CONV)

Session Range Projections

by TamaraKGreen
46 stars

Session Range Projections measures the high-low or open-close range of a user-defined session and projects that range on the price chart. It draws horizontal range and deviation lines, optional range boxes, range extensions, and true standard deviations at sel

Indicator v6 Sessions & timeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Session Range Projections
43 stars

This indicator builds a synthetic Heikin-Ashi series using only the current open and the opens of the previous three bars. It derives open, high, low, and close from those values, rounds each price to the symbol mintick, and plots the result as candles in a se

Indicator v5 Candlestick patterns
Updated 2 years ago · None stated GitHub repository of Heikin-Ashi Open Only

Balance of Power

by TWODS-CAPITAL
37 stars

This indicator plots the Balance of Power of each bar in a separate pane. It calculates the ratio of the close-to-open difference to the high-to-low range and draws that value as a red line. Positive readings mean the close is above the open, and negative read

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Balance of Power

Zen Trading Toolkit

by Zen-Tim
29 stars

The Zen Trading Toolkit calculates and projects key volatility levels, intraday targets, and session statistics on the price chart. It features three main components: ABR-based measured moves projected from the prior day's close and extremes, an opening range

Indicator v6 Support & resistanceVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Zen Trading Toolkit
26 stars

This overlay indicator marks swing highs and swing lows from a user-set pivot lookback and draws each swing as a level and a shaded area. Area size can follow the wick extremity or the full bar range. It counts bars, or accumulated volume, that trade through t

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · AGPL-3.0 GitHub repository of Liquidity Swings [LuxAlgo]

Market Sessions

by benso87
24 stars

This indicator highlights major regional trading sessions directly on the price chart, including Asia, Europe, and America. Users can customize the exact start and stop times in UTC for each region, as well as the background fill colors. Additional settings al

Indicator v5 Sessions & time
Updated 4 years ago · MPL-2.0 GitHub repository of Market Sessions

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