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

This validation strategy evaluates the execution timing of stop loss and take profit orders in Pine Script. It enters a single long position at fixed daily wall-clock times (00:00 and 12:00 UTC) whenever the strategy is flat. Stop loss and limit profit targets

Strategy v6 Volatility & bands
Updated 6 days ago · Apache-2.0 GitHub repository of Parity Probe 01 - Stop/Limit Timing

P_fmt_tabs_mixed

by GammaExpansion
1 stars

P_fmt_tabs_mixed is an indicator that tracks net candle direction by maintaining a running cumulative counter. It increments the counter by one on bullish bars where the closing price exceeds the opening price, and decrements it by one on bearish bars where th

Indicator v6 Candlestick patternsOscillators & momentum
Updated 6 days ago · MIT GitHub repository of P_fmt_tabs_mixed

A strategy version of a structure indicator that studies how price interacts with confirmed swing zones, role-reversal levels and CUSUM change-point levels. A state machine tracks a level, impulse, pullback and higher-low or lower-high sequence, then grades th

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 7 days ago · GPL-3.0 GitHub repository of Structure Physics v4.2 Rotation Confirmation Strategy

DEPV2 DEBUG S32

by YuceSezar89
1 stars

DEPV2 is a multi-symbol cryptocurrency indicator that processes 20 major crypto pairs including BTC, ETH, SOL, BNB and others. It evaluates four signal classes consisting of trend, momentum, volatility and volume. Signals are generated according to user-select

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

Plots a dynamic level at the midpoint of the 50-bar high-low range and prints BUY or SELL markers on the price chart. It compares the recent summed distance between price and that level with earlier windows stepped back through history, and counts how often pr

Indicator v5 Mean reversionOscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of Auto Symmetric Reversal and Area

Bull Bear Market Ribbon

by vedkanani123
1 stars

A simple price-chart indicator that plots a fast and a slow moving average, defaulting to 21 and 55 periods, and fills the space between them as a ribbon. Both lines and the fill are blue when the fast average is above the slow one and red when below. The aver

Indicator v6 Moving averagesTrend
Updated 2 months ago · None stated GitHub repository of Bull Bear Market Ribbon

Fable Bear LTF v1

by nishpa800
1 stars

The first release of a bearish-side detection indicator for lower timeframe charts. It draws numbered signals on the price chart from relative volume tiers, a standard deviation displacement test, a VWMA with ATR Supertrend latch, pocket pivots and fair value

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Fable Bear LTF v1
1 stars

This strategy identifies liquidity sweeps around swing pivot levels and trades reversals aligned with higher-timeframe trend context. It enters long when price pierces a prior pivot low and closes back above it while trading above the daily 200 EMA. Short entr

Strategy v6 SMC / ICT / price actionTrend
Updated 2 months ago · None stated GitHub repository of TN Liquidity Sweep Sovereign

A Pine Script v5 indicator in a separate pane, the sixth revision of a Hurst spectral oscillator. It filters the hl2 price with bandpass filters for cycles from 1 day to 18 years and plots the waves along with an optional composite line. Every cycle has its ow

Indicator v5 Oscillators & momentum Repaints
Updated 6 months ago · None stated GitHub repository of Hurst Spectral Analysis Oscillator V6
1 stars

This indicator calculates and plots a volume profile histogram directly on the price chart using data from a specified lookback period. It divides the price range into horizontal rows to visualize volume distribution across price levels over recent price actio

Indicator v4 VolumeSupport & resistance
Updated 9 months ago · None stated GitHub repository of Volume Profile [LuxAlgo]

RCI Ribbon

by ivansoft
1 stars

Plots three Rank Correlation Index lines of different lengths, 10, 30 and 50 bars by default, in one separate pane, coloured blue, red and green. Horizontal levels at zero and plus and minus 80 frame the range with a shaded area between the outer levels. Sourc

Indicator v6 Oscillators & momentum
Updated 1 year ago · None stated GitHub repository of RCI Ribbon
1 stars

An indicator component that computes a volume weighted average price with a standard deviation band, restarting at the start of each session by default, and plots the line and the band edges with a fill. The code can also anchor on week, month, quarter, year,

