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
1 stars

This indicator automatically identifies and plots horizontal support and resistance levels directly on the price chart using pivot detection logic. Users can base pivots on either price action lookback or RSI oscillator lookback when RSI mode is enabled. The s

Indicator v4 Support & resistanceOscillators & momentum
Updated 3 years ago · Apache-2.0 GitHub repository of Auto Support + Resistance Levels

Volatility Oscillator

by jubayernil
1 stars

This indicator measures intrabar volatility by plotting price spikes (close minus open) alongside standard deviation upper and lower bands in a separate pane. It identifies regular and hidden bullish or bearish divergences by comparing pivot points of the osci

Indicator v4 Volatility & bandsOscillators & momentum Repaints
Updated 3 years ago · None stated GitHub repository of Volatility Oscillator

High Low Numbers

by mmm25002500
1 stars

An overlay indicator written in Pine v4 that finds swing highs and lows using a configurable number of bars on each side. When a new swing is confirmed it draws an orange line linking the latest low and high, and adds a small label showing the price of the swi

Indicator v4 Support & resistance
Updated 3 years ago · None stated GitHub repository of High Low Numbers

HWAP

by nvFede
1 stars

A Pine v4 indicator in a separate pane that measures how far the close sits from a 50-bar Hull moving average, scaled by the rolling standard deviation of that distance, which makes it a z-score style oscillator. Dotted lines mark plus and minus one, and zones

Indicator v4 Mean reversionMoving averages
Updated 3 years ago · None stated GitHub repository of HWAP

Fluffy MACD Uptrend

by pvdochtend
1 stars

A long-only strategy that buys when the MACD histogram turns from negative to positive while the 50 EMA is above the 200 EMA and RSI sits between a lower and an upper limit. Its only exit is a percentage take-profit above the average entry price. No stop loss

Strategy v5 Oscillators & momentumTrend
Updated 3 years ago · GPL-3.0 GitHub repository of Fluffy MACD Uptrend

Gap Finder

by lesari08
1 stars

Gap Finder identifies and displays bullish and bearish liquidity gaps directly on the main price chart. The indicator calculates gap boundaries, equilibrium levels, and fill lines using either the current chart resolution or a specified higher timeframe. Users

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 3 years ago · None stated GitHub repository of Gap Finder

Aroon [RSI-Adjusted]

by JohnsonHsiao
1 stars

This indicator calculates the difference between traditional Aroon lines derived from price action and RSI-adjusted Aroon lines calculated from the Relative Strength Index. It measures both upper spread and lower spread values across a user-defined rolling per

Indicator v5 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of Aroon [RSI-Adjusted]
1 stars

A stock-oriented overlay that weighs the current price against fundamental data. The settings let the user pick factor groups such as earnings price, per-share book value, earnings, revenue and free cash flow, EBIT and EBITDA, profit margins, returns on assets

Indicator v5 Screeners & dashboards
Updated 4 years ago · None stated GitHub repository of Discounted Price Probability

Real-Time Volume Analyzer Template

by LysergikProductions
1 stars

A real-time volume indicator template that tracks intrabar tick execution to classify volume into bullish and bearish tallies. Utilizing intrabar variables, it calculates volume changes on live price updates and tracks buyer versus seller volume percentages pe

Indicator v4 VolumeScreeners & dashboards Repaints
Updated 4 years ago · AGPL-3.0 GitHub repository of Real-Time Volume Analyzer Template

EMA 50 100 150 200

by juliencrn
1 stars

This overlay indicator plots exponential moving averages of the close at 12, 26, 50, 100, 150 and 200 periods in different colors on the price chart. The 12 and 26 lines are the fast and slow averages used in MACD and are labeled that way in the plot names. Th

Indicator v5 TrendMoving averages Archived
Updated 4 years ago · None stated GitHub repository of EMA 50 100 150 200

Tobacco

by 0xfffangel
1 stars

An overlay that builds a Kaufman adaptive moving average of price as a center line and surrounds it with three bands above and below, scaled from an adaptive average of true range. The band length and the three deviation multipliers are adjustable, and the zon

Indicator v5 Volatility & bandsMean reversion
Updated 4 years ago · None stated GitHub repository of Tobacco

Supertrend v2 Strategy

by greenish7
1 stars

Strategy version of a Supertrend plus Stochastic RSI system. Supertrend direction comes from an ATR period and multiplier; long and short entries require the Stochastic RSI lines to be in low or high bands and close to each other while the trend agrees. Trades

Strategy v5 TrendOscillators & momentum
Updated 4 years ago · None stated GitHub repository of Supertrend v2 Strategy

