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

Cipher B

by diehardyearone
3 stars

Cipher B is a multi-indicator plotting WaveTrend oscillator lines and signals alongside Stochastic RSI, MFI area with color bars, and buy sell marks. It draws all elements in a separate pane. WaveTrend calculates using SMMA and EMA on source like ohlc4 with ad

Indicator v6 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of Cipher B

This strategy plots Fibonacci retracement levels from a rolling high-low range and trades long only on the price chart. It enters when price is above the first Fibonacci level, volume exceeds its moving average, and price is above a simple moving average. It c

Strategy v5 TrendVolatility & bands
Updated 1 year ago · MIT GitHub repository of Volume + Fibonacci + Trend + ATR Strategy with 1% TP

200DMA Entry

by FinDeckDao
3 stars

This strategy plots a 200-period simple moving average on the price chart and opens a long position when the previous bar’s close crosses above that average. Each entry uses one percent of account equity. It closes the position when price reaches 2.5 times the

Strategy v5 TrendMoving averages Repaints
Updated 1 year ago · MIT GitHub repository of 200DMA Entry

EMA Lib

by augustoerni
3 stars

EMA Lib is a Pine Script v5 library that provides a custom exponential moving average calculation function. The library exports a single function that takes a period length parameter and computes an exponential moving average on close prices. To initialize the

Library v5
Updated 2 years ago · None stated GitHub repository of EMA Lib
3 stars

This strategy combines five selectable mean-reversion and swing trading sub-strategies into a unified system. It generates entry signals based on conditions like Internal Bar Strength drops, consecutive lower closes into Tuesday, multi-day channel breakdowns,

Strategy v5 Mean reversionTrend
Updated 2 years ago · MIT GitHub repository of Mean Reversal Portfolio
3 stars

This indicator estimates how many bars typically pass before a custom skew measure falls back below its exponential moving average. It builds the skew from smoothed upside and downside true-range deviations, then applies five fixed EMA lengths from 2 to 110. O

Indicator v5 Mean reversionMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Average Bars Before Reversion
3 stars

Calculates an Investor's Business Daily (IBD) style Relative Strength (RS) rating and plots an RS line directly on the price chart. It evaluates price performance against a comparative benchmark index (defaulting to NSE:NIFTY). Optional visual markers highligh

Indicator v5 Oscillators & momentumBreakout
Updated 2 years ago · None stated GitHub repository of RS Rating for Indian Market

This indicator calculates the Relative Strength Index and Money Flow Index to identify potential market reversals. It plots the RSI oscillator in orange and the MFI line in blue on a separate pane. Horizontal lines mark overbought at 70 and oversold at 30 for

Indicator v5 Oscillators & momentum
Updated 2 years ago · MIT GitHub repository of Relative Strength Index And Money Flow Index

EMA+BB+ADX+AO

by mr-s8
3 stars

This strategy plots four EMAs (5, 21, 50 and 200), a Bollinger Band ratio, Awesome Oscillator and ADX on the price chart. It generates long entries when EMA alignment, BB expansion, AO strength and ADX trend strength align, then exits using a percentage-based

Strategy v5 Moving averagesVolatility & bands
Updated 2 years ago · GPL-2.0 GitHub repository of EMA+BB+ADX+AO

Unicorn Strategy

by oscar811
3 stars

This overlay strategy marks market-structure swings and breaker blocks on the price chart. It can limit a breaker to the candle body, use one or two candles in the same direction, and stop the block at the first break of its center line. Entries can be restric

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 2 years ago · None stated GitHub repository of Unicorn Strategy

Bitcoin Difficulty (QUANDL:BCHAIN/DIFF)

by datacrypto-analytics
3 stars

This indicator plots Bitcoin mining difficulty from the Quandl BCHAIN/DIFF dataset. The script calculates the difficulty metric using the quandl function and displays it as a line plot in a separate pane. It provides historical data on mining difficulty levels

Indicator v4 Volatility & bandsSupport & resistance
Updated 3 years ago · Apache-2.0 GitHub repository of Bitcoin Difficulty (QUANDL:BCHAIN/DIFF)

