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

Grover Llorens Activator

by regalouisei
2 stars

The Grover Llorens Activator strategy calculates a custom volatility trailing stop line based on Average True Range and price movement. It generates buy signals when price crosses above the activator line and short signals when price crosses below. Positions a

Strategy v4 TrendVolatility & bands
Updated 8 months ago · None stated GitHub repository of Grover Llorens Activator
1 stars

This strategy enters one long position when a fast exponential moving average crosses above a slow one. While the trade is open, it keeps an ATR stop and target under the same exit identifier. For the first revision hold bars those distances stay wide; afterwa

Strategy v6 Moving averagesVolatility & bands
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Revision Exit Replacement

SRPT-tracker

by Allen1212
303 stars

This indicator plots historical ARK Invest buy and sell events for the SRPT stock on the price chart. It places green buy labels below bars and red sell labels above bars at fixed calendar dates, with text that marks the trade direction and an ETF count such a

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

Estrategia Booz

by hasnocool
106 stars

This strategy trades moving-average crossovers on the price chart. It buys when a fast exponential moving average crosses above a slow one in an uptrend, and sells on the opposite cross in a downtrend. An optional source average and a longer trend filter, each

Strategy v4 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Estrategia Booz
99 stars

This indicator plots a Stochastic MACD in a separate pane. It measures the rolling high and low over a lookback, applies fast and slow exponential moving averages to the close, and normalizes each average against that range. The difference, scaled by 100, is t

Indicator v6 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Stochastic MACD Oscillator (STMACD)
3 stars

The CM Williams Vix Fix indicator calculates Larry Williams' synthetic VIX formula in a separate pane to identify market panic and potential price bottoms. It measures the percentage distance between the highest close over a lookback period and the current bar

Indicator v5 Volatility & bands
Updated 5 months ago · None stated GitHub repository of CM Williams Vix Fix

PineForge — Rivet Calc Fill

by pineforge-4pass
1 stars

This strategy identifies bullish trends using a fast EMA crossing above a slow EMA to enter long positions when no trade is open. Once entered it attaches a stop loss and limit order using ATR multiplied by the input values of 1.7 and 2.2 respectively. The fas

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Rivet Calc Fill

SSYS-tracker

by Allen1212
303 stars

Plots historical buy and sell transactions executed by ARK Invest funds on Stratasys (SSYS) directly on the price chart. It marks specific execution dates using timestamped green labels for purchases below the bar and red labels for sales above the bar, displa

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

ETH_buy_3commas

by hasnocool
106 stars

This strategy overlays a Cipher B style WaveTrend study on the price chart and is titled for Ethereum buy alerts aimed at 3Commas. It calculates a WaveTrend channel and a short moving average, and can mark buy, sell, gold, and divergence dots. Settings change

Strategy v4 Oscillators & momentumDivergence
Updated 2 years ago · GPL-3.0 GitHub repository of ETH_buy_3commas
99 stars

This indicator calculates the Stochastic Momentum Index in a separate pane. It finds the highest high and lowest low over a lookback, measures the source relative to the range midpoint, and double-smooths that result into a %K line and a further-smoothed %D si

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Stochastic Momentum Index (SMI)

The Commodity Channel Index Custom indicator plots a customizable oscillator in a separate pane on the price chart. It calculates the CCI using a selected source such as HLC3 and a moving average method including SMA EMA or others. Main settings allow adjustin

Indicator v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of Commodity Channel Index Custom

PineForge — Sextant CCI HMA

by pineforge-4pass
1 stars

PineForge — Sextant CCI HMA is a trend-following momentum strategy that combines the Commodity Channel Index with a Hull Moving Average filter. The strategy opens long positions when the CCI crosses above a specified entry level, provided the HMA is rising and

Strategy v6 TrendOscillators & momentum
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Sextant CCI HMA

SSYSM-tracker

by Allen1212
303 stars

This indicator overlays the SSYSM price chart and draws one red downward label reading Sell above the bar at 12 November 2020. It does not calculate oscillators, moving averages, or risk levels, and it exposes no inputs. The snippet only records that single hi

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

Ezieh Str.v2

by hasnocool
106 stars

Ezieh Str.v2 is a momentum and volatility strategy combining Bollinger Bands with two distinct RSI periods to identify trading opportunities. It opens long positions when a fast RSI crosses above an oversold threshold while price crosses over the lower Bolling

Strategy v4 Oscillators & momentumVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Ezieh Str.v2
99 stars

This indicator calculates the Stochastic Oscillator and plots it in a separate pane. Percent K is the close position within the highest high and lowest low over the K length, scaled from 0 to 100. Percent D is a simple moving average of percent K over the D sm

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Stochastic Oscillator (STOCH)
3 stars

Custom Time Highlighter is an intraday overlay indicator that shades the chart background during a user-specified range of hours. Users configure the start and end hours to visually separate trading windows or session periods. It applies an orange background c

