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 tests TradingView order execution behavior and position sizing during stop-entry position flips when pyramiding is set to 2. It opens long entries at specific times of day (0:15 and 6:15), sets opposite stop orders paired with exit com

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 93 - flip stop pyramiding 2

Nexus Prime Engine v1

by vedkanani123
1 stars

An overlay always-in flip indicator where a buy closes a short and enters long, and a sell does the reverse. It uses a zero-lag EMA trail sized by ATR, smoothed price, an ADX regime read with trending and sideways thresholds, RSI and Stochastic RSI checks, and

Indicator v5 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Nexus Prime Engine v1
1 stars

Detects opening drive moves on the price chart by combining displacement, swing structure and return-to-level checks into named bull and bear signals. Inputs set sensitivity, swing length, the displacement deviation length and multiplier, and return percentage

Indicator v5 Sessions & timeVolatility & bands
Updated 2 months ago · None stated GitHub repository of TNT Opening Drive OD v2

This strategy evaluates multi-factor breakout confluence using a customized scoring system on the price chart. It checks Minervini-style Volatility Contraction Pattern trend templates, TTM squeeze volatility compression, volume dry-up with OBV accumulation, mo

Strategy v6 BreakoutVolatility & bands
Updated 2 months ago · None stated GitHub repository of TnSovereign Breakout Confluence V6

INTU-tracker

by Allen1212
303 stars

INTU-tracker visualizes historical trade records from ARK Invest for Intuit (INTU) directly on the price chart. It creates buy and sell labels at specific timestamps based on historical trading data from ARK's actively managed ETFs. Users can filter display la

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

7-RSI strategy

by hasnocool
106 stars

This strategy overlays the price chart and compares seven RSI readings, each calculated on its own timeframe from one minute through one day. The user chooses a long or short bot. Entries depend on every RSI meeting a threshold, while a percentage take profit

Strategy v4 Oscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of 7-RSI strategy
99 stars

This overlay indicator plots Jurik Adaptive Envelope Bands around price. It calculates a Jurik moving average as the middle line and builds upper and lower bands from that filter’s adaptive envelope. A ten-bar window tracks local deviation from the bands, and

Indicator v6 Moving averagesVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Jurik Adaptive Envelope Bands

My Script

by be-thomas
65 stars

This Pine Script indicator extracts and plots the hour integer from a fixed UNIX timestamp using a specified timezone offset. Created as a minimal documentation example for Pine Script v4 time functions, it calculates the hour value corresponding to GMT+1 for

Indicator v4
Updated 5 days ago · GPL-3.0 GitHub repository of My Script

Volatility Stop

by TWODS-CAPITAL
37 stars

This indicator plots a Volatility Stop on the price chart. It trails a stop from the running high or low of the source, offset by the average true range times a multiplier, and flips the trail when the source crosses the stop. An uptrend colors the stop one wa

Indicator v5 Volatility & bandsTrend
Updated 3 years ago · MIT GitHub repository of Volatility Stop

Trailering S002

by ruckard
13 stars

Trailering S002 is a long-only automated strategy template built for Zignaly webhook execution. It evaluates historical price stats and maximum excursion to trigger long trades, dynamically adjusting capital allocation based on active signal conditions. The sc

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Trailering S002

SMC Luxmod Nuburo4

by alboogycOdR
6 stars

This indicator identifies Smart Money Concepts (SMC) structure directly on the price chart. It detects and plots internal and swing market structures, including Break of Structure (BOS) and Change of Character (CHoCH). The script highlights order blocks, stron

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of SMC Luxmod Nuburo4
3 stars

This indicator calculates the Money Flow Index (MFI) and detects regular and hidden divergences between price action and the MFI oscillator in a separate pane. It identifies high and low pivot points using a configurable lookback length and evaluates trade con

Indicator v5 Oscillators & momentumDivergence Repaints
Updated 5 months ago · None stated GitHub repository of MFI Divergences Lower
2 stars

This indicator applies a k-Nearest Neighbors machine learning algorithm to calculate price predictions and direction on the main chart. It analyzes sequences of historical price data points to locate similar patterns and averages nearest neighbor matches. User

Indicator v5 AI / machine learningTrend Repaints
Updated 8 months ago · None stated GitHub repository of Machine Learning: kNN (New Approach)

A test strategy from a reference corpus that re-issues a pending stop entry every bar. When the 8-period EMA is above the 21-period EMA it places a buy stop at the previous bar high and cancels the sell stop, and otherwise it places a sell stop at the previous

Strategy v6 Moving averagesBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 94 Stop Entry Cancel No Regime Close
1 stars