Barbwire v2.0.0

by itmakesyousick
1 stars

Finds barbwire zones, runs of bars with small bodies or ranges, and draws boxes around them on the price chart. The bar size source can be Heikin-Ashi open to close, high to low, a hybrid or open to close. Detection can use rank, stochastic or rate of change m

Indicator v5 Candlestick patternsVolatility & bands
Updated 4 years ago · None stated GitHub repository of Barbwire v2.0.0

Alt Coin BB SMA Strategy

by samliu0206
1 stars

Alt Coin BB SMA Strategy calculates custom MACD delta histogram values, Bollinger Bands, and middle band slopes to generate trading signals in a separate pane. It triggers long entry orders when the price crosses above the Bollinger middle band, provided the M

Strategy v4 Oscillators & momentumVolatility & bands
Updated 4 years ago · None stated GitHub repository of Alt Coin BB SMA Strategy

1DTE

by tyler314
1 stars

1DTE is an overlay indicator designed for 1-day-to-expiration option trading analysis. It evaluates market conditions using Average True Range (ATR), consecutive green or red daily streaks, and CBOE Volatility Index (VIX) levels. Users can filter evaluation wi

Indicator v5 Volatility & bandsSessions & time
Updated 4 years ago · None stated GitHub repository of 1DTE

StackOverFlow MFI and DMI

by namdar-nejad
1 stars

This Pine v4 indicator shows a Money Flow Index line and the directional movement indicators DI plus and DI minus in a separate pane, each with a label on the last bar. A green square at the top marks bars where DI plus is above DI minus and MFI is above 50, a

Indicator v4 Oscillators & momentumVolume
Updated 4 years ago · None stated GitHub repository of StackOverFlow MFI and DMI
1 stars

A separate-pane indicator that plots a slow MACD, 21 and 200 periods by default, against a long simple-average signal line, colored green or red by which is higher. A second MACD can be shown, with its lengths multiplied by a factor chosen for the chart timefr

Indicator v4 Oscillators & momentumTrend
Updated 4 years ago · None stated GitHub repository of Armonia de los MACD (v2)

This indicator plots a Donchian channel with a long default period of 1440 bars, its midline and a 250-period simple moving average on the price chart. When a high reaches the upper band, or a low reaches the lower band, on volume above a multiple of its movin

Indicator v4 BreakoutMean reversion
Updated 4 years ago · MIT GitHub repository of Greeffer's Donchian Channel Study

ATR Volatility Power

by hayashi19
1 stars

This indicator shows how far the 14-period ATR sits above its lowest value over the last 200 bars, smoothed with a 9-period average. It draws this value as columns in a separate pane, coloured lime when it rises and red when it falls. A second series, the lowe

Indicator v5 Volatility & bands
Updated 4 years ago · None stated GitHub repository of ATR Volatility Power

MJ Bull Support 1

by mehdijangjou
1 stars

This indicator plots the 20-period EMA in green and the 20-period SMA in red directly on the price chart. It fills the space between the two moving averages using a color that changes based on which line sits above the other. The script targets crypto assets a

Indicator v5 Moving averagesTrend Archived
Updated 4 years ago · MPL-2.0 GitHub repository of MJ Bull Support 1

Slimdicator

by tseitz
1 stars

Slimdicator is a TradingView indicator for cryptocurrency markets that plots multiple moving averages on the price chart including a fast EMA, a medium SMA, and a slow SMA. It calculates MACD and RSI values to generate buy and sell signals. The indicator alert

Indicator v5 Oscillators & momentumMoving averages
Updated 4 years ago · None stated GitHub repository of Slimdicator

MA+ADX+DI+time Strategy

by fifiteen82726
1 stars

A long-only strategy that enters when a fast simple moving average crosses above a slow one, the positive DI is above the negative DI and ADX is above a key level. It closes the position on the opposite cross with DI and ADX confirming. Trading is limited to a

Strategy v4 TrendMoving averages
Updated 5 years ago · None stated GitHub repository of MA+ADX+DI+time Strategy

EMA Crossover

by rocketbrainsurgeon
1 stars

This indicator plots a fast and a slow exponential moving average of the bar midpoint on the price chart. The slow length is the fast length multiplied by a selectable ratio from three to ten, which keeps the two lines well apart. A triangle marks each upward

Indicator v4 Moving averagesTrend
Updated 5 years ago · GPL-3.0 GitHub repository of EMA Crossover
1 stars

