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

This indicator calculates an Exponential Moving Average and a Zero-Lag Moving Average to identify market trends on the price chart. It plots both moving averages and fills the space between them with color to highlight trend direction. Upon a crossover or cros

Indicator v5 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of No-Lag MA Trend Levels

MACD

by dcaoyuan
55 stars

This indicator plots a standard MACD oscillator in a separate pane. It calculates the MACD line, signal line, and histogram from the close using fixed lengths of 12, 26, and 9. It draws the MACD line in blue and the signal line in orange, plus a column histogr

Indicator v6 Oscillators & momentum
Updated 6 months ago · Apache-2.0 GitHub repository of MACD
53 stars

This strategy identifies long entry opportunities based on short-term price pullbacks below a major trend filter. It enters long when three consecutive lower closes occur below the 200-period simple moving average, followed by the current bar closing back abov

Strategy v6 TrendMoving averages
Updated 2 months ago · MPL-2.0 GitHub repository of Ivan Scherman Pattern - TP/SL

Bollinger %B

by mihakralj
47 stars

This indicator calculates Bollinger %B in a separate pane. It tracks a simple moving average and population-style variance of the selected source with a circular buffer and running sums, then places the source between the lower and upper bands scaled by the st

Indicator v6 Volatility & bandsOscillators & momentum
Updated 8 months ago · MIT GitHub repository of Bollinger %B

Noon Curve

by TamaraKGreen
46 stars

This overlay indicator maps a fixed New York session from 8:00 AM to 4:00 PM into an on-chart noon curve. It draws a range box, a solid noon line, and dashed quarter lines at 10:00 AM and 2:00 PM. It plots AM high and low lines plus offset likely AM levels at

Indicator v6 Sessions & timeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Noon Curve
43 stars

This indicator plots five customizable moving averages from a chosen higher timeframe directly on the price chart. It does not provide trading signals, trade execution, or automated alerts. Users can configure the target resolution, adjust individual period le

Indicator v4 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of Hardcoded Moving Averages

This strategy designed for Binance SOLUSDTPERP futures trading generates entries based on pivot high and low support or resistance levels, a 3-period EMA, and a custom smoothed trend filter line. It opens long or short positions when price confirms movement re

Strategy v5 TrendBreakout Repaints
Updated 2 years ago · None stated GitHub repository of SOLUSDTPERP - Strategy Candles Bar

Planetary Retrograde Dashboard

by blueprintresearch-dev
42 stars

This indicator plots retrograde periods for up to eight planets in a separate pane. It fills historical retrograde spans without a box limit and draws boxes for future projections out to a configurable number of bars. A histogram shows how many planets are ret

Indicator v6 Screeners & dashboards
Updated 2 weeks ago · None stated GitHub repository of Planetary Retrograde Dashboard

Relative Strength Table

by ChartsLector
41 stars

This indicator builds a table of relative strength for up to six user-chosen symbols against a benchmark, defaulting to SPY. It measures strength over four lookback periods, can average the visible periods, and can add relative volume as current volume divided

Indicator v6 Screeners & dashboardsVolume
Updated 3 days ago · None stated GitHub repository of Relative Strength Table

Auto Fib Retracement

by TWODS-CAPITAL
37 stars

Auto Fib Retracement finds swing pivots on the price chart and draws Fibonacci retracement lines between the latest significant high and low. Deviation, scaled from ATR relative to price, and Depth decide how large a move must be before a new pivot replaces th

Indicator v5 Support & resistance
Updated 3 years ago · MIT GitHub repository of Auto Fib Retracement
29 stars

This indicator detects price swing legs using a threshold-reversal algorithm scaled to a multiple of the prior day's average daily range (ADR). When a leg completes, it plots up to six customizable pullback percentage levels directly on the price chart. Users

Indicator v6 Support & resistanceVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Zen Leg Pullback Levels

Ta

by nersent
29 stars

This Pine Script v5 library exports thin wrappers around built-in technical analysis functions. It covers moving averages, momentum measures such as RSI and CCI, volatility tools including ATR and standard deviation, range extremes, cross detection, and runnin