An overlay indicator that uses a wide SuperTrend-style trail with a zero-lag bias to print always-in buy and sell flips while ignoring small moves. Settings set the trail factor, price smoothing, minimum bars between flips, a break buffer and a minimum adverse

Indicator v5 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Nexus Prime Engine v2.1 Anti-Noise
1 stars

Overlay indicator for detecting extreme opening-drive anomalies, drawing swing-based zones and many combined markers. Version three adds a conditional gate requiring a relative volume, Grand Slam, unified combo, all-time high volume, HCT or large displacement

Indicator v5 BreakoutSessions & time
Updated 2 months ago · None stated GitHub repository of TNT Opening Drive OD v3
1 stars

This strategy draws on the price chart and filters directional signals with four optional checks. It compares a fast exponential moving average with a slower one, requires volume above its average when the volume audit is on, and aligns close with a higher-tim

Strategy v6 Moving averagesVolatility & bands
Updated 2 months ago · None stated GitHub repository of TnSovereign Fakeout Confirmed

IPOB-Tracker

by Allen1212
303 stars

IPOB-tracker is an overlay indicator that visualizes historical stock purchase and sale transactions made by ARK Invest funds. It plots chart labels directly on the price chart at specific historical timestamps, marking buy actions with green upward labels bel

Indicator v4 Screeners & dashboards
Updated 2 years ago · None stated GitHub repository of IPOB-Tracker

This strategy calculates an Adaptive Hull Moving Average (HMA+) that dynamically adjusts its period based on market volatility measured by fast and slow ATR indicators. It uses slope angle calculations to categorize market conditions into trending, consolidati

Strategy v4 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of 72s Strategy: Adaptive Hull Moving Average+ pt.1
99 stars

The Jurik Composite Fractal Behavior indicator computes a weighted average of efficient trend lengths as a composite fractal behavior value, also known as the trend duration index. It processes a user-specified source series using a max lookback length and cal

Indicator v6 TrendOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Jurik Composite Fractal Behavior

My Script

by be-thomas
65 stars

This indicator colors the background of its pane with a nested ternary that shows Pine line wrapping. It paints red when the bar open is above the close, lime when the high is above the previous bar high, and blue when the low is below the previous bar low. An

Indicator v4 Candlestick patterns
Updated 5 days ago · GPL-3.0 GitHub repository of My Script

Volty Expan Close Strategy

by TWODS-CAPITAL
37 stars

Volty Expan Close Strategy is a volatility expansion breakout strategy that enters long or short positions when price exceeds the closing price by a specified ATR multiple. It calculates an ATR-based volatility threshold using a simple moving average of true r

Strategy v5 Volatility & bandsBreakout
Updated 3 years ago · MIT GitHub repository of Volty Expan Close Strategy

Trailering T002

by ruckard
13 stars

This automated trading strategy operates in a separate pane and is designed to integrate with Zignaly copy-trading and profit-sharing webhooks. It focuses on long positions, adjusting position size based on the number of triggered sub-strategy consensus condit

Strategy v5 Trend
Updated 1 year ago · None stated GitHub repository of Trailering T002

SMC LuxMod Nuburo5

by alboogycOdR
6 stars

This Smart Money Concepts indicator highlights market structure and institutional levels on the main price chart. It detects internal and swing structure breaks (BOS) and character changes (CHoCH), along with strong or weak high and low points. The script iden

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of SMC LuxMod Nuburo5
3 stars

The MFI Divergences Lower v2 indicator calculates the Money Flow Index (MFI) and plots it in a separate pane along with overbought, oversold, and middle threshold lines. It identifies regular and hidden bullish or bearish divergences by comparing price swing p

Indicator v5 Oscillators & momentumDivergence
Updated 5 months ago · None stated GitHub repository of MFI Divergences Lower v2
2 stars

This indicator assists with trade planning and position risk management by projecting trade parameters directly onto the price chart. It draws an interactive entry box defined by time and price boundaries, up to five take-profit levels with percentage allocati

Indicator v5 Support & resistance
Updated 8 months ago · None stated GitHub repository of MAD Position Starter & Calculator
1 stars

A test strategy from a reference corpus that checks order flipping with stop entries set so far from price that they always fill at the next bar open. At 08:00 it places a short stop entry and at 14:00 a long one, closing the opposite position each time, so ea

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 95 Multi-Cycle Open Fill Stops

The Parallel Price Universe Oscillator calculates detrended price movements relative to two derived moving averages weighted by fast and slow Fibonacci ratios. It extracts smoothed angular slopes using arctangent functions, aggregates them into a unified momen

Indicator v5 Oscillators & momentumMoving averages
Updated 7 weeks ago · None stated GitHub repository of Parallel Price Universe Oscillator
1 stars