Mansfield Relative Strength indicator computes relative strength by dividing the current close price by a daily index value selected from Nasdaq Composite, NYSE Composite, ARCA Composite, or Coinbase BTCUSD based on the symbol prefix. It calculates the percent

Indicator v4 Oscillators & momentum
Updated 5 years ago · AGPL-3.0 GitHub repository of Mansfield Relative Strength

ETCBTC

by taco-c
1 stars

ETCBTC is an overlay indicator that fetches and displays the 60-minute closing price of the Bitstamp ETH/BTC pair directly on the current price chart. It renders the cross-pair price line using the left price scale to avoid distorting the primary asset's scale

Indicator v4
Updated 5 years ago · MPL-2.0 GitHub repository of ETCBTC

Stochastic by TH

by T0pp3rH4rl3y
1 stars

A slow stochastic oscillator in a separate pane with adjustable K, D and smoothing periods. It plots the smoothed percent K and its percent D average, with lines at 80, 20 and an added middle line at 50, and shades the area between 80 and 20. It has no signals

Indicator v4 Oscillators & momentum
Updated 5 years ago · GPL-3.0 GitHub repository of Stochastic by TH

RSI Divergence

by digasic
1 stars

A separate-pane indicator that calculates an RSI with adjustable source, length, overbought and oversold levels, then looks for bullish and bearish divergence between price and RSI. It tracks the highest and lowest price and RSI values inside a lookback window

Indicator v4 Oscillators & momentumDivergence
Updated 6 years ago · None stated GitHub repository of RSI Divergence

Pure Stochastic Long Only

by RayRuizheLi
1 stars

This strategy calculates a smoothed stochastic oscillator with k and d lines. It enters long positions when k crosses above d below the oversold level and close exceeds high[1]. Exits occur when k crosses below d above the midpoint or reaches overbought levels

Strategy v4 Oscillators & momentum
Updated 6 years ago · None stated GitHub repository of Pure Stochastic Long Only

This indicator plots logarithmic growth curves directly on the price chart to model macro valuation channels for Bitcoin. It calculates upper and lower bounds using elapsed time from a fixed historical baseline, scaling mathematical curves and intermediate Fib

Indicator v4 Support & resistanceTrend
Updated 6 years ago · GPL-3.0 GitHub repository of Bitcoin Logarithmic Growth Curves
948 stars

The Fibonacci Weighted Moving Average calculates a trend-following line on the price chart using Fibonacci sequence numbers as weights. Newer data points receive larger Fibonacci weights to increase responsiveness compared to standard simple moving averages. I

Indicator v6 Moving averagesTrend
Updated 11 days ago · GPL-3.0 GitHub repository of Fibonacci Weighted Moving Average
575 stars

This indicator scans a pasted list of symbols for ICT fair value gaps and lists long and short matches in an on-chart table. It draws gap boxes on the price chart and can close them partially when price fills part of the gap. The user chooses among six scannin

Indicator v6 SMC / ICT / price actionScreeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Fair Value Gap (FVG) Scanner
361 stars

Forven S01512 — Monday Drift is a calendar-based long trading strategy designed to exploit time-based recurring market patterns. It tracks UTC calendar days and hours to enter a long position at a specified day and hour, holding it for a fixed duration until a

Strategy v6 Sessions & time
Updated yesterday · AGPL-3.0 GitHub repository of Forven S01512 - Monday Drift
330 stars

Double RSI is a momentum strategy that calculates RSI on the current bar and a multi-timeframe RSI. Long entries trigger on RSI crossover above 30 when multi-timeframe RSI is below 35. Short entries trigger on RSI crossover below 70 when multi-timeframe RSI is

Strategy v5 Oscillators & momentum
Updated 2 months ago · None stated GitHub repository of Double RSI [Alorse]
318 stars

This indicator plots fast and slow moving averages using either EMA or SMA directly on the main chart to identify trend direction and crossovers. It calculates an ATR-based trailing stop line derived from the highest high minus a multiplied ATR value over a co

Indicator v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of TVT MA Crossover with Stop Loss

3402 Tracker

by Allen1212
303 stars

3402 Tracker plots historical transaction markers on the price chart to visualize buy and sell trades executed by ARK Invest for stock 3402. The indicator places colored labels on bar timestamps corresponding to dates when ARK funds opened, adjusted, or closed

Indicator v4
Updated 2 years ago · None stated GitHub repository of 3402 Tracker

AIActivationFunctionsThreshold

by ricardosantos79
261 stars

This Pine Script v5 library implements a threshold activation function for neural-network style calculations. The exported function returns 1.0 when the input is greater than or equal to zero and 0.0 otherwise. Two derivative exports, derivate and derivate2, a

