Synced with GitHub · updated yesterday

Free TradingView Pine Scripts

8,340 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
8,340 scripts

TheStrat Suite

by 345-strategies
5 stars

TheStrat Suite classifies candles across six configurable timeframes using Rob Smith's TheStrat bar types. It plots inside bars, hammers, shooters, failed 2s and outside bars on the price chart, with magnitude and exhaustion targets, stop levels and full timef

Indicator v6 Candlestick patternsSupport & resistance Repaints
Updated 3 days ago · MPL-2.0 GitHub repository of TheStrat Suite

Relative Strength Index

by SiegerTerpstra
5 stars

This indicator plots the Relative Strength Index, a momentum oscillator that measures the speed and magnitude of price changes using Wilder's RMA of gains and losses. It draws the oscillator and configurable upper and lower bands in a separate pane, with the l

Indicator v6 Oscillators & momentum
Updated 9 months ago · None stated GitHub repository of Relative Strength Index

Sirius Wavetrend

by jerryinyang
5 stars

Sirius Wavetrend is an oscillator-style indicator that requests higher-timeframe MACD and Wave Trend values and compares them with optional RSI or Stochastic filters. It marks long and short MACD states from histogram color and the MACD sign, with an optional

Indicator v4 Oscillators & momentum
Updated 2 years ago · None stated GitHub repository of Sirius Wavetrend

This indicator combines a 200-period Exponential Moving Average (EMA), a Stochastic RSI oscillator, and three distinct Supertrend lines utilizing different ATR periods and multipliers. It overlays the EMA and Supertrend tracking lines directly onto the price c

Indicator v4 TrendOscillators & momentum
Updated 3 years ago · Apache-2.0 GitHub repository of 200 EMA + Stochastic + Triple Supertrend

AG Trend-Pullback

by eltonaguiar
4 stars

This strategy trades trend pullbacks on the price chart. It goes long when the 50-period EMA is above the 200-period EMA, price is above the slower average, RSI of length 2 is below 20, and ADX is above 15. Shorts mirror that in a downtrend with RSI above 80.

Strategy v6 TrendOscillators & momentum
Updated yesterday · None stated GitHub repository of AG Trend-Pullback

MTF MA bands + RSI

by InNoobWeTrust
4 stars

This indicator plots multi-timeframe moving average bands alongside a Relative Strength Index in a separate pane. It calculates up to four configurable moving averages across different timeframes, offering selectable types such as SMA, EMA, and WMA with colore

Indicator v6 Oscillators & momentumMoving averages
Updated yesterday · None stated GitHub repository of MTF MA bands + RSI

Stochastic Cross

by latentwill
4 stars

This strategy evaluates momentum conditions in a separate pane to trigger long and short positions. Although titled after stochastic crossovers, the code calculates two Relative Strength Index series for trade signals. It enters long when the primary oscillato

Strategy v5 Oscillators & momentumMean reversion
Updated 7 days ago · None stated GitHub repository of Stochastic Cross
4 stars

This strategy builds Chandelier trailing stops from the highest high and lowest low over an ATR window, offset by an ATR multiple. The long stop only ratchets up and the short stop only ratchets down. Direction turns long when the close exceeds the prior short

Strategy v6 TrendVolatility & bands
Updated 2 months ago · MIT GitHub repository of Chandelier Strategy [trugurpala]

SMC Quant Engine - QuantAlgo

by thesenegalesehitch
4 stars

SMC Quant Engine is an intraday trading strategy that combines Smart Money Concepts with a quantitative scoring system. It identifies order blocks and fair value gaps aligned with higher-timeframe 240-minute moving averages, ADX trend strength, and volume. Ent

Strategy v6 SMC / ICT / price actionMoving averages
Updated 4 months ago · Custom licence GitHub repository of SMC Quant Engine - QuantAlgo
4 stars

Ichimoku Cloud — Large Cap is a long-only trend-following strategy designed for large-cap stocks. It calculates standard Ichimoku components, including Tenkan-sen, Kijun-sen, Senkou Span A, Senkou Span B, and Chikou Span. Trades enter on a bullish Tenkan/Kijun

