Synced with GitHub · updated today

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

This overlay indicator projects higher-timeframe open, high, and low statistics onto the price chart. It can show one or two selected timeframes, with an optional New York midnight session start, and uses a lookback window to draw average and median levels. Pl

Indicator v5 Support & resistanceSessions & time
Updated 7 weeks ago · None stated GitHub repository of Statistical OHLC Projections

Least Squares Moving Average

by TWODS-CAPITAL
37 stars

This indicator plots a least-squares moving average on the price chart. It fits a linear regression to the selected source over a chosen lookback and draws that value as a single line. The length setting changes how many bars enter the regression, the offset s

Indicator v5 Moving averages
Updated 3 years ago · MIT GitHub repository of Least Squares Moving Average
13 stars

Ruckard Noro TrendRibbon A006 is a trend-following strategy based on Noro's trend ribbon concept using moving averages. It features customizable moving average types, lengths, and price sources to generate entry and exit signals, displayed directly on the pric

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard Noro TrendRibbon A006

This ex-post diagnostic indicator identifies confirmed pivot highs and lows, classifying subsequent price action into four outcome types: Snapback, Grind, Fake/Pullback, or Chop. It evaluates forward performance across an ATR-based risk window, factoring in Wa

Indicator v6 Support & resistanceOscillators & momentum
Updated 2 days ago · MIT GitHub repository of Reversal Type Classifier [WavesUnchained]

Replay Footprint

by eddiebelaval
7 stars

An overlay indicator that constructs footprint volume profiles and value areas directly on the price chart using lower-timeframe detailed volume data. It segregates buy and sell volume across automatic or fixed tick-sized price rows, identifying the Point of C

Indicator v6 VolumeSupport & resistance Repaints
Updated 3 months ago · None stated GitHub repository of Replay Footprint

CRT State Engine v7

by alboogycOdR
6 stars

CRT State Engine v7 is an overlay indicator that tracks institutional CRT session states on the price chart. It analyzes market structure, detects buy-side and sell-side liquidity pools, and plots a volume profile with point of control and value area. Optional

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT State Engine v7

This indicator overlays moving average clouds, swing pivots, and trade signals directly on the price chart. It combines a fast and slow moving average cloud with a long-term trend filter moving average. Trade signals are triggered by moving average crossovers

Indicator v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of Heikin Ashi with Pivot Trendlines

Tillson T3 Moving Average (T3)

by mushroom-men-Trading
2 stars

This indicator plots the Tillson T3 moving average on the price chart. It calculates the line from six cascaded exponential moving averages whose coefficients depend on a volume factor. Users choose the source series, the smoothing period, and the volume facto

Indicator v6 TrendMoving averages
Updated 9 months ago · None stated GitHub repository of Tillson T3 Moving Average (T3)

Tables

by Web3Degenerate
2 stars

Calculates real-time price and technical metrics and displays them in a table on the top right of the chart. It calculates the closing price, opening price, bar gain or loss, 50-period EMA, 14-period RSI, and percentage bar change. The table updates only on th

Indicator v4 Screeners & dashboards
Updated 2 years ago · None stated GitHub repository of Tables

PF Max Contracts Held Gate

by pineforge-4pass
1 stars

A test strategy from a reference corpus that checks the highest contract count a strategy has held. At the start of each hour it adds one long unit, up to a pyramiding limit of ten, but stops adding once the all-time maximum held reaches five contracts. Every

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Max Contracts Held Gate

P_ver_when_param

by GammaExpansion
1 stars

This strategy enters a long position when the bar close is above its open. It has no inputs, no exit rules, and no stop loss or take profit. Position size is plotted in a separate pane rather than on the price chart. The script is a minimal parser fixture, so

Strategy v6 Candlestick patterns
Updated 6 days ago · MIT GitHub repository of P_ver_when_param

DEPV2 Veri 1

by YuceSezar89
1 stars

DEPV2 Veri 1 aggregates OHLCV data from 20 cryptocurrency symbols on the 15-minute timeframe and plots volume plus open high low close values for each symbol on a single chart pane. The first symbol uses the chart's native columns while the remaining symbols a