Indicator v5 Sessions & time
Updated 5 months ago · None stated GitHub repository of Custom Time Highlighter
1 stars

This overlay strategy keeps a bounded deque of one-bar rate-of-change values and measures how many are positive and their average. It enters one long position of two units when the positive share rises through the minimum share, the average return is positive,

Strategy v6 Oscillators & momentumMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Spectrum Array Deque

STMN-tracker

by Allen1212
303 stars

STMN-tracker overlays historical institutional trading data directly onto the price chart for STMN stock, displaying buy and sell transactions executed by ARK Invest. The indicator places visual labels on specific trade dates to highlight historical buying or

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

Fibs Limit Only

by hasnocool
106 stars

Fibs Limit Only is an automated limit order strategy designed for crypto futures trading. It calculates pivot highs and lows over a user-defined length to establish Fibonacci retracement and extension levels. Traders select a specific Fibonacci tier to place l

Strategy v4 Support & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of Fibs Limit Only
99 stars

This indicator calculates the Stochastic RSI oscillator, which applies the Stochastic formula to a Relative Strength Index series to measure momentum. It computes an RSI value, tracks its rolling high-low range, and calculates smoothed %K and %D lines using cu

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Stochastic RSI (STOCHRSI)

DeMark 9

by g-moe
3 stars

This indicator tracks Tom DeMark Sequential setup counts by comparing the current close against the close four bars prior across up to six configurable timeframes. It signals potential trend exhaustion or reversal points when counts reach specified milestones,

Indicator v5 TrendOscillators & momentum Repaints
Updated 5 months ago · None stated GitHub repository of DeMark 9

PineForge — Terrace Pyramid

by pineforge-4pass
1 stars

This strategy plots the Trend EMA and Deep Terrace levels on the price chart to identify rising trends. It signals long pyramid entries in staged terraces when price crosses above the first, second, or third ATR-based levels during an upward trend, with up to

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Terrace Pyramid

STNE Tracker

by Allen1212
303 stars

STNE Tracker displays historical buy and sell transactions made by ARK Invest funds for StoneCo Ltd (STNE) directly on the price chart. The indicator creates chart labels on specific trade dates, marking purchases with green labels below bars and sales with re

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

Golden Buy

by hasnocool
106 stars

This strategy runs on the price chart under the title golden buy. It sets cash order size and a percent commission. Traders adjust an ATR stop-loss multiplier and a risk-reward ratio, and they can enable shorts or divergence filters. The visible inputs configu

Strategy v4 Oscillators & momentumDivergence
Updated 2 years ago · GPL-3.0 GitHub repository of Golden Buy

Calculates and plots the Stoller Average Range Channel directly on the price chart. It constructs a middle baseline using a Simple Moving Average and projects upper and lower envelope bands based on the Average True Range scaled by a user-defined multiplier. I

Indicator v6 Volatility & bandsMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Stoller Average Range Channel (STARCHANNEL)
3 stars

This indicator modifies traditional Donchian Channels by applying a weighted moving average to the highest high and lowest low over a customizable period, expanding the bands using twice the 14-period Average True Range. It calculates and plots upper, lower, a

Indicator v5 Volatility & bandsBreakout
Updated 5 months ago · None stated GitHub repository of Donchian Channels
1 stars

This strategy computes the MACD with user-defined fast, slow, and signal lengths, then plots the MACD line, signal line, and histogram in a separate pane. It generates long entries on MACD crossover and short entries on MACD crossunder, but restricts signals t

Strategy v6 Oscillators & momentumSessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Waypoint Weekday MACD

SURF-tracker

by Allen1212
303 stars

SURF-tracker is an overlay indicator that plots buy and sell labels directly on the price chart to visualize ARK Invest trades. It marks historical purchase and sale dates with text labels indicating buy or sell actions along with share volume counts. The prim

Indicator v4 Support & resistanceScreeners & dashboards
Updated 2 years ago · None stated GitHub repository of SURF-tracker

Highs and lows

by hasnocool
106 stars

Calculates dynamic entry and exit price levels based on rolling lowest and highest bars with optional Average True Range (ATR) offsets. It places limit orders to enter long positions at the lowest price level and exits at the highest price level. An optional t

Strategy v4 Mean reversionSupport & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of Highs and lows
99 stars

This indicator plots the cumulative distribution function of Student's t-distribution in a separate pane. It min-max normalizes the chosen source over a lookback period, maps the result to a t-statistic, and evaluates the CDF through the regularized incomplete

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Student's t-Distribution CDF (TDIST)
3 stars

EMA Crossover 8/15 plots fast and slow moving averages directly on the price chart and detects crossover events. Users can switch between seven moving average types, including EMA, SMA, RMA, WMA, VWMA, SWMA, and ALMA, alongside custom period lengths. An option

Indicator v5 Moving averagesTrend
Updated 5 months ago · None stated GitHub repository of EMA Crossover 8/15

