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

Float Probe

by GeneralTradingSarl
24 stars

This indicator compares floating-point arithmetic on the price chart and shows the results in a one-cell table at the top right on the last bar. It tests whether selected literal sums and price differences compare equal or greater, and on one fixed timestamp i

Indicator v5
Updated 11 days ago · Custom licence GitHub repository of Float Probe

ADX+

by benso87
24 stars

ADX+ is an enhanced Average Directional Index (ADX) indicator that measures trend strength in a separate pane. It calculates directional movement and true range to produce the standard ADX line, with optional smoothing via a moving average (EMA or SMA). The li

Indicator v5 TrendOscillators & momentum
Updated 4 years ago · MPL-2.0 GitHub repository of ADX+
23 stars

DeltaFlow Volume Profile builds a price-bin volume profile over a user-set lookback and draws it on the price chart to the right of the last bar. It splits each bin into bullish and bearish volume by comparing close with open, then scales bar length to the bin

Indicator v6 VolumeSupport & resistance Repaints
Updated 3 weeks ago · Custom licence GitHub repository of DeltaFlow Volume Profile [BigBeluga]
23 stars

The Stocks - Inside Day Strategy identifies inside day candlestick patterns on the main price chart. It enters a long position when a bar's high is below the previous high and its low is above the previous low. The strategy exits positions when a short-period

Strategy v6 Candlestick patternsOscillators & momentum
Updated 3 months ago · Custom licence GitHub repository of Stocks - Inside Day Strategy

High Volume Bars Strategy

by AGuyNamedDJ
23 stars

This indicator detects unusual spikes in trading volume to identify potential institutional activity. It calculates a simple moving average of volume over a specified length and flags bars where volume exceeds this average multiplied by a user-defined threshol

Indicator v4 VolumeTrend
Updated 3 years ago · None stated GitHub repository of High Volume Bars Strategy

Peterbolic SAR

by pacificbay
22 stars

This indicator draws Parabolic SAR setup and trigger signals directly on the price chart. Using an external trend-following routine, it evaluates directional conditions and flags transitional market phases. Yellow triangle shapes plot above or below bars to in

Indicator v4 Trend
Updated 6 years ago · MIT GitHub repository of Peterbolic SAR

This indicator combines six trading tools into a single chart overlay to optimize indicator limits. It calculates Bollinger Bands, projects weekend price boundaries, plots market structure elements like order blocks, breaker blocks, and MSB lines, marks New Yo

Indicator v6 Support & resistanceSMC / ICT / price action Repaints

Function Calls

by ferranbt
21 stars

Calculates an accumulated benchmark metric by repeatedly executing a user-defined function within a loop on every bar. On each iteration, the script updates a persistent variable using modified closing price values, summing the output to plot in a separate pan

Indicator v6
Updated 7 weeks ago · MPL-2.0 GitHub repository of Function Calls
21 stars

This script serves as a syntax testing and grammar reference tool for Pine Script development in Visual Studio Code. It demonstrates broad language syntax including compiler annotations, user-defined types, exported enums, and variable declarations. The script

Indicator v5 Repaints
Updated 1 year ago · MIT GitHub repository of Organized Pine Script Syntax Test

zaBor RSI+AO+Stoch chart

by zabor-crypto
20 stars

This overlay indicator marks buy and sell signals on the price chart from RSI, stochastic, and optional Awesome Oscillator filters. It compares recent price and RSI pivots for regular divergences and, when enabled, hidden divergences, then combines those check

Indicator v6 Oscillators & momentumDivergence
Updated 4 days ago · MIT GitHub repository of zaBor RSI+AO+Stoch chart

This indicator implements John F. Ehlers' Adaptive Relative Strength Index in a separate chart pane. It filters price data using a high-pass filter and a SuperSmoother filter, then applies Pearson correlation across multiple lags to extract the dominant cycle

Indicator v5 Oscillators & momentum
Updated 1 year ago · None stated GitHub repository of Adaptive Relative Strength Index - John F. Ehlers

RSI Technique - V

by Tikam02
20 stars

RSI Technique - V identifies rapid reversal pivot points based on the Relative Strength Index. It monitors an RSI oscillator, configurable via the lookback setting, looking for sharp V-shaped spikes around extreme zones. A bullish signal appears when the indic