Indicator v5 VolumeSupport & resistance
Updated 1 year ago · None stated GitHub repository of Neural Network Sub 43 VWAP
1 stars

A Pine v4 strategy that redraws candles and plots VWAP with wide, inner and tight percentage bands. It signals a long on a green non-doji candle that opens above the tight upper band or closes above the inner one, with red candles for shorts. Inputs set long a

Strategy v4 Volume
Updated 4 years ago · None stated GitHub repository of SlimScript VWAP Candles
948 stars

The Recursive Median Filter combines a median percentile calculation with a lowpass exponential filter to smooth price action directly on the main price chart. It calculates the median source value across a specified median length and recursively blends it usi

Indicator v4 TrendMoving averages
Updated 11 days ago · GPL-3.0 GitHub repository of Recursive Median Filter
330 stars

This strategy calculates the Qualitative Quantitative Estimation (QQE) indicator by applying exponential moving averages to a relative strength index and its ATR range. It identifies shifts between bullish and bearish momentum to generate trading signals on th

Strategy v4 Oscillators & momentumTrend
Updated 2 months ago · None stated GitHub repository of QQE Signals [Alorse]

BEZQ Tracker

by Allen1212
303 stars

BEZQ Tracker visualizes historical buy and sell transactions made by ARK Invest for the BEZQ ticker directly on the price chart. It plots labels at specific historical dates to mark purchase and sale events recorded from ARK Invest data. Users can filter the d

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

MathExtension

by ricardosantos79
261 stars

MathExtension is a Pine Script v5 library of exported math helpers and does not plot or trade. It supplies base-2 log, floating-point remainder, fractional part, a digit-scaling integral helper, an atan2 approximation in radians, Euclidean hypotenuse, and a ne

Library v5
Updated 4 years ago · None stated GitHub repository of MathExtension

Try Trading Future

by dearvn
257 stars

This futures trading strategy combines Fair Value Gap (FVG) detection filtered by Average True Range (ATR) with multi-timeframe Exponential Moving Averages (8, 55, and 165 lengths). It identifies entry setups during a defined intraday trading session window wh

Strategy v5 SMC / ICT / price actionMoving averages Repaints
Updated 6 weeks ago · None stated GitHub repository of Try Trading Future
218 stars

This strategy identifies trade opportunities based on candlestick wick imbalances relative to the Average True Range. It enters positions when candle wicks exceed defined thresholds and filters out doji candles using a minimum body ATR requirement. Exits are h

Strategy v6 Candlestick patternsVolatility & bands Repaints
Updated 3 months ago · None stated GitHub repository of Super Negative R:R Wick Strategy

Bubbles Indicator

by capissimo
114 stars

The Bubbles Indicator measures volatility squeezes and expansion bursts using Bollinger Bands combined with a sinusoid oscillator and RSI divergence. It processes price data through scaled Bollinger Bands to highlight volatility changes while confirming trend

Indicator v4 Volatility & bandsOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of Bubbles Indicator
106 stars

Automatic Grid Bot Strategy simulates a grid trading system directly on the main price chart. It sets upper and lower price range boundaries and splits the defined range into grid levels to trade long, short, or both directions simultaneously. Users can config

Strategy v5 Support & resistanceMean reversion
Updated 2 years ago · GPL-3.0 GitHub repository of Automatic Grid Bot Strategy
99 stars

This indicator plots a cumulative moving average, also called a running mean, of a chosen price series on the price chart. It updates one bar at a time with Welford's method, weighting each new value by one over the bar count so the line is the mean of all his

Indicator v6 Moving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Cumulative Moving Average

Bar date/time

by be-thomas
65 stars

This indicator plots each bar's opening time as a numeric series in a separate pane. It uses Pine Script's built-in time value and draws one plot, not an overlay on price. There are no inputs, so the line follows the chart's bar timestamps without filters or o

Indicator v4 Sessions & time
Updated 5 days ago · GPL-3.0 GitHub repository of Bar date/time
47 stars

The Interquartile Range (IQR) indicator measures the statistical dispersion of price data over a user-defined lookback window. It computes the 25th percentile (Q1) and 75th percentile (Q3) using array sorting and linear interpolation, plotting the difference b