Crypto Market Correlation

by vishnugovind10
3 stars

Crypto Market Correlation plots rolling correlations between the chart's closing price and copper, the S&P 500, the DAX 30, EUR/JPY, WTI crude, and gold. It draws six colored lines in a separate pane and places a short name label at the latest value of each se

Indicator v4 Screeners & dashboards
Updated 3 years ago · None stated GitHub repository of Crypto Market Correlation

Stochastic RSI Screener

by Abbas-Borji
3 stars

The Stochastic RSI Screener calculates the Relative Strength Index and Stochastic RSI values (K and D lines) for up to five user-defined symbols. It retrieves the current price, RSI, K-value, and D-value for each selected asset using security calls and display

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated 3 years ago · None stated GitHub repository of Stochastic RSI Screener
3 stars

Fedra Algotrading Strategy Premium is an intraday trend-following strategy designed for sub-30-minute charts. It combines dual moving averages with optional Supertrend, MACD, and market breadth ratio filters to trigger long and short positions. The script incl

Strategy v5 TrendMoving averages Repaints
Updated 3 years ago · None stated GitHub repository of Fedra Algotrading Strategy Premium
3 stars

This strategy looks for long entries when the MACD line exceeds its signal line by a set amount and volume rises by a chosen percentage. It places one buy limit either a set number of pips or a percentage below the previous close. Exits start with a percentage

Strategy v4 Oscillators & momentumVolume
Updated 4 years ago · None stated GitHub repository of Dutch Bros Strategy
3 stars

This indicator plots horizontal liquidity lines on the price chart at swing pivot highs and lows. It detects pivots by checking local maxima and minima in the high and low arrays. Lines are drawn at the pivot levels with customizable colors, styles, and a maxi

Indicator v5 Support & resistance
Updated 4 years ago · None stated GitHub repository of Liquidity by makuchaku & eFe

Currency Strength Chart

by itmakesyousick
3 stars

Calculates and plots relative strength metrics for major currencies in a separate pane. It evaluates cross-pair price action or technical indicators like RSI, CCI, and Stochastics across data feeds from chosen forex brokers. Inputs allow users to select displa

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated 4 years ago · None stated GitHub repository of Currency Strength Chart
3 stars

This strategy overlays Donchian Channels and higher-timeframe exponential moving averages on the price chart to generate trading signals. It calculates an upper, lower, and median Donchian band alongside 240-minute EMAs fetched specifically for BTCUSDT. When p

Strategy v5 BreakoutMoving averages
Updated 4 years ago · CC0-1.0 GitHub repository of Greeffer's Hedge Mode Strategy
3 stars

This strategy detects pivot highs and pivot lows with a left-bar and right-bar window, then filters those swings into higher highs and lower lows. It also derives support and resistance from higher-high, higher-low, lower-low and lower-high points and draws on

Strategy v4 Support & resistanceTrend
Updated 5 years ago · None stated GitHub repository of Higher High Lower Low Strategy Bot

BBI HPI RSI

by blackcat1402
3 stars

This indicator combines Bollinger Band Indicator, High Price Indicator and Relative Strength Index on the price chart. It calculates BBI using length, standard deviation and pivot settings, detects HPI based on recent bars when current bar is red, and includes

Indicator v4 Oscillators & momentumMoving averages
Updated 5 years ago · MIT GitHub repository of BBI HPI RSI
2 stars

This indicator plots the relative strength index in a separate pane. It calculates RSI from the selected source and length with Wilder-style RMA smoothing, then draws the line against horizontal bands at 70, 50 and 30, with gradient fills in the overbought and

Indicator v6 Oscillators & momentumMoving averages
Updated yesterday · None stated GitHub repository of Relative strength index

Trade History Labels

by kaiku0125
2 stars

Plots historical trade records as visual buy and sell labels directly on the price chart. It matches recorded trade dates and symbols against the active instrument, calculating cumulative volume-weighted average buy and sell prices with horizontal reference li

Indicator v6 Support & resistance
Updated 3 days ago · None stated GitHub repository of Trade History Labels
2 stars