Strategy v5 TrendSupport & resistance
Updated 5 months ago · None stated GitHub repository of Ichimoku Cloud — Large Cap

Elliott Wave [LuxAlgo]

by YooooungLee
4 stars

This overlay indicator marks Elliott Wave structure on the price chart. Comments describe detection of impulse and corrective waves across three ZigZag lengths, Fibonacci retracement levels, and numbered wave labels. Users choose high and low sources, turn eac

Indicator v5 Support & resistance
Updated 10 months ago · Apache-2.0 GitHub repository of Elliott Wave [LuxAlgo]
4 stars

This indicator plots a fast and a slow moving average on the price chart and marks bullish and bearish crossovers. The user can choose SMA, EMA, RMA, or WMA, the price source, and both lengths. Triangle shapes appear below or above the bar at each crossover, a

Indicator v5 TrendMoving averages
Updated 11 months ago · Custom licence GitHub repository of MA Crossover Indicator [Lab]
4 stars

This indicator marks a bearish long upper shadow candlestick pattern on the price chart. It treats a bar as a match when the upper shadow is greater than 75 percent of the full high-to-low range. On a match it draws an LUS label above the bar, tints the backgr

Indicator v5 Candlestick patterns
Updated 1 year ago · None stated GitHub repository of Long Upper Shadow - Bearish

KARPUZLU-RSI

by Kalumur
4 stars

Calculates a custom-period Relative Strength Index alongside an Exponential Moving Average of the RSI in a separate pane. It identifies pivot highs and lows directly on the RSI plot to highlight trendlines and potential divergence patterns. The area between th

Indicator v5 Oscillators & momentumMoving averages
Updated 2 years ago · None stated GitHub repository of KARPUZLU-RSI

Trend Finder w/ COV

by kevinhhl
4 stars

This indicator measures price volatility using the Coefficient of Variation, calculated by dividing the standard deviation by the simple moving average over a specified lookback period. It filters out ranging market conditions by comparing the current variatio

Indicator v5 TrendVolatility & bands
Updated 3 years ago · None stated GitHub repository of Trend Finder w/ COV

MACD Indicator (14,21)

by might-tree
4 stars

This script plots three MACD lines calculated from exponential moving averages on the close price. The first line subtracts the 14-period EMA from the 21-period EMA, the second subtracts the 41-period EMA from the 90-period EMA, and the third subtracts the 90-

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · None stated GitHub repository of MACD Indicator (14,21)
4 stars

This indicator plots overbought and oversold markers on the price chart. It calculates RSI from a chosen source and a smoothed Stochastic %K. A red down triangle labeled OB appears above a bar when both oscillators are at or above their overbought levels. A gr

Indicator v4 Oscillators & momentum
Updated 4 years ago · None stated GitHub repository of RSI and Stoch (Brahim)
4 stars

Snagprofit Buy Sell is an overlay trend-following indicator that calculates smoothed triple exponential moving averages (TMA) based on Heikin-Ashi and standard price inputs. It plots two trend lines directly on the chart and fills the space between them in gre

Indicator v5 TrendMoving averages
Updated 4 years ago · None stated GitHub repository of Snagprofit Buy Sell

Volume Spike Alert

by degenview
3 stars

This indicator highlights unusually high trading volume relative to a moving average baseline. It calculates a volume threshold by multiplying a simple moving average of previous volume bars by a user-defined factor. Volume is plotted as a column chart in a se

Indicator v6 Volume
Updated yesterday · GPL-3.0 GitHub repository of Volume Spike Alert

DIP FINDER BIST

by gocaman
3 stars

DIP FINDER BIST is a multi-symbol dashboard indicator designed for the BIST stock market. It scans predefined groups of Turkish stocks across user-selected timeframes to identify potential market bottoms and oversold conditions. The script evaluates multiple t

Indicator v5 Screeners & dashboardsOscillators & momentum
Updated yesterday · None stated GitHub repository of DIP FINDER BIST

Alert Test

by g-moe
3 stars

