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

CommonSignals

by Yavuz365
1 stars

CommonSignals is a Pine Script utility library providing standardized signal generation functions for technical analysis scripts. It normalizes trade directions across diverse indicators into consistent integer values: 1 for buy, 0 for neutral, and -1 for sell

Library v5
Updated 9 months ago · MIT GitHub repository of CommonSignals

MACD + Elder Force Index

by htmlfarmer
1 stars

An indicator in a separate pane that plots a standard MACD with its signal line and a histogram coloured by direction and whether momentum is growing or shrinking. Triangles mark MACD and signal crossovers, optional dots mark where histogram momentum turns, an

Indicator v5 Oscillators & momentumVolume
Updated 9 months ago · None stated GitHub repository of MACD + Elder Force Index

Calculates and plots various classical chart patterns directly on the price chart using swing high and low detection libraries. It automatically identifies formations such as double and triple tops or bottoms, head and shoulders, flags, pennants, wedges, Ellio

Indicator v5 Support & resistanceBreakout Repaints
Updated 9 months ago · None stated GitHub repository of All Chart Patterns [theEccentricTrader]

Multi-Timeframe Trend Detector

by IamTamheedNazir
1 stars

A Pine v5 indicator that compares the close with a 50-period EMA on five timeframes, by default 5 minute, 15 minute, 1 hour, 4 hour and daily, and scores each as bullish, bearish or neutral. The scores are summed into an overall bias from strong bearish to str

Indicator v5 TrendScreeners & dashboards
Updated 9 months ago · Custom licence GitHub repository of Multi-Timeframe Trend Detector
1 stars

A chart-overlay indicator that combines a volatility cloud with supply and demand zones. The cloud uses a selectable moving average with ATR bands and turns bullish or bearish, producing buy and sell labels when it flips, optionally filtered by volume and RSI.

Indicator v6 TrendSupport & resistance
Updated 9 months ago · None stated GitHub repository of Apex Trend & Liquidity Master

All Candlestick Patterns

by Chris2035nku
1 stars

This Pine v4 indicator detects a large set of bullish, bearish and neutral candlestick patterns and labels them on the price chart. Each pattern, such as Hammer, Engulfing, Morning Star, Three White Soldiers or Dragonfly Doji, can be switched on or off. Trend

Indicator v4 Candlestick patterns
Updated 10 months ago · None stated GitHub repository of All Candlestick Patterns

SFA FlowLiquidity v1

by genesisgrubio39
1 stars

The SFA FlowLiquidity library computes structural flow and liquidity events from price data. It detects sweep ups and downs with associated scores, identifies liquidity levels, and applies session and regime filters. Persistent arrays track liquidity prices, b

Library v6 SMC / ICT / price actionSupport & resistance
Updated 10 months ago · None stated GitHub repository of SFA FlowLiquidity v1

CodonRiskManager

by codon-pro
1 stars

This library calculates position size for trading strategies based on a percentage of equity to risk and the distance to the stop loss price. The function takes risk percentage, entry price, and stop loss price as inputs and returns the quantity of contracts o

Library v6
Updated 10 months ago · MIT GitHub repository of CodonRiskManager

Apex Vector

by app-builder-sketch
1 stars

Apex Vector is a separate-pane oscillator that plots a smoothed vector and classifies efficiency against superconductor and resistive thresholds, with a high-heat warning color. Optional volume flux uses a volume-normalization length. Users set vector length,

Indicator v6 Oscillators & momentumVolume
Updated 10 months ago · GPL-3.0 GitHub repository of Apex Vector
1 stars

RI SHORT Manual is an overlay indicator for ES and NQ futures that outlines a discretionary short reversal setup. Levels are measured from the previous session close using a risk interval: an entry level above the anchor, with target and stop levels at fixed f

Indicator v6 Support & resistanceMean reversion
Updated 10 months ago · None stated GitHub repository of RI SHORT Manual REVERSAL_TOUCH
1 stars

This strategy wraps a breakout candle system in a framework that handles position sizing, trade tracking and logging. Settings cover a gap zone block around midnight in the Prague time zone, the number of candles in an accumulation zone, a risk percentage per

