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

This indicator calculates an advanced Fisher Transform oscillator in a separate pane, using customizable smoothing algorithms, a signal line, and defined overbought and oversold thresholds. It incorporates a slower trend context line, detects market stall or a

Indicator v6 Oscillators & momentumTrend
Updated 2 days ago · MIT GitHub repository of Fisher Transform Advanced [WavesUnchained]

RSI Oscillator

by suyons
7 stars

This indicator calculates and plots Relative Strength Index (RSI) values across four distinct user-defined timeframes within a separate pane. Each higher-timeframe RSI line is rendered with unique colors and line thicknesses, displayed alongside customizable u

Indicator v5 Oscillators & momentum
Updated 4 months ago · None stated GitHub repository of RSI Oscillator
6 stars

This indicator maps multi-timeframe candle range patterns based on specific time-of-day sessions. It converts user-specified SAST starting hours into UTC to identify initial 4-hour range candles, plotting their high, low, and median levels across the chart. Th

Indicator v5 Sessions & timeSupport & resistance
Updated 7 months ago · None stated GitHub repository of 3-Candle Time Pattern - Enhanced

MACD Breakout Strategy

by jerryinyang
5 stars

This strategy evaluates breakout and trend-continuation signals using a higher-timeframe MACD and Stochastic RSI filter. It calculates MACD fast and slow exponential moving averages alongside Stochastic RSI overbought and oversold thresholds to identify histog

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

Kijun-Sen + SSL + WAE

by krosenfeld7
5 stars

This strategy combines Kijun-Sen baseline logic, the SSL Channel indicator, and the Waddah Attar Explosion (WAE) oscillator into an integrated entry framework plotted directly on the main price chart. It triggers long entries when price is above the Kijun-Sen

Strategy v4 TrendOscillators & momentum
Updated 3 years ago · Apache-2.0 GitHub repository of Kijun-Sen + SSL + WAE
4 stars

This strategy combines nine technical indicators including RSI, SuperTrend, MACD, Triple EMA, Bollinger Bands, Ichimoku, HMA, Swing Failure Pattern, and Z-Score. Each indicator votes on long or short direction, with a Dynamic mode that weights votes based on m

Strategy v5 TrendOscillators & momentum
Updated yesterday · None stated GitHub repository of Simpleton v0.06 Kimi_Cursor
4 stars

This indicator calculates the Moving Average Convergence Divergence (MACD) line, signal line, and histogram in a separate pane. It uses configurable fast, slow, and signal lengths to compute standard momentum values. The histogram is dynamically shaded with di

Indicator v6 Oscillators & momentumMoving averages
Updated 2 months ago · MIT GitHub repository of MACD Histogram [trugurpala]
3 stars

Calculates a composite market internals oscillator by averaging the 50-period Relative Strength Index (RSI) across four major U.S. index ETFs: SPY, DIA, QQQ, and IWM. It plots this composite oscillator against a 50 midline in a separate pane, dynamically color

Indicator v5 Oscillators & momentumScreeners & dashboards Repaints
Updated 5 months ago · None stated GitHub repository of CSW Internals Pro

EzSMC

by TamTH-Dev
2 stars

EzSMC is an overlay indicator designed for Smart Money Concepts analysis. It identifies and plots bullish and bearish order blocks directly on the price chart, with optional multi-timeframe order block capabilities. Traders can categorize order blocks into int

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 5 weeks ago · None stated GitHub repository of EzSMC

Alpy Vix

by avatar-lavventura
2 stars

This strategy plots a Williams Vix Fix histogram in a separate pane and combines it with a WaveTrend oversold check and a rolling volume-weighted average price. It marks percentage bands above and below that VWAP for short and long conditions and can highlight

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

This indicator estimates a risk score and suggested position size from capital, a user win rate, a profit ratio, and historical price range. It tracks each year's high and low, converts that range into a drawdown percentage, and plots a weighted average of the

Indicator v6 Volatility & bands
Updated 8 months ago · None stated GitHub repository of Nasan Risk Score & Postion Size Estimator

3.Candlestick - 5.Doji Candles

by Web3Degenerate
2 stars

This indicator identifies indecision doji candles and highlights potential market reversals directly on the price chart. It calculates the candle body percentage relative to total range and compares the upper and lower wick proportions. When a valid doji coinc

Indicator v5 Candlestick patterns
Updated 2 years ago · None stated GitHub repository of 3.Candlestick - 5.Doji Candles
1 stars

A strategy that merges two signal engines: a JAT+BSM engine and a POI scalp engine built on pattern and composite scoring. Either or both can be enabled, and signals combine as either-fires, both-must-agree, or one engine only. Risk uses either an ATR based st

Strategy v5 TrendScalping
Updated yesterday · None stated GitHub repository of JinxAlpha Unified Strategy v1

Signal Forge

by jayadevrana
1 stars

