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

RSI + MACD Strategy

by monch1962
3 stars

This strategy combines the Relative Strength Index (RSI), Moving Average Convergence Divergence (MACD), and a volume filter to identify long trade entries. A buy signal requires RSI to be oversold, MACD to cross above its signal line, and volume to exceed 1.5

Strategy v5 Oscillators & momentumVolume
Updated 7 months ago · None stated GitHub repository of RSI + MACD Strategy

Stella's Volume Profile

by stella-entry
3 stars

Stella's Volume Profile estimates volume distribution across price levels over a designated lookback period. It divides the high-low price range into discrete rows and accumulates volume to identify the Point of Control, representing the price level with the h

Indicator v5 VolumeSupport & resistance
Updated 8 months ago · MIT GitHub repository of Stella's Volume Profile

HSN Algo

by IAMATOMIC001
3 stars

Calculates and plots Smart Money Concepts (SMC) features directly on the price chart, including supply and demand zones, internal and swing market structure breaks of structure, and order blocks. Supply and demand zones track price rejections using box drawing

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 12 months ago · None stated GitHub repository of HSN Algo

This indicator calculates and plots the traditional Relative Strength Index momentum oscillator in a separate chart pane. It measures recent price changes to evaluate overbought and oversold market conditions. The script uses a configurable length period setti

Indicator v5 Oscillators & momentum
Updated 2 years ago · None stated GitHub repository of Relative Strength Index (Momentum Oscillator)

This indicator identifies and plots bullish and bearish order blocks directly on the price chart. It defines an order block when a directional candle is followed by consecutive rising or falling bars that meet a configurable minimum percentage price change thr

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of Jawaun's Advanced Order Block Finder

Currency Strength Chart

by itmakesyousick
3 stars

Currency Strength Chart plots relative strength lines for major currencies in a separate pane. It compares EUR, USD, JPY, GBP, CHF, AUD, CAD and NZD using logarithmic price ratios, with optional histogram bars and a currency-pair strength table. Users choose r

Indicator v5 Screeners & dashboards
Updated 4 years ago · None stated GitHub repository of Currency Strength Chart

Last Time at Price

by piecioshka
2 stars

Calculates and displays the last date and time the market traded at the current reference price level. On the most recent bar, the indicator searches backwards up to a configurable lookback limit for the nearest historical candle whose high-low range contained

Indicator v6 Support & resistance
Updated 11 days ago · MIT GitHub repository of Last Time at Price

RSI Divergence Indicator MP

by midngtpickle
2 stars

The RSI Divergence Indicator MP detects regular and hidden bullish and bearish divergences using configurable RSI and pivot parameters. It plots the RSI oscillator with customizable overbought and oversold levels in a separate pane, while optionally drawing di

Indicator v6 Oscillators & momentumDivergence
Updated 4 weeks ago · Custom licence GitHub repository of RSI Divergence Indicator MP

Oscillator

by TamTH-Dev
2 stars

The Oscillator is a technical indicator designed to analyze price momentum across multiple display modes and formulas. It calculates values using fast and slow lookback periods, incorporating adjustable smoothing types and an exhaustion threshold to identify o

Indicator v6 Oscillators & momentum Repaints
Updated 5 weeks ago · None stated GitHub repository of Oscillator

MirPapa_Lib_trend

by alvinng214
2 stars

