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

Heikin Ashi

by jubayernil
1 stars

This indicator calculates and plots Heikin Ashi candlesticks in a separate pane below the main price chart. It retrieves the open, high, low, and close values of the Heikin Ashi synthetic ticker for the chart's current timeframe. Bullish candles, where the Hei

Indicator v4 Candlestick patternsTrend
Updated 3 years ago · None stated GitHub repository of Heikin Ashi

Kama-WAP

by nvFede
1 stars

A Pine v4 indicator in a separate pane that is a variant of a volume-weighted z-score oscillator. It measures the close against a rolling volume-weighted mean and divides by a volatility term smoothed with an adaptive Kaufman-style average instead of a simple

Indicator v4 Mean reversionVolume
Updated 3 years ago · None stated GitHub repository of Kama-WAP

Aroon RSI Adjusted Net

by JohnsonHsiao
1 stars

The Aroon RSI Adjusted Net indicator combines the standard Aroon oscillator with RSI calculations over a user-defined rolling period. It calculates Aroon Up and Aroon Down values for both raw price and the RSI indicator, measuring the spread between price Aroo

Indicator v5 Oscillators & momentumTrend
Updated 3 years ago · None stated GitHub repository of Aroon RSI Adjusted Net

DMI+OBV+RSI

by rajatjpatel
1 stars

A separate-pane tool that merges three studies. A histogram shows normalized On Balance Volume minus its moving average, with different colors for growing and falling bars above and below zero. A shaded band between the 30 and 70 lines uses the directional mov

Indicator v5 VolumeOscillators & momentum
Updated 4 years ago · None stated GitHub repository of DMI+OBV+RSI

MACD Delta Strategy

by juliencrn
1 stars

This Pine v5 strategy computes MACD and takes the difference between the MACD and signal lines. It goes long when that histogram crosses above zero and short when it crosses below, reversing the position. A percentage stop loss measured from the average entry

Strategy v5 Oscillators & momentumTrend Archived
Updated 4 years ago · None stated GitHub repository of MACD Delta Strategy

BTC Futures Daily Bias

by 0xfffangel
1 stars

An overlay meant for the daily chart that gives a long, short or neutral bias for Bitcoin. It takes daily prices from a chosen source such as CME futures, an index feed or Binance, then compares two EMAs (8 and 21 by default) with an 80-period Hull moving aver

Indicator v4 TrendMoving averages
Updated 4 years ago · None stated GitHub repository of BTC Futures Daily Bias

Barbwire v3.0.0

by itmakesyousick
1 stars

Detects barbwire zones, runs of bars with unusually small size, and boxes them on the price chart. Bar size defaults to a hybrid blend of Heikin-Ashi, open-close and high-low measures. A mixed method is on by default, with optional stochastic and percent-rank

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

BTC Premium Strategy

by samliu0206
1 stars

Calculates a volume-weighted perpetual futures premium against spot prices across multiple cryptocurrency exchanges, including Binance, OKX, Huobi, Coinbase, and BitMEX, for BTC or ETH. It applies a user-selected moving average to the log premium value and plo

Strategy v4 Oscillators & momentumVolatility & bands
Updated 4 years ago · None stated GitHub repository of BTC Premium Strategy

Utils

by tyler314
1 stars

This Pine Script library provides utility functions for script development and backtest reporting. It includes a function to display debug text labels on the chart, a rounding utility to round floating-point values to a specified number of decimal places, and

Library v5
Updated 4 years ago · None stated GitHub repository of Utils

Strat1

by namdar-nejad
1 stars

This Pine v4 strategy looks for three-candle sequences, green-green-red or red-red-green, and uses a one-period Money Flow Index value and candle body sizes to decide long or short direction, drawing arrows on the price chart. Orders are fixed at 10000 units w

Strategy v4 Candlestick patterns
Updated 4 years ago · None stated GitHub repository of Strat1

micayael EMAs

by micayael
1 stars

An overlay that plots a selection of exponential moving averages: a main pair at 10 and 55 drawn as circles, and an optional set at 7, 21, 30, 50, 100 and 200. Optional extras are an ADX-based movement strength display with a key level, a pullback display, and