Library v5 AI / machine learning
Updated 4 years ago · None stated GitHub repository of AIActivationFunctionsThreshold
257 stars

This overlay strategy targets one-minute ES futures and plots volume-weighted moving-average bands from the open, scaled by a standard-deviation multiple, plus a slower band from ten-minute opens. A higher-timeframe exponential moving average can filter trades

Strategy v6 Moving averagesVolatility & bands
Updated 6 weeks ago · None stated GitHub repository of ES - Futures 1M No Repaint

Candlestick Kicker Pattern

by harryguiacorn
219 stars

This indicator plots green circles below bars and red circles above bars on the price chart to signal Candlestick Kicker patterns. It identifies upward kickers when the prior bar is bearish with body percentage above the left threshold, the current bar is bull

Indicator v5 Candlestick patternsBreakout
Updated 1 year ago · None stated GitHub repository of Candlestick Kicker Pattern

Deduct 扣抵

by TaichiS
219 stars

Deduct 扣抵 is an educational overlay indicator that visualizes the moving average deduction point on price charts. It places a text label below the candle located a user-specified number of bars back from the current bar, defaulting to 20 periods. As each new b

Indicator v4 Moving averages
Updated 5 years ago · None stated GitHub repository of Deduct 扣抵

Daily Bias + FVG Strategy

by TradersPost
218 stars

This overlay strategy plots previous-day high and low, the daily open, and fair value gap zones on the price chart. It takes entries on a selectable timeframe when the FVG requirement and an optional session window allow them, then uses an ATR or fixed pip sto

Strategy v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 months ago · None stated GitHub repository of Daily Bias + FVG Strategy

This tutorial strategy demonstrates lower-timeframe multi-timeframe functionality in Pine Script using request.security_lower_tf. It evaluates synthetic lower-timeframe 1-minute close prices within each chart bar to calculate the intra-bar price range percenta

Strategy v6 Volatility & bands
Updated yesterday · Apache-2.0 GitHub repository of PineForge MTF tutorial — lower-TF intra-bar range

Higher TF Closes

by agutinbaigo28
147 stars

This indicator fetches and overlays the 4-hour high and low price bounds for TRXUSDT onto the price chart. It draws prominent red and green lines representing the 4-hour high and low levels respectively, providing reference points for price action across lower

Indicator v5 Support & resistance Repaints
Updated 6 weeks ago · MIT GitHub repository of Higher TF Closes

JMA Clone

by capissimo
114 stars

This indicator implements an approximation of the Jurik Moving Average algorithm, featuring an adjustable power parameter. It overlays a smoothed curve and a one-bar lagged reference curve directly on the price chart. When the slope turns upward, a green circl

Indicator v5 Moving averagesTrend Repaints
Updated 1 year ago · None stated GitHub repository of JMA Clone

2xTP, SL to Entry

by hasnocool
106 stars

This strategy executes mean-reversion trades based on Bollinger Bands and the Stochastic Oscillator. Long orders trigger when price dips below the lower band alongside a bullish Stochastic crossover, with an optional oversold threshold. Short orders execute on

Strategy v5 Mean reversionOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of 2xTP, SL to Entry
105 stars

This overlay strategy looks for gold scalps from break of structure and change of character. It enters long when a bullish break, a bullish character change, and an optional volume filter align, and short on the opposite set. Optional RSI levels can block trad

Strategy v6 SMC / ICT / price actionOscillators & momentum Repaints
104 stars

Candlestick Pattern Strategy 1 is a scalping strategy designed for short-term timeframes. It evaluates two-bar candlestick price action patterns to generate entry signals directly on the price chart. When a bullish or bearish setup is detected, the strategy ex

Strategy v5 Candlestick patternsScalping
Updated 3 years ago · MIT GitHub repository of Candlestick Pattern Strategy 1
99 stars

This indicator plots Price Headley's Acceleration Bands on the price chart. It builds a middle line as a simple moving average of close, plus upper and lower bands from simple moving averages of highs and lows widened by a factor times the bar's high-low range

Indicator v6 Volatility & bandsMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Acceleration Bands (ACCBANDS)
92 stars

This overlay indicator draws horizontal liquidation lines for HYPE from a baked-in snapshot of Hyperliquid long and short positions. It plots the ten closest long liquidation prices in red and amber and the ten closest short prices in green and cyan, with the

Indicator v6 Support & resistance
Updated 2 months ago · Custom licence GitHub repository of Moon Dev Liq Lines — HYPE

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