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

Liquidity Entry Zones

by rosijay17-cmd
1 stars

A liquidity sweep entry tool built as a strategy. It stores recent swing highs and lows as liquidity levels, detects sweeps through them, checks that price reclaims and that the candle meets wick, body and range requirements in pips, then confirms within a sho

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 7 days ago · GPL-3.0 GitHub repository of Liquidity Entry Zones

DEPV2 DEBUG S10

by YuceSezar89
1 stars

Calculates and coordinates trading signals across up to twenty cryptocurrency instruments using four core analytical dimensions: trend, momentum, volatility, and volume. Users can configure signals to trigger from single dimensions, simultaneous multi-factor c

Indicator v6 TrendOscillators & momentum Repaints
Updated 12 days ago · None stated GitHub repository of DEPV2 DEBUG S10

Plots the highest high and lowest low of a lookback window, default 20 bars, plus mirrored levels placed the same distance beyond each extreme, on the price chart. It estimates how much volume traded in the gap between each extreme and its mirror over up to 50

Indicator v6 VolumeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of MTF Symmetrical Gap Volume Colored

True RSI

by vedkanani123
1 stars

A separate-pane oscillator by MisinkoMaster that rebuilds RSI by weighting each bar's gain and loss with Aroon up and down values over the lookback, then scaling to a 0 to 100 line. Trend turns long when the value crosses above a long threshold and short below

Indicator v6 Oscillators & momentumTrend
Updated 2 months ago · None stated GitHub repository of True RSI

GitLemon Con

by GreyssonEnterprises
1 stars

An indicator that looks for W and M reversal patterns in price, OBV and Williams %R, with optional MFI, RSI and directional movement, all sharing one maximum width and offset setting. A Fibonacci retracement zone over a 200-bar lookback can be added as a condi

Indicator v4 DivergenceOscillators & momentum
Updated 2 months ago · MIT GitHub repository of GitLemon Con

Crypto Scanner Climax

by rubbermetal
1 stars

A dashboard indicator in a separate pane that reads many measurements for the chart symbol across several timeframes. Columns cover prices, volume, delta and VWAP, oscillators such as RSI, stochastic, CCI and MFI, a quad rotation stochastic status, trend measu

Indicator v5 Screeners & dashboardsOscillators & momentum
Updated 4 months ago · MPL-2.0 GitHub repository of Crypto Scanner Climax
1 stars

This strategy compares a 9-period EMA with a 21-period EMA of the close and uses their difference as a spread. It opens a long when the spread crosses above zero and a short when it crosses below zero, reversing the position through opposite entries. The EMA l

Strategy v5 TrendMoving averages
Updated 4 months ago · MIT GitHub repository of Generic Type Annotation Tuple

Gann Pivot HL 2024 V2

by mikeyhu70
1 stars

This indicator marks pivot swing highs and lows on the price chart and lists their dates in separate tables for highs and lows, with an extra table for seasonal dates. Left and right bar counts set pivot detection, and settings control how many swings are kept

Indicator v5 Support & resistance
Updated 6 months ago · None stated GitHub repository of Gann Pivot HL 2024 V2
1 stars

This strategy overlays price and combines SuperTrend, ADX, OBV, MACD, directional movement, EMA, and a volatility filter to decide long and short entries. Each filter can be switched on or off, and trading starts only after a chosen date. It can close when ena

Strategy v5 TrendOscillators & momentum
Updated 7 months ago · None stated GitHub repository of Percentile_SuperTrend_OBV&DI&EMA
1 stars

A Pine v5 strategy that fades price at VWAP standard deviation bands on the price chart. A long needs the low to reach the lower band with an up candle, and a short needs the high to reach the upper band with a down candle. An optional filter counts how many r

Strategy v5 Mean reversionVolume
Updated 8 months ago · None stated GitHub repository of VWapperAlgo VWAP Bands Strategy

Momentum Breakout

by knectardev
1 stars

This Pine Script strategy detects momentum breakouts on price charts by combining trend momentum signals with a volume filter. It enters trades when price breaks above resistance with volume 1.5 times average, reducing false signals. No specific stop loss or t