Indicator v4 Moving averagesTrend
Updated 4 years ago · None stated GitHub repository of micayael EMAs

My Squeeze Play

by modster
1 stars

This indicator requests a five-minute Bitcoin series and plots two lines offset 5,000 price units above and below the bar average. It raises a short squeeze alert when the high exceeds the upper line and a long squeeze alert when the low falls below the lower

Indicator v4 Breakout Repaints
Updated 4 years ago · MIT GitHub repository of My Squeeze Play
1 stars

This strategy uses the same smoothed ATR-above-its-low measure as the matching indicator, shown in a separate pane. It opens a long when the close turns up after a down close while the volatility value is rising, and a short when the close turns down after an

Strategy v5 Volatility & bandsBreakout
Updated 4 years ago · None stated GitHub repository of ATR Volatility Power Strategy

Slim Support

by tseitz
1 stars

A Pine v4 strategy that finds pivot highs and lows over a chosen period and groups them into support and resistance channels. Inputs set the pivot period, price source, maximum pivots stored, maximum channel width, number of levels shown, minimum strength and

Strategy v4 Support & resistance
Updated 4 years ago · None stated GitHub repository of Slim Support

EMA Crossover Strategy

by rocketbrainsurgeon
1 stars

This strategy trades the crossover of two exponential moving averages of the bar midpoint, where the slow length is a chosen multiple of the fast length. It goes long when the fast line crosses above the slow line and short on the opposite cross, or only long

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

Nasdaq

by rosskevin
1 stars

This indicator plots market breadth metrics for the Nasdaq exchange in a separate pane. It calculates a simple moving average of the Nasdaq Advance-Decline line, switching between a 10-period average on weekly charts and a 50-period average on daily charts, co

Indicator v4 TrendMoving averages
Updated 5 years ago · AGPL-3.0 GitHub repository of Nasdaq

XXXNOK

by taco-c
1 stars

The XXXNOK indicator plots the exchange rate of a chosen currency (USD or EUR) to NOK sourced via OANDA. It presents the rate on the main price chart as a black line with a simple width. A single input setting allows selection between USD and EUR. The script u

Indicator v4 Support & resistance
Updated 5 years ago · MPL-2.0 GitHub repository of XXXNOK
1 stars

A single file that bundles several standard TradingView indicators as reference snippets. The first plots Accumulation/Distribution, a cumulative volume line, in a separate pane. Later sections include ADX, ATR with selectable smoothing, Bollinger Percent B, H

Indicator v4 VolumeVolatility & bands
Updated 6 years ago · None stated GitHub repository of Accumulation/Distribution

This indicator calculates and plots logarithmic growth curves and intermediate Fibonacci levels directly on the main price chart to outline long-term channel boundaries for Bitcoin. It computes upper and lower growth curves based on historical time elapsed sin

Indicator v4 TrendSupport & resistance
Updated 6 years ago · GPL-3.0 GitHub repository of Bitcoin Logarithmic Growth Curves

HalfTrend

by everget
948 stars

HalfTrend plots a trailing trend line on the price chart. It tracks recent highs and lows over an amplitude window and flips between up and down when a simple moving average of highs or lows crosses the tracked extreme and price confirms. The line is blue in a

Indicator v6 TrendVolatility & bands
Updated 11 days ago · GPL-3.0 GitHub repository of HalfTrend

ICT Liquidity Void Fill

by ArunKBhaskar
575 stars

This overlay indicator marks ICT liquidity void fills on the price chart and can show long and short signals. It places a Fibonacci level inside a displacement candle, defaulting to the midpoint, and draws lines in a chosen style. Optional filters limit the fi

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Liquidity Void Fill
330 stars

Double Supertrend [Alorse] is a trend-following strategy that calculates two Supertrend indicators with distinct ATR periods and multiplier factors directly on the price chart. It enters long or short positions when the fast Supertrend signals a trend. Exits o

Strategy v5 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Double Supertrend [Alorse]
318 stars

Calculates and plots moving averages on selected VIX volatility terms (VIX9D, VIX, VIX3M, or VIX6M) in a separate pane. The script computes user-defined short and long moving averages using EMA or SMA. It shades the background red when the short-term moving av