Library v5
Updated 11 months ago · Custom licence GitHub repository of Ta
26 stars

This indicator draws a two-by-two table in the top-right of the price chart and plots the close. On the last bar it writes labels into the first row and merges those two cells into one. There are no inputs and no trading signals, entries, exits, or risk rules.

Indicator v6 Screeners & dashboards
Updated 2 months ago · AGPL-3.0 GitHub repository of Feature Matrix - table merge

Stochastic RSI Divergences

by tistaharahap
25 stars

Calculates the Stochastic RSI oscillator and automatically identifies regular and hidden bullish or bearish divergences against price movement. It detects pivot points in the oscillator line using configurable left and right lookback lengths and compares them

Indicator v4 Oscillators & momentumDivergence Repaints
Updated 6 years ago · None stated GitHub repository of Stochastic RSI Divergences
24 stars

This indicator plots a Cipher B-style oscillator in a separate pane and can source its calculations from Heikin Ashi candles when that option is on. It draws WaveTrend lines with optional buy, gold, sell, and divergence dots, plus overbought and oversold level

Indicator v5 Oscillators & momentumDivergence
Updated 4 years ago · MPL-2.0 GitHub repository of Cipher B Heikin Ashi
23 stars

MTF State of Delivery tracks lower timeframe and higher timeframe orderflow delivery states by identifying bullish and bearish delivery levels across timeframes. It plots confirmed and pending orderflow lines directly on the price chart and provides an optiona

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 3 weeks ago · Custom licence GitHub repository of MTF State of Delivery by traderprimez
20 stars

This indicator calculates a base moving average (EMA, SMA, WMA, or HMA) and projects multiple symmetrical envelope bands around it directly on the price chart. Users can adjust the length, source, moving average type, and initial envelope multiplier. Additiona

Indicator v5 Moving averagesVolatility & bands
Updated 1 year ago · None stated GitHub repository of Multiple Moving Average Envelope
18 stars

Upstox Brokerage Calculator is an Indian equity brokerage and transaction fee calculation utility tool for TradingView. It uses customizable input parameters for position quantity, purchase price, and sale price to calculate estimated brokerage fees, regulator

Indicator v4 Screeners & dashboards
Updated 4 years ago · None stated GitHub repository of Upstox Brokerage Calculator

RSI/BB 1minute Study

by SammyEnigma
18 stars

This strategy combines the Relative Strength Index with Bollinger Bands to generate mean-reversion entries. It plots the RSI oscillator and threshold lines in a separate pane, while calculating hidden Bollinger Bands and band width. Long entries trigger when R

Strategy v4 Oscillators & momentumVolatility & bands
Updated 6 years ago · None stated GitHub repository of RSI/BB 1minute Study
16 stars

This price-chart strategy trades Donchian channel breakouts in the style of a Seykota trend system. It enters long or short when price touches the entry channel, using the bar high or low when intrabar mode is on, and can add units after further moves of a set

Strategy v6 TrendBreakout Repaints
Updated 12 months ago · None stated GitHub repository of Seykota Alt 19: Intrabar Execution

Trend Compass 15m

by chris-c-thomas
14 stars

Trend Compass 15m is an intraday trend analysis overlay designed for 15-minute charts. It calculates a triple exponential moving average ribbon, higher-timeframe reference EMAs from 1H, 4H, and Daily periods, RSI and MACD divergences, On-Balance Volume trends,

Indicator v6 TrendMoving averages Repaints
Updated 6 months ago · MIT GitHub repository of Trend Compass 15m

DI Engulfing C003

by ruckard
13 stars

This strategy trades bullish and bearish body engulfing patterns on the price chart. It allows longs only when price is above the 200-period exponential moving average and shorts only when price is below it. A long needs three consecutive red candles followed

Strategy v5 Candlestick patternsTrend
Updated 1 year ago · None stated GitHub repository of DI Engulfing C003

My ICT Concepts

by dbruce1990
12 stars

