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

Solar Winds

by ankurksoni
1 stars

A separate-pane momentum oscillator that places each bar's midpoint within the highest-high to lowest-low range of a chosen period, default 35 bars. That position is smoothed twice and passed through a Fisher transform to sharpen turning points. It plots a his

Indicator v6 Oscillators & momentum
Updated 2 days ago · None stated GitHub repository of Solar Winds

Kalman vs EMA

by jayadevrana
1 stars

This indicator overlays two smoothed price lines on the chart for comparison. A one-dimensional Kalman filter estimates the current price state and velocity, adjusting based on process noise Q, measurement noise R, and velocity noise qvIn. An EMA of user-defin

Indicator v6 Moving averagesTrend
Updated 3 days ago · MPL-2.0 GitHub repository of Kalman vs EMA

SMC Draw

by skipp-dev
1 stars

This Pine Script v6 library provides drawing wrappers for smart-money chart objects. It exports types for labels, lines and boxes, plus default style arguments and factory methods that build chart points from a bar index or a bar time. Callers create, hide and

Library v6 Repaints
Updated 3 days ago · None stated GitHub repository of SMC Draw

DMI ADX Trend Following

by pineforge-4pass
1 stars

A strategy based on the Directional Movement Index. It enters long when the positive directional line crosses above the negative one and enters short on the opposite cross, reversing the position. An ADX threshold input is defined but not used in the entry con

Strategy v6 Trend
Updated 6 days ago · Apache-2.0 GitHub repository of DMI ADX Trend Following

P Err Continuation 4spaces

by GammaExpansion
1 stars

This indicator calculates the maximum of the close and open prices using the math.max function for each bar. It plots the resulting value as a line in a separate pane below the price chart. The script has no input settings and produces no trading signals, entr

Indicator v6
Updated 6 days ago · MIT GitHub repository of P Err Continuation 4spaces
1 stars

A long-only strategy built on a fast and a slow EMA crossover, defaulting to 12 and 26. It buys a fixed cash amount when the fast EMA crosses above the slow EMA and closes when it crosses below, holding at most one position. A start date input limits when trad

Strategy v5 Moving averagesTrend
Updated 7 days ago · None stated GitHub repository of CDC Backtest MACD Fix Amount

A standalone test module, plotted in a separate pane, for trade cooldown rules. It implements gates by bar index arithmetic for a global cooldown after a win or loss, a per-direction cooldown after a loss and a session limit on consecutive losses. A scripted s

Indicator v6
Updated 7 days ago · GPL-3.0 GitHub repository of Delta Break and Retest Stage 3 Cooldown Module

DEPV2 B2 · DEVISSO RATIO

by YuceSezar89
1 stars

This indicator plots a Devisso ratio in a separate pane and is meant to run on the daily chart. It accumulates signed close-to-close percent changes into a running total, applies RSI to that total, then takes the absolute change in RSI divided by the change in

Indicator v6 Oscillators & momentum
Updated 12 days ago · None stated GitHub repository of DEPV2 B2 · DEVISSO RATIO

SR+Trend v9

by MuhammadMuhamid
1 stars

An earlier version of a long-only crypto spot strategy that combines multi-timeframe pivot support and resistance with optional trend filters. Entries wait for price to touch a support zone sized by ATR or ticks and then confirm within a few bars. Version 9 ad

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

Fractal Spiral draws a geometric spiral in a separate pane and marks price-line crossings against detected swing fractals. It searches a chosen number of bars for up and down fractals, then builds a Golden, Archimedean, or logarithmic spiral around a user-set

Indicator v6 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Fractal Spiral{Morindok}

OHLC Demo

by Alaamo7
1 stars

This script is a basic OHLC demo indicator written in Pine Script version 6. It plots the closing price of the current symbol on a separate pane below the main price chart. Additionally, it displays trading volume in another pane. This educational example help

Indicator v6 Volume
Updated 2 months ago · Custom licence GitHub repository of OHLC Demo

Mean Deviation Loop

by vedkanani123
1 stars

A separate-pane oscillator based on mean absolute deviation. It offers two signal modes: Bollinger-style bands around a chosen moving average of the deviation, or a for-loop score summed across a range of lookbacks and compared with long and short thresholds.

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of Mean Deviation Loop
1 stars

This overlay indicator requests footprint volume rows for the current bar and reads the point of control, value-area high, and value-area low. It draws a purple box over the point-of-control price range when the mode is point of control or both, and on the las