Strategy v5 Oscillators & momentumBreakout
Updated 9 months ago · None stated GitHub repository of Momentum Breakout

V5 Combination by YZZ

by webcrack4
1 stars

This indicator combines multiple script features into a single overlay on the main price chart. It calculates a modified MACD line and signal oscillator with configurable modes including traditional, histogram-based, leader, and source-based variations. The os

Indicator v5 TrendOscillators & momentum
Updated 9 months ago · None stated GitHub repository of V5 Combination by YZZ

For In Loop Examples

by ivansoft
1 stars

Teaching script that demonstrates for-in loops in Pine. It counts how many of the open, high, low and close values exceed a 20-bar average of close and plots that count, marks which values of a fixed array are positive with a label on the last confirmed histor

Indicator v6
Updated 1 year ago · None stated GitHub repository of For In Loop Examples
1 stars

An indicator that fits a linear regression line over a chosen number of bars and draws upper and lower deviation channels around it on the price chart. Length, source and the deviation multipliers are adjustable, and lines can be extended left or right. It can

Indicator v5 TrendSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Linear Regression Channel
1 stars

A Pine v4 oscillator in a separate pane. It computes RSI from Wilder-smoothed gains and losses, then averages it with a simple moving average set by a smoothness input. The line turns green when rising for two bars and red otherwise, with reference lines at 30

Indicator v4 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of Smoothness Advanced RSI

Relative Sharpe Ratio

by JohnsonHsiao
1 stars

The Relative Sharpe Ratio indicator calculates risk-adjusted return measures over a user-defined lookback window and plots them in a separate pane. It calculates single-period simple returns, sums them over the period, and divides the sum by the return varianc

Indicator v5 Volatility & bandsOscillators & momentum
Updated 3 years ago · None stated GitHub repository of Relative Sharpe Ratio

MACD 15 min

by tseitz
1 stars

A Pine v4 strategy that pairs a 12/26 MACD and 14-period RSI with rolling highs and lows over a short and a long lookback. Inputs set both lookbacks, take-profit and stop-loss percentages for longs and shorts, and a maximum number of adds. It tracks counts of

Strategy v4 Oscillators & momentumBreakout Repaints
Updated 4 years ago · None stated GitHub repository of MACD 15 min
948 stars

This indicator requests FactSet earnings data for the current symbol and sums daily actual and estimated earnings-per-share values into yearly totals from 1990 through 2030. It draws those yearly figures as columns in a separate pane, using distinct colors for

Indicator v4 Repaints
Updated 11 days ago · GPL-3.0 GitHub repository of Earnings per Share (EPS, Yearly)
330 stars

This strategy plots MACD line, signal line, Bollinger Bands, and RSI on the price chart. It signals long entries on MACD crossover above signal with RSI below 50 and price below BB basis, plus optional DMI filter. Short entries are available but disabled by de

Strategy v5 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of MACD + BB + RSI [Alorse]

AM-tracker

by Allen1212
303 stars

AM-tracker overlays historical ARK Invest transaction records directly onto the price chart for the corresponding stock. It generates visual label markers at specific calendar timestamps indicating dates where ARK funds executed buy or sell orders, along with

Indicator v4
Updated 2 years ago · None stated GitHub repository of AM-tracker

Function: Decision Tree

by ricardosantos79
261 stars

Function: Decision Tree is a technical script that demonstrates probabilistic path selection through a decision tree algorithm using a custom pseudo-random number generator. It initializes weighted node arrays and simulates traversal paths down the tree based

Indicator v5 AI / machine learning
Updated 4 years ago · None stated GitHub repository of Function: Decision Tree

Lux Trailing

by dearvn
257 stars

Plots kernel-smoothed price zones on the price chart using a Rational Quadratic kernel from an imported library. It builds an inner and an outer high-low zone from 15-minute highs and lows, plus a smoothed close and a midline, and marks bullish or bearish bars

Indicator v5 Support & resistanceVolatility & bands Repaints
Updated 6 weeks ago · None stated GitHub repository of Lux Trailing

Market Speedometer

by TradersPost
218 stars

Market Speedometer plots a 0-100 market speed reading in a separate pane. It measures movement by bar-to-bar change, true range, or a short average of recent bars, then ranks that movement against ATR and a percentile lookback. An EMA smooths the reading, and

