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
2 stars

This overlay indicator plots a six-axis RSI radar on the price chart. It requests 14-period RSI for six user-chosen timeframes and places each reading on a polygon centered on the visible price range. Overbought and oversold marks sit at 70 and 30. Settings ch

Indicator v5 Oscillators & momentum
Updated 8 months ago · None stated GitHub repository of RSI Radar Multi Time Frame
1 stars

The Kiln Power Efficiency strategy computes an EMA trend line and a squared displacement efficiency metric from price moves relative to ATR. It plots both on the price chart. The strategy enters long trades on EMA crossover above the trend when efficiency exce

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Kiln Power Efficiency

SNTI-tracker

by Allen1212
303 stars

This overlay indicator plots historical ARK Invest buy and sell labels for SNTI on the price chart. Green labels sit below the bar for buys and red labels sit above the bar for sells, each tied to a fixed calendar date and marked with an X1 count. The only set

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

This strategy executes trend-following breakout trades based on Donchian channels, moving average alignment, and long-term price extremes. It evaluates alignment across seven moving average periods alongside multi-period and yearly high or low filters. Long po

Strategy v4 TrendBreakout
Updated 2 years ago · GPL-3.0 GitHub repository of BuyHigh-SellLow Strategy

Solar Cycle (SOLAR)

by mihakralj
99 stars

This indicator calculates a solar cycle from each bar's open time using the Sun's ecliptic longitude. The result runs from about -1 at the winter solstice through 0 at the equinoxes to about +1 at the summer solstice, and it is plotted as a yellow line in a se

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Solar Cycle (SOLAR)
3 stars

This strategy plots exponential moving averages of length 1, 15, and 21 on the price chart and also calculates a length-5 simple moving average. It enters long when the length-1 average crosses above the length-15 average and the close is above the previous cl

Strategy v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of 2 EMA cross 10 EMA Strategy

Equivolume Bars

by regalouisei
2 stars

Equivolume Bars displays custom candlestick boxes on the main price chart, where each bar's width is proportional to its volume relative to a rolling lookback sum. The script calculates volume ratios to stretch or shrink historical and live price bodies and wi

Indicator v4 VolumeCandlestick patterns
Updated 8 months ago · None stated GitHub repository of Equivolume Bars
1 stars

This strategy enters long when the fast EMA crosses above the slow EMA and RSI exceeds the entry threshold. It closes when the fast EMA crosses under the slow EMA, RSI falls below the exit threshold, or the open position reaches the maximum hold bars. A stop s

Strategy v6 TrendOscillators & momentum
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Lattice Confirmed Pivot

SOFI-tracker

by Allen1212
303 stars

This indicator plots hardcoded ARK Invest buy and sell dates for SOFI on the price chart. Green labels sit below bars for buys and red labels sit above bars for sells. The ETF input switches between combined activity and ARKF-only records. Combined mode marks

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

This strategy calculates higher-timeframe pivot points, defaulting to Fibonacci calculations across configurable resolutions or symbol-based multipliers. It evaluates price interactions against these pivot levels to execute trades according to the selected tra

Strategy v4 Support & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of BuyHighSellLow - Pivot points
99 stars

This indicator calculates the Spearman rank correlation coefficient between the chart asset and a secondary ticker, plotting the resulting values between minus one and plus one in a separate pane. It ranks price data over a specified lookback period and applie

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Spearman Rank Correlation (SPEARMAN)
3 stars

This overlay indicator plots ATR-based horizontal levels around the previous close of a selected higher timeframe. A trading-type input maps day, multiday, swing, position, and long-term modes to daily through yearly periods. It draws trigger bands from a perc

Indicator v5 Volatility & bandsSupport & resistance Repaints
Updated 5 months ago · None stated GitHub repository of ATR Levels + CALL/PUT

Gap Filling Strategy

by regalouisei
2 stars

This strategy detects daily opening gaps and trades them on the price chart. It marks an up or down gap from the current open and close versus the previous bar, then stores the prior extreme as the fill level. By default it buys down gaps and shorts up gaps, e

Strategy v4 Mean reversionSessions & time Repaints
Updated 8 months ago · None stated GitHub repository of Gap Filling Strategy

PineForge — Ledger History NA

by pineforge-4pass
1 stars

This strategy plots a smoothed historical price anchor on the price chart by averaging historical closing prices. It enters a long position when price crosses under an entry threshold set below the smoothed anchor. The trade closes when price crosses back abov

Strategy v6 Mean reversionMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Ledger History NA

SPCE-tracker

by Allen1212
303 stars

This indicator plots ARK Invest trade labels for SPCE stock on the price chart. It shows buy and sell actions with share volumes and marks multiple transactions per day when several ARK ETFs trade the stock. Users select an ETF type from the input settings to

Indicator v4 Screeners & dashboardsSupport & resistance
Updated 2 years ago · None stated GitHub repository of SPCE-tracker

BuyTheDip

by hasnocool
106 stars

BuyTheDip is a strategy script that identifies upward moving average alignments across multiple timeframes using SMA, EMA, HMA, RMA, VWMA or WMA types. It plots Bollinger Bands on the price chart and enters long positions when alignment scores reach 1 and pric

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