This indicator identifies core Smart Money Concepts on the main price chart, focusing on Fair Value Gaps (FVGs), market structure, swing points, and Change in State of Delivery (CISD). It highlights bullish and bearish imbalances using dynamic boxes that can a

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of My ICT Concepts

Study Alert Plot Example

by f-cksociety
11 stars

This indicator is a minimal example of dynamic alert messages. It plots the symbol's closing price in a separate pane under the title priceClose. It also declares one alert condition named Alert Close whose message inserts that plotted value and the ticker thr

Indicator v5
Updated 4 years ago · MPL-2.0 GitHub repository of Study Alert Plot Example
10 stars

TPCharts Asia Extensions calculates and identifies horizontal price extension levels based on the high and low range of the Asian trading session defined in GMT hours. It projects session levels and extended target lines directly onto the main price chart alon

Indicator v4 Sessions & timeSupport & resistance
Updated 5 years ago · GPL-3.0 GitHub repository of TPCharts Asia Extensions

Candle Pressure & Response (JMA) evaluates price action dynamics by calculating bidirectional candle pressure, upper and lower wick rejection fractions, body efficiency, and range expansion metrics relative to ATR. Each output series is smoothed using a Jurik

Indicator v6 Candlestick patternsVolatility & bands
Updated 2 days ago · MIT GitHub repository of Candle Pressure & Response (JMA)

QPulse

by JasonTeixeira
9 stars

QPulse is a multi-factor indicator that draws in a separate pane to evaluate market momentum, volume flow, and volatility dynamics. It calculates volume delta, a cumulative delta proxy, advanced adaptive ATR, and a hybrid volume-weighted RSI with overbought an

Indicator v6 Oscillators & momentumVolatility & bands
Updated 13 days ago · Custom licence GitHub repository of QPulse

LuckyFX RBtrader strategy

by MeridianAlgo
9 stars

LuckyFX RBtrader strategy is a price-chart candle filter. It marks a bullish condition when the current candle is bullish, the previous candle is bearish, and optional checks pass: body size between a minimum and maximum share of the previous body, prior candl

Indicator v6 Candlestick patterns
Updated 4 months ago · MIT GitHub repository of LuckyFX RBtrader strategy

MFI Strategy - Eterna MCP

by EternaHybridExchange
9 stars

This strategy calculates the Money Flow Index (MFI) to identify momentum shifts, overbought or oversold states, and price divergences. It opens long entries when MFI crosses above the oversold level or displays bullish divergence while under the midline. It en

Strategy v5 Oscillators & momentumDivergence
Updated 7 months ago · MIT GitHub repository of MFI Strategy - Eterna MCP

Variance Ratio Test

by Anderson-ALGO
9 stars

This indicator calculates the Variance Ratio Test statistic to evaluate random walk behavior across multiple sampling periods. It computes log returns, base period variance over a specified lookback window, and scaled multi-period variances to determine test Z

Indicator v4 Volatility & bandsMean reversion
Updated 5 years ago · None stated GitHub repository of Variance Ratio Test
8 stars

ATX-Long-Term Strategy is an overlay strategy built around a selectable moving average, ATR, and ADX. Settings offer eight average types, including Tilson T3, an optional second average, Heikin-Ashi prices, and a custom timeframe. Separate ATR multipliers appl

Strategy v4 TrendMoving averages
Updated 4 years ago · None stated GitHub repository of ATX-Long-Term Strategy

LunarTick Trend

by lunarticktrading
7 stars

LunarTick Trend plots a cloud between a fast and a slow moving average on the price chart. The user chooses SMA or EMA and the two lengths, and both averages can be requested from a selected timeframe. Bullish and bearish colors mark the cloud, and optional re

Indicator v6 TrendMoving averages Repaints
Updated 2 weeks ago · None stated GitHub repository of LunarTick Trend
7 stars

This indicator compares the price movement of the current chart symbol against up to forty user-specified tickers across a configurable correlation window. It identifies the highest-correlated asset and projects its scaled or rotated price path directly onto t

Indicator v6 Screeners & dashboards
Updated 3 months ago · None stated GitHub repository of Match Finder [theUltimator5]

Supertrend + ADX