Alert Test is a utility indicator designed to demonstrate and test TradingView alert functionality in Pine Script v5. It monitors the closing price of the current bar against a hardcoded threshold level of 3000. When the closing price exceeds this value, it tr

Indicator v5
Updated 5 months ago · None stated GitHub repository of Alert Test
3 stars

This Pine Script v5 indicator overlays RSI, MACD line, signal line, and histogram on the price chart. It also plots a custom composite indicator derived from normalized RSI and MACD values. Buy and sell signals trigger when RSI crosses oversold/overbought leve

Indicator v5 Oscillators & momentumVolume
Updated 7 months ago · None stated GitHub repository of Interactive Debugging Demo

Stella's MACD + RSI Combo

by stella-entry
3 stars

Stella's MACD + RSI Combo plots both the Moving Average Convergence Divergence oscillator and the Relative Strength Index in a separate chart pane. It evaluates momentum by comparing the MACD line against its signal line alongside RSI overbought and oversold t

Indicator v5 Oscillators & momentumMoving averages
Updated 8 months ago · MIT GitHub repository of Stella's MACD + RSI Combo
3 stars

This indicator combines a Delta Money Flow Profile with Bjorgum price levels directly on the main price chart. It calculates buying and selling volume delta using either candle polarity or buying/selling pressure to display money flow profiles, normalized dist

Indicator v5 Support & resistanceVolume
Updated 12 months ago · None stated GitHub repository of DeltaProfile TimePrice Bjorgum Levels
3 stars

This indicator detects bearish M and bullish W chart formations on the price chart based on Steve Mauro's Beat The Market Maker (BTMM) methodology. It emphasizes second-leg entries confirmed by a clean close across the 13 EMA, volume filters, and minimum ATR p

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of BTMM M&W Pattern Detection
3 stars

This strategy plots a 12-line moving average rainbow directly on the price chart using customizable types such as EMA, SMA, RMA, WMA, HMA, or VWMA. It enters positions based on moving average alignment and turnover signals across the ribbon. Exits are managed

Strategy v5 Moving averagesTrend
Updated 2 years ago · None stated GitHub repository of Moving Average Rainbow (Stormer)

This indicator measures a 20-bar rolling correlation between lagged changes in several price factors and the close change over the previous 10 bars. It is configured to draw in a separate pane. The factors include the gap between a 13-period EMA and a 30-perio

Indicator v5 Moving averagesVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Factor Indicator: Correlation with Price Change

Currency Strength Chart

by itmakesyousick
3 stars

Currency Strength Chart plots the relative strength of major currencies including EUR, USD, JPY, GBP, CHF, AUD and CAD on a separate pane. It calculates values from price or oscillator sources such as RSI, CCI or Stochastics then smooths the result. Users choo

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

TQQQ TSI Divergence

by yalili8521
2 stars

This strategy identifies hidden bullish and bearish divergences between price pivots and the True Strength Index (TSI) indicator. It incorporates an Exponential Moving Average (EMA) trend filter and a customizable trading session time window. Long positions en

Strategy v6 Oscillators & momentumDivergence
Updated 8 days ago · None stated GitHub repository of TQQQ TSI Divergence
2 stars

The GMMA indicator plots two groups of exponential moving averages on the price chart. The short-term group uses EMAs with periods 3, 5, 8, 10, 12 and 15. The long-term group uses EMAs with periods 30, 35, 40, 45, 50 and 60. The two groups are colored blue and

Indicator v6 Moving averagesTrend
Updated 11 days ago · MIT GitHub repository of GMMA = Guppy Multiple Moving Average
2 stars

This strategy identifies price consolidation ranges during Asia session hours and trades mean-reversion reclaims following liquidity sweeps. It marks an initial range box, measures sweep depths past box boundaries using ATR multiples, and enters trades when pr

Strategy v6 Sessions & timeDivergence
Updated 4 weeks ago · Custom licence GitHub repository of MP Asia Range Sweep & Reclaim

Oscillator

by TamTH-Dev
2 stars

Oscillator combines WaveTrend calculations, Money Flow Oscillator (MFO), VWAP metrics, and fractal-based divergence detection into a single separate pane indicator. It plots overbought and oversold threshold levels, identifies trend momentum waves, and highlig

