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

This indicator plots bullish and bearish order-block boxes on the price chart. It marks the prior candle when the current bar engulfs it and volume exceeds a twenty-bar average times a multiplier, then stores the zone in a matrix. Volume threshold and box colo

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 6 months ago · MIT GitHub repository of Order Blocks Matrix - Castle Trade

CHoCH Indicator

by cavaldos
1 stars

Marks change of character events on the price chart, using swing pivots found with a leg-detection routine. It tracks a swing structure level with a default length of 50 and a shorter internal level with a default length of 5. Each can be switched on or off an

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of CHoCH Indicator

Algo3.0

by dtheran1
1 stars

A combined overlay for the price chart that joins an ATR Trend module with a smart money concepts module. The trend line is built from an ATR band with ten smoothing types, a fast trend, an optional smoothed range channel and buy and sell markers on trend flip

Indicator v6 TrendSMC / ICT / price action Repaints
Updated 6 months ago · None stated GitHub repository of Algo3.0
1 stars

This indicator labels Elliott Wave counts on the price chart. It runs a zig-zag at several depths, chooses the depth that gives the best fit, and applies Elliott Wave rules, with a strict mode that forces an A-B-C count when the rules break. A correction mode

Indicator v6 Support & resistance Repaints
Updated 6 months ago · None stated GitHub repository of Elliott Wave Predictor 2026

Elliott Wave Advanced v3

by Focal-QuantAI
1 stars

An indicator on the price chart that labels Elliott Wave structures from swing points. Primary and optional sub-wave swings are detected with length and minimum percentage move settings, then labelled as impulse waves 1 to 5 and corrective A-B-C patterns, with

Indicator v6 Support & resistanceTrend
Updated 6 months ago · None stated GitHub repository of Elliott Wave Advanced v3

Plots annualised historical volatility using a choice of estimators, including close-to-close, Parkinson, Garman-Klass, Rogers-Satchell, Yang-Zhang, exponentially weighted and absolute-deviation methods. Inputs set the model, length, annualisation factor, a pe

Indicator v5 Volatility & bands
Updated 6 months ago · None stated GitHub repository of Historical Volatility Estimators

ICT v4-weinkya MTF v2

by tndg16-bot
1 stars

This multi-timeframe strategy identifies trading opportunities by combining higher-timeframe market structure shifts with optimal trade entry Fibonacci levels and lower-timeframe confirmations. It calculates swing pivots on higher timeframes to determine bias,

Strategy v5 SMC / ICT / price actionTrend
Updated 6 months ago · None stated GitHub repository of ICT v4-weinkya MTF v2
1 stars

This indicator calculates the percentile rank of the current daily close price compared to the prior windowDays daily closes for Bitcoin. It plots the resulting 0-100 value in a separate pane. Users adjust the window length with the windowDays input ranging fr

Indicator v6 Support & resistance
Updated 7 months ago · None stated GitHub repository of BTC Daily Percentile

Crypto Harami Pattern Detector

by gabriel-klettur
1 stars

This indicator detects bullish and bearish harami candle patterns and plots them on the price chart. It compares three bars: a prior opposite candle, a smaller middle candle, and a confirming candle in the new direction. Green upward triangles mark bullish set

Indicator v6 Candlestick patternsScreeners & dashboards Repaints
Updated 7 months ago · None stated GitHub repository of Crypto Harami Pattern Detector

A strategy variant, described by its file name as optimized for long trades only, that sends orders to MetaTrader through a connector service via alert messages. Inputs cover symbol prefix, suffix and mapping, lot size, a magic number, a pip multiplier and a b

Strategy v6 Breakout
Updated 7 months ago · None stated GitHub repository of Energy Block V11 Auto Strategy Long Only

BTC ATH Golden Cycle

by ymlee1104
1 stars

This strategy overlays Bitcoin cycle timing, an all-time-high rise and drop model, and optional chart studies on the price chart. It sizes positions as a percentage of equity and allows up to five stacked entries in the same direction. Users can show an EMA ra

Strategy v6 TrendMoving averages Repaints
Updated 7 months ago · None stated GitHub repository of BTC ATH Golden Cycle
1 stars

