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

XXX

by MeridianAlgo
9 stars

This multi-timeframe scalping strategy plots moving averages alongside Smart Money Concepts elements on the price chart. It calculates trend signals using configurable moving average types like ALMA, Hull MA, or TEMA across alternate timeframes. It also plots

Strategy v5 TrendMoving averages Repaints
Updated 4 months ago · MIT GitHub repository of XXX
7 stars

The 7M Multi-Factor Momentum Scoreboard evaluates real-time market momentum across multiple criteria and displays the results in an overlay dashboard panel on the price chart. It tracks anchored percentage price moves based on pre-market, regular open, or post

Indicator v6 Oscillators & momentumVolume
Updated 3 months ago · None stated GitHub repository of 7M Multi-Factor Momentum Scoreboard
7 stars

The RSI + BB Oscillator combines Relative Strength Index (RSI) and Bollinger Bands %B calculations across two timeframes into a single separate pane plot. It shifts RSI values around zero and measures %B bandwidth using selectable moving average types includin

Indicator v5 Oscillators & momentumVolatility & bands Repaints
Updated 4 months ago · None stated GitHub repository of RSI + BB Oscillator

2AM-Gold Swing Strategy

by alboogycOdR
6 stars

This indicator plots smart money concepts on the price chart, focusing on session setups initiated at a specified start hour. It calculates swing highs and lows, monitors liquidity sweeps, confirms market structure shifts, and identifies order blocks and fair

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of 2AM-Gold Swing Strategy

VP Sparse Visual Fixture

by 345-strategies
5 stars

This indicator is a visual-design fixture that does not calculate a volume profile. It draws one manually entered, already validated value-area edge, either VAH or VAL, as a thin price zone four ticks wide on the chart. The fixture stays off until enabled, and

Indicator v6 Support & resistance
Updated 3 days ago · MPL-2.0 GitHub repository of VP Sparse Visual Fixture

Spread by

by gorx1
5 stars

Spread by is a volatility channel overlay indicator that calculates statistical central tendencies and dispersion envelopes around price. It provides multiple central basis options including arithmetic mean, median, trimean, midhinge, midrange, root-mean-squar

Indicator v4 Volatility & bandsMoving averages
Updated 8 months ago · None stated GitHub repository of Spread by

MACD Breakout

by jerryinyang
5 stars

Calculates multi-timeframe Moving Average Convergence Divergence (MACD) alongside a Money Flow filter to identify potential market breakouts. It evaluates higher-timeframe MACD calculations using exponential or simple moving averages combined with Money Flow o

Indicator v4 TrendOscillators & momentum Repaints
Updated 2 years ago · None stated GitHub repository of MACD Breakout

This strategy identifies potential reversal conditions using statistical bands derived from price extremes relative to moving averages and standard deviations. It enters long positions when a greed condition confirms over consecutive bars. Exits are handled vi

Strategy v4 Mean reversionVolatility & bands
Updated 3 years ago · Apache-2.0 GitHub repository of Fear + Greed Reversal Long Strategy (Daily)

Simpleton GROK

by eltonaguiar
4 stars

This strategy plots on the price chart and combines up to seven optional modules that vote for long or short conditions. The modules use a 20-period simple moving average, a five-period RSI, Bollinger Band squeezes, a simplified prior-bar break, stacked expone

Strategy v5 Oscillators & momentumMoving averages
Updated yesterday · None stated GitHub repository of Simpleton GROK
4 stars

This strategy evaluates EMA crossovers filtered by a long-term 200-period EMA trend filter designed for Gold futures and XAUUSD. It enters a long position when a fast EMA crosses above a slow EMA while price is above the 200 EMA. If long-only mode is turned of

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of Gold GC/XAUUSD Strategy [trugurpala]
4 stars

Calculates a standard Relative Strength Index (RSI) oscillator to trigger oversold and overbought signal conditions, then formats custom JSON alert payloads designed for webhook integration with external services. The script plots RSI in a separate pane and ge

Indicator v5 Oscillators & momentum
Updated 11 months ago · Custom licence GitHub repository of Webhook Alert Template [Lab]
3 stars