Gold Multi-TF NYSE Scalper v2 is an intraday trading strategy for XAUUSD that seeks momentum entries by aligning RSI and EMA bias across multiple timeframes. It filters trades using an optional NYSE session clock and an ATR volatility spike check. Entries exit

Strategy v6 Oscillators & momentumVolatility & bands
Updated 8 days ago · None stated GitHub repository of Gold Multi-TF NYSE Scalper v2

2x MA Moving Average

by piecioshka
2 stars

This indicator plots two customizable moving averages directly on the price chart. Users can select independent lengths, colors, and calculation types, including SMA, EMA, WMA, VWMA, and RMA. When the faster moving average crosses the slower moving average, th

Indicator v6 Moving averagesTrend
Updated 11 days ago · MIT GitHub repository of 2x MA Moving Average

52-Week High

by vtnhqw
2 stars

The 52-Week High indicator plots the highest price over an adaptive lookback period of up to 252 trading bars on the price chart. It calculates the 52-week high using the highest high value and displays it as a line with optional label showing distance from th

Indicator v6 Support & resistanceTrend Repaints
Updated 11 days ago · None stated GitHub repository of 52-Week High

This multi-timeframe indicator combines higher-timeframe trend analysis, MACD divergence detection, and short-term oscillator timing to identify trading opportunities on GBPJPY. It evaluates trend direction using a 4-hour EMA, locates MACD divergences with Zig

Indicator v6 DivergenceOscillators & momentum

Trading - Automation

by vishnu-vardhan-d
2 stars

This indicator implements a trailing stop and breakout logic based on average true range calculations, similar to established UT Bot methods converted to Pine Script version six. It plots directional buy and sell labels directly on the price chart alongside a

Indicator v6 TrendVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Trading - Automation

Aurora KAMA Trend

by ZhijuCen
2 stars

This strategy plots Kaufman's Adaptive Moving Average on the price chart and trades when that average rises or falls for a set number of bars. Longs require the close above an optional long-term simple moving average; shorts require the close below it. Directi

Strategy v6 TrendMoving averages
Updated 2 weeks ago · MIT GitHub repository of Aurora KAMA Trend

EMA / SMA MP

by midngtpickle
2 stars

This indicator plots six exponential moving averages, three simple moving averages, and a session volume-weighted average price directly on the price chart. It signals through chart labels triggered by moving average crossovers, including fast and slow exponen

Indicator v6 Moving averagesTrend
Updated 4 weeks ago · Custom licence GitHub repository of EMA / SMA MP

Equity Trading Strategy

by AmjadSaidam
2 stars

This indicator draws a daily-anchored volume-weighted average price on the price chart and marks the first long or short reclaim of that level. A long needs a bar below the average whose high reaches it, a later close above it, and confirmation after at least

Indicator v6 VolumeSupport & resistance Repaints
Updated 5 weeks ago · MIT GitHub repository of Equity Trading Strategy
2 stars

Swing Trade Analyzer - S&R Levels identifies key support and resistance levels directly on the price chart using pivot high and low points. It filters duplicate price levels and offers optional multi-timeframe confluence analysis against higher timeframes like

Indicator v6 Support & resistanceTrend
Updated 5 weeks ago · None stated GitHub repository of Swing Trade Analyzer - S&R Levels

Algo

by TamTH-Dev
2 stars

Algo is an indicator that identifies and plots dynamic support and resistance zones directly on the price chart using pivot highs and lows. It calculates zone thickness using an Average True Range (ATR) multiplier and supports pivot detection from standard pri

Indicator v6 Support & resistanceVolatility & bands
Updated 5 weeks ago · None stated GitHub repository of Algo

This indicator plots gamma exposure levels, multi-timeframe breakout structure, and trading session ranges directly on the price chart. It parses input strings containing option metrics to display key levels such as Zero Gamma, Max Pain, Expected Move boundari

Indicator v6 Support & resistanceBreakout
Updated 6 weeks ago · MIT GitHub repository of GEX Levels + Breakout Structure + Session AVWAP — NQ/NDX/QQQ