Indicator v6 Volatility & bandsOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Market Speedometer

Machine Learning: Perceptron-based Strategy is a Pine Script overlay indicator intended to implement a simple perceptron machine learning model for signal generation. However, the author deleted the underlying script logic from the source file, leaving only th

Indicator v4 AI / machine learning
Updated 1 year ago · None stated GitHub repository of Machine Learning: Perceptron-based Strategy
106 stars

This indicator plots an adaptive MACD in a separate pane. It builds the MACD from price changes using fast and slow smoothing factors, then scales the recursion with an R-squared term from the correlation of close and bar index over the R2 period. An EMA of th

Indicator v5 Oscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Adaptive MACD [LuxAlgo]

This indicator calculates the Bill Williams Market Facilitation Index as the high-low range divided by volume, or zero when volume is zero. It compares the index and volume with the previous bar and assigns one of four zones: green for both rising, fade for bo

Indicator v6 VolumeOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Bill Williams Market Facilitation Index

syminfo.* Built-ins

by be-thomas
65 stars

This educational script renders an informational table directly on the price chart to display metadata about the current trading symbol. It retrieves and formats various built-in variables, including base currency, quote currency, symbol description, minimum t

Indicator v5 Screeners & dashboards
Updated 5 days ago · GPL-3.0 GitHub repository of syminfo.* Built-ins
55 stars

This indicator draws dynamic support and resistance trendlines on the price chart. It finds pivot highs and pivot lows with a fixed 15-bar lookback on each side, keeps the last two of each, and on the latest bar connects those highs with a red line and those l

Indicator v5 Support & resistanceTrend
Updated 6 months ago · Apache-2.0 GitHub repository of Auto Dynamic Trendlines

This indicator calculates the Ehlers Trendflex oscillator and plots it in a separate pane. It applies a two-pole SuperSmoother low-pass filter to the chosen source, sums the cumulative slope over the lookback with a running buffer, and divides that slope by an

Indicator v6 Oscillators & momentumTrend
Updated 8 months ago · MIT GitHub repository of Ehlers Trendflex Indicator (TRENDFLEX)

ADR levels

by TamaraKGreen
46 stars

This indicator plots average daily range levels on the price chart, together with optional standard-deviation and Fibonacci levels scaled from that range. Users set the lookback in days, a scale factor, and the visibility, color, and line style of the ADR line

Indicator v5 Support & resistanceVolatility & bands
Updated 7 weeks ago · None stated GitHub repository of ADR levels

Chop Zone

by TWODS-CAPITAL
37 stars

The Chop Zone indicator calculates and visually represents the trend direction and angle of a 34-period Exponential Moving Average (EMA). By measuring normalized EMA slope changes relative to the highest high and lowest low of the recent 30 bars, it maps the a

Indicator v5 TrendVolatility & bands
Updated 3 years ago · MIT GitHub repository of Chop Zone
16 stars

This strategy enters long or short on Donchian channel breakouts and can add units when price moves in the trade direction and RSI confirms momentum. It sizes each unit from a risk percent of equity and exits with an ATR initial stop, a chandelier trail that t

Strategy v6 TrendOscillators & momentum
Updated 12 months ago · None stated GitHub repository of Seykota Alt 32: Momentum + Time

Diverlong F002

by ruckard
13 stars

Diverlong F002 is a price-chart strategy that enters on Squeeze Momentum divergences and exits on Curie closing moving-average lines. A short is taken when a light-green to dark-green squeeze section is smaller while price is higher; a long is taken on the opp

Strategy v5 DivergenceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Diverlong F002
9 stars

Fibonacci Retracement Quality evaluates how accurately price pullbacks align with key Fibonacci levels (0.236, 0.382, 0.5, 0.618, and 0.786) following confirmed swing moves. It filters out noise using ATR and calculates a score from 0 to 100 based on proximity

Indicator v6 Support & resistance
Updated 2 days ago · MIT GitHub repository of Fibonacci Retracement Quality
7 stars

ACCVOL 1j (SMA5 + SMA10) - AD/B is a price chart overlay indicator designed to identify volume accumulation and bullish swing trading setups. It evaluates current bar price gains, volume expansion, and volume relative to a moving average against historical pri