Strategy v6 BreakoutSessions & time
Updated 10 months ago · None stated GitHub repository of Breakout Candle Strategy V24
1 stars

A chart-overlay indicator that adds slope-based measures to common indicators. It tracks RSI slope, moving average slope, a Bollinger squeeze test, MACD momentum, volume trend, price acceleration and a linear-regression trend strength. Recent pivots give suppo

Indicator v6 Oscillators & momentumBreakout
Updated 10 months ago · None stated GitHub repository of Predictive Crypto Trading Bot Pro
1 stars

An earlier release of the swing structure overlay that marks change of character, break of structure and liquidity events on the price chart. A volume strength filter compares the breaking bar with the last few bars or with a tape average, and weak breaks can

Indicator v6 SMC / ICT / price actionVolume
Updated 10 months ago · None stated GitHub repository of Orderflow Break Tape Earlier Version
1 stars

Labels four single-candle reversal patterns on the price chart: bullish hammer, inverted hammer, hanging man and shooting star. Detection compares wick length to body size, using a wick-to-body ratio setting and a Strict, Normal or Relaxed sensitivity multipli

Indicator v6 Candlestick patterns
Updated 11 months ago · Custom licence GitHub repository of Hammer & Inverted Hammer Patterns

Viprasol Elite Flow Pro

by Thedev-Lars
1 stars

An overlay that draws a volatility-based trend cloud with three speed modes, detects premium and discount zones, and marks rejections at those zones. A volume filter flags spikes and climax bars, and signals can be set to aggressive, balanced or conservative w

Indicator v6 TrendSupport & resistance
Updated 11 months ago · None stated GitHub repository of Viprasol Elite Flow Pro

Breaks and Retests [HG]

by christonomous
1 stars

This indicator identifies pivot highs and pivot lows to map support and resistance levels directly on the price chart. It detects breakouts beyond these zones and signals subsequent retest attempts with visual labels and boxes. Users can adjust the pivot lookb

Indicator v5 Support & resistanceBreakout Repaints
Updated 11 months ago · None stated GitHub repository of Breaks and Retests [HG]

Breakout Probability

by angrysky56
1 stars

Measures how often price has reached levels placed at fixed percentage steps above and below a reference and shows those hit counts as probabilities. It draws a set number of level lines on the price chart, optional labels and a statistics table, and can fill

Indicator v5 BreakoutSupport & resistance
Updated 11 months ago · MIT GitHub repository of Breakout Probability
1 stars

Advanced ICT Theory - A-ICT identifies institutional market structure patterns based on Smart Money Concepts directly on the price chart. It detects displacement candles, order blocks, fair value gaps, trap zones, and reversal zones, tracking their mitigation

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 11 months ago · None stated GitHub repository of Advanced ICT Theory - A-ICT

This indicator, drawn in a separate pane, pulls Bitcoin and Ethereum prices from two user-chosen symbols, forms the BTC to ETH price ratio and converts it to a z-score against a rolling average and standard deviation (30 bars by default). Upper and lower thres

Indicator v5 Mean reversionOscillators & momentum
Updated 11 months ago · None stated GitHub repository of BTC/ETH Pairs Trading Z-Score & RSI/MACD
1 stars

The Bollinger Squeeze Indicator measures volatility contraction by comparing Bollinger Bands with Keltner Channels. It calculates standard deviation-based bands and ATR-based channels around a simple moving average. When the Bollinger Bands contract inside the

Indicator v5 Volatility & bandsBreakout
Updated 11 months ago · None stated GitHub repository of Bollinger Squeeze Indicator

CHoCH Signal TRXUSDT

by gnuhhung317
1 stars

A generated indicator on the price chart that draws a short fixed set of hard-coded lines and a label for TRXUSDT on the 30 minute chart. Three aqua dashed lines mark pivot highs, three yellow dashed lines mark pivot lows, and a lime label marks a change of ch

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 11 months ago · MIT GitHub repository of CHoCH Signal TRXUSDT
1 stars

