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 Supertrend

by ktg0413
1 stars

Calculates and plots two Supertrend lines with different sensitivity settings alongside a 200-period EMA baseline on the price chart. The fast Supertrend uses a smaller ATR multiplier to capture short-term price momentum, while the slow Supertrend uses a large

Indicator v6 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of 2 Supertrend

Hotzones

by feliperazeek
1 stars

Hotzones identifies and plots bullish and bearish order block liquidity zones directly on the price chart. It draws colored boxes for active liquidity ranges along with average price levels. The indicator dynamically removes mitigated zones when price crosses

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 1 year ago · None stated GitHub repository of Hotzones

Modified Asia Sweep

by HibrowSamuvelChristin
1 stars

Modified Asia Sweep is a futures strategy sample built around the Asian and London sessions, with session hours and time zone as inputs. It draws session ranges, Asian swing points, market structure and break of structure lines. Position size can be set by a f

Strategy v5 Sessions & timeSMC / ICT / price action
Updated 1 year ago · Custom licence GitHub repository of Modified Asia Sweep

Strategy Version 1.2

by HypertextAssassin69
1 stars

A long strategy built on a 50-period Hull moving average crossing a 200-period EMA, with ADX strength, a short Hull slope and an optional RSI filter used to scale entry size in steps. It uses an ATR stop that tightens after a drawdown, staged profit-lock parti

Strategy v6 TrendMoving averages Repaints
Updated 1 year ago · None stated GitHub repository of Strategy Version 1.2

Cuan Bungkus

by mamuncloud
1 stars

A long-only strategy for stocks that buys when the close is above a 5-period EMA, the short EMA is above a 20-period EMA, and volume exceeds a multiple of its 20-bar average. Position size is a set percent of initial capital. After entry it places a fixed perc

Strategy v6 Moving averagesVolume
Updated 1 year ago · None stated GitHub repository of Cuan Bungkus

FRK OHLC Statistics

by murdrae
1 stars

FRK OHLC Statistics is an overlay indicator that draws key Open, High, Low, and Wick level lines on the price chart from up to five customizable timeframes. It allows traders to monitor historical reference points across intraday, daily, weekly, and monthly pe

Indicator v6 Support & resistance Repaints
Updated 1 year ago · None stated GitHub repository of FRK OHLC Statistics
1 stars

A statistics table on the price chart that counts how many recent candles closed up, down or flat and shows the share of each as a directional bias. In Standard mode it uses a fixed lookback; in Daily, Weekly or Monthly mode it counts candles since the session

Indicator v6 Screeners & dashboards
Updated 1 year ago · MIT GitHub repository of QuantMarket Lab Directional Dashboard

An overlay with Turkish labels that detects XABCD harmonic patterns, including Gartley, Bat, Butterfly, Crab, Deep Crab, Shark and Cypher. In automatic mode it scans pivots over a lookback window and scores each match against a minimum percentage; in manual mo

Indicator v5 Support & resistance Repaints
Updated 1 year ago · MIT GitHub repository of Harmonic Pattern Manual and Auto

ATR Exit Indicator

by Shifrozy
1 stars

Plots ATR-based trailing exit levels on the price chart. It tracks the highest and lowest close over a lookback window, 200 bars by default, and sets a long exit level at three ATR below the high and a short exit level at three ATR above the low. Labels and al

Indicator v6 Volatility & bands
Updated 1 year ago · None stated GitHub repository of ATR Exit Indicator
1 stars

ATR Retracement EMA Signals identifies momentum setups by detecting large candle expansions relative to Average True Range, followed by brief price retracements and moving average crossovers. When price experiences a strong bar move, retracing within a configu

Indicator v5 Volatility & bandsMoving averages
Updated 1 year ago · MIT GitHub repository of ATR Retracement EMA Signals
1 stars

This strategy combines Exponential Moving Averages, the Relative Strength Index, and Average True Range with optional multi-timeframe confirmation to generate trade signals. Long trades trigger on fast EMA bullish crossovers when RSI is low, while short trades

Strategy v6 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Demo Advanced Strategy v6

MR First Entry Backtester

by gaurav4ever
1 stars

