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

MD Range Finder 3 (V4)

by mikeyhu70
1 stars

A Pine Script v4 indicator, a fourth variant of the range finder, that locates a price range over a 500-bar period and draws baselines at 0, 0.5 and 1 on the price chart, with Fibonacci-style extension lines projected from it. Lines extend to the right by defa

Indicator v4 Support & resistance
Updated 6 months ago · None stated GitHub repository of MD Range Finder 3 (V4)

HON-tracker

by Allen1212
303 stars

This indicator plots historical ARK Invest buy and sell labels for Honeywell on the price chart. It uses a fixed list of dated trades and places green buy or red sell labels below or above bars, including a same-day count when more than one ARK ETF trades the

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

Test-027 Undeclared Input

by ricardosantos79
261 stars

This indicator is a Pine Script v4 test of array access together with a boolean input. On the first bar it fills an integer array with repeated index values from 0 through 50. After bar 50, when the close is above the open, it walks that array and assigns stor

Indicator v4
Updated 4 years ago · None stated GitHub repository of Test-027 Undeclared Input
106 stars

This overlay strategy plots a two-timeframe Ichimoku setup on the price chart, with Tenkan, Kijun, Chikou, and Kumo from a base higher timeframe and an optional highest-timeframe cloud. It allows two entries in the same direction and uses ATR-based trailing st

Strategy v4 TrendVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of 2Tier Ichimoku Pyramiding [Takazudo]

This indicator calculates Vitali Apirine's Higher Highs and Lower Lows Stochastics (HHLLS). It evaluates conditional stochastic formulas that trigger only on bars establishing higher highs or lower lows, then smooths both values using an Exponential Moving Ave

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Higher Highs & Lower Lows Stochastics (HHLLS)

My Script

by be-thomas
65 stars

This indicator draws a single text label on the price chart. It runs only while the current bar is realtime and places the label ten bars before the latest bar, above that bar, with the fixed text Label. It requests ten bars of history for the time series thro

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

Technical Ratings Strategy

by TWODS-CAPITAL
37 stars

A multi-indicator consensus strategy that computes combined rating signals from various moving averages and technical oscillators, including RSI, Stochastic, MACD, CCI, ADX, and Ichimoku Cloud. Depending on user configuration, trades are triggered by overall c

Strategy v5 TrendOscillators & momentum
Updated 3 years ago · MIT GitHub repository of Technical Ratings Strategy

Trailering F008

by ruckard
13 stars

Trailering F008 is a reversal strategy and execution template designed to send automated trade signals to Zignaly copy-trading platforms. It generates entry conditions using custom moving average envelopes known as Curie closing lines, aiming to optimize posit

Strategy v5 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of Trailering F008

ORB + ICT Hybrid Strategy

by alboogycOdR
6 stars

This strategy builds a New York and London opening range from user-set start and end times and stores the session high and low on the price chart. After the range, it flags a bullish or bearish liquidity grab when price trades beyond the prior range and closes

Strategy v5 Sessions & timeSMC / ICT / price action Repaints
Updated 7 months ago · None stated GitHub repository of ORB + ICT Hybrid Strategy

This indicator overlays a Hull Moving Average and three Exponential Moving Averages on the price chart while monitoring signals from MACD, Stochastic Oscillator, and Time Segmented Volume. It tracks trend direction changes, MACD histogram color shifts from bri

Indicator v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of MACD Signals with Alert System

Ichimoku Oscillator

by regalouisei
2 stars

The Ichimoku Oscillator indicator calculates conversion line, base line, leading span, and lagging span using specified periods. It plots these values in a separate pane along with an optional EMA overlay. Main settings allow customization of line lengths, ATR

Indicator v5 TrendOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Ichimoku Oscillator
1 stars

This strategy places two stop orders at 14:45 when flat: a long stop slightly above the close and a short stop slightly below it. Whichever stop fills first opens the position. At 18:15 it closes any open position. Quantity is fixed at one, with zero commissio

Strategy v6 BreakoutSessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 82 - dual stop far only

The Morindok Dynamic Gann Spiral Ratio indicator computes time and price angles derived from a dynamic N value based on volatility and a selected price source. It calculates a ratio between these angles and generates buy or sell signals when the ratio approach

Indicator v5 Support & resistanceTrend
Updated 7 weeks ago · None stated GitHub repository of Morindok Dynamic Gann Spiral Ratio

Trend Context

by vedkanani123
1 stars

A price-chart indicator that classifies the market as up, down or neutral using an adaptive baseline whose smoothing speed follows price efficiency. A weighted score combines price location against ATR zones, baseline slope, momentum and position within the re

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Trend Context

Signal Hub

by nishpa800
1 stars

Overlay indicator that gathers around thirty signal modules into one study on the price chart. Modules include White Flag momentum, OW overlap and super signals, FC and E3 clusters, a Red Plus marker, RVOL windows, a Fauna X-in-Y pattern, a Mango swing bottom,

Indicator v5 Oscillators & momentumVolume
Updated 2 months ago · None stated GitHub repository of Signal Hub
1 stars