A price-chart trend indicator that smooths the chosen source with a multi-order Kalman filter, builds ATR-based upper and lower bands around it, smooths the bands exponentially, and flips the trend when price crosses a band. An optional multi-timeframe switch

Indicator v6 TrendVolatility & bands
Updated 11 months ago · MIT GitHub repository of Kalman Exponential SuperTrend MTF

[FS] Time & Cycles

by flasomm
1 stars

A price-chart overlay that draws previous day and previous week highs and lows, plus the current day and week extremes, with optional labels, dates and line styles. History depth is adjustable up to ten periods. It also marks chosen clock times such as midnigh

Indicator v6 Support & resistanceSessions & time
Updated 11 months ago · None stated GitHub repository of [FS] Time & Cycles

A Pine version 5 price-chart indicator that marks the opening range of each session, taken from a chosen time period or a custom session and timezone. It plots the range high and low with a shaded box and prints breakout signals when price closes outside the r

Indicator v5 Sessions & timeBreakout
Updated 12 months ago · MIT GitHub repository of LuxAlgo Opening Range with Breakouts and Targets v5

ichiV1 Ichimoku Trend

by ChiChasesCheese
1 stars

A long-only strategy ported from a Freqtrade bot, aimed at five-minute crypto charts. It combines an Ichimoku-style cloud with a ladder of EMA pairs and a fan magnitude ratio that must keep growing, so it only enters in strong trends. Exits come from a time-st

Strategy v5 Trend
Updated 12 months ago · None stated GitHub repository of ichiV1 Ichimoku Trend

EMA Fibonacci Trend

by ktg0413
1 stars

The EMA Fibonacci Trend indicator calculates and plots dynamic Fibonacci retracement and extension levels based on a 200-period Exponential Moving Average (EMA). It measures volatility using a 14-period Average True Range (ATR) relative to price, establishing

Indicator v6 Support & resistanceMoving averages
Updated 1 year ago · None stated GitHub repository of EMA Fibonacci Trend

FaRSI

by feliperazeek
1 stars

This strategy detects regular and hidden RSI divergences using pivot points on a 9-period RSI and plots them on the price chart with labels. By default it only opens long positions, on bullish divergences, and exits when RSI reaches a take-profit level or by a

Strategy v5 DivergenceOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of FaRSI

FRK Reversal Times

by murdrae
1 stars

This indicator highlights clock-time windows in New York time on the price chart, defaulting to short windows around the early morning and the 8:45 to 11:16 morning hours. During each window it draws a horizontal line along the top of the chart. A second optio

Indicator v6 Sessions & time
Updated 1 year ago · None stated GitHub repository of FRK Reversal Times
1 stars

This strategy identifies trend re-entries by combining volatility spikes, short-term pullbacks, and moving average crossovers. It detects strong bar expansions using an ATR multiplier, checks a lookback window for pullbacks, and triggers entries when price cro

Strategy v5 TrendVolatility & bands
Updated 1 year ago · MIT GitHub repository of ATR Retracement EMA Strategy

Sell Spike

by dsjrego
1 stars

A simple overlay that prints a red sell label above a bar when two conditions occur together. The bar's upper wick must be longer than its body and longer than half of a 14-period ATR, and the bar's high must pierce the upper Bollinger Band. The band length an

Indicator v5 Volatility & bandsCandlestick patterns
Updated 1 year ago · None stated GitHub repository of Sell Spike

MVG

by lappingio
1 stars

An intraday gap tracker for the price chart. After each confirmed bar it checks whether the bar's low is above the prior high or its high is below the prior low within the same day, and draws a rectangle over the empty space. Gaps are marked filled once price

Indicator v6 Support & resistance
Updated 1 year ago · None stated GitHub repository of MVG

Smoothed Heiken Ashi

by turnupdigital
1 stars

An indicator that draws smoothed Heiken Ashi candles on the price chart. Prices are smoothed with a selectable moving average type and length before the Heiken Ashi calculation and again afterwards, using an imported library of average types. Signal badges mar

Indicator v6 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Smoothed Heiken Ashi