A strategy for 5-minute charts that builds a morning range of either five or fifteen minutes after the market open and takes the first breakout entry, with an entry buffer in ticks. An optional trend filter buys only above and sells only below the 50 EMA, and

Strategy v5 BreakoutSessions & time
Updated 1 year ago · None stated GitHub repository of MR First Entry Backtester

Trend Analyzer MACD Enhanced

by panzmoravylab
1 stars

This indicator, drawn in a separate pane, combines MACD, RSI and volume analysis with divergence detection. It compares price extremes over the last twenty bars with MACD and RSI to flag bullish and bearish divergences, colours the background by trend and mark

Indicator v6 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of Trend Analyzer MACD Enhanced

Buy 8/13/25E

by dsjrego
1 stars

A price chart overlay that plots a 9-period EMA and a Bollinger upper band and prints buy markers. A standard buy triangle appears on a confirmed green bar that closes above the EMA and above the close two bars back, provided the previous bar was not red. An e

Indicator v5 Moving averagesVolatility & bands
Updated 1 year ago · None stated GitHub repository of Buy 8/13/25E

ORB Fresh v3

by abhidp
1 stars

Opening range breakout strategy on the price chart. It measures the high and low of a configurable opening window, 09:30 to 09:45 by default, ignores ranges below a minimum point size, and trades breakouts of that range. Position size is based on a risk percen

Strategy v6 BreakoutSessions & time
Updated 1 year ago · None stated GitHub repository of ORB Fresh v3

Neural Network Buy and Sell Signals

by solskjaeralesithio
1 stars

This indicator combines a neural network signal grading engine with moving average and trading session filters directly on the price chart. It plots buy and sell signal labels based on momentum, volatility, and trend conditions evaluated across selectable cand

Indicator v6 AI / machine learningMoving averages

Llama P2P

by lappingio
1 stars

A session and levels overlay that draws boxes for the Sydney, Asia and London sessions in New York time with optional labels, plus a Fibonacci retracement of the session range. It also draws horizontal lines for the current and true day open, previous day, wee

Indicator v6 Sessions & timeSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Llama P2P

CCE ORB

by ylohnitram
1 stars

Marks the opening range of the US stock session on the price chart. The range starts at 9:30 New York time and lasts a set number of minutes, 15 by default, with optional extension levels projected from it. A setting limits the display to the morning or to the

Indicator v5 Sessions & timeBreakout
Updated 1 year ago · None stated GitHub repository of CCE ORB

Reversal Signals

by turnupdigital
1 stars

An indicator on the price chart that looks for candle reversal setups over a lookback of 12 candles and requires confirmation within a few further candles, optionally backed by volume above its 20 bar average. A trend moving average, selectable as SMA, EMA, WM

Indicator v6 Candlestick patternsMoving averages
Updated 1 year ago · None stated GitHub repository of Reversal Signals

A breakout strategy built for S50 futures on a 30-minute chart. It tracks confirmed swing highs and lows from pivot detection and places stop-order entries when price breaks the latest swing level. The stop sits one ATR beyond the opposite swing, the target is

Strategy v6 BreakoutSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of S50 TFEX Trend Following Breakout

IVY Indicator

by vinodliyanage
1 stars

A chart-overlay indicator that plots a 9-period EMA and converts the absolute distance between the close and the EMA into a confidence value using a sigmoid curve with fixed fitted constants. A buy triangle appears when price is above the EMA and the value mee

Indicator v6 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of IVY Indicator
1 stars

This indicator calculates the average high-to-low range of a user-selected number of prior candles on a chosen timeframe. It plots bullish and bearish target lines from the current candle range on the price chart and can extend those lines by a set number of b

Indicator v6 Volatility & bandsSupport & resistance Repaints
Updated 1 year ago · MIT GitHub repository of ACR(Average Candle Range) With Targets

ICT Levels

by JamestheBuildrCodes
1 stars

An overlay that marks the opening price at five New York clock times each day: 12 AM, 8:30 AM, 9:30 AM, 2 PM and 6 PM. For the current day only, each time gets a horizontal line at that bar's open and a text label to the right, and the previous day's lines are

Indicator v6 Sessions & timeSupport & resistance
Updated 1 year ago · None stated GitHub repository of ICT Levels