Signal Forge is a multi-filtered trend-following indicator displayed on the main price chart. It calculates an ATR trailing stop line alongside a long-term EMA baseline to identify market direction. Raw signal flips are filtered through ADX chop detection, a v

Indicator v6 TrendVolatility & bands
Updated 3 days ago · MPL-2.0 GitHub repository of Signal Forge

SMC Setup Check

by skipp-dev
1 stars

SMC Setup Check is a diagnostic utility indicator designed to verify chart-link bindings between the chart and the SMC Long-Dip Suite. It inspects external source inputs including schema version, state code, armed status, quality score, trigger, and invalidati

Indicator v6 Screeners & dashboardsSMC / ICT / price action
Updated 3 days ago · None stated GitHub repository of SMC Setup Check

Input Source History Subscript

by pineforge-4pass
1 stars

This strategy detects momentum turns by subtracting consecutive values of an input source. It defines src as a user-configurable source defaulting to hl2, the average of high and low prices. Momentum is calculated as the current src minus src one bar ago, and

Strategy v6 Oscillators & momentum
Updated 6 days ago · Apache-2.0 GitHub repository of Input Source History Subscript

P_err_request_financial

by GammaExpansion
1 stars

This indicator requests the quarterly total revenue figure for the chart symbol through request.financial and plots that series in a separate pane. It uses the symbol ticker and the TOTAL_REVENUE field on a fiscal-quarter timeframe. There are no user inputs, n

Indicator v6
Updated 6 days ago · MIT GitHub repository of P_err_request_financial

Market Structure Physics Lab

by rosijay17-cmd
1 stars

An overlay indicator that marks confirmed swing pivots and builds ATR-width structure zones around them. It adds CUSUM change-point markers, relative volume, lower-timeframe delta pressure, compression and trend-efficiency readings, then labels how each zone t

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 7 days ago · GPL-3.0 GitHub repository of Market Structure Physics Lab

DEPV2 Debug S12

by YuceSezar89
1 stars

DEPV2 Debug S12 is a multi-symbol research indicator designed to analyze market signals across up to 20 configurable cryptocurrency pairs. It evaluates conditions using four distinct categories: trend, momentum, volatility, and volume. Users can configure sing

Indicator v6 TrendOscillators & momentum Repaints
Updated 12 days ago · None stated GitHub repository of DEPV2 Debug S12

WaveTrend Adv

by 7b809
1 stars

An overlay version of the WaveTrend oscillator that hides the oscillator lines by default and instead prints buy and sell labels on the price chart. Labels show time, price, volume, previous volume and percentage changes. Channel and average lengths adjust aut

Indicator v5 Oscillators & momentum
Updated 2 weeks ago · None stated GitHub repository of WaveTrend Adv

Volatility Momentum Score

by vedkanani123
1 stars

A separate-pane oscillator that combines a Z-score of price with a Z-score of volatility into one score, then applies bands from a band length with separate positive and negative multipliers. A signal type setting chooses how it is read, and optional signs mar

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of Volatility Momentum Score

Draws volume order block zones with asymmetric signals on the price chart, then adds a proximity layer that checks how close those signals sit to high-volume, displacement and tier conditions. Version 1.1 is a tick-friendly build. It is an indicator only.

Indicator v6 SMC / ICT / price actionVolume
1 stars

Tn Adaptive Risk Regime v6 is a strategy that switches between mean reversion and breakout modes based on volatility regime. It compares ATR to its SMA over a lookback to classify high or low volatility. Low volatility triggers mean reversion by fading range e

Strategy v6 Volatility & bandsMean reversion
Updated 2 months ago · None stated GitHub repository of Tn Adaptive Risk Regime v6

Grimm HA

by GreyssonEnterprises
1 stars

A Pine v4 indicator that measures candle body size, shadow lengths and doji conditions on the price chart, then looks for a Heikin-Ashi style reversal bar following a doji. Matching bars are recoloured, and triangle markers with text labels and alert condition

Indicator v4 Candlestick patterns
Updated 2 months ago · MIT GitHub repository of Grimm HA
1 stars

This strategy generates trend-following trade signals by combining the Supertrend indicator with the Directional Movement Index (DMI). It enters long when the closing price crosses above the Supertrend line while +DI exceeds -DI and the ADX value is above 18.

Strategy v5 TrendVolatility & bands
Updated 4 months ago · MIT GitHub repository of Supertrend DMI Filter

Goertzel Algorithm V6

by mikeyhu70
1 stars

This indicator applies the Goertzel algorithm to price in a separate pane, measuring one frequency component set by a period length and a measurement block length. A training percentage and shift settings align the fitted wave with recent data, and the wave ex

Indicator v5 AI / machine learning
Updated 6 months ago · None stated GitHub repository of Goertzel Algorithm V6

VAMA Bands(BreakOut)+!

by ymlee1104
1 stars

This strategy trades breakouts using VAMA Bands on the price chart. It supports long and short entries with filters from VAMA, MACD, DI, ADX, OBV and optional entry limits. Positions exit on opposite trend, force close periods or flip signals. Main settings ad