Indicator v6 Oscillators & momentumVolume
Updated 5 weeks ago · None stated GitHub repository of Oscillator
2 stars

This indicator maps the Asia, London, and New York sessions on the price chart. It draws each developing session range as a translucent box and places dashed liquidity rails at prior session highs and lows. Those rails remain until price sweeps them, then they

Indicator v6 Sessions & timeSMC / ICT / price action
Updated 2 months ago · Custom licence GitHub repository of Session Liquidity Map [Vantrade]
2 stars

This indicator tracks multi-timeframe market structure across up to four user-defined timeframes in a separate pane. It identifies structural changes through Break of Structure (BoS) and Change of Character (CHoCH) events derived from pivot highs and lows. Use

Indicator v6 SMC / ICT / price actionTrend
Updated 2 months ago · None stated GitHub repository of Market Structure MTF Trend [Pt]

Zeguela Demabot

by danielvm-git
2 stars

This strategy calculates and plots up to three Double Exponential Moving Averages directly on the price chart. It signals entries based on DEMA crossovers and crossunders, using an optional third moving average as a directional trend filter. Position sizing al

Strategy v4 Moving averagesTrend
Updated 2 months ago · MIT GitHub repository of Zeguela Demabot

Launch Pad Setup

by major
2 stars

This indicator identifies consolidation by checking if the closing price stays within a user-defined percentage of three moving averages: a 21-period SMA, a 50-period SMA, and a 65-period EMA. When the condition holds, it plots a green X marker below the candl

Indicator v6 Moving averagesBreakout Repaints
Updated 3 months ago · Apache-2.0 GitHub repository of Launch Pad Setup

MACD

by avatar-lavventura
2 stars

This strategy calculates and plots the traditional Moving Average Convergence Divergence (MACD) line, signal line, and histogram in a separate pane. It enters a long position when the MACD histogram is above zero and closes the long position when the histogram

Strategy v4 Oscillators & momentumMoving averages
Updated 7 months ago · None stated GitHub repository of MACD

This indicator calculates predictive volatility boundaries and support/resistance range channels for grid trading configurations. It determines grid envelopes using an ATR-based step algorithm across a configurable length and multiplier factor, with customizab

Indicator v6 Volatility & bandsSupport & resistance Repaints
Updated 8 months ago · MIT GitHub repository of Grid Bot Predictive Ranges [psyll]

This indicator plots a multi-asset correlation heatmap in a separate pane to measure statistical relationships between assets. It calculates Pearson correlation coefficients over a user-specified lookback period between a chosen primary symbol and up to twenty

Indicator v6 Screeners & dashboardsSessions & time
Updated 8 months ago · None stated GitHub repository of Correlation HeatMap Sessions Data Science Stats
2 stars

This indicator tracks market volatility regimes by calculating the ratio between the CBOE Volatility Index (VIX) and the 3-Month Volatility Index (VIX3M). Plotted in a separate pane, a line displays the VIX to VIX3M ratio alongside a dashed reference line at 1

Indicator v5 Volatility & bands
Updated 10 months ago · MIT GitHub repository of VIX Curve Regime (Simple)

Heikin Ashi Supertrend

by wynnforthework
2 stars

This strategy applies a Supertrend calculation to Heikin Ashi price data to identify trend direction and potential market reversals. It executes trades based on Supertrend trend shifts and incorporates an On-Balance Volume filter. Risk management includes a co

Strategy v5 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Heikin Ashi Supertrend
2 stars

This indicator tracks and displays open portfolio positions in an on-chart table overlay. It monitors up to ten user-defined symbols alongside their respective buy prices, retrieving current market prices and calculating the unrealized percentage change for ea

Indicator v6 Screeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of Portfolio Tracker

Neural Network

by iceberg211
2 stars

Calculates composite scoring across multiple technical indicators including EMAs, SuperTrend, Parabolic SAR, Hull Moving Average, RSI, MACD, WaveTrend, Stochastic, Bollinger Bands, and ATR. Trading entries trigger on the price chart when cumulative weighted sc

Strategy v4 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Neural Network

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