Square Root Transformation calculates the square root of a selected price or data series in a separate pane. It applies a mathematical square root function to compress scale differences and reduce variance across positive values. The indicator safely handles m

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Square Root Transformation (SQRT)

Bands Indicator

by g-moe
3 stars

This indicator plots multiple deviation bands around the volume-weighted moving average and standard deviation. Upper bands R-1 to R-6 and lower bands S-1 to S-6 appear at Fibonacci ratios of the deviation from the mid-line on the price chart. The mid-line is

Indicator v5 Volatility & bandsMoving averages
Updated 5 months ago · None stated GitHub repository of Bands Indicator

This strategy demonstrates position sizing with leverage and margin in Pine Script using a Stochastic Oscillator indicator. It plots the %K and %D lines in a separate pane with upper and lower threshold levels. Long entries trigger when %K crosses above %D bel

Strategy v4 Oscillators & momentum
Updated 8 months ago · None stated GitHub repository of How to Use Leverage and Margin in PineScript
1 stars

This strategy trades long only on the price chart. It enters when a fast exponential moving average crosses above a slower one and sizes the next order from the last closed trade: the recovery quantity after a negative result and the full quantity otherwise. I

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Ledger Outcome Throttle

SPFR-tracker

by Allen1212
303 stars

This indicator plots historical buy and sell transactions executed by ARK Invest exchange-traded funds for the SPFR stock directly on the price chart. It draws green labels below price bars for buy actions and red labels above bars for sell actions, indicating

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

This strategy plots an Ichimoku cloud on the price chart and opens long or short trades from a selectable crossover. Signal choices cover Tenkan and Kijun, price against those lines or the cloud, and cloud color, with optional confirmation that price is beyond

Strategy v4 TrendVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of BV's ICHIMOKU CLOUD SIGNAL TESTER

Squeeze Momentum

by mihakralj
99 stars

This indicator plots Squeeze Momentum in a separate pane. It compares Bollinger Bands with a Keltner Channel to mark a squeeze when the bands sit inside the channel. Momentum is a linear regression of price relative to a Donchian midline and an SMA, shown as a

Indicator v6 Volatility & bandsOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Squeeze Momentum

Bankai + DTEK

by g-moe
3 stars

Bankai + DTEK is an overlay indicator that combines Qualitative Quantitative Estimation (QQE) logic, trend coloring based on SuperTrend and CCI ATR, up to four customizable EMA clouds, and simplified TD Sequential signals. It plots multiple moving average clou

Indicator v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of Bankai + DTEK
2 stars

This strategy plots in a separate pane and tests a selected oscillator with one of six entry logics: moving average, moving-average crossover, zero cross, extremes, mean reversion, or take profit. Users scale and time-adjust one of three oscillators and can li

Strategy v4 Oscillators & momentumMoving averages
Updated 8 months ago · None stated GitHub repository of Oscillator Evaluator (Analysis tool)
1 stars

The PineForge — Meridian DMI Regime strategy evaluates trend direction and momentum using the Directional Movement Index, Average Directional Index, and an Exponential Moving Average. It enters long trades when +DI crosses above -DI, provided ADX exceeds the d

Strategy v6 TrendOscillators & momentum
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Meridian DMI Regime

SPLK-Tracker

by Allen1212
303 stars

SPLK Tracker is a price chart overlay indicator that plots historical buy and sell transactions made by ARK Invest ETFs for Splunk Inc. (SPLK). The script places labels above or below price bars using historical timestamps corresponding to reported fund trades

Indicator v4
Updated 2 years ago · None stated GitHub repository of SPLK-Tracker
106 stars

This strategy evaluates multiple MACD entry techniques on the price chart. It calculates standard or SMA-based MACD line, signal line, and histogram values, offering selectable trigger models including continuation crosses, reversal crosses, histogram zero cro

Strategy v4 Oscillators & momentumMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of BV's MACD SIGNAL TESTER
99 stars

The Standard Deviation (STDDEV) indicator calculates the standard deviation of the input source series over a user-defined period. It employs a circular buffer for O(1) streaming computation, ensuring efficient memory usage. The indicator plots the standard de

Indicator v6 Volatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Standard Deviation (STDDEV)

Bankai DXY

by g-moe
3 stars

Bankai DXY is a multi-component trend and signal overlay script that combines EMA clouds, moving average slope filters, Aroon filters, QQE signals, Supertrend, CCI-ATR trend rules, and simplified TD Sequential counts. It overlays dynamic EMA clouds on the main

Indicator v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of Bankai DXY

PMax Explorer

by regalouisei
2 stars

The PMax Explorer strategy calculates the Profit Maximizer indicator by applying an ATR trailing stop band to various moving average types including EMA, VAR, ZLEMA, and TSF. It plots the selected moving average and PMax line directly on the price chart to tri

Strategy v4 TrendMoving averages
Updated 8 months ago · None stated GitHub repository of PMax Explorer

PineForge — Mosaic Map Regime

by pineforge-4pass
1 stars