Indicator v6 Screeners & dashboards
Updated 12 days ago · None stated GitHub repository of DEPV2 Veri 1
1 stars

This indicator projects cycle paths and Fibonacci-scaled moving averages directly on the price chart based on two user-selected reference points in time and price. It computes a base moving average period from the elapsed bars between anchors and derives a sec

Indicator v5 Moving averagesTrend
Updated 7 weeks ago · None stated GitHub repository of Fibo Wave MA - Auto Path (Plot)

Linear GANN 2.0

by vedkanani123
1 stars

A price-chart indicator that draws horizontal Gann price levels derived from a square-number sequence, with optional price labels. Settings control line colour and width, label size, how many levels appear around a reference price, the number of interval divis

Indicator v6 Support & resistance
Updated 2 months ago · None stated GitHub repository of Linear GANN 2.0
1 stars

Overlay indicator of single-bar detections drawn on the price chart. Groups include relative volume tiers named SAAB, Kratos, Grand Slam and MOAB, regular-at-time volume tiers, an all-time high volume marker, momentum LONG and SHORT tiers, high-volume ranks fr

Indicator v5 VolumeOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Heavy Weapons Singles v2

TN Sovereign

by raybird
1 stars

A strategy on the price chart that scores each setup from 0 to 4 using volume against its average, higher-timeframe EMA trend, bar movement against an ATR noise level and fast versus slow EMA alignment. Long entries are linked to a fast EMA crossing above the

Strategy v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of TN Sovereign

A Pine Script v5 indicator that draws bullish and bearish order block zones on the price chart with volume information inside each zone. Swing length, maximum ATR multiplier, zone count, zone combining and invalidation by close or wick control how zones appear

Indicator v5 SMC / ICT / price actionVolume
Updated 6 months ago · None stated GitHub repository of Volumized Order Blocks LTF 2026 (G)

Position Tool

by ivansoft
1 stars

An indicator that draws a long or short position box on the price chart from an entry point, a take profit level and a stop loss level that the user clicks on the chart. It sizes the trade from an account size, a risk amount given as a percentage or in account

Indicator v5 Support & resistance
Updated 1 year ago · None stated GitHub repository of Position Tool

YFI XBT Binance 1m

by tseitz
1 stars

This strategy plots a close VWAP and percentage-offset high and low VWAP bands on the price chart. It enters long when the bar opens above the high band, optionally only on a green candle, and short when the bar opens below the low band, optionally only on a r

Strategy v4 VolumeBreakout Repaints
Updated 4 years ago · None stated GitHub repository of YFI XBT Binance 1m

CND-tracker

by Allen1212
303 stars

This indicator marks historical ARK Invest purchases and sales for the CND ticker on the price chart. It places dated labels below bars for buys and above bars for sells, using green and red label styles. An ETF setting switches between ARKF, ARKW, and a combi

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

Function - IRR

by ricardosantos79
261 stars

This script demonstrates a custom Pine Script implementation of a fourth-order Infinite Impulse Response filter function based on AmiBroker AFL. It uses this mathematical framework to construct multiple smoothing calculations, including an IIR-calculated Expon

Indicator v5 Moving averages
Updated 4 years ago · None stated GitHub repository of Function - IRR
106 stars

This overlay strategy enters a long position when the relative strength index rises by more than five points, stays below 70, and a 9-period exponential moving average crosses above a 50-period average, provided the bar is on or after 1 January 2020. It closes

Strategy v5 Oscillators & momentumMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Bitpanda Coinrule Template

This indicator calculates Ehlers directional movement with a Hann window and plots it in a separate pane. It extracts classic plus and minus directional movement from bar highs and lows, smooths their difference with an exponential moving average, then applies

Indicator v6 Oscillators & momentumTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Directional Movement with Hann (DMH)

Example 1

by be-thomas
65 stars

This indicator draws a custom bar series from the chart symbol's open, high, low, and close prices using plotbar. It does not calculate a derived oscillator, generate buy or sell signals, or apply filters. There are no user inputs, so the plotted bars always m

Indicator v4
Updated 5 days ago · GPL-3.0 GitHub repository of Example 1