Indicator v5 Volatility & bandsMoving averages
Updated 2 months ago · MIT GitHub repository of [TVT] VIX Short Term Danger

3690-tracker

by Allen1212
303 stars

This indicator overlays historical ARK Invest buy and sell events for one stock on the price chart. It places fixed date labels above bars for sells and below bars for buys, with a count such as X1. An ETF input switches between ALL, ARKF, and ARKX so only the

Indicator v4
Updated 2 years ago · None stated GitHub repository of 3690-tracker

AnalysisInterpolationLoess

by ricardosantos79
261 stars

This Pine Script v5 library provides a LOESS local weighted smoothing routine for paired x and y sample arrays. It builds a local neighborhood around each sample, applies a tricubic distance weight, and fits a weighted local regression. A separate polynomial w

Library v5
Updated 4 years ago · None stated GitHub repository of AnalysisInterpolationLoess
257 stars

This overlay indicator tracks sideways consolidations on the SPX price chart and flags breaks above or below that range. It builds a zigzag from the highest and lowest bars inside a loopback window, smooths nearby highs and lows with a rational quadratic kerne

Indicator v6 BreakoutSupport & resistance Repaints
Updated 6 weeks ago · None stated GitHub repository of SPX 30M - Trading Chart
219 stars

This indicator identifies bullish and bearish engulfing candlestick patterns and plots them directly on the price chart. Users can filter patterns by setting minimum body-to-range percentages for both the prior and current candles. Additional filters require t

Indicator v5 Candlestick patterns
Updated 1 year ago · None stated GitHub repository of Candlestick Pattern - Engulfing

KD Indicator

by TaichiS
219 stars

Calculates and plots the Stochastic Oscillator (KD) in a separate chart pane. It computes the raw stochastic values using high, low, and close prices over a default 9-bar length, smoothing them with 3-bar simple moving averages to produce the K and D lines. It

Indicator v4 Oscillators & momentum
Updated 5 years ago · None stated GitHub repository of KD Indicator
218 stars

This overlay indicator draws an event calendar as a table on the price chart. It offers a multi-month grid or a single month plus an event list. Users set how many months appear before and after the current month, how many columns are used, the reading order,

Indicator v6 Screeners & dashboards
Updated 3 months ago · None stated GitHub repository of Event Calendar [TradersPost]

LiqSpikeBounceLong Feb2026

by agutinbaigo28
147 stars

LiqSpikeBounceLong Feb2026 is an indicator designed to identify long bounce entries following high-volume liquidation cascades in bearish market contexts. It checks if price is below an exponential moving average, then detects large single-bar drops exceeding

Indicator v5 Volatility & bandsVolume
Updated 6 weeks ago · MIT GitHub repository of LiqSpikeBounceLong Feb2026
114 stars

This indicator estimates the next bar's price with a k-nearest neighbors model built from consecutive price samples. It ranks one-dimensional distances, averages the nearest neighbors, and can adjust that projection. Optional signals hint at the next bar's dir

Indicator v5 AI / machine learning
Updated 1 year ago · None stated GitHub repository of Machine Learning: kNN (New Approach)
106 stars

This strategy trades the three-candle strike pattern filtered by trend direction and time sessions. It calculates market regime using linear regression and exponential or smoothed moving averages to distinguish between ranging and trending conditions. Risk man

Strategy v5 Candlestick patternsTrend
Updated 2 years ago · GPL-3.0 GitHub repository of 3 Candle Strike Strategy

Bollinger Bands Strategy

by cklose2000
105 stars

This strategy generates buy and sell signals based on Bollinger Band crossovers combined with a simple moving average trend filter. It enters a long position when price crosses above the lower band while trading above the SMA filter line, and enters a short po

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

This overlay strategy combines a Chandelier Exit with a zero-lag least squares moving average. Although the header mentions Heikin Ashi candles, the calculations use ordinary closes. An ATR trailing stop sets long and short levels, and direction flips when pri

Strategy v5 TrendMoving averages
Updated 3 years ago · MIT GitHub repository of Chandelier Exit & ZLSMA Strategy
99 stars

This indicator calculates Bill Williams' Accelerator Oscillator in a separate pane. It forms the median price from high and low, subtracts a slow simple moving average from a fast one to get the Awesome Oscillator, then subtracts a five-period average of that

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Accelerator Oscillator (AC)
92 stars