A single indicator that combines two systems and enables each only on its own timeframe. On a fifteen-minute chart it runs a volatility squeeze breakout using an ATR percentile and a regime filter. On a four-hour chart it runs a VWAP mean reversion with standa

Indicator v6 BreakoutMean reversion
Updated 7 months ago · None stated GitHub repository of V19 (15M) + V21 (4H) Hybrid

Supply & Demand Zones v6

by nexobanks-prep
1 stars

A Pine v6 rewrite of a supply and demand zone indicator, drawn on the price chart. It classifies candles as impulse or base using ATR multiples, then marks a zone when one or more base candles sit between two impulse candles. The direction of the two impulses

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of Supply & Demand Zones v6

VSA Smart Signals

by abhidp
1 stars

A price-chart indicator for volume spread analysis that marks No Demand and No Supply bars. A signal needs the current volume to be lower than recent bars, by an all-lower or average-lower rule, and optionally a rejection wick of a minimum ratio. Further filte

Indicator v6 Volume
Updated 7 months ago · None stated GitHub repository of VSA Smart Signals
1 stars

This strategy identifies Initial Balance periods on NQ and ES futures charts using user-defined start and end hours in Eastern Time. It classifies days as narrow or wide based on average range lookback and skips narrow or trending days per settings. Entries tr

Strategy v6 Mean reversionSupport & resistance
Updated 7 months ago · MIT GitHub repository of IB Mean Reversion Fade

Fibonacci Pullback Strategy

by Basant1Saini
1 stars

Fibonacci Pullback Strategy is a trend-following system that identifies retracements within established trends. It calculates dynamic Fibonacci levels (38.2%, 50.0%, and 61.8%) based on recent swing highs and lows over a specified lookback period. Trades are f

Strategy v5 Support & resistanceTrend
Updated 7 months ago · None stated GitHub repository of Fibonacci Pullback Strategy

15m VPA Reversal Engine

by caizongxun
1 stars

A volume price analysis indicator in a separate pane. It tests each bar for patterns such as buying and selling climaxes, up-thrusts, down-thrusts, no-demand and no-supply bars, using volume against its average and bar range against average spread. The bullish

Indicator v5 VolumeCandlestick patterns
Updated 8 months ago · MIT GitHub repository of 15m VPA Reversal Engine

Ensemble ML Predictor

by haydarkadioglu
1 stars

This indicator overlays a weighted ensemble of three models on the price chart. It compares the current bar with historical bars using RSI, volume ratio, price change and range position, then blends that KNN vote with a linear-regression projection and an EMA-

Indicator v5 AI / machine learningOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Ensemble ML Predictor

ARC PinBarAlgo

by Tradehook-org
1 stars

A Pine v5 strategy that trades pin bar candles on the price chart. A pin bar needs a long wick relative to its body and range, a small opposite wick, and an optional required wick side. Optional confirmation uses band, momentum and EMA crossover settings and a

Strategy v5 Candlestick patternsTrend
Updated 8 months ago · None stated GitHub repository of ARC PinBarAlgo
1 stars

This strategy calculates the RSI indicator to detect mean reversion in AU stocks. It enters long positions when RSI falls below the oversold level with no current position and closes positions when RSI rises above the overbought level. Position size uses a fix

Strategy v5 Mean reversionOscillators & momentum
Updated 8 months ago · None stated GitHub repository of AU RSI Mean Reversion

MES Gamma (30DTE)

by Juice-zhi
1 stars

A price-chart overlay that draws a static set of options gamma levels for MES (Micro E-mini S&P 500 futures, scaled from SPY options) expiring in thirty days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot da

Indicator v5 Support & resistance
Updated 8 months ago · None stated GitHub repository of MES Gamma (30DTE)
1 stars

A strategy that trades MACD line and signal line crossovers within a chosen date range and compares three position sizing methods: a fixed dollar risk, a fixed percentage of equity risk, or a fixed quantity. Stop loss and take profit distances are set in ticks

Strategy v6 Oscillators & momentum
Updated 9 months ago · None stated GitHub repository of MACD Money Management Strategy
1 stars