Pretty Good Oscillator

by mihakralj
47 stars

The Pretty Good Oscillator calculates the distance between the selected price source and its simple moving average, normalized by the Average True Range over a specified period. It renders as an oscillator line in a separate pane alongside a zero line and thre

Indicator v6 Oscillators & momentumMean reversion
Updated 8 months ago · MIT GitHub repository of Pretty Good Oscillator

MA Cross

by TWODS-CAPITAL
37 stars

The MA Cross indicator calculates and plots two Simple Moving Averages (SMA) directly on the main price chart. It tracks a short-term moving average and a long-term moving average to help identify trend directions and potential crossover points. When the short

Indicator v5 Moving averagesTrend
Updated 3 years ago · MIT GitHub repository of MA Cross
13 stars

Ruckard Noro TrendRibbon E003 is a trend-following strategy that combines Noro TrendRibbon directional bias with a high and low moving average price corridor. It enters long positions when the trend ribbon is bullish and price drops below the lower corridor th

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard Noro TrendRibbon E003
9 stars

The RJ-Wave Fibonacci Validator tracks and validates wave structures using Fibonacci retracement and extension levels directly on the price chart. It identifies impulse movements and evaluates pullback candidates using configurable pivot sensitivity and Fibona

Indicator v6 Support & resistanceTrend
Updated 2 days ago · MIT GitHub repository of RJ-Wave Fibonacci Validator

Rhokeo-VW-RSI Histogram

by eddiebelaval
7 stars

This indicator plots a volume-weighted RSI as a histogram in a separate pane. It weights positive and negative price changes by volume, smooths those values, and scales the result between -1 and +1. Histogram bars change color by zone: strong or weak bull abov

Indicator v6 Oscillators & momentumVolume
Updated 3 months ago · None stated GitHub repository of Rhokeo-VW-RSI Histogram
6 stars