This indicator plots horizontal liquidation heatlines for long and short positions directly on the price chart overlay. It highlights key price levels where positions face liquidation, color-coding lines and displaying descriptive tags for estimated sizes. The

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 2 months ago · Custom licence GitHub repository of Moon Dev Liq Lines — SOL

MLExtensions

by artificial-intelligence-edge
75 stars

MLExtensions is a Pine Script library providing utility and mathematical helper functions for machine learning indicators, specifically optimized for approximate nearest neighbors classification in Lorentzian space. It includes functions to normalize series de

Library v5 AI / machine learning
Updated 3 days ago · MIT GitHub repository of MLExtensions

PPO ATR Bands

by cryptorife
75 stars

PPO ATR Bands plots a percentage price oscillator in a separate pane. It compares a Hull average of typical price with a volume-weighted exponential average of Parabolic SAR, then scales three true-range bands around the slow average into matching oscillator l

Indicator v4 Oscillators & momentumMoving averages
Updated 3 years ago · GPL-3.0 GitHub repository of PPO ATR Bands

Bar States

by be-thomas
65 stars

Bar States is an educational utility indicator that demonstrates Pine Script bar state variables directly on the price chart overlay. On every bar, it evaluates execution context properties including historical status, real-time status, new bar creation, bar c

Indicator v5
Updated 5 days ago · GPL-3.0 GitHub repository of Bar States

Pair Trade: Apple & Google

by PythonForForex
64 stars

This pair trading strategy calculates the daily price movement ratio of Google using multi-symbol data requests and plots it in a separate pane. When Google drops by more than 5% within a day, the strategy enters a long position of 100 units on the chart symbo

Strategy v5 Mean reversion
Updated 4 years ago · None stated GitHub repository of Pair Trade: Apple & Google
59 stars

This indicator serves as a syntax test file demonstrating Pine Script language features and editor highlighting. It showcases compiler annotations, control flow keywords, user-defined types, exported enums, and various data structure declarations including arr

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

BTC MACD Enhanced Tests

by iamrichardD
57 stars

This script provides a unit testing and validation framework designed for testing a Bitcoin MACD trading strategy. It constructs custom TestCase and TestSuite data structures to evaluate mock MACD calculations across market scenarios like bull runs, bear marke

Strategy v6 Oscillators & momentum
Updated 1 year ago · Apache-2.0 GitHub repository of BTC MACD Enhanced Tests
56 stars

BigBeluga Smart Money Concepts identifies and overlays market structure and volumetric order blocks directly on the price chart. It analyzes market swings, trend sweeps, and mapping structure using customizable pivot lengths and calculation modes. The indicato

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of BigBeluga - Smart Money Concepts
55 stars

This indicator calculates Bollinger Bands from the close with TradingView's built-in ta.bb function and plots them on the price chart. It draws a middle band plus upper and lower bands and fills the area between the outer bands. The length input sets the lookb

Indicator v6 Volatility & bands
Updated 6 months ago · Apache-2.0 GitHub repository of Bollinger Bands Example
53 stars

This strategy evaluates two Relative Strength Index (RSI) indicators across two user-defined timeframes to generate trading signals. The higher-timeframe RSI acts as a trend filter, enabling long trades when above 50 and short trades when below 50. Lower-timef

Strategy v6 Oscillators & momentumTrend
Updated 2 months ago · MPL-2.0 GitHub repository of Customizable Dual-Timeframe RSI Strategy

Exhaustion Reversal

by milocaetano
48 stars

Exhaustion Reversal identifies potential market exhaustion and reversal points on the price chart by detecting strong force bars followed by price give-back patterns. A force bar is defined by an above-average body reaching recent extreme highs or lows. The sc

Indicator v5 Candlestick patternsMean reversion
Updated 2 days ago · MIT GitHub repository of Exhaustion Reversal
47 stars

This indicator plots jerk, described as the slope of the slope of the slope of a source series, in a separate pane. It estimates each slope with a rolling least-squares fit over the selected period, then repeats that fit on the slope and again on the resulting

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Acceleration, Slope of Slope (JERK)

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