A strategy on the price chart that builds a four-point audit score from a higher-timeframe EMA, fast versus slow moving average, volume against its average, and bar movement against ATR. When the score reaches a minimum, it logs a message and moves through enu

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

MD Range Finder 3 (V5)

by mikeyhu70
1 stars

A Pine Script v4 indicator, a fifth variant of the range finder, that locates a price range over a 500-bar period and draws baselines at 0, 0.5 and 1 on the price chart, with Fibonacci-style extension lines projected from it. Lines extend to the right by defau

Indicator v4 Support & resistance
Updated 6 months ago · None stated GitHub repository of MD Range Finder 3 (V5)

HPQ-tracker

by Allen1212
303 stars

HPQ Tracker visualizes historical buy and sell transactions made by ARK Invest for HP Inc. directly on the price chart. The indicator creates labels on specific timestamps corresponding to trade dates, indicating whether ARK ETFs bought or sold shares and show

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

Test-029-na_value

by ricardosantos79
261 stars

This indicator is a small array test rather than a trading tool. It creates an integer array, pushes the values 0, 1, na, and 2, then converts the array to text. It draws that text in a label at the current bar in a separate pane and deletes the previous bar's

Indicator v4
Updated 4 years ago · None stated GitHub repository of Test-029-na_value
106 stars

This strategy identifies trend-following entries using a triple exponential moving average alignment and ATR-based exits on the main price chart. Long signals trigger when the fast EMA is above the medium EMA and medium is above slow, accompanied by a close ab

Strategy v4 Moving averagesVolatility & bands Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of 3 EMA + Stochastic RSI + ATR
99 stars

This indicator plots the highest value of a chosen source over a rolling lookback. It maintains a monotonic deque and a circular buffer so each bar updates the window maximum. The period input sets the lookback length and the source input selects the series, d

Indicator v6 Support & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of Highest Value (HIGHEST)

My Script

by be-thomas
65 stars

This indicator stores the closing price in a variable named price and replaces that value with the high-low midpoint whenever the midpoint is greater than the close. It then plots the resulting series in a separate pane. The script has no user inputs, so nothi

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

Three Black Crows - Bearish

by TWODS-CAPITAL
37 stars

This script identifies the Three Black Crows bearish reversal candlestick pattern directly on the price chart. It checks for three consecutive long red candles that open within the previous body, close consecutively lower, and feature minimal lower shadows com

Indicator v5 Candlestick patterns
Updated 3 years ago · MIT GitHub repository of Three Black Crows - Bearish

Trailering G010

by ruckard
13 stars

Trailering G010 is a Pine Script v5 strategy that draws on the price chart. It uses Curie closing lines from simple moving averages of an ohlc4 source, with separate high and low lengths, to run long-only and short-only logic at the same time, including an opt

Strategy v5 Moving averages
Updated 1 year ago · None stated GitHub repository of Trailering G010

Target Radar

by eddiebelaval
7 stars

Target Radar is a multi-factor forecasting indicator that plots projection bands, forward boxes, and dynamic target zones directly on the main price chart. It calculates a forecast score by combining z-scores for trend, momentum, volume pressure, and volatilit

Indicator v5 TrendOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Target Radar

ORB ON SLVRBL

by alboogycOdR
6 stars

ORB ON SLVRBL is a strategy that combines Opening Range Breakouts with ICT Silver Bullet concepts, including Fair Value Gaps (FVG) and Market Structure Shifts (MSS). It identifies breakouts based on candle closes or wicks within designated session windows. Tra

Strategy v5 SMC / ICT / price actionBreakout Repaints
Updated 7 months ago · None stated GitHub repository of ORB ON SLVRBL

This strategy combines MACD histogram crossovers with a dual moving average cloud to generate long and short trading signals directly on the price chart. It evaluates histogram crossings relative to zero while filtering entries using overall MACD positioning a

Strategy v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of MACD Signals with Trading Dashboard Strategy
2 stars

This indicator builds a custom multi-symbol index and draws it in a separate pane as candles, bars, or a line. A holdings table can list the selected symbols and sort them by symbol name, percent change, last price, or market cap, in ascending or descending or

Indicator v5 Screeners & dashboards
Updated 8 months ago · None stated GitHub repository of Index Generator [MUQWISHI]
1 stars

This Pine Script strategy draws on the price chart with overlay=true. It enters long and short positions using stop orders at the current close price at specific session times of 4:45 and 16:45. It then closes all open positions at 8:15 and 20:15. The strategy

Strategy v6 Sessions & timeScalping
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 83 - dual stop open tie

Uptrick Vector Trail Trend

by vedkanani123
1 stars

A price-chart indicator that estimates trend with a smoothed velocity and a projected vector, then draws an ATR-based trailing line coloured by direction. Up and down signals appear on trend changes. Optional dynamic take-profit markers use momentum and a Z-sc

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Uptrick Vector Trail Trend

Squarify 46 v2

by nishpa800
1 stars