Indicator v6 VolumeSupport & resistance
Updated 2 months ago · None stated GitHub repository of TeleNexus Footprint Explorer v6

Reload Ranger Strategy

by GreyssonEnterprises
1 stars

A Pine v5 strategy that trades reversal setups inside a Fibonacci retracement zone taken from a higher timeframe, combining W and M pattern matching with Williams %R, MACD, RSI and OBV filters. Risk per trade starts at a base percentage with an increment and a

Strategy v5 Support & resistanceOscillators & momentum
Updated 2 months ago · MIT GitHub repository of Reload Ranger Strategy
1 stars

This indicator extends the streamlined Quantum Flow gold build with a confirmation layer between a pending setup and a validated one. While a setup is pending it scores confirmation events such as volume spikes, delta flips, wick rejection, micro breaks of str

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of Quantum Flow v21 AI Approval Engine

Neural Probability Channel

by tthanhvu002sgu
1 stars

Draws a volatility channel around a kernel regression baseline on the price chart. The baseline is a weighted average of recent hlc3 prices using a rational quadratic kernel, with bandwidth and alpha settings controlling smoothness. Channel width comes from th

Indicator v5 Mean reversionVolatility & bands
Updated 3 months ago · None stated GitHub repository of Neural Probability Channel
1 stars

This TradingView strategy detects directional trades on the price chart using multiple entry triggers including TMA-Crossing, Breakout, and VWAP-Crossing with price types like Close or Open. It applies optional logical combinations of triggers and enforces tim

Strategy v6 TrendBreakout
Updated 4 months ago · None stated GitHub repository of STT Trade Plan Directional
1 stars

This indicator marks price imbalances on the chart as boxes. It can show fair value gaps, opening gaps, and volume imbalances, each with separate bullish and bearish colors. Optional minimum-width filters accept points, a percentage, or ATR, and each type can

Indicator v5 SMC / ICT / price actionVolume
Updated 4 months ago · None stated GitHub repository of Imbalance Detector [LuxAlgo]

A strategy shown in a separate pane that trades divergences between price and cumulative volume delta. A confirmed bullish divergence opens a long and a bearish one opens a short, with direction selectable, and entries can be limited by divergence strength: fi

Strategy v5 DivergenceVolume
Updated 4 months ago · None stated GitHub repository of Cumulative Volume Delta Divergence + ATR Trailing Stop

KLSE VCP Stage v2

by kevinesk
1 stars

This indicator classifies market structure into volatility contraction pattern (VCP) stages on the main price chart. It evaluates a Mark Minervini Trend Template score alongside Bollinger Band width percentiles and volume metrics to determine stages such as Co

Indicator v5 TrendVolatility & bands
Updated 4 months ago · None stated GitHub repository of KLSE VCP Stage v2

Momentum Swing

by rubbermetal
1 stars

Momentum Swing is an indicator, not a strategy, that marks Long and Short signals when a MACD cross coincides with an oversold or overbought RSI reading and ADX above 25. It plots fast and slow EMAs, colors bars when volume exceeds a multiple of its 50-bar ave

Indicator v6 Oscillators & momentumTrend
Updated 4 months ago · MPL-2.0 GitHub repository of Momentum Swing
1 stars

This strategy calculates a rolling price-change momentum score using a custom iterative loop function combined with exponential moving averages. It measures net price movement across six bars alongside a 9-period and 21-period EMA crossover. Long positions are

Strategy v5 Oscillators & momentumMoving averages
Updated 4 months ago · MIT GitHub repository of Block Function Loop Score

MTF Trend Alignment Strategy

by shubhamtaywade82
1 stars

A strategy that goes long when price is above a moving average on all four timeframes and short when it is below on all four. The defaults are 15 minutes, 1 hour, 4 hours and 1 day, using an SMA, EMA or WMA. An option closes the position as soon as the alignme

Strategy v6 TrendMoving averages Archived
Updated 5 months ago · None stated GitHub repository of MTF Trend Alignment Strategy

Talons Tiered Exit (Memecoin)

by muammeryldrm42
1 stars

This strategy identifies long entry opportunities using a fast and slow EMA crossover, primarily designed for high-volatility tokens. It manages trades using a tiered scaling-out system that closes specified percentages of the position at three configurable pr

Strategy v5 TrendMoving averages Repaints
Updated 5 months ago · None stated GitHub repository of Talons Tiered Exit (Memecoin)

Crypto AMT v6.1 Risk

by latifangren
1 stars