MirPapa_Lib_trend is a Pine Script utility library providing trend and momentum calculation functions for other scripts. It features implementations for several moving average types, including the Hull Moving Average (HMA), Exponential Hull Moving Average (EHM

Library v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of MirPapa_Lib_trend

ZEGUELA DEMATRON AXS 2H

by danielvm-git
2 stars

This strategy calculates and plots three double exponential moving averages (DEMA) on the price chart using lengths of 8, 24, and 0. It generates long signals on DEMA crossovers and short signals on crossunders. Positions are entered based on these signals and

Strategy v4 Moving averagesTrend Repaints
Updated 2 months ago · MIT GitHub repository of ZEGUELA DEMATRON AXS 2H

This indicator plots a horizontal table at the top of the price chart. It displays the symbol, name, sector, RSI value, ADR percentage, ATR percentage, and days until next earnings release. Earnings days are color-coded with gray for unknown dates, green for o

Indicator v6 Screeners & dashboardsOscillators & momentum
Updated 3 months ago · Apache-2.0 GitHub repository of Stock Info Dashboard [thetanerd]

Lakshmi Zones v2

by voletiramu
2 stars

This indicator detects and plots dynamic supply and demand zones directly on the price chart by combining Volume Profile peaks, daily equal highs and lows, and fair value gap levels. Nearby levels are merged according to a user-defined dollar threshold. The sc

Indicator v6 Support & resistanceVolume Repaints
Updated 6 months ago · None stated GitHub repository of Lakshmi Zones v2

Alper

by avatar-lavventura
2 stars

Alper is a multi-indicator trading strategy combining a WaveTrend oscillator, RSI, and Squeeze Momentum logic based on Bollinger Bands and Keltner Channels. Operating within a user-defined backtest time window, it plots WaveTrend lines, overbought and oversold

Strategy v4 Oscillators & momentumVolatility & bands
Updated 7 months ago · None stated GitHub repository of Alper

Grid Bot [psyll]

by cullyk
2 stars

Grid Bot places a configurable number of long and short orders between a user-set grid top and bottom and draws those levels on the price chart. Direction can be longs, shorts, or both, with default or burst entry and an optional instant first fill. Exits use

Strategy v5 Mean reversionSupport & resistance
Updated 8 months ago · MIT GitHub repository of Grid Bot [psyll]
2 stars

This indicator calculates and plots cumulative volume delta directly on the price chart using lower timeframe intrabar data. It displays volume delta values as lines or histograms, tracking volume flow across customizable reset intervals such as fixed sessions

Indicator v6 VolumeDivergence
Updated 8 months ago · None stated GitHub repository of CVD - Cumulative Volume Delta (Chart)

Momentum-based ZigZag + 趋势

by wynnforthework
2 stars

This strategy combines momentum-based ZigZag calculations with a Supertrend overlay and an EMA trend filter to generate trading entries. It allows selecting between QQE, MACD, or Moving Averages to drive the ZigZag pivot logic. The strategy includes adjustable

Strategy v5 TrendOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of Momentum-based ZigZag + 趋势

Inside Bars

by etnt
2 stars

This indicator marks inside bars, candles whose high and low sit entirely inside an earlier parent bar’s range, including nested sequences of inside bars. It stores the parent bar’s high and low when a new inside-bar sequence starts and draws those levels on t

Indicator v5 Candlestick patternsSupport & resistance
Updated 1 year ago · MPL-2.0 GitHub repository of Inside Bars

Interpolation

by Electrified-Trading
2 stars

Interpolation is a Pine Script utility library providing mathematical interpolation and easing functions, including linear and quadratic transitions. Designed for signal processing, custom smoothing algorithms, and sigmoid transformations, each exported functi

Library v5
Updated 1 year ago · MPL-2.0 GitHub repository of Interpolation

VGF Price-Volume TEMA

by ryangaraygay
2 stars

This indicator colors chart bars based on a Triple Exponential Moving Average (TEMA) applied to candle body volume (candle body multiplied by volume). It categorizes market flow into trending bullish, trending bearish, or non-trending messy conditions based on

Indicator v5 VolumeCandlestick patterns
Updated 1 year ago · MIT GitHub repository of VGF Price-Volume TEMA

HTF EMA

by Web3Degenerate
2 stars

This Pine Script indicator plots a higher-timeframe exponential moving average on the price chart. The script calculates the EMA using a configurable length and timeframe, then applies request.security to retrieve the value without repainting. It draws the lin

Indicator v5 Moving averagesTrend
Updated 2 years ago · None stated GitHub repository of HTF EMA

HTF Candles & Pivots

by itmakesyousick
2 stars

HTF Candles & Pivots is an indicator that overlays high time frame candles and pivot points on the price chart. It plots customizable candles with options for thickness, wicks, fill, history shift, and labels including day, average, and TD sequence. The script

Indicator v5 Candlestick patternsSupport & resistance
Updated 3 years ago · None stated GitHub repository of HTF Candles & Pivots
2 stars

This strategy calculates higher-timeframe price levels and multi-timeframe Bollinger Bands to identify price zone interactions directly on the main chart. It uses daily source prices and 240-minute Bollinger Bands, styling them with dynamic gradient coloring b

Strategy v4 Volatility & bandsSupport & resistance Repaints
Updated 3 years ago · None stated GitHub repository of Time PriceZones Strat Testing

This indicator combines a Nadaraya-Watson kernel regression estimator with moving average trend overlays. It recalculates kernel-weighted lines across historical bars on the latest candle, plotting reversal arrows when the curve direction shifts. Additionally,

Indicator v4 Moving averagesTrend Repaints
Updated 4 years ago · MIT GitHub repository of Nadaraya-Watson Estimator + Moving Average Colored EMA/SMA

Candlestick Structure [LuxAlgo] detects multiple classic bullish and bearish candlestick patterns in the context of broader market structure. It evaluates patterns such as hammers, engulfing candles, stars, haramis, tweezers, and three-method formations agains

Indicator v5 Candlestick patternsTrend
Updated yesterday · Custom licence GitHub repository of Candlestick Structure [LuxAlgo]

A chart overlay that detects pivot-based chart patterns and keeps a capped registry of them, each with a target, stop and invalidation level and a confidence score filtered by a minimum value. It uses ATR, volume z-scores, a higher-timeframe reference, a lower

Indicator v5 Support & resistanceVolume
Updated yesterday · None stated GitHub repository of ULTIMATE Nested Matrix & MTF Projection Engine v6

Yield Lag Forecast

by rellis3
1 stars

Detects the FX pair on the chart and pulls daily 2-year and 10-year government yields for both currencies. It blends them into a yield-spread z-score drawn as an oscillator in a separate pane, tracks its rate of change and flags abnormal moves. A rolling regre

Indicator v6 Oscillators & momentumDivergence
Updated yesterday · None stated GitHub repository of Yield Lag Forecast
1 stars

A table overlay on the price chart, short title Fin Table, that lists recent quarterly or annual company figures pulled from TradingView financial data. Rows cover diluted earnings per share, total revenue, net income and operating income, with changes coloure

Indicator v6 Screeners & dashboards
Updated 2 days ago · None stated GitHub repository of Quarterly Financials Table

Intrabar Delta

by jayadevrana
1 stars

Intrabar Delta estimates buying and selling volume within each chart bar by fetching lower timeframe OHLCV data. It categorizes lower timeframe bars as bullish, bearish, or neutral to calculate buy and sell volume. The script plots the net intrabar volume delt

Indicator v6 VolumeScreeners & dashboards
Updated 3 days ago · MPL-2.0 GitHub repository of Intrabar Delta

SMC Decision Board

by skipp-dev
1 stars

SMC Decision Board is an on-chart decision-support dashboard designed for Smart Money Concepts analysis. It processes aggregated signal states from linked chart scripts to display a structured HUD table, trade plan risk lines, and live setup highlights directl

Indicator v6 SMC / ICT / price actionScreeners & dashboards
Updated 3 days ago · None stated GitHub repository of SMC Decision Board

Dial Main Period

by pineforge-4pass
1 stars

A long-only EMA crossover strategy whose fast and slow lengths change with the chart timeframe. Separate pairs of lengths are set for 5, 15, 60 and 240 minute charts, and other timeframes use the 15 minute pair. It enters long when the fast EMA crosses above t

Strategy v6 Moving averagesTrend
Updated 6 days ago · Apache-2.0 GitHub repository of Dial Main Period

MA Cross

by GammaExpansion
1 stars

This strategy calculates fast and slow moving averages using SMA or EMA selections and plots them on the price chart. It signals long entries on fast MA crossing above slow MA, optionally requiring slow MA to be rising. It closes positions on fast MA crossing

Strategy v6 Moving averagesTrend
Updated 6 days ago · MIT GitHub repository of MA Cross

BB Upper Breakout Short

by kanylbullen
1 stars

A short-only strategy that sells when price pushes a set percentage above the upper Bollinger Band. The trigger can use the candle high or the close. After entry, it places a limit take profit a set percentage below the average entry price. Band length, multip

Strategy v5 Volatility & bandsMean reversion
Updated 7 days ago · None stated GitHub repository of BB Upper Breakout Short

An indicator that builds a delta profile for each session and extracts points of interest from it at session close: the delta point of control, positive and negative delta extremes, a delta flip level and an absorption node. Each becomes a zone sized by a frac

Indicator v6 VolumeSupport & resistance
Updated 7 days ago · GPL-3.0 GitHub repository of Delta Break and Retest Stage 2 POI Extraction

DEPV2 B1b - Günlük Open

by YuceSezar89
1 stars

This indicator tracks and plots the daily opening price based on a user-defined UTC hour setting. Plotted in a separate pane, it enables traders to benchmark intrabar price action against a specific daily open anchor. The primary setting adjusts the starting h

Indicator v6 Support & resistanceSessions & time
Updated 12 days ago · None stated GitHub repository of DEPV2 B1b - Günlük Open

SR+Trend v6 APT

by MuhammadMuhamid
1 stars

A long-only strategy preset tuned for one crypto pair, using multi-timeframe pivot support and resistance with tighter touch zones and shorter retest windows than the other versions. It can flip broken resistance into support and supports optional moving avera

Strategy v6 Support & resistanceTrend
Updated 12 days ago · None stated GitHub repository of SR+Trend v6 APT

Market Sniper

by kasutu
1 stars

A combined chart overlay that plots EMAs of 20, 50 and 200 bars with a zone around the middle line, an Ichimoku cloud with 9, 26 and 52 bar settings, and order blocks that can show as mitigated. It also marks bullish and bearish break of structure lines, break

Indicator v5 SMC / ICT / price actionTrend
Updated 2 weeks ago · None stated GitHub repository of Market Sniper
1 stars

The Fractal Field Smoother calculates Williams Fractals based on price high and low pivot points over a user-defined period. It measures price distance and center points between consecutive fractals, using array storage to calculate smoothed field levels and b

Indicator v6 Support & resistanceTrend
Updated 7 weeks ago · None stated GitHub repository of Fractal Field Smoother
1 stars

A basic introductory indicator script from an educational Pine Script v6 course. It calculates and plots the closing price of each bar directly on the main price chart as a simple line. Designed as a foundational starting point, the script demonstrates essenti

Indicator v6
Updated 2 months ago · Custom licence GitHub repository of My First Pine Script

MAD Supertrend

by vedkanani123
1 stars

A separate-pane indicator that builds a Supertrend-style trailing channel from median absolute deviation instead of ATR, scaled to standard-deviation units. The centerline can be the source, a single median or a double median, and upper and lower multipliers a

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

Plots volume order block zones on the price chart with three tiers of asymmetric buy and sell volume signals and a signal cooldown. High-volume proximity markers fire when the highest volume in a rolling window occurs within a chosen number of bars of a tier s

Indicator v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Asymmetric HV Proximity v1.2

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