PineForge — Mosaic Map Regime is a trend-following strategy that dynamically scales trading signals using volatility regimes. It calculates an Exponential Moving Average and ATR, using a map to assign risk weights based on whether ATR percentage exceeds an exp

Strategy v6 TrendVolatility & bands
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Mosaic Map Regime

SPNS-tracker

by Allen1212
303 stars

SPNS-tracker is an overlay indicator that marks ARK Invest purchases of SPNS on the price chart. It places green below-bar labels on two January 2020 dates, each showing a buy with a count of one. A single ETF input exists but only offers ALL, so it does not s

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

The CDC Action Zone V.3 Test strategy calculates fast and slow exponential moving averages to generate trend-following buy and sell signals. It plots EMA lines, custom bar colors, buy and sell labels, and a visual ribbon directly on the main price chart. The s

Strategy v4 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of CDC Action Zone V.3 Test ++Position Size Fix+Float

Calculates a linear regression trend line and standard deviation bands based on the residuals over a user-defined lookback window. The script plots the central linear regression line along with upper and lower channel boundaries directly on the price chart, fi

Indicator v6 TrendVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Standard Deviation Channel (SDCHANNEL)

Bankai ES Trend

by g-moe
3 stars

Bankai ES Trend combines multiple trend and momentum tools into an overlay indicator on the price chart. It calculates moving average slope filters, Aroon trend conditions, QQE momentum signals, Supertrend levels, and multi-period EMA clouds. It plots trend ba

Indicator v5 TrendMoving averages Repaints
Updated 5 months ago · None stated GitHub repository of Bankai ES Trend

PineForge — Orbit MTF Trend

by pineforge-4pass
1 stars

Orbit MTF Trend is a multi-timeframe strategy that plots higher-timeframe and local exponential moving averages on the price chart. It generates long entries on local EMA crossover above the higher EMA and closes positions on the reverse crossover. Risk manage

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Orbit MTF Trend

SPR-Tracker

by Allen1212
303 stars

SPR-Tracker visualizes historical buys and sells made by ARK Invest funds for the specified ticker directly on the main price chart. It plots text labels indicating buy or sell actions along with the number of participating ARK ETFs on specific transaction dat

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

Crypto Price Scalper

by hasnocool
106 stars

Crypto Price Scalper is a long-only trading strategy designed for cryptocurrency charts. It combines a custom price-range oscillator, calculated from the highest high and lowest low over a user-defined candle period, with the Vortex Indicator. A long trade ope

Strategy v4 Oscillators & momentumTrend
Updated 2 years ago · GPL-3.0 GitHub repository of Crypto Price Scalper

This indicator calculates the standard error of a linear regression of the chosen source over a user-defined lookback and plots that value as a yellow line in a separate pane. It fits slope and intercept on a circular buffer, then takes the square root of the

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Standard Error of Regression (STDERR)
3 stars

This strategy combines two sets of Bollinger Bands with a Laguerre RSI oscillator plotted on the price chart. It generates buy and sell signals when price touches the upper or lower bands or zones. The strategy allows enabling or disabling entries and includes

Strategy v5 Mean reversionVolatility & bands
Updated 5 months ago · None stated GitHub repository of BB + LaRSI Strategy

Grid Like Strategy

by regalouisei
2 stars

Grid Like Strategy calculates a dynamic baseline overlay that steps up or down whenever price moves beyond a defined point threshold. It enters long positions when the baseline moves upward and short positions when it moves downward, automatically placing take

Strategy v4 Support & resistanceBreakout
Updated 8 months ago · None stated GitHub repository of Grid Like Strategy

PineForge — Prism Matrix Vote

by pineforge-4pass
1 stars

The PineForge Prism Matrix Vote strategy plots two EMAs on the price chart and calculates a vote score from four factors: EMA crossover, price above fast EMA, RSI above 52, and ATR relative to close. It enters long positions when the vote score crosses above a

Strategy v6 TrendOscillators & momentum
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Prism Matrix Vote

SRNG-tracker

by Allen1212
303 stars

This indicator plots ARK Invest trade labels on the SRNG stock price chart. It marks historical buy and sell dates with green or red labels and X1 or X2 multipliers that count how many ARK ETFs participated on each day. The script draws static vertical labels

Indicator v4 Support & resistance
Updated 2 years ago · None stated GitHub repository of SRNG-tracker
106 stars

This strategy plots a mapped EMA-and-standard-deviation difference in a separate pane and trades moving-average crossovers filtered by that line. After the 50-period EMA crosses the 200-period SMA, it waits for price to stay on the crossover side and for the m

Strategy v4 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of EMA Difference Mapping with Trades
99 stars

The Stochastic Fast (STOCHF) indicator calculates the fast stochastic oscillator, consisting of the raw fast %K line and the smoothed fast %D signal line. %K measures the relative position of the current close within the high-low range calculated over the spec

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

Buy Low Sell High Composite is a pane oscillator that normalizes RSI, a short-versus-long EMA difference, the MACD histogram, and the Money Flow Index onto a shared scale, then sums them into one composite. It plots that composite as a colored area, the MACD s

Indicator v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of Buy Low Sell High Composite

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