Indicator v6 VolumeMoving averages
Updated 3 months ago · None stated GitHub repository of ACCVOL 1j (SMA5 + SMA10) - AD/B

RSI 3

by suyons
7 stars

This indicator calculates three Relative Strength Index (RSI) oscillators with distinct length settings, defaulting to 14, 28, and 56 periods. It renders the three RSI curves stacked vertically in a separate pane using numerical offsets to prevent line overlap

Indicator v5 Oscillators & momentum
Updated 4 months ago · None stated GitHub repository of RSI 3

3-Candle Time Pattern

by alboogycOdR
6 stars

This indicator detects three-candle time patterns on the price chart, tracking range, manipulation, and distribution phases based on Smart Money Concepts. It establishes high and low boundaries from the opening candle and identifies boundary rejections during

Indicator v5 SMC / ICT / price actionCandlestick patterns
Updated 7 months ago · None stated GitHub repository of 3-Candle Time Pattern

MACD Breakout

by jerryinyang
5 stars

MACD Breakout builds a higher-timeframe MACD from preset fast and slow lengths using SMA or EMA, and marks support and resistance zones from histogram sensitivity. Optional filters require zero-line agreement, higher-timeframe direction, and linear-regression

Indicator v4 Oscillators & momentumMoving averages
Updated 2 years ago · None stated GitHub repository of MACD Breakout
5 stars

This strategy identifies shorting opportunities by calculating Fear and Greed zones based on price extremums relative to moving averages and standard deviation bands. It measures price deviation from recent highs or lows to detect extreme market conditions and

Strategy v4 Volatility & bandsMean reversion
Updated 3 years ago · Apache-2.0 GitHub repository of Fear + Greed Reversal Short Strategy
4 stars

The Simpleton STEPFUN Strategy combines signals from multiple technical indicators including RSI-2, MACD crossover, Bollinger Band squeeze, volume spikes, triple EMA, and Ichimoku cloud. It generates buy signals when the weighted ensemble meets or exceeds the

Strategy v5 Oscillators & momentumVolatility & bands
Updated yesterday · None stated GitHub repository of Simpleton STEPFUN Strategy

Ichimoku [trugurpala]

by trugurpala
4 stars

This indicator plots the standard Ichimoku Kinko Hyo components directly on the price chart. It calculates the Tenkan-sen conversion line, Kijun-sen base line, Chikou Span lagging line, and Senkou Span A and B leading lines. The area between Senkou Span A and

Indicator v6 TrendSupport & resistance
Updated 2 months ago · MIT GitHub repository of Ichimoku [trugurpala]

MACD + ATR13

by jash-git
3 stars

This indicator plots a customized Moving Average Convergence Divergence oscillator combined with an Average True Range line in a separate pane. It calculates fast and slow exponential moving averages alongside a simple moving average signal line, highlighting

Indicator v5 Oscillators & momentumVolatility & bands
Updated 4 weeks ago · None stated GitHub repository of MACD + ATR13
3 stars

This indicator plots horizontal lines representing previous highs, lows, and closes from daily, weekly, monthly, quarterly, and yearly periods on the price chart. These levels serve as potential support and resistance for confluence analysis. Users can toggle

Indicator v5 Support & resistanceScreeners & dashboards
Updated 5 months ago · None stated GitHub repository of CSW Institutional Levels

GainzAlgo V2 [Alpha]

by IAMATOMIC001
3 stars

This indicator detects buy and sell signals on the price chart by combining engulfing candlestick patterns, body-to-range stability ratios, RSI boundaries, and price momentum over ten bars. Confirmed signals trigger visual buy and sell labels directly on candl

Indicator v5 Candlestick patternsOscillators & momentum
Updated 12 months ago · None stated GitHub repository of GainzAlgo V2 [Alpha]

This indicator calculates a multi-period momentum oscillator plotted alongside an Average True Range baseline. It measures momentum across five configurable lookback lengths, weighting each value proportionally by its length so longer horizons exert greater in

Indicator v5 Oscillators & momentumVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Weighted Multi-Resolution Momentum with Volatility

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