Apex Swing System V2.5

by omharde42
2 stars

This indicator combines a 200-period simple moving average, relative strength index, and Ichimoku cloud components to evaluate market conditions and generate bullish and bearish signals. It plots fixed trade levels including entry, stop loss, and multiple targ

Indicator v6 TrendOscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of Apex Swing System V2.5
2 stars

GEO P Momentum Buy/Sell Signals is an indicator that identifies trade setups by combining Bollinger Band challenge logic with trendline or range breakouts. It evaluates price structure using multi-timeframe Tide and Wave hierarchy alongside RSI, DMI, ADX, EMA

Indicator v6 TrendOscillators & momentum
Updated 8 weeks ago · None stated GitHub repository of GEO P Momentum Buy/Sell Signals
2 stars

Anchored Volume Profile indicator builds a volume-by-price histogram over a lookback window by proportionally distributing each bar's volume across its high-low range. It plots horizontal boxes for volume, highlights the POC, and draws Value Area (VAH/VAL) rai

Indicator v6 VolumeSupport & resistance
Updated 2 months ago · Custom licence GitHub repository of Anchored Volume Profile [Vantrade]

Qtus SMC-Sniper AutoTrader v2 is an automated trading strategy plotted on the price chart that combines Smart Money Concepts (SMC), ICT frameworks, price action patterns, and technical indicators into a multi-factor scoring engine. It enters long or short posi

Strategy v6 SMC / ICT / price actionTrend
Updated 2 months ago · Custom licence GitHub repository of Qtus SMC-Sniper AutoTrader v2
2 stars

This strategy overlays externally supplied boolean flags on the price chart rather than calculating them from price. It plots large triangles for QC buy and sell, circles for dark pool, diamonds for order flow, and squares for stop hunt, each with optional num

Strategy v5 SMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of QMP Overrider Signal Mirror

API Integration Examples

by danielbodnar
2 stars

This indicator demonstrates Pine Script data requests and draws them on the price chart. It plots a four-hour simple moving average plus the daily high and low as step lines, and it plots twenty-bar relative performance versus SPY. It also requests QQQ, VIX, v

Indicator v6 Moving averagesSupport & resistance Repaints
Updated 2 months ago · MIT GitHub repository of API Integration Examples
2 stars

This indicator draws higher time frame sweeps on the price chart. It displays sweeps from multiple timeframes such as 15, 60, 240 minutes, 1 day, 1 week and 1 month. Users can enable or disable each timeframe, specify the number of sweeps to show, and map them

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of CandelaCharts - HTF Sweeps

Alertatron-KSM Demabot 2H

by danielvm-git
2 stars

This strategy calculates up to three Double Exponential Moving Averages (DEMA) and plots them on the main price chart. It executes long entries when the fast DEMA crosses above the medium DEMA while confirming the direction of an optional third DEMA, and enter

Strategy v4 Moving averagesTrend
Updated 2 months ago · MIT GitHub repository of Alertatron-KSM Demabot 2H

Chart Watermark

by major
2 stars

This overlay indicator draws a watermark at the top of the price chart showing the ticker and timeframe, plus an optional instrument description, sector, or industry. Display mode chooses description only, sector and industry, or both. Separate colors set the

Indicator v6
Updated 3 months ago · Apache-2.0 GitHub repository of Chart Watermark
2 stars

This indicator detects market structure points, Break of Structure (BOS), and Change of Character (CHOCH) for Smart Money Concepts (SMC) analysis. It calculates swing highs and lows based on a user-defined swing length, classifying them as higher highs, higher

Indicator v6 SMC / ICT / price actionSupport & resistance

Kell + Minervini VCP

by mirkothepirko
2 stars

This price-chart indicator combines Oliver Kell moving-average phases with Minervini volatility contraction. It plots EMA 10, 20, 50 and 200 and can require the SMA 50, 150 and 200 trend template. It flags a wedge pop above EMA 10 after an EMA 20 cross, pullba

Indicator v6 TrendMoving averages
Updated 3 months ago · Custom licence GitHub repository of Kell + Minervini VCP

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