A strategy written for a 15-minute TRUMP perpetual swap chart. When a candle's high-to-low range exceeds a percentage threshold, it places a limit order against the candle's direction, short after a green candle and long after a red one, at a price between the

Strategy v6 Mean reversionVolatility & bands
Updated 1 year ago · None stated GitHub repository of TRUMP 15m Large Range Reversal v1

Detects bullish and bearish order blocks using pivot highs and lows and draws them as boxes on the price chart. Settings define the minimum and maximum block size, the pivot left and right bar counts, the maximum number of historic blocks kept, and a lookback

Indicator v5 SMC / ICT / price actionSupport & resistance

Premium 3

by Abishek-Tharu99
1 stars

A multi-tool overlay indicator on the price chart. It offers reversal buy and sell markers, oversold and overbought shading, a trend ribbon, optional reversal bands and three moving average support and resistance lines. It can also show higher-timeframe liquid

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Premium 3

Super AI Binary Bot

by 12345678798
1 stars

This indicator generates reversal signals based on simple candlestick comparisons over a user-defined lookback period. A bullish signal triggers when both the current and historical candles close higher while the current low is lower than the past low, and vic

Indicator v5 Candlestick patterns Repaints
Updated 1 year ago · None stated GitHub repository of Super AI Binary Bot
1 stars

An overlay indicator that marks price breaks confirmed by a volume surge. A break is when price moves past the recent high or low by a set percentage, direction selectable, on volume above its average. Optional confirmations are a retest, RSI and MACD momentum

Indicator v6 BreakoutVolume Archived
Updated 1 year ago · MIT GitHub repository of High Volume Momentum Strategy

My BTC Investment Strategy

by CodingExplored
1 stars

A long-biased strategy that compares two selectable trend lines (TEMA, LSMA, EMA or SMA) and enters when the fast line crosses above the slow one while an ATR trailing level sits below price. It exits when price drops under the trailing high, when the lines cr

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of My BTC Investment Strategy

Ultimate Crypto Bot

by dextergocode
1 stars

This Pine Script strategy is designed for cryptocurrency trading on TradingView. It combines moving averages, RSI, MACD, Bollinger Bands, Stochastic oscillator and volume analysis to generate buy and sell signals. Higher time frame trend confirmation and marke

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · MPL-2.0 GitHub repository of Ultimate Crypto Bot
1 stars

This indicator finds pivot highs and lows with an adjustable detection length and margin, then draws buyside and sellside liquidity zones and level lines on the price chart. Zones can be coloured separately and given their own margin. Optional liquidity voids

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of Buyside & Sellside Liquidity

Swing Trading Indicator

by armaandamani
1 stars

A separate-pane indicator built for crypto swing and day trading with an external bot. It plots a Stochastic RSI, a MACD with very long periods for the medium-term trend, and a Money Flow Index, and also uses two Bollinger Band sets for oversold entries and ex

Indicator v6 Oscillators & momentumVolatility & bands Repaints
Updated 1 year ago · None stated GitHub repository of Swing Trading Indicator

TAIndicators

by MarcosACH
1 stars

TAIndicators is a Pine Script library providing helper functions for technical analysis calculations. It features flexible moving average functions supporting SMA, EMA, SMMA, WMA, and VWMA options, along with secondary smoothing methods and Bollinger Band calc

Library v6
Updated 1 year ago · None stated GitHub repository of TAIndicators

SMC Dashboard

by minik28
1 stars

An early skeleton of a dashboard intended to support the LuxAlgo smart money concepts indicator. It declares a multi-timeframe trend row for 1, 5, 15 and 60 minutes and a table for long and short setup checks covering liquidity grab, CHoCH, order block and fai

Indicator v5 SMC / ICT / price actionScreeners & dashboards
Updated 1 year ago · None stated GitHub repository of SMC Dashboard

Liquidity Zones

by MarcosACH
1 stars

Liquidity Zones highlights bars where volume is above a multiple of its moving average while short-term price volatility is below half of the average volatility. Matching bars are shaded as zones, with optional labels showing the zone volume in units or curren

Indicator v6 VolumeSupport & resistance
Updated 1 year ago · None stated GitHub repository of Liquidity Zones

Consolidation Zones

by MarcosACH
1 stars