Indicator v5 Oscillators & momentumMean reversion
Updated 2 years ago · Apache-2.0 GitHub repository of RSI Technique - V

Bandz Intraday Timing + FVG

by samuelharting
18 stars

This overlay indicator marks hourly and last-hour macro windows, automatic fair value gaps, and AM/PM session fair value gaps on the price chart. It can color macro candles, draw bracket guides and labels, and add dividers, timestamps, and day labels. Optional

Indicator v6 SMC / ICT / price actionSessions & time
Updated 2 weeks ago · MPL-2.0 GitHub repository of Bandz Intraday Timing + FVG

Harami pattern finder

by shibisuriya
18 stars

This indicator detects bullish and bearish harami candlestick patterns on the price chart. A bullish harami requires a down candle followed by an up candle whose body sits inside the prior body; a bearish harami reverses that relationship. When perfect harami

Indicator v4 Candlestick patterns
Updated 4 years ago · None stated GitHub repository of Harami pattern finder

Greeffer BB Strategy

by SammyEnigma
18 stars

This strategy fades Bollinger Band extremes using the close. It enters short when price crosses above the upper band and the 14-period RSI is above 70, and enters long when price crosses below the lower band and RSI is below 30. It closes half of an open short

Strategy v4 Volatility & bandsOscillators & momentum
Updated 6 years ago · None stated GitHub repository of Greeffer BB Strategy

This indicator scans a pasted list of symbols, up to the first forty, and shows long and short momentum setups in a configurable table in a separate pane. It compares RSI with an SMA of RSI using Break Flip or Break Continuous scanning. Optional filters cover

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated 1 year ago · None stated GitHub repository of Momentum Setup: RSI Direction Confirmation Scanner

多空排列指标

by midoks
16 stars

This indicator plots four exponential moving averages of the close, with fixed lengths of 5, 15, 30, and 60, directly on the price chart. It marks a bullish alignment when the three faster averages are all above the 60-period average, and a bearish alignment w

Indicator v5 TrendMoving averages
Updated 3 weeks ago · Apache-2.0 GitHub repository of 多空排列指标

ORB Pro - Research-Based ORB

by Mrshahidali420
16 stars

The ORB Pro indicator calculates and plots Opening Range Breakout levels, stop-loss and take-profit zones, signal labels, and an status dashboard on the price chart. Built on academic research, it evaluates trades using an opening-candle direction filter, open

Indicator v6 BreakoutSessions & time Repaints
Updated 3 months ago · None stated GitHub repository of ORB Pro - Research-Based ORB

Key Intraday Levels

by traderdiegox
16 stars

This indicator plots key reference levels directly on the price chart, focusing on Smart Money Concepts (SMC) and intraday trading benchmarks. It identifies and displays previous session ranges, previous opens, and daily and weekly reference points, including

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 6 months ago · None stated GitHub repository of Key Intraday Levels
16 stars

This overlay indicator visualizes Smart Money Concepts on the price chart. It marks buy-side and sell-side liquidity from selectable 1-minute, 5-minute, 15-minute, and 1-hour swings, then recolors levels after they are swept. It also plots market structure shi

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · MIT GitHub repository of PHASE 404 - Smart Money Indicator

Seykota / Turtle Core

by trustdan
16 stars

This trend-following strategy implements classic Turtle Trading rules based on Ed Seykota's breakout principles. It uses 55-period Donchian Channels for trade entries and 10-period channels for exits, combined with ATR-based volatility sizing. Risk per unit is

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota / Turtle Core
16 stars

This indicator calculates trend direction and market zones using exponential moving average crossovers combined with a secondary baseline. It identifies various bull and bear conditions based on the relative position of price and the fast and slow averages, co

Indicator v5 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of CDC ActionZone V3 2020 + EMA
15 stars

This indicator overlays Bollinger Bands and smoothed HAMA candles directly on the main price chart. It calculates standard Bollinger Bands using a simple moving average and standard deviation, alongside custom smoothed open, high, low, and close values. A cent

Indicator v5 TrendMoving averages
Updated 4 months ago · Apache-2.0 GitHub repository of NSDT HAMA Candles with Bollinger Bands

Alighten Orderflow Pressure

by alighten-dev
14 stars