Strategy v5 BreakoutMoving averages
Updated 7 months ago · None stated GitHub repository of VAMA Bands(BreakOut)+!

Range Scalper

by knectardev
1 stars

Range Scalper is a price-chart overlay indicator. Archived notes describe an ATR-based dynamic range threshold meant to adapt range detection to volatility, plus breakout shape markers. The file is labeled simplified for the archive and shows no parsed inputs.

Indicator v5 ScalpingVolatility & bands
Updated 9 months ago · None stated GitHub repository of Range Scalper

v5 Combination by Yzz

by webcrack4
1 stars

This combination indicator plots a Volume Profile or Market Profile histogram directly on the main price chart alongside MACD calculations. It measures volume or time distribution across custom price rows, highlighting key market structure levels such as the P

Indicator v5 VolumeSupport & resistance
Updated 9 months ago · None stated GitHub repository of v5 Combination by Yzz

Greedy Strategy

by ivansoft
1 stars

A strategy that places stop entry orders around price gaps and recent candles. It buys on a stop above the previous high after an upward gap, sells on a stop below the previous low after a downward gap, and adds same-direction entries when the open position's

Strategy v6 Breakout
Updated 1 year ago · None stated GitHub repository of Greedy Strategy

Meta Divergence

by zhuzp98
1 stars

An indicator that looks for regular or hidden divergences between price pivots and up to eleven oscillators and volume tools, including MACD, RSI, Stochastic, CCI, momentum, OBV, Chaikin Money Flow and MFI. It draws divergence lines and labels on the price cha

Indicator v5 DivergenceOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of Meta Divergence
1 stars

A Pine v4 indicator in a separate pane that shows a rolling Sharpe-style ratio of the chart's price series, with a long window of 200 bars and a short window of 52 by default. An optional reference interest rate symbol can be subtracted, a Hull moving average

Indicator v4 Volatility & bands
Updated 3 years ago · None stated GitHub repository of Tykhe Rolling Sharpe Ratio

Squeeze Cross

by JohnsonHsiao
1 stars

This indicator calculates a normalized volatility oscillator plotted in a separate pane. It measures the distance between the closing price and a simple moving average, standardized by a scaled standard deviation band. The script plots the resulting ratio alon

Indicator v5 Volatility & bandsOscillators & momentum
Updated 3 years ago · None stated GitHub repository of Squeeze Cross
1 stars

A Pine v4 strategy that goes long when the MACD and the 14-period RSI are both rising while RSI is at or below an entry level. It can add to a long when RSI drops further below the previous entry, up to a maximum number of adds, and it can reopen longs. Longs

Strategy v4 Oscillators & momentumMean reversion
Updated 4 years ago · None stated GitHub repository of MACD Fast Shorts Add RSI Entry

Fancy Shapes

by everget
948 stars

This script plots multiple shapes using the plotshape function in Pine Script v4. It defines fixed y offsets at intervals of 20 and renders flags, squares, diamonds, triangles up, and circles in sizes from tiny to huge. All shapes appear at absolute locations

Indicator v4 Support & resistance
Updated 11 days ago · GPL-3.0 GitHub repository of Fancy Shapes
330 stars

This mean-reversion strategy combines multi-timeframe exponential moving averages, Bollinger Bands, and the Relative Strength Index. It generates long and optional short trade signals when price interacts with the Bollinger Bands alongside RSI threshold confir

Strategy v5 Mean reversionMoving averages
Updated 2 months ago · None stated GitHub repository of MEMA + BB + RSI [Alorse]

AME-tracker

by Allen1212
303 stars

This indicator plots historical buy and sell transactions executed by ARK Invest for AME directly on the price chart using timestamped labels. It displays transaction actions and trade counts for specific historical dates. The ETF input setting lets users sele

Indicator v4
Updated 2 years ago · None stated GitHub repository of AME-tracker

FunctionBestFitFrequency

by ricardosantos79
261 stars

FunctionBestFitFrequency is a Pine Script v5 library that smooths a float array with a rolling average and searches a frequency range for the moving-average length whose residual signs are closest to evenly split. The array function can omit early values short

Library v5
Updated 4 years ago · None stated GitHub repository of FunctionBestFitFrequency

Snag - 100 Win

by dearvn
257 stars

This indicator plots smoothed adaptive moving averages on the price chart using T3, AMA, or Kaufman methods. It accepts various sources including standard and Heikin-Ashi versions. Main settings select the calculation type, input source, period length, and smo

Indicator v5 Moving averagesTrend
Updated 6 weeks ago · None stated GitHub repository of Snag - 100 Win
218 stars

This indicator plots market structure on the price chart by identifying swing highs and lows. It connects these points with lines to visualize trend direction and detect Break of Structure (BOS) when price breaks a prior swing in the current trend. Change of C

Indicator v6 TrendSupport & resistance
Updated 3 months ago · None stated GitHub repository of Market Structure - BOS & CHoCH

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