Consolidation Zones draws boxes over periods when price stays inside a band around a simple moving average. A zone forms when every close in the last minimum-zone-length bars sits within one ATR of the average. Overlapping zones are extended and merged, and zo

Indicator v6 Volatility & bandsSupport & resistance
Updated 1 year ago · None stated GitHub repository of Consolidation Zones
1 stars

Three Bar Reversal Pattern marks bullish and bearish three-candle reversals. A bullish pattern is two down candles followed by an up candle closing above the first candle's open; the bearish pattern is the mirror image. Optional filters require volume above it

Indicator v6 Candlestick patternsVolume
Updated 1 year ago · None stated GitHub repository of Three Bar Reversal Pattern

Market Structure

by MarcosACH
1 stars

Market Structure plots swing highs and swing lows, found as the highest or lowest bar within a configurable window, and marks change of character events when the close breaks the latest swing level in the opposite direction. Pivot colors, visibility and the nu

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of Market Structure

Trend Detector

by MarcosACH
1 stars

Trend Detector can plot up to three moving averages, each with its own type (SMA, EMA, RMA, WMA or VWMA), length, source and timeframe, defaulting to 15, 60 and 240 minutes. A table lists whether each selected average is trending up or down. An option waits fo

Indicator v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Trend Detector

Triple SMA

by ceteongvanness
1 stars

This Pine Script v6 indicator calculates and plots three simple moving averages directly on the main price chart. It displays a 20-period short-term SMA, a 50-period medium-term SMA, and a 200-period long-term SMA using distinct line colors. The script offers

Indicator v6 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Triple SMA

Buy and Sell Signal Combo

by Mr-Madhuranga
1 stars

An indicator on the price chart that merges three signal sources into one buy and one sell marker. A buy appears when RSI is below 30 and MACD crosses above its signal line, when the 50 EMA crosses above the 200 EMA, or when price closes above the highest high

Indicator v5 Oscillators & momentumBreakout
Updated 1 year ago · None stated GitHub repository of Buy and Sell Signal Combo
1 stars

Dynamic Anchored VWAP calculates a volume-weighted average price starting from a selected dynamic or manual anchor point, such as the chart start, daily start, weekly start, monthly start, or a specific timestamp. It calculates and plots the anchored VWAP alon

Indicator v6 VolumeSupport & resistance
Updated 1 year ago · GPL-3.0 GitHub repository of Dynamic Anchored VWAP

Options MA Bollinger

by ShadowBrokersDevs
1 stars

An indicator on the price chart that draws a 20 period and a 50 period EMA together with Bollinger Bands, 20 period and 2 standard deviations by default, and fills the band area. It marks a buy triangle when the fast EMA crosses above the slow EMA or price clo

Indicator v6 Moving averagesVolatility & bands
Updated 1 year ago · MIT GitHub repository of Options MA Bollinger

Adaptive SuperTrend Strategy

by yagyesh-bobde
1 stars

The Adaptive SuperTrend Strategy is a custom trading strategy that calculates an adaptive SuperTrend value using volatility-adjusted factors. It determines high or low volatility by comparing ATR to its 100-period SMA and adjusts the SuperTrend factor accordin

Strategy v6 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Adaptive SuperTrend Strategy

FusionBell Pro

by saleh-ato
1 stars

This indicator combines four technical tools into a unified scoring system directly on the price chart. It evaluates an exponential moving average trend crossover, relative strength index levels, MACD line positioning against its signal line, and Bollinger Ban

Indicator v6 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of FusionBell Pro

Entry Zone Marker

by TradingX-TF
1 stars

Entry Zone Marker is a simple position calculator that draws on the price chart. The user types an initial entry, position volume, averaging volume and averaging price for a long and a short position. The script computes the volume-weighted average entry for e

Indicator v5
Updated 1 year ago · None stated GitHub repository of Entry Zone Marker

Crown Club Strategy

by GigantePT
1 stars

Crown Club Strategy is an overlay indicator that plots two simple moving averages, 50 and 200 by default, together with the previous week's and yesterday's high and low. For each period it adds Fibonacci levels and a golden zone, oriented by a long or short bi

Indicator v6 Support & resistanceMoving averages Repaints
Updated 1 year ago · Custom licence GitHub repository of Crown Club Strategy

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