Indicator v6 Volatility & bands
Updated 8 months ago · MIT GitHub repository of Interquartile Range (IQR)

Oscillator Suite

by TamaraKGreen
46 stars

Oscillator Suite plots a normalised price oscillator in a separate pane and overlays a signal line that can use SMA, EMA, WMA, HMA, RMA, VWMA, T3, ZEMA, KAMA, or GKEMA. It marks bullish and bearish divergences, a smoothed money-flow series, confluence areas an

Indicator v5 Oscillators & momentumDivergence
Updated 7 weeks ago · None stated GitHub repository of Oscillator Suite

Envelope

by TWODS-CAPITAL
37 stars

This indicator plots a percentage envelope around a moving average of the selected source on the price chart. It computes a simple or exponential moving average as the basis, then places upper and lower bands a fixed percentage above and below that line. The l

Indicator v5 Moving averagesVolatility & bands
Updated 3 years ago · MIT GitHub repository of Envelope
16 stars

Seykota Alt 6 Pure ATR Stop is a trend-following strategy based on Donchian channel breakouts and ATR volatility trailing stops. It enters trades when price breaks out beyond the Donchian lookback channel, provided optional market regime and volume filters are

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 6: Pure ATR Stop

This strategy trades long and short using TradingLatino rules as ABCBitcoin interprets them. Entries need EMA 10 crossing or aligned with EMA 55 on the one-hour, four-hour, and daily charts, agreeing ADX slope and directional monitor, and price on the matching

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard ABCBitcoin TradingLatino C003

This indicator implements a Wyckoff method state machine that tracks accumulation, distribution, markup, and markdown regimes across phases A through E. It identifies structural events including springs, UTADs, SOS, SOW, LPS, LPSY, and climactic bars using ATR

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 days ago · MIT GitHub repository of Modern Wyckoff State Machine Lite [WavesUnchained]

AuthLib

by alboogycOdR
6 stars

AuthLib is a Pine Script v5 library that checks a caller username against a fixed list and, when authorized, prepares drawings for six killzone sessions. It stores boxes, labels, trend lines and price labels in a DrawingData type. For each window it tracks the

Library v5 Sessions & timeSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of AuthLib

Triple EMA + Stochastic

by krosenfeld7
5 stars

This overlay indicator combines three Exponential Moving Averages (EMAs) with a Stochastic RSI to plot trend-following trade setup labels on the price chart. It checks for sequential EMA alignment alongside Stochastic RSI crossovers and specific candle price p

Indicator v4 Moving averagesOscillators & momentum
Updated 3 years ago · Apache-2.0 GitHub repository of Triple EMA + Stochastic
4 stars

This strategy trades USD/JPY on the price chart during Tokyo and London sessions. It enters long when the fast EMA crosses above the slow EMA while price is above the trend EMA and RSI is above its midpoint, and it enters short on the opposite cross. Position

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of USD/JPY Carry Trend [trugurpala]

DX SPX VLT

by g-moe
3 stars

DX SPX VLT is an overlay indicator that evaluates market trends by combining moving average slope analysis, Aroon filters, and DTEK Supertrend components. It plots colored background highlights to represent overall trend direction, displays a moving average li

Indicator v5 TrendMoving averages Repaints
Updated 5 months ago · None stated GitHub repository of DX SPX VLT
2 stars

This Pine Script v5 library provides a drawing function that renders overlapping supply and demand order blocks directly on the price chart. It calculates proximal, distal, and midpoint mitigation price boundaries when an origin trigger condition is met across

Library v5
Updated 2 months ago · None stated GitHub repository of OrderBlockOverlappingDrawing
2 stars

Dynamic Gap Probability Tool is a price-chart indicator that plots a selectable moving average and measures how far the close sits from it as a rounded percentage. It stores historical counts of bars above and below that average at each deviation size, then sh

Indicator v6 Moving averagesScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Dynamic Gap Probability Tool

Moving Averages Trends and Filters

by mushroom-men-Trading
2 stars

This script provides a consolidated library of moving average calculations in Pine Script v6. It implements FIR functions including ALMA using Gaussian weights, BLMA with Blackman window, and BWMA using Bessel function, along with IIR moving averages from miha