Pivot Array Breakout

by pineforge-4pass
1 stars

Pivot Array Breakout is a breakout strategy that tracks dynamic pivot high resistance and pivot low support levels using array buffers. When a new pivot is identified, it is added to a size-limited array while older levels are removed. The strategy enters a lo

Strategy v6 BreakoutSupport & resistance
Updated 6 days ago · Apache-2.0 GitHub repository of Pivot Array Breakout

SYK-tracker

by Allen1212
303 stars

This indicator marks recorded ARK Invest activity for SYK directly on the price chart. The visible code creates one green below-bar label dated 17 January 2020 that notes a buy with a one-fund count. An ETF input is exposed, but its only choice is ALL, so it d

Indicator v4
Updated 2 years ago · None stated GitHub repository of SYK-tracker
106 stars

This strategy enters long trades based on standard Stochastic oscillator conditions combined with a 60-minute higher-timeframe trend filter. It opens positions when lower-timeframe Stochastic %D is below a buy threshold and both lower and higher-timeframe %D l

Strategy v4 Oscillators & momentum Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of IK 60-15 Stochastic Strategy
99 stars

This indicator calculates SuperTrend-style upper and lower bands from the high-low midpoint, offset by an average true range times a multiplier. A rolling buffer keeps the true-range sum over the chosen period, and the bands only tighten until the source close

Indicator v6 TrendVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Super Trend Bands (STBANDS)

This indicator calculates Time Segmented Volume (TSV) by accumulating price-change weighted volume over a specified window. It plots TSV as a colored histogram alongside its simple moving average signal line and a secondary 20-period moving average in a separa

Indicator v5 VolumeOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Enhanced Time Segmented Volume

Pivot Extension Break

by pineforge-4pass
1 stars

A strategy that detects confirmed swing highs and lows using left and right bar counts, remembers the latest of each, and trades breaks of them. It goes long when the close exceeds the last confirmed pivot high and short when the close falls below the last con

Strategy v6 BreakoutSupport & resistance
Updated 6 days ago · Apache-2.0 GitHub repository of Pivot Extension Break

SYRS-tracker

by Allen1212
303 stars

SYRS-tracker plots recorded ARK Invest purchases and sales of SYRS on the price chart. It marks buy and sell activity with share volume and shows the stock weight in the selected ETF. A same-day count notes how many ARK funds traded the stock together. The ETF

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

Line Break Strategy

by hasnocool
106 stars

Line Break Strategy generates trading signals by fetching Line Break chart data using a synthetic ticker context. It plots custom Line Break candlesticks in a separate pane and checks whether the line break bar closed higher or lower than its open. The strateg

Strategy v4 TrendCandlestick patterns Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Line Break Strategy

SuperTrend

by mihakralj
99 stars

This indicator calculates SuperTrend from an ATR-smoothed band around the midpoint of high and low. It plots the active band on the price chart, green in an uptrend and red in a downtrend. Trend flips when close crosses the opposite band and otherwise holds. A

Indicator v6 TrendVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of SuperTrend

GAIN28

by g-moe
3 stars

This indicator calculates an impulse momentum value by summing candle body differences (close minus open) divided by the minimum tick over a user-defined period. On the most recent bar, it draws forward projection lines into future time coordinates using timef

Indicator v5 Oscillators & momentumMoving averages Repaints
Updated 5 months ago · None stated GitHub repository of GAIN28

Pivot Point Levels Break

by pineforge-4pass
1 stars

A minimal strategy using the built-in Traditional pivot point levels. Each bar's levels are computed from the previous bar's high, low and close. It enters long when the close crosses above the first resistance level and short when it crosses below the first s

Strategy v6 Support & resistanceBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of Pivot Point Levels Break

TAK-tracker

by Allen1212
303 stars

This indicator plots historical ARK Invest buy and sell events for TAK directly on the price chart. Green labels sit below bars for buys and red labels sit above bars for sells, each marked with a same-day ETF count such as X1. The ETF input switches between A

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

MA5X_L

by hasnocool
106 stars

MA5X_L is a long-only trend-following momentum strategy built on weighted and simple moving averages combined with an ATR trailing exit. It calculates four moving averages (short, medium, long, extra-long WMA/SMA) and enters long trades when the short WMA cros

Strategy v4 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of MA5X_L
99 stars

Swing High/Low Detection identifies local price peaks and troughs by comparing a central bar against surrounding bars within a user-defined lookback window. Once a pivot point is confirmed after the required lookback period, the indicator updates and plots con

Indicator v6 Support & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of Swing High/Low Detection

GM VWAP

by g-moe
3 stars

This overlay indicator plots a volume-weighted average price from a chosen source, defaulting to the average of high, low, and close. It resets the cumulative volume sums at a selectable anchor such as the session, week, month, quarter, year, decade, century,

Indicator v5 VolumeVolatility & bands
Updated 5 months ago · None stated GitHub repository of GM VWAP

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