A long-only strategy generated from the TrendLab research project, drawn on the price chart. It calculates the Parabolic SAR with acceleration start 0.05, step 0.01 and maximum 0.33. It buys when the close crosses above the SAR and closes the position when the

Strategy v6 Trend
Updated 9 months ago · MIT GitHub repository of Parabolic SAR 0.05/0.01/0.33

Draw on Liquidity

by Ahmed1926
1 stars

An overlay indicator that draws liquidity levels at pivot highs and lows, filtered by volume. A level appears when the pivot bar's volume exceeds a multiple of its moving average. High and low levels have separate colours, and a display mode shows either all h

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 9 months ago · None stated GitHub repository of Draw on Liquidity
1 stars

Calculates Chaikin Money Flow, which measures buying and selling pressure from where each close sits in its range, weighted by volume over a set length. The default is twenty bars. It plots in a separate pane around a zero line, with colour by sign and an opti

Indicator v5 VolumeOscillators & momentum
Updated 9 months ago · MPL-2.0 GitHub repository of Chaikin Money Flow

TrendHorizon Suite

by Corbanistan
1 stars

This indicator combines three trend tools on the price chart. Smart signals colour candles and place labels by trend direction, with a time horizon setting from fast to slow and an option to show only strong signals. A fair value trail draws an ATR-based cloud

Indicator v6 TrendVolatility & bands
Updated 9 months ago · MPL-2.0 GitHub repository of TrendHorizon Suite
1 stars

This indicator combines RSI and MACD to mark confirmation signals on the price chart. A buy circle appears when RSI is below 50 and rising while the MACD histogram is positive and the MACD line is above its signal line. A sell circle appears when RSI is above

Indicator v5 Oscillators & momentum
Updated 9 months ago · None stated GitHub repository of Signal Confirmation Filter
1 stars

Institutional Order Flow is a price-chart overlay that marks order blocks, fair value gaps, liquidity sweeps, and market structure. Bullish and bearish order-block boxes require a strong candle, volume above a multiple of a 20-bar average, and a later rally or

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 9 months ago · MIT GitHub repository of Institutional Order Flow
1 stars

Calculates trend channels based on a Simple Moving Average (SMA) and Average True Range (ATR) envelope. When price crosses outside the volatility envelope, the indicator identifies trend changes and draws dynamic mid, top, and bottom channel lines directly on

Indicator v5 TrendVolatility & bands
Updated 9 months ago · None stated GitHub repository of Future Trend Channel [ChartPrime]

Smart Money Concepts

by IamTamheedNazir
1 stars

The Smart Money Concepts indicator plots order blocks, fair value gaps, break of structure, and liquidity zones directly on the price chart. It identifies bullish order blocks as strong up-candles following down moves and bearish order blocks as strong down-ca

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 9 months ago · Custom licence GitHub repository of Smart Money Concepts
1 stars

A chart-overlay indicator for lower timeframes that draws a fast ATR trailing stop and marks buy and sell triangles when price breaks it, with a volatility sensitivity filter. A configurable dashboard reports market state using the Choppiness Index, RSI above

Indicator v6 Volatility & bandsScalping
Updated 9 months ago · None stated GitHub repository of Gemini Scalping Dashboard

SFA Impulse Origin v1

by genesisgrubio39
1 stars

This library from the SFA framework detects structural flow points using break of structure (BOS) and change of character (CHOCH) events. It calculates impulse origins by comparing close prices against ATR-based high and low extremes, filtered by volume percen

Library v6 SMC / ICT / price actionTrend
Updated 10 months ago · None stated GitHub repository of SFA Impulse Origin v1

CodonTimeFilter

by codon-pro
1 stars

This Pine Script v6 utility library provides a reusable function to filter backtest date ranges. It evaluates whether the current bar timestamp falls between a specified start time and end time, returning a boolean value. Although configured as an overlay on t

Library v6
Updated 10 months ago · MIT GitHub repository of CodonTimeFilter

Risk Interval Derivatives

by tqfoster1035
1 stars

Risk Interval Derivatives is an overlay indicator for E-mini S&P 500 and Nasdaq 100 futures. It detects ES or NQ from the chart symbol, takes a fixed risk interval in points (or a manual override), and plots multiples of that interval above and below the previ