The Crypto AMT Toolkit v6.1 - Conservative Risk is a Pine Script indicator that overlays Volume Profile with customizable value area boxes and right-side visuals on the price chart, along with VWAP bands, EMA trend filters, higher-timeframe bias, lower-timefra

Indicator v6 VolumeSupport & resistance
Updated 5 months ago · MIT GitHub repository of Crypto AMT v6.1 Risk

Sweep Institutional

by dtheran1
1 stars

Detects liquidity sweeps, also called swing failure patterns, on the price chart. Swing highs and lows are found with a 20-bar lookback on each side. A bullish sweep is flagged when price trades below a swing low but closes back above it, and a bearish sweep i

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of Sweep Institutional
1 stars

This compact 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 correcti

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

Price Action Toolkit Lite

by Focal-QuantAI
1 stars

An indicator on the price chart that bundles several price action overlays. It can show zigzag market structure, liquidity sweeps over a set length, recent order blocks and fair value gaps, with limits on how many of each remain on screen. It also detects tren

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of Price Action Toolkit Lite
1 stars

A separate-pane indicator that ranks four user-chosen ETFs, preloaded with gold, Nasdaq, ChiNext and Nikkei funds, by momentum over a set number of weeks, and tracks a rotation into the top few. Settings choose the weekday that ends each week, rebalance at the

Indicator v6 Oscillators & momentumScreeners & dashboards
Updated 7 months ago · None stated GitHub repository of ETF Rotation (Weekly Momentum)

Trend Surfer

by gabriel-klettur
1 stars

Trend Surfer is a multi-timeframe trend-following indicator overlay. It calculates short and long Exponential Moving Averages from a configurable higher timeframe to determine the main market trend direction. The indicator highlights current-interval RSI overb

Indicator v6 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of Trend Surfer
1 stars

Strong Trending - Momentum Rider is a trend-following strategy designed for intraday and swing trading. It evaluates market strength using a composite momentum score based on exponential moving averages, the Directional Movement Index (DMI/ADX), candle body ra

Strategy v5 TrendOscillators & momentum
Updated 7 months ago · None stated GitHub repository of Strong Trending - Momentum Rider

SPX Gamma (0DTE)

by Juice-zhi
1 stars

A price-chart overlay that draws a static set of options gamma levels for SPX (the S&P 500 index) expiring in the same day. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated 2026-02-04, produced offline fr

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

An overlay indicator that finds equal highs and equal lows between two consecutive candles. It compares the gap between their highs, or lows, with the combined range of the two bars and flags the pair when that gap falls under a precision value. A lower precis

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 9 months ago · None stated GitHub repository of Equal Highs and Equal Lows

LeBeau

by turnupdigital
1 stars

LeBeau is a trend-following overlay indicator based on Charles Le Beau's Chandelier Exit strategy. It calculates trailing stop-loss levels using the Average True Range (ATR) applied to standard price data or smoothed Heikin Ashi bars. When the price crosses ab

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

TeeLek KAMA

by theteelek
1 stars

An overlay indicator that computes Kaufman's Adaptive Moving Average using a ten-bar efficiency ratio, then requests it from daily, 12-hour, 6-hour, 4-hour, 2-hour and 1-hour data and smooths each with a short EMA. The lines are coloured by direction in green

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

This strategy trades Williams %R crossing into extreme zones. It enters long when the oscillator drops below the oversold level after being above it, and short when it rises above the overbought level after being below it. Each entry carries an ATR-based stop

Strategy v5 Oscillators & momentumMean reversion
Updated 1 year ago · None stated GitHub repository of Williams %R Strategy

TechnicalRating

by ivansoft
1 stars

TechnicalRating is a Pine Script library that calculates composite technical rating scores ranging from -1 to +1. It aggregates market conditions across 26 technical indicators, including moving averages, RSI, Stochastic, MACD, Ichimoku, and DMI, into overall,

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

Spot Net Strategy

by zhuzp98
1 stars

Spot Net Strategy is a Pine Script v5 overlay strategy aimed at cryptocurrencies. It sizes each order from account equity times an equity-usage percentage, divided by price. It opens a long when close equals 0.998 and a short when close equals 1.004, then clos

Strategy v5
Updated 1 year ago · None stated GitHub repository of Spot Net Strategy

Hello World

by fiji-solutions
1 stars

This educational indicator demonstrates built-in Pine Script string manipulation functions. On the latest bar, it generates text labels directly on the price chart displaying formatted closing prices. In a separate indicator pane, it plots constant numerical v

Indicator v5
Updated 2 years ago · None stated GitHub repository of Hello World

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