ADR Up to 10 Days With Targets

by MarvelousShabi
1 stars

This indicator calculates the average daily range from a user-selected lookback of one to ten completed days and rounds it to the instrument tick. It draws optional bullish and bearish target lines from the current day's range on the price chart and shows a co

Indicator v6 Volatility & bandsSupport & resistance Repaints
Updated 1 year ago · MIT GitHub repository of ADR Up to 10 Days With Targets

A second variant of a reversal strategy for a 15-minute TRUMP perpetual swap chart. It reacts to candles whose range exceeds a larger percentage threshold than version one, entering with a limit order against the candle direction. Take profit, stop loss, slipp

Strategy v6 Mean reversionVolatility & bands
Updated 1 year ago · None stated GitHub repository of TRUMP 15m Large Range Reversal v2

A price-chart overlay that combines several tools. It draws a Nadaraya-Watson kernel envelope with a repainting smoothing option, a Hull moving average band in three variants that can optionally come from a higher timeframe, and an ATR trailing stop in the sty

Indicator v5 TrendMoving averages Repaints
Updated 1 year ago · None stated GitHub repository of UT Bot, Nadaraya-Watson, Hull Suite and Reversal Combo

CandleAnalysis

by MarcosACH
1 stars

CandleAnalysis is a Pine Script library providing exportable helper functions for detailed candlestick analysis in custom scripts. It evaluates whether a specified bar is bullish, bearish, or break-even, and computes metrics including body size, top wick size,

Library v5 Candlestick patterns
Updated 1 year ago · None stated GitHub repository of CandleAnalysis

ezTrend Lines

by ezPappi
1 stars

ezTrend Lines calculates selected oscillator indicators, including RSI, CCI, Momentum, OBV, or MACD, and displays them in a separate pane. It identifies pivot highs and pivot lows on the chosen oscillator line using configurable pivot periods and checks up to

Indicator v6 Oscillators & momentumSupport & resistance
Updated 1 year ago · GPL-3.0 GitHub repository of ezTrend Lines

Bollinger Bands

by yagyesh-bobde
1 stars

The Bollinger Bands indicator plots a basis moving average line together with two volatility bands on the main price chart. The middle band shows the average price level while the upper and lower bands reflect price deviation from volatility. Traders use the b

Indicator v6 Volatility & bandsMoving averages
Updated 1 year ago · None stated GitHub repository of Bollinger Bands
1 stars

This strategy uses Bill Williams indicators including the Alligator (jaw, teeth, lips with RMA smoothing and offsets), Awesome Oscillator, and Accelerator Oscillator. It also plots fractals on the chart. Long entries occur when the Alligator is aligned bullish

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Bill Williams NTD Strategy

BTCDOM Best Position

by theteelek
1 stars

A long-only accumulation strategy that buys near the lower edge of a smoothed channel built from an EMA of the highest high and lowest low over an adjustable range. A buy fires when price touches the lower line while RSI turns up from an oversold reading, limi

Strategy v6 Mean reversion
Updated 1 year ago · None stated GitHub repository of BTCDOM Best Position

Bollinger Bands

by Studentcodee
1 stars

This strategy plots Bollinger Bands directly on the price chart. It computes the middle band as the simple moving average of the close price over the input length and the upper and lower bands by multiplying the standard deviation by the multiplier and adding

Strategy v6 Volatility & bandsMoving averages
Updated 1 year ago · None stated GitHub repository of Bollinger Bands

EA_2

by equitymarkets
1 stars

EA_2 is a basic strategy template that generates trade entries based on price crossovers with a Simple Moving Average. It monitors a fast moving average relative to a selected price source, entering a long position when the price crosses above the moving avera

Strategy v6 Moving averagesTrend
Updated 1 year ago · MIT GitHub repository of EA_2

MTF Moving Average

by itsmeterada
1 stars

Plots a simple or exponential moving average calculated on a user-selected timeframe over the current chart. Inputs set the timeframe, average type, length, source, line colour, thickness and transparency. An optional label on the last bar shows the timeframe,

Indicator v6 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of MTF Moving Average

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