This indicator plots a smoothed order-flow pressure series in a separate pane. It builds a weighted blend of volume delta, close location within the bar range, and body size relative to ATR, then applies a z-score, winsorizing, and an EMA. Relative volume, reg

Indicator v6 Volume
Updated 2 weeks ago · None stated GitHub repository of Alighten Orderflow Pressure

Equity Intraday Analyst

by chris-c-thomas
14 stars

Equity Intraday Analyst is a comprehensive intraday overlay indicator for US equities and ETFs. It evaluates multi-EMA ribbons, session-anchored VWAP bands, OBV trends, momentum oscillators, TTM Squeeze, and optional market breadth indicators like NYSE TICK an

Indicator v6 TrendVolume
Updated 6 months ago · MIT GitHub repository of Equity Intraday Analyst

HLevel

by stupenkov
14 stars

HLevel is a Pine Script v5 utility library designed to manage horizontal price levels for cryptocurrency charts. It defines custom types for pivots and levels, along with methods to initialize, add, track, and expire price levels based on pivot high and pivot

Library v5
Updated 3 years ago · None stated GitHub repository of HLevel

PMA Strategy Idea

by QuantCT
14 stars

PMA Strategy Idea evaluates trend alignment using three exponential moving averages calculated on the typical price. It enters long when all three EMAs are concurrently rising over one bar, closing the position as soon as any EMA stops rising. Conversely, shor

Strategy v4 TrendMoving averages
Updated 5 years ago · Apache-2.0 GitHub repository of PMA Strategy Idea

CC Test

by saket3395
13 stars

This indicator plots an exponential moving average of the closing price on the price chart. A single length input, defaulting to 14, sets the EMA period. There are no signals, entries, exits, stops, or position sizing. The plotted series is drawn as a blue lin

Indicator v6 Moving averages
Updated 7 weeks ago · MIT GitHub repository of CC Test
13 stars

This script identifies and visualizes bullish and bearish order blocks on the price chart. It detects low-volatility consolidation ranges followed by breakout moves accompanied by high trading volume. Users can select between Simple, Relative, or Weighted volu

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · MIT GitHub repository of Advanced Order Blocks with Volume
13 stars

This strategy overlays the price chart to trade DAX futures during European market hours. It calculates exponential and simple moving averages, RSI, MACD, Bollinger Bands, ATR, and realized volatility to simulate VIX levels. Trades execute when session time fi

Strategy v5 Sessions & timeOscillators & momentum
Updated 8 months ago · Custom licence GitHub repository of ClaudeHedge - DAX Session Strategy
13 stars

BitLa Microtendencias B008 is a Pine Script v5 strategy drawn on the price chart. It enters long when a 10-period EMA crosses over a 120-period EMA and enters short on the opposite cross. Optional percentage stop loss is on by default, while take profit, trail

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of BitLa Microtendencias B008

Fullscope Index

by CMYKSCRIPTS
13 stars

The Fullscope Index is a momentum oscillator that computes values from RMI, RSI or CCI as its core base strategy. It offers linear or logarithmic scalar gradation along with adjustable ratio and maximum scalar settings to control the output scale. The indicato

Indicator v4 Oscillators & momentum
Updated 4 years ago · None stated GitHub repository of Fullscope Index
12 stars

This strategy plots on the price chart and looks for three-candle fair value gaps and inverse gaps on Bitcoin. It enters long when a wide enough bullish gap appears in an uptrend with RSI above 30 and volume above its average, and short on the opposite bearish

Strategy v6 SMC / ICT / price actionTrend Repaints
Updated 4 months ago · None stated GitHub repository of BTC 4h FVG/iFVG Strategy
12 stars

This indicator tracks swing highs and lows to detect market structure closures, specifically monitoring C2 and C3 candle closure progressions based on the TTrades Next Candle Model. It draws active, swept, and closed-through swing lines directly on the price c

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of C2 Next Candle Statistics Tracker
12 stars

This educational indicator demonstrates the Pine Script execution model by tracking execution counts across chart bars. It calculates bar-by-bar price data including open, high, low, close, and volume, alongside basic moving averages and an oscillator. The scr

Indicator v5 Screeners & dashboards
Updated 1 year ago · None stated GitHub repository of PINE Tutorial 1: Execution Model

RS: Market Profile