Detects opening drive moves on the price chart by combining displacement, swing structure and return-to-level checks into named bull and bear signals. Inputs set sensitivity, swing length, the displacement deviation length and multiplier, and return percentage

Indicator v5 Sessions & timeVolatility & bands
Updated 2 months ago · None stated GitHub repository of TNT Opening Drive OD v3
1 stars

TnSovereign Fakeout Filter V6 is a trend-following strategy designed to reduce false breakouts by evaluating entries against a four-layer scoring system. It checks fast and slow EMA crossovers alongside volume surges, higher-timeframe trend alignment, and ATR

Strategy v6 TrendMoving averages Repaints
Updated 2 months ago · None stated GitHub repository of TnSovereign Fakeout Filter V6

ITRN-tracker

by Allen1212
303 stars

This indicator overlays historical ARK Invest transaction records for ITRN directly onto the price chart. It plots visual labels at precise bar timestamps to denote historical buy or sell actions, along with transaction counts across relevant ARK ETFs. Users c

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

8 Day Run

by hasnocool
106 stars

Inspired by Linda Raschke's strategy for T-note futures, this script identifies extended trends where price remains on one side of a 5-period SMA for more than eight consecutive bars. It enters long on the first pullback below the SMA following an eight-bar bu

Strategy v4 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of 8 Day Run

DMX plots the Jurik Directional Movement Index in a separate pane. The indicator computes a smoothed version of the directional movement index using Jurik smoothing applied to the ADX components derived from true range, up and down directional moves. It applie

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

My Strategy

by be-thomas
65 stars

This strategy plots on the price chart and compares a 14-period simple moving average of close with a 28-period simple moving average. It opens a long when the faster average crosses above the slower average and opens a short when the faster average crosses be

Strategy v4 TrendMoving averages
Updated 5 days ago · GPL-3.0 GitHub repository of My Strategy

Volume Oscillator

by TWODS-CAPITAL
37 stars

This indicator plots a volume oscillator in a separate pane. It calculates exponential moving averages of volume over short and long lengths, then expresses their difference as a percentage of the longer average. A horizontal zero line marks when the short ave

Indicator v5 Volume
Updated 3 years ago · MIT GitHub repository of Volume Oscillator

Trailering U002

by ruckard
13 stars

Trailering U002 is an automated strategy designed to connect TradingView signals directly to the Zignaly copy-trading platform. It executes long positions guided by historical statistical advice and price excursion calculations, adjusting position sizing accor

Strategy v5
Updated 1 year ago · None stated GitHub repository of Trailering U002

SMC Mod Nuburo 5

by alboogycOdR
6 stars

The indicator plots Smart Money Concepts market structure directly on the price chart. It detects real-time internal and swing structure breakouts, including Break of Structure and Change of Character, along with strong and weak high or low levels. It identifi

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of SMC Mod Nuburo 5
3 stars

MicroQuant Momentum is a momentum oscillator indicator that calculates the True Strength Index fast and slow components. It plots the TSI Fast, TSI Slow, and their difference histogram in a separate pane. Buy and sell signals trigger on crossovers of the fast

Indicator v5 Oscillators & momentum
Updated 5 months ago · None stated GitHub repository of MicroQuant Momentum

This overlay indicator enables manual identification and analysis of harmonic patterns on the price chart using interactive point selection. Users select five anchor points (X, A, B, C, and D) directly on the chart via interactive input prompts. The script eva

Indicator v5 Support & resistance
Updated 8 months ago · None stated GitHub repository of Manual Harmonic Patterns - With interactive inputs
1 stars

A test strategy from a reference corpus that repeats an order-flipping check with processing of orders at bar close switched on. At 08:00 it places a short stop entry and at 14:00 a long one, with stops set so far away that they fill at the next open, and clos

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 96 Multi-Cycle POOC Cross-Bar
1 stars

Parallel Universe Price Forecast is an indicator that detrends price using moving averages to extract slopes and angles from two universes weighted by fast and slow factors. It normalizes the combined angle into a symmetrical oscillator and projects the price

Indicator v5 Moving averagesVolatility & bands
Updated 7 weeks ago · None stated GitHub repository of Parallel Universe Price Forecast

This overlay strategy enters when a fair-value gap is larger than a minimum ATR multiple, volume exceeds 1.5 times its 20-bar average, and path efficiency over 20 bars clears a threshold. Longs also require price below a lookback high, and shorts require price

Strategy v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of TnSovereign Imbalance Confluence

JD-tracker

by Allen1212
303 stars

This indicator plots historical ARK Invest purchase and sale dates for JD as labels on the price chart. Green labels below bars mark buys and red labels above bars mark sells, with a count of how many ARK ETFs traded the stock that day. The ETF setting filters

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

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