Indicator v6 Moving averagesTrend
Updated 9 months ago · None stated GitHub repository of Moving Averages Trends and Filters

Xiao Martin

by wynnforthework
2 stars

Xiao Martin is a Martingale DCA strategy that buys long positions as price drops. It enters an initial long trade and adds subsequent orders whenever price decreases by a user-defined percentage from the last entry price, subject to a cool-down period and bar

Strategy v5 Mean reversion
Updated 1 year ago · None stated GitHub repository of Xiao Martin

HMD MACD

by Web3Degenerate
2 stars

HMD MACD plots a moving-average convergence divergence oscillator in a separate pane. It subtracts a slow moving average from a fast moving average of the chosen source, then smooths that difference into a signal line. Users can select SMA or EMA for both line

Indicator v5 Oscillators & momentumMoving averages
Updated 2 years ago · None stated GitHub repository of HMD MACD
1 stars

This Pine Script v6 library exports constant reference data and profiles for Smart Money Concepts (SMC) decision-support systems. It provides over 190 static export fields covering universe tickers, market regime status, macro bias, news heat maps, volatility

Library v6
Updated 3 days ago · None stated GitHub repository of SMC Micro Profiles Generated
1 stars

This Pine Script v6 strategy isolates and tests market structure events, specifically Break of Structure (BOS) and Change of Character (CHoCH). Using swing points calculated from configurable pivot strength settings, it tracks structural direction and triggers

Strategy v6 SMC / ICT / price actionBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of Parity Probe 02 - CHoCH/BOS Isolator

P_syn_alerts_log

by GammaExpansion
1 stars

This Pine Script indicator detects when the closing price crosses above a 20-period simple moving average. When a crossover occurs, it triggers an alert condition, executes a dynamic alert call with the current close price, and plots a value of 1 (and 0 otherw

Indicator v6 Moving averagesTrend
Updated 6 days ago · MIT GitHub repository of P_syn_alerts_log

Supply & Demand Zones XL

by rosijay17-cmd
1 stars

An overlay indicator that finds swing pivots, with adjustable bars left and right, and turns them into supply and demand zones sized by an ATR multiple. Overlap rules stop zones of the same or opposite type from stacking. Zones can be extended, historical and

Indicator v6 Support & resistanceVolatility & bands Repaints
Updated 7 days ago · GPL-3.0 GitHub repository of Supply & Demand Zones XL

DEPV2 DEBUG S33

by YuceSezar89
1 stars

This indicator monitors up to twenty cryptocurrency perpetual pairs across four analytical categories: trend, momentum, volatility, and volume. It generates trade signals using multiple modes, including single-method execution, simultaneous confluence requirin

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

This indicator computes the average height of green and red candles inside a user-selected time range. Inputs define start and end timestamps that filter candle data in real time. When the range is active the script accumulates heights for green candles (where

Indicator v5 Support & resistanceCandlestick patterns
Updated 7 weeks ago · None stated GitHub repository of Average Green/Red Candle Heights

Cardwell Dual Confluence

by vedkanani123
1 stars

A price-chart indicator by MarkitTick based on Cardwell RSI ideas. It produces buy and sell signals from a fast and slow smoothed RSI crossover and from an RSI regime check combined with a moving average trend, with bull and bear RSI ranges. A minimum bar gap

Indicator v6 Oscillators & momentumTrend
Updated 2 months ago · None stated GitHub repository of Cardwell Dual Confluence

Fable Bear LTF v1.1

by nishpa800
1 stars

A bearish-side detection indicator for lower timeframe charts that draws numbered signals on the price chart. It uses relative volume tiers, standard deviation displacement with a nine multiplier default, a VWMA with ATR Supertrend latch, pocket pivots and fai

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Fable Bear LTF v1.1
1 stars

This strategy couples a moving average crossover with external macroeconomic data imported via request.seed. It calculates a 20-period SMA on the fetched macro metric to identify Risk-On, Risk-Off, or Neutral market regimes. Long entries trigger when the 12 EM

Strategy v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of TN Macro Modeling Sovereign

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