This indicator calculates 3-period and 13-period exponential moving averages (EMAs) and plots them on the main price chart. It checks whether a single candlestick's real body—the space between its open and close prices—intersects both EMAs on the same bar. Whe

Indicator v5 Moving averagesTrend
Updated 4 weeks ago · None stated GitHub repository of K-bar and EMA Crossover
3 stars

This indicator measures buyer and seller strength over a fixed twenty-bar lookback window and plots the result in a separate pane. It calculates bull force based on the distance from the lowest close and bear force from the highest close, incorporating the bar

Indicator v5 Oscillators & momentumTrend
Updated 5 months ago · None stated GitHub repository of CSW Bull/Bear Force
3 stars

This indicator plots trading signals, swing levels, a trend cloud, and optional take-profit and stop-loss targets directly on the price chart. It calculates advanced historical volatility metrics, including Garman-Klass and Yang-Zhang estimators, to evaluate m

Indicator v5 TrendVolatility & bands
Updated 12 months ago · None stated GitHub repository of Elite Algo Modded By AlgoPoint
3 stars

The Volatility Clustering Estimator measures autocorrelation in logarithmic price returns across daily, weekly, and monthly timeframes. It calculates logarithmic returns for higher-timeframe close prices and evaluates their correlation with lagged returns usin

Indicator v5 Volatility & bands Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Volatility Clustering Estimator

Vector Candles

by TamTH-Dev
2 stars

Vector Candles is an overlay indicator that recolors price bars according to relative trading volume and volume spread. It compares current volume against a 10-bar moving average and evaluates volume spread relative to recent highs. Bars are categorized and hi

Indicator v5 VolumeCandlestick patterns
Updated 5 weeks ago · None stated GitHub repository of Vector Candles