by muammeryldrm42
7 stars

This strategy combines Supertrend direction with an ADX strength filter. It enters long when Supertrend flips to an uptrend and ADX is above the threshold, and enters short on a downtrend flip under the same filter, only while the position is flat. The Supertr

Strategy v5 TrendOscillators & momentum
Updated 3 months ago · MIT GitHub repository of Supertrend + ADX
7 stars

This indicator calculates and displays the aggregated profit and loss (PnL) for manual positions in EUR/USD, USD/JPY, and BTC/USDT. It requests hourly market close prices for each asset and computes individual and total returns based on user-entered entry pric

Indicator v5 Screeners & dashboards
Updated 4 months ago · None stated GitHub repository of My Position and PnL

Impulse MACD

by s4mn0v
7 stars

The Impulse MACD indicator calculates a modified Moving Average Convergence Divergence to measure price momentum in a smoother and less noisy way than traditional MACD. It uses special moving averages with default lengths of 34 for the fast period and 9 for th

Indicator v6 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of Impulse MACD
7 stars

This strategy calculates standard Ichimoku Kinko Hyo components including the Tenkan-Sen, Kijun-Sen, Chikou-Span, and Senkou Spans A and B to plot the Ichimoku cloud directly on the price chart. It enters long positions when price and Kijun-Sen are above the K

Strategy v5 TrendMoving averages
Updated 1 year ago · MPL-2.0 GitHub repository of Ichimoku Kinko Hyo: Basic Strategy
7 stars

This indicator calculates the ratio of bar volume to the absolute relative price change between the open and close prices. It plots the resulting values as a histogram column chart in a separate pane to help identify bars where high trading volume occurred alo

Indicator v5 Volume
Updated 3 years ago · MIT GitHub repository of Volume / Abs(Close/Open - 1)

SuperTrend

by trsdn
6 stars

This indicator plots the classic SuperTrend line on the price chart. It builds upper and lower bands from an ATR of the chosen source, then trails the band that stays active for the current direction. Direction turns up when price closes above the lower band a

Indicator v5 TrendVolatility & bands
Updated 6 days ago · MIT GitHub repository of SuperTrend
6 stars

Capital41 Fusion Oscillator v3 measures multi-condition market confluence in a separate pane with a smoothed composite score ranging from 0 to 100. It evaluates four criteria: EMA trend direction, RSI oversold or overbought turns, Williams %R thresholds, and A

Indicator v6 Oscillators & momentumTrend
Updated 8 weeks ago · MIT GitHub repository of Capital41 Fusion Oscillator v3

TheStrat Suite

by 345-strategies
5 stars

TheStrat Suite is a multi-timeframe price action indicator implementing Rob Smith's TheStrat methodology. It calculates bar classifications for inside bars, hammers, shooters, failed 2s and outside bars across configurable timeframes. The indicator detects sig

Indicator v6 SMC / ICT / price actionCandlestick patterns Repaints
Updated 3 days ago · MPL-2.0 GitHub repository of TheStrat Suite
5 stars

The Quick Scan for Signal indicator calculates a custom market efficiency ratio by comparing net price displacement against total price movement over a specified lookback period or cumulatively from the chart start. It calculates statistical boundaries based o

Indicator v6 Oscillators & momentumVolatility & bands
Updated 8 months ago · None stated GitHub repository of Quick Scan for Signal

Stochastic

by SiegerTerpstra
5 stars

This indicator plots a Stochastic oscillator in a separate pane. It compares the selected source with the high-low range over the %K length, then applies separate smoothing to the %K line and the %D signal line. Adjustable lower and upper bands default to 20 a

Indicator v6 Oscillators & momentum
Updated 9 months ago · None stated GitHub repository of Stochastic
5 stars

Atraxis' Linear Regression calculates and plots linear regression channels directly on the price chart. It determines the channel slope, intercept, and deviation bands around a specified price source across a user-defined length. Key settings allow traders to

Indicator v4 TrendSupport & resistance
Updated 2 years ago · None stated GitHub repository of Atraxis' Linear Regression

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