Overlay indicator that merges forty-six numbered buy and sell triggers into one study on the price chart. The changelog describes combinations of unified combo, Napalm and Charge engines, Heavy Weapon and Floor patterns, UU, UUU and UUUU streaks, an Omega mark

Indicator v5 BreakoutVolume
Updated 2 months ago · None stated GitHub repository of Squarify 46 v2
1 stars

This strategy detects value area rejections on the price chart. It calculates a fair value midpoint using a simple moving average of length 50 and ATR-based bands. Bullish and bearish rejection signals trigger when price crosses the value area boundaries and c

Strategy v6 Mean reversionVolatility & bands
Updated 2 months ago · None stated GitHub repository of Tn Value Area Rejection v6

Peak Activity Levels

by mikeyhu70
1 stars

A Pine Script v4 indicator, credited to LuxAlgo, that draws horizontal levels on the price chart at prices where volume pivot highs formed. It finds pivots in volume over a set length, stores the closing price at each, and shows a chosen number of recent level

Indicator v4 Support & resistanceVolume
Updated 6 months ago · None stated GitHub repository of Peak Activity Levels

HUBS-tracker

by Allen1212
303 stars

HUBS-tracker visualizes historical purchase and sale transactions made by ARK Invest funds for HubSpot stock. It draws buy and sell labels directly onto the price chart at specific historical dates based on recorded fund transaction data. Users can filter trad

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

test-031-type_error

by ricardosantos79
261 stars

This indicator initializes a float array with a configurable length of elements. It applies a simple PRNG function to generate values and appends the array contents to a string. The string is displayed in a label placed on the price chart at the bottom. The ma

Indicator v4
Updated 4 years ago · None stated GitHub repository of test-031-type_error
106 stars

This Pine Script strategy identifies potential Buy Today, Sell Tomorrow (BTST) opportunities based on price action and volume patterns. It calculates a 20-period simple moving average of volume and checks for three consecutive bullish candles with higher highs

Strategy v4 TrendVolume
Updated 2 years ago · GPL-3.0 GitHub repository of 3 Higher High Price & Vol

This indicator calculates the Hilbert Transform Dominant Cycle Phase based on John Ehlers' cycle analytics and the TA-Lib algorithm implementation. It processes price through a four-tap weighted smoothing filter, a Hilbert finite impulse response detrender, in

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Hilbert Transform Dominant Cycle Phase (HT_DCPHASE)

My Script

by be-thomas
65 stars

This is a simple Pine Script v4 indicator that overlays elements directly onto the main price chart. It demonstrates basic label creation by placing a label at bar_index plus 100 positioned at the current high price level. No calculations or calculations are p

Indicator v4 Support & resistance
Updated 5 days ago · GPL-3.0 GitHub repository of My Script
37 stars

This indicator identifies and highlights the Three White Soldiers bullish reversal candlestick pattern on the price chart. It checks for three consecutive long-bodied bullish candles where each candle opens within the previous candle's body, closes above the p

Indicator v5 Candlestick patterns
Updated 3 years ago · MIT GitHub repository of Three White Soldiers - Bullish

Trailering H005

by ruckard
13 stars

Trailering H005 is a trading strategy template designed for automated position management and execution via Zignaly webhooks, originally tested on BTCUSDT on the 1-hour timeframe. It evaluates price excursion across configurable sub-strategy lookback periods t

Strategy v5 Volatility & bands
Updated 1 year ago · None stated GitHub repository of Trailering H005

ORB Silver Bullet

by alboogycOdR
6 stars

This overlay indicator marks an opening-range breakout for a chosen session and combines it with fair value gaps, market structure shifts, order blocks, and optional liquidity sweeps. Buy and sell signals depend on the selected execution type, close or wick br

Indicator v5 SMC / ICT / price actionBreakout
Updated 7 months ago · None stated GitHub repository of ORB Silver Bullet
3 stars

This strategy calculates a Volume-Weighted Moving Average Convergence Divergence (VWMA MACD) and its histogram average to generate trade signals in a separate pane. It enters long positions when the MACD histogram crosses above its simple moving average and sh

Strategy v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of MACD VWMA Strategy
2 stars

This indicator builds a lower-timeframe view in a separate pane. It reconstructs price as traditional candles or as Heikin-Ashi, Kagi, Point and Figure, Renko, or Line Break, and plots a price-versus-volume graph colored from early to late data. Three selectab

Indicator v5 VolumeOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Intrabar Analyzer [Kioseff Trading]
1 stars

A test strategy from a reference corpus that checks whether the order in which two stop entries are submitted changes which one fills. At 02:45 it submits a long stop 0.2 percent above the close, then a short stop 0.2 percent below. Any open position is closed

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 84 Dual Stop Long First
1 stars

This indicator calculates W.D. Gann Square of 9 support and resistance levels based on cardinal (90°, 180°, 270°, 360°) and ordinal (45°, 135°, 225°, 315°) polar angles. It anchors calculations to recent swing pivots, highs, lows, or a user-defined manual pric

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Morindok Gannzilla Sq9

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