CRT State Engine CURSOR is an overlay indicator that implements Candle Range Theory (CRT) models alongside Smart Money Concepts (SMC) frameworks. It tracks session ranges including Asia, London, New York, and CBDR, while identifying Direction of Liquidity (DOL

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT State Engine v7.2 CURSOR

This strategy plots dual moving average clouds and a long-term trend filter directly on the price chart alongside Heikin Ashi data. It triggers long and short entry signals using moving average alignments and pivot trendline levels, with optional filtering via

Strategy v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of Heikin Ashi with Pivot Trendlines Strategy

Time Weighted Average Price (TWAP)

by mushroom-men-Trading
2 stars

This indicator calculates a session-based time-weighted average price as the simple average of a chosen source series since the last reset. It plots that value as a yellow line on the price chart. The source defaults to the average of open, high, low, and clos

Indicator v6 VolumeSessions & time
Updated 9 months ago · None stated GitHub repository of Time Weighted Average Price (TWAP)

AutoView Trailing Stop

by Web3Degenerate
2 stars

This indicator calculates an Average True Range (ATR) trailing stop level based on market structure swing points and outputs dynamic alert syntax formatted for the AutoView trading automation extension. Users select long or short direction, lookback length, an

Indicator v4 Volatility & bandsSupport & resistance
Updated 2 years ago · None stated GitHub repository of AutoView Trailing Stop
1 stars

This strategy evaluates a multi-timeframe moving average setup by requesting a 6-period exponential moving average computed on a monthly calendar timeframe. It operates directly on the price chart and triggers trade executions when the current bar close crosse

Strategy v6 Moving averagesTrend
Updated 6 days ago · Apache-2.0 GitHub repository of PF MTF Isolate - Monthly EMA(6) Cross

Risk limits probe r2

by GammaExpansion
1 stars

This strategy probes TradingView risk-limit behavior in a separate pane. It cycles timed entries in a chosen direction, then closes and cancels orders on a fixed bar schedule. A mode input activates one of drawdown cash, drawdown percent, intraday cash loss, i

Strategy v6
Updated 6 days ago · MIT GitHub repository of Risk limits probe r2

DEPV2 Veri 2

by YuceSezar89
1 stars

This indicator plots OHLCV data for multiple cryptocurrency symbols on a single chart time axis in a separate pane. It uses request.security to fetch 15-minute open, high, low, close, and volume values for symbols such as BINANCE:BCHUSDT.P, BINANCE:ATOMUSDT.P,

Indicator v6 VolumeScreeners & dashboards
Updated 12 days ago · None stated GitHub repository of DEPV2 Veri 2
1 stars

This indicator projects cyclical wave paths and moving averages directly onto the price chart based on two user-defined reference anchor points. It derives a base cycle length from the time difference between the anchors and scales a second period using the 1.

Indicator v5 Moving averagesSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Fibo Wave MA - Auto Path (Plot)

Liquidity Pools Pro

by vedkanani123
1 stars

A liquidity indicator on the price chart. It detects pivot highs and lows with an adaptive or manual length and groups pivots that sit within an ATR-based tolerance into pools, shown as zones with a strength bar. Strength decays over time and can be volume-wei

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of Liquidity Pools Pro

Heavy Weapons ULTRA

by nishpa800
1 stars

A volume pattern indicator that draws toggleable signals on the price chart, extended with sub-minute and sub-two-minute thresholds that change the high-volume lookback and displacement floor on very short chart intervals. Signals include relative volume patte

Indicator v5 Volume
Updated 2 months ago · None stated GitHub repository of Heavy Weapons ULTRA
1 stars

A strategy that changes its entry type with volatility and uses a 200 EMA as a direction gate, long above and short below. When ATR is below its average it fades moves beyond the prior range. When ATR is expanding it takes range breakouts that close with a str

Strategy v6 Volatility & bandsBreakout
Updated 2 months ago · None stated GitHub repository of TN Sovereign Adaptive Regime
1 stars

This indicator draws a zig-zag of swing highs and lows on the price chart using depth, deviation and backstep settings, and labels each leg with its bar count and optional price. It can mark higher highs and lower lows and shade upswings and downswings. The Re

Indicator v5 Support & resistance Repaints
Updated 6 months ago · None stated GitHub repository of ZigCycleBarCount 2024-2

An indicator on the price chart that draws daily and weekly separator lines and marks the previous day's high and low. Daily separators carry a label with the weekday, date and time, weekly separators are drawn separately, and the previous day levels appear as

Indicator v5 Support & resistanceSessions & time
Updated 1 year ago · None stated GitHub repository of Previous Day High and Low with Separators
1 stars

A Pine v4 strategy that plots a 21-period exponential moving average of the close in orange on the price chart. It goes long when a green candle opens above the average and short when a red candle opens below it, closing each position when the opposite signal

Strategy v4 Moving averagesTrend
Updated 4 years ago · None stated GitHub repository of YFIXBT EMA Cross Strategy

CRBU-tracker

by Allen1212
303 stars

This overlay indicator marks historical ARK Invest purchases and sales of CRBU on the price chart. When the ETF setting is ALL, it places green buy labels below bars and red sell labels above bars on fixed calendar dates, each tagged X1. The ETF input also off

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

Browse by Category

Learn to Use Pine Scripts

Free, plain-English guides: add a script to TradingView, read what it does, test it and avoid the common traps.

  1. 1Using this librarySearch, filters, licences and what the badges mean.
  2. 2Add a script to TradingViewCopy, paste into the Pine Editor, save and add to chart.
  3. 3Indicators, strategies and librariesWhat each type does and how to tell them apart.
  4. 4Spot a script that repaintsWhy some signals change after the bar closes.
  5. 5Backtest a strategyStrategy Tester settings that keep results honest.
  6. 6Send alerts to MT4 or MT5From a TradingView alert to an order in MetaTrader.
  7. 7What Pine Script isThe language, what it can and cannot do, and where to start.
  8. 8Write your first indicatorA complete script, line by line, in the Pine Editor.
  9. 9Read a script before you trust itA routine for checking inputs, logic and red flags.
  10. 10Edit a script safelyChange colours and lengths, add a filter or an alert.
  11. 11Pine Script alertsalertcondition(), alert(), placeholders and webhooks.
  12. 12Build a crossover strategyAn EMA cross strategy with an ATR stop, ready to test.

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