This indicator plots Fair Value Gaps, Order Blocks and Threeple patterns on the price chart based on ICT concepts. It draws boxes and lines for potential supply and demand zones using higher-timeframe data across multiple charts. Users set box size (open/close

Indicator v6 SMC / ICT / price actionSupport & resistance

Alpy Vix

by avatar-lavventura
2 stars

This strategy plots the Williams Vix Fix indicator as a histogram in a separate pane to detect potential trend reversals. It calculates the Vix Fix value using a lookback period and standard deviation bands derived from Bollinger Bands on the Vix Fix. Multiple

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

Market Sessions & Viewer Panel tracks and visualizes major global trading sessions, such as Tokyo, London, New York, and Sydney, on the main price chart. It highlights active market intervals using customizable box shapes, background colors, and labels, while

Indicator v6 Sessions & timeScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Market Sessions & Viewer Panel [MUQWISHI]

Elder's Force Index (EFI)

by mushroom-men-Trading
2 stars

The Elder's Force Index indicator calculates buying and selling pressure using price changes and volume. It computes a raw force as the difference in price multiplied by volume, then applies exponential moving average smoothing. The primary input is the length

Indicator v6 Oscillators & momentumVolume
Updated 9 months ago · None stated GitHub repository of Elder's Force Index (EFI)

3C QFL Mean Reversal

by wynnforthework
2 stars

This strategy implements a Quickfinger Luc mean-reversion trading model tailored for automated execution. It calculates base support levels and volume moving averages across timeframes to identify sharp price dips below established base levels. The script incl

Strategy v5 Mean reversionSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of 3C QFL Mean Reversal

Stops & Targets

by Web3Degenerate
2 stars

This script demonstrates how to calculate and display ATR-based stop loss and take profit levels directly on the price chart. It detects hammer and shooting star candlestick patterns filtered by a 50-period EMA trend. When a setup occurs and no active trade is

Strategy v5 Candlestick patternsMoving averages
Updated 2 years ago · None stated GitHub repository of Stops & Targets

Double Mm With Hhll

by WISEPLAT
2 stars

Double Mm With Hhll is an indicator that plots two separate ZigZag lines on the price chart using different periods. It calculates swing highs and lows for each period and connects them into trend lines with customizable colors for up and down moves, line styl

Indicator v4 TrendSupport & resistance
Updated 3 years ago · None stated GitHub repository of Double Mm With Hhll
1 stars

An extended strategy version that adds a strategy preset, a risk aggression choice and a pattern type filter to an AlphaTrend style core with MACD. It includes three consolidation layers with volume profile, candlestick and macro pattern drawings, a kinematic

Strategy v5 TrendOscillators & momentum
Updated yesterday · None stated GitHub repository of JAT+BSM Pro v13 Extended

Session Filter

by jayadevrana
1 stars

Session Filter is an overlay indicator that plots a fast and a slow exponential moving average on the price chart. It marks a buy when the fast average crosses above the slow average only during a user-defined trading session, and it marks crossovers outside t

Indicator v6 TrendMoving averages
Updated 3 days ago · MPL-2.0 GitHub repository of Session Filter

SMC Profile Engine

by skipp-dev
1 stars

SMC Profile Engine is a Pine Script library designed to build custom volume profiles on TradingView. It provides structured data types including Bucket, ProfileConfig, and Profile to manage volume calculations across price levels. The library facilitates track

Library v6 VolumeSupport & resistance Repaints
Updated 3 days ago · None stated GitHub repository of SMC Profile Engine

Gyroscope CMO Median

by pineforge-4pass
1 stars

A long-only strategy that pairs a rolling median line with the Chande Momentum Oscillator. It enters long when price crosses above the median while the oscillator is above an entry level. It exits when price drops below the median, the oscillator falls under a

Strategy v6 Oscillators & momentumTrend
Updated 6 days ago · Apache-2.0 GitHub repository of Gyroscope CMO Median

P_err_positional_after_named

by GammaExpansion
1 stars

This indicator serves as a minimal syntax test fixture designed for parser validation in Pine Script version 6. It executes in a separate pane and plots the current close price using a named argument structure. Because it is a basic test script, it does not ca

Indicator v6
Updated 6 days ago · MIT GitHub repository of P_err_positional_after_named
1 stars

A long-only strategy adapted from an academic study of intraday reversal. It measures the return over a ranking period given in minutes, skips a bar, and buys when that return falls in the lowest percentile of its own recent history, then holds for a set numbe

Strategy v6 Mean reversionScreeners & dashboards
Updated 7 days ago · GPL-3.0 GitHub repository of Intraday Reversal Feasibility Check

DEPV2 DEBUG S1

by YuceSezar89
1 stars

This multi-asset crypto indicator monitors up to twenty symbols using four distinct analytical pillars: trend, momentum, volatility, and volume. It generates trade signals based on configurable modes including single-pillar execution, simultaneous confluence,

Indicator v6 Screeners & dashboardsTrend Repaints
Updated 12 days ago · None stated GitHub repository of DEPV2 DEBUG S1
1 stars

This indicator plots a dynamic trend level on the main price chart based on an interactively chosen anchor time and price level. It calculates the vertical offset between the selected price level and a moving average at the anchor time, projecting this dynamic

Indicator v6 TrendMoving averages
Updated 7 weeks ago · None stated GitHub repository of Moving Average Trend Line
1 stars

A simple exponential moving average crossover indicator drawn on the price chart. It plots a fast EMA and a slow EMA, 20 and 50 periods by default, and colors the fast line green when it is above the slow one and red when below. BUY and SELL labels mark the cr

Indicator v6 Moving averagesTrend
Updated 2 months ago · None stated GitHub repository of Trend Direction Buy/Sell Signals
1 stars

Finds volume order blocks, zones built from heavy volume around moving average crossovers, and draws them on the price chart. This multiples-only edition focuses on combined events: strict ladder patterns across six sensitivity tiers, multi-zone coincidences,

Indicator v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB v11 Multiples HW Coincidence

GitLemon Con

by GreyssonEnterprises
1 stars

GitLemon Con is an overlay indicator that looks for W and M formations on price and optional confirming series. Users can include on-balance volume, Williams %R, money flow index, RSI, and directional movement, each with a strict mode and a shared maximum widt

Indicator v4 Oscillators & momentumVolume
Updated 2 months ago · MIT GitHub repository of GitLemon Con
1 stars

VCP Volume Contraction is an indicator designed to identify Volatility Contraction Pattern setups by measuring both volume and price volatility tightness. It calculates a volume ratio by comparing current volume against its moving average, alongside an ATR-bas

Indicator v5 Volatility & bandsVolume
Updated 4 months ago · None stated GitHub repository of VCP Volume Contraction

Swing Trade ATR

by rubbermetal
1 stars

Swing Trade ATR is an indicator that marks Swing L and Swing S labels when a 9-period EMA crosses a 21-period EMA, with a fill between them. After each signal it draws stop loss and take profit lines at ATR multiples from the signal close and clears them when

Indicator v6 TrendMoving averages
Updated 4 months ago · MPL-2.0 GitHub repository of Swing Trade ATR
1 stars

This strategy evaluates short-term trend momentum by summing price differences across a user-defined lookback period using a for loop. It combines this calculated average momentum with 9-period and 21-period Exponential Moving Average crossovers. A long trade

Strategy v5 TrendOscillators & momentum
Updated 4 months ago · MIT GitHub repository of For Loop Accumulator
1 stars

A Supertrend strategy that enters on the trend direction, filtered by a 4-hour Supertrend, relative volume and ADX strength. It exits at a percentage profit target, with an optional trailing offset, and a time-based exit that closes at breakeven after a maximu

Strategy v6 Trend Repaints Archived
Updated 5 months ago · None stated GitHub repository of Supertrend2 Target No-SL Dashboard
1 stars

This indicator marks swing highs and lows from pivot bars on the price chart and projects dates ahead using Gann and Hurst cycle timing ideas. Tables show the pivot dates and nearby future dates, with colours for bullish and bearish pivots. The left and right

Indicator v5 Support & resistance
Updated 6 months ago · None stated GitHub repository of Gann Hurst Pivot HL 2024 V1.2
1 stars

This strategy runs on the price chart and is titled for a percentile SuperTrend combined with OBV and DI, although the provided excerpt does not show those calculations. It restricts trading to bars after a user-chosen start time and can enable long entries, s

Strategy v5 TrendOscillators & momentum
Updated 7 months ago · None stated GitHub repository of Percentile_SuperTrend_OBV&DI

VP Scalper

by Tradehook-org
1 stars

A Pine v5 strategy that trades around point of control and value area levels. These are not a true volume profile: the code builds approximate levels from the previous session's high, low and close, taken from a daily, weekly or monthly timeframe and scaled by

Strategy v5 Support & resistanceScalping
Updated 8 months ago · None stated GitHub repository of VP Scalper

Momentum Breakout

by knectardev
1 stars

This strategy enters long when the close is above the upper Bollinger Band and volume exceeds a moving average multiplied by a threshold, and enters short when the close is below the lower band with the same volume condition. New entries occur only while the p

Strategy v5 Volatility & bandsVolume
Updated 9 months ago · None stated GitHub repository of Momentum Breakout

V5 Combination by yzz

by webcrack4
1 stars

This script combines a Volume Profile / Market Profile (TPO) tool with an overlay MACD indicator directly on the price chart. It calculates volume or time-at-price distributions across customizable ranges (Visible Range, Anchored Range, or All Range) to identi

Indicator v5 VolumeSupport & resistance
Updated 9 months ago · None stated GitHub repository of V5 Combination by yzz
1 stars

Educational example based on the Pine documentation that estimates an empirical cumulative distribution of a source over a rolling window. It keeps a queue of recent values, computes the share of values below each of a chosen number of steps, and shows the res

Indicator v6
Updated 1 year ago · None stated GitHub repository of Empirical Distribution

Indicator Template

by zhuzp98
1 stars

An empty Pine Script v5 indicator template that sets up an overlay indicator with price formatting, two-decimal precision and timeframe gap handling. The visible code contains only section headers for parameters and indicators, with no inputs, calculations or

Indicator v5
Updated 1 year ago · None stated GitHub repository of Indicator Template

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