by agejevasv
12 stars

This indicator plots a Market Profile on the price chart using time-price opportunity letters or symbols. It marks the point of control, a configurable value area, and the initial balance, and it can highlight a volume-profile point of control and session VWAP

Indicator v5 VolumeSupport & resistance
Updated 2 years ago · None stated GitHub repository of RS: Market Profile

Market Trend

by azamiftikhar1000
12 stars

Market Trend is an overlay indicator that identifies market direction and key price levels. It calculates a Relative Strength Index with Bollinger Bands to construct a 20-step color gradient reflecting momentum shifts. The script incorporates exponential movin

Indicator v4 TrendOscillators & momentum
Updated 3 years ago · None stated GitHub repository of Market Trend

Moon Phase

by koradiyakaushal
12 stars

This strategy estimates the Moon's age from the chart date and marks full-moon and new-moon transitions with circles on the price chart. It optionally fills the background navy or gray on those bars. It opens a long after a new-moon signal and a short after a

Strategy v4
Updated 5 years ago · MIT GitHub repository of Moon Phase
11 stars

This indicator plots a smoothed Z-score of cumulative volume delta in a separate pane, showing whether buying or selling pressure is dominant and when the reading enters extreme zones. It marks spot accumulation, climax or exhaustion, and pivot-based price-vol

Indicator v6 Oscillators & momentumVolume Repaints
Updated 7 weeks ago · MIT GitHub repository of CVD Z-Score [NeuNue]
11 stars

Calculates upper and lower Donchian Channel bands over a customizable lookback length and plots them on the main price chart. At a specified exchange hour, the strategy places a long buy stop order at the upper Donchian Channel level. Unfilled pending orders a

Strategy v6 BreakoutSupport & resistance
Updated 5 months ago · Apache-2.0 GitHub repository of Estrategia Donchian Breakout

Quant

by hirawatt
11 stars

Quant is a Pine Script utility library providing custom functions for quantitative analysis. It includes an exported function to calculate the percentage change between consecutive values of any float series. Additionally, it offers a function to calculate mar

Library v5
Updated 2 years ago · MIT GitHub repository of Quant

Bte Acc

by f-cksociety
11 stars

Bte Acc is a chart indicator form of the PineCoders Backtesting and Trading Engine. It seeks an entry trigger from a main or alternate entry method, then checks trade direction, filters, date range, ATR readiness, and remaining capital before filling on the ne

Indicator v5 TrendOscillators & momentum Repaints
Updated 4 years ago · MPL-2.0 GitHub repository of Bte Acc
10 stars

Calculates and plots a multi-component indicator in a separate pane, integrating Relative Strength Index (RSI), Average Directional Index (ADX), Directional Movement Index (DMI), and price Bollinger Bands. It detects institutional movement conditions by testin

Indicator v6 Oscillators & momentumVolatility & bands
Updated 6 weeks ago · AGPL-3.0 GitHub repository of Whales + RSI/ADX/DMI

This indicator estimates crypto liquidation levels by tracking Open Interest changes from Binance USDT perpetual contracts. It calculates Open Interest delta spikes relative to a simple moving average and projects estimated liquidation price levels across mult

Indicator v5 Support & resistanceSMC / ICT / price action
10 stars

This indicator tracks macro market cycle phases by evaluating moving average interactions and a modified Mayer Multiple threshold. It monitors crossovers between a double 350-period simple moving average and a 111-period SMA for cycle-out conditions, alongside

Indicator v4 Moving averagesTrend
Updated 5 years ago · None stated GitHub repository of cycleOutToCycleInProgression
10 stars

This indicator calculates and plots two exponential moving averages of closing prices directly on the price chart. It detects crossovers between the shorter and longer periods and generates an alert condition whenever the two moving averages intersect. Users c

Indicator v4 Moving averagesTrend
Updated 5 years ago · GPL-3.0 GitHub repository of Chad's Alert EMAs (@tradeprophet)

The Adaptive Cycle Detector estimates the dominant market cycle from WaveTrend oscillator zero-crossing frequency and applies smoothing to recommend adaptive indicator lengths. Fast markets with frequent crossings receive shorter lengths while slow swing marke

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 days ago · MIT GitHub repository of Adaptive Cycle Detector [WavesUnchained]

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