Indicator v6 Support & resistanceVolatility & bands
Updated 10 months ago · None stated GitHub repository of Risk Interval Derivatives

VMC Strat Flex Corrected

by matlaenousse
1 stars

This strategy evaluates market conditions using a combination of WaveTrend, RSI, Stochastic RSI, and a custom Money Flow Index calculation inspired by VuManChu. It enters long positions when multiple oscillators hit oversold thresholds and generate an upward c

Strategy v6 Oscillators & momentumDivergence
Updated 10 months ago · None stated GitHub repository of VMC Strat Flex Corrected
1 stars

A chart-overlay indicator that plots a fast and a slow EMA, pivot-based support and resistance, and buy or sell signals. A signal needs at least four of five conditions: an EMA cross, RSI inside a middle band, price on the correct side of the fast EMA, a volum

Indicator v6 TrendOscillators & momentum
Updated 10 months ago · None stated GitHub repository of Professional Crypto Signals
1 stars

Draws support and resistance boxes from pivot highs and lows on the price chart, with box height set as a multiple of ATR. It also marks price gaps above a minimum percentage, with an option to show filled ones, and draws stop loss and two take profit lines. T

Indicator v6 Support & resistanceVolatility & bands
Updated 11 months ago · Custom licence GitHub repository of Levels S/R Boxes + Gaps + SL/TP

Echo Forecast [LuxAlgo]

by christonomous
1 stars

This indicator projects future price trajectory directly on the price chart by searching historical price movements for matching patterns. It compares a recent reference window against historical evaluation segments using correlation to identify the most simil

Indicator v5 AI / machine learningTrend
Updated 11 months ago · None stated GitHub repository of Echo Forecast [LuxAlgo]
1 stars

The Donchian Breakout Strategy is a Turtle-style breakout system that plots Donchian channels on the price chart. It generates long entries when the close price crosses above the upper channel and short entries when crossing below the lower channel. Exits are

Strategy v5 BreakoutTrend
Updated 11 months ago · None stated GitHub repository of Donchian Breakout Strategy
1 stars

This indicator identifies high and low pivot points on the price chart using user-defined left and right bars around each bar. It connects pivot points with wave lines, plots PH and PL marks, and labels the latest P1 to P8 patterns. A table shows pivot details

Indicator v5 Support & resistanceTrend
Updated 11 months ago · MIT GitHub repository of Pivot Waves + 8-Pattern + CHoCH

Range Breakout Strategy

by nidhinninan
1 stars

An intraday strategy that builds a range from the first fifteen minutes after a configurable start time, then trades breakouts of that range until a set end time. Targets use a risk-to-reward ratio setting, and position size is a small percentage of equity. Th

Strategy v5 BreakoutSessions & time
Updated 12 months ago · MIT GitHub repository of Range Breakout Strategy
1 stars

Draws a Fibonacci channel on a logarithmic price scale on the price chart. The user sets two high dates and one low date; the script reads monthly highs and lows around those dates, converts them to base-10 logarithms and derives a sloped channel from the two

Indicator v6 Support & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Log Scale Fibonacci (LSF)

NakInvest Cross EMA

by feliperazeek
1 stars

This strategy trades three-candle reversal patterns, called 123, PFR and engulfing, together with a 9, 40 and 80 EMA trend stack. Entries can occur when price crosses the fast EMA without crossing the slower ones, or when it crosses all of them. Optional volum

Strategy v5 Candlestick patternsMoving averages
Updated 1 year ago · None stated GitHub repository of NakInvest Cross EMA

Code Improvement Template

by NakliTechie
1 stars

This script is a template for improving Pine Script indicators and strategies. It provides a structured framework with sections for documenting original code, listing improvements, adding or modifying input parameters, performing calculations, modifying plot s

Indicator v5
Updated 1 year ago · MIT GitHub repository of Code Improvement Template

StrongBuy

by dsjrego
1 stars

A minimal overlay that watches a 20-period EMA and prints a green STRONGBUY label below the bar each time the close crosses above it. It has no inputs, no exit logic and no filters, so every upward cross of the average produces a label, including during sidewa

Indicator v5 Moving averages
Updated 1 year ago · None stated GitHub repository of StrongBuy

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