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

Litt Volume ++

by g-moe
3 stars

The Litt Volume ++ indicator measures relative volume by comparing raw volume against a 100-period exponential moving average baseline. It calculates a relative volume ratio and smooths it with a 20-period EMA to identify volume intensity levels. Rendered in a

Indicator v5 Volume
Updated 5 months ago · None stated GitHub repository of Litt Volume ++
2 stars

This indicator automatically detects and visualizes regular and inverse Head and Shoulders patterns on the main price chart. It identifies potential pattern structures by scanning pivot high and pivot low points according to user-defined left and right bar set

Indicator v5 Support & resistance
Updated 8 months ago · None stated GitHub repository of Head & Shoulders S/R Regular

PF probe 73 - minute zero stop

by pineforge-4pass
1 stars

This strategy is a validation probe that places stop orders only when the bar minute is zero. When flat, it enters long at 02:00 with a buy stop one tick above the bar high, and enters short at 14:00 with a sell stop one tick below the bar low. It closes a lon

Strategy v6 Sessions & timeBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 73 - minute zero stop

Mirror Oscillator Pro

by morindok
1 stars

Mirror Oscillator Pro is a separate-pane oscillator that reflects price around confirmed pivot highs and lows and a selectable baseline. It maps the mirrored value into a dynamic 0 to 100 range, smooths it with an exponential moving average, and plots that lin

Indicator v5 Oscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of Mirror Oscillator Pro
1 stars

A SuperTrend-style indicator on the price chart that can tune its ATR length and multiplier automatically from a profile of the instrument over a lookback window. It adds multi-timeframe confluence with selectable strictness and an optional machine-learning si

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of StealthTrail SuperTrend ML Pro

KC Combo v3

by nishpa800
1 stars

Draws a Keltner Channel and ATR supertrend on the price chart and marks candles where gated combinations of pullback, displacement and volume detectors fire together. Inputs set the base moving average, channel length, ATR multiplier and displacement threshold

Indicator v5 Volatility & bandsTrend
Updated 2 months ago · None stated GitHub repository of KC Combo v3
1 stars

Tn Sovereign VIOP Session v6 is an intraday session-filtered trend-following strategy. It generates buy and sell signals based on fast and slow Exponential Moving Average (EMA) crossovers strictly within specified session hours. Trade risk is managed using ATR

Strategy v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of Tn Sovereign VIOP Session v6

D/W/M POC VAH VAL Area

by mikeyhu70
1 stars

A Pine Script v4 indicator that plots the point of control, value area high and value area low for daily, weekly and monthly periods on the price chart. It shows both the developing and the previous period, with optional shaded areas, target lines and text lab

Indicator v4 Support & resistanceVolume
Updated 6 months ago · None stated GitHub repository of D/W/M POC VAH VAL Area

GWRE-tracker

by Allen1212
303 stars

GWRE-tracker is an overlay indicator that marks recorded ARK Invest purchases and sales of Guidewire Software on the price chart. With the ETF setting on ALL, it places fixed dated labels above or below bars that read Buy or Sell and show an X1 count of funds

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

Test-015-Sort_Parameter

by ricardosantos79
261 stars

This utility indicator demonstrates array sorting functionality in Pine Script version 4 by managing a ten-element array of recent price values. It continuously updates the array with the latest close, copies and sorts the collection based on a user-defined bo

Indicator v4
Updated 4 years ago · None stated GitHub repository of Test-015-Sort_Parameter

S2

by hasnocool
106 stars

S2 is a cryptocurrency rebalancing strategy originally designed for trading pairs like XTZ-EUR. It enters trades during buy and sell opportunity windows determined by rebalancing logic using external portfolio libraries. The strategy transacts a fixed base cry

Strategy v5 Mean reversionScalping
Updated 2 years ago · GPL-3.0 GitHub repository of S2
99 stars

This indicator computes the cumulative distribution function of a gamma distribution for a price series and plots the result in a separate pane. It first min-max normalizes the source over a lookback window, then scales that value by the rate parameter and eva

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Gamma Distribution CDF (GAMMADIST)

My Script

by be-thomas
65 stars

This indicator serves as a minimal documentation example that demonstrates label drawings in Pine Script v4. It creates a new visual label at the bar index and high price of each bar directly on the main price chart. The script does not calculate technical ind

Indicator v4
Updated 5 days ago · GPL-3.0 GitHub repository of My Script

Spinning Top Black

by TWODS-CAPITAL
37 stars

This overlay indicator detects a black spinning top on the price chart. It treats a candle as a match when the body is bearish, both the upper and lower shadows are at least 34 percent of the full range, and the body is not small enough to count as a doji. On

Indicator v5 Candlestick patterns
Updated 3 years ago · MIT GitHub repository of Spinning Top Black
13 stars

Calculates and plots a smoothed variation of the Squeeze Momentum indicator in a separate pane. It identifies market compression and expansion states by comparing Bollinger Bands with Keltner Channels, while tracking momentum via linear regression. Settings al

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of TradingLatino Abajo D002

This indicator calculates a custom ZigZag engine directly on the price chart to identify market structure and classic chart patterns. It automatically detects ABC corrections, symmetrical and sloped triangles, Wolfe waves, and Sperandeo 1-2-3 reversal patterns

Indicator v6 Support & resistanceTrend Repaints
Updated 2 days ago · MIT GitHub repository of ZigZag Patterns [WavesUnchained]
7 stars

The MACD RSI EMA Aggressive indicator generates momentum and trend-following signals on the price chart. It combines a MACD crossover or crossunder with an RSI threshold filter, price location relative to an Exponential Moving Average, volume expansion above a

Indicator v5 TrendOscillators & momentum
Updated 3 months ago · None stated GitHub repository of MACD RSI EMA Aggressive + ATR SLTP

NY SMC Suite Pro

by alboogycOdR
6 stars

NY SMC Suite Pro is a price-chart indicator that marks New York killzone sessions and smart-money structure. It shades the 714 AM, NY Open, and afternoon windows, and it plots order blocks and fair value gaps on a selectable analysis timeframe. Presets switch

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of NY SMC Suite Pro

Lower Forecast

by g-moe
3 stars

Lower Forecast is an oscillator indicator drawn in a separate pane based on the Market Forecast framework. It calculates three momentum curves—Intermediate, Nearterm, and Momentum—using fast stochastic formula variations across short and medium lookback window

Indicator v5 Oscillators & momentumDivergence
Updated 5 months ago · None stated GitHub repository of Lower Forecast

Heat Map Seasons

by regalouisei
2 stars

Heat Map Seasons plots a linear regression of typical price and colors each price bar by how far close sits from that line. It normalizes the gap with standard deviation, clamps extreme values, and maps them from aqua through yellow to red using a heat-sensiti

Indicator v5 TrendVolatility & bands
Updated 8 months ago · None stated GitHub repository of Heat Map Seasons
1 stars

A test strategy from a reference corpus that updates a pending buy stop over four consecutive bars. During the first 45 minutes of the 02:00 hour it submits a buy stop one tick above the bar high with the same order id each bar until it fills, and closes any l

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 74 Four Bar Stop Window

The Mirror Oscillator Pro indicator computes a custom oscillator by mapping RSI values to the range between detected pivot highs and lows on the selected timeframe. It offers multiple baseline choices including HH/LL extremes, ATR bands, Bollinger Bands, Ichim

Indicator v5 Oscillators & momentumSupport & resistance

Naga Disp v1

by nishpa800
1 stars

Marks a candle when a very high volume reading and a large displacement happen on the same bar. Volume tiers compare the bar against lookbacks of 1000, 2000, 3000 and 4000 bars, and displacement compares the candle range to a standard deviation multiple with a

Indicator v5 VolumeSessions & time
Updated 2 months ago · None stated GitHub repository of Naga Disp v1
1 stars

This strategy estimates intrabar volume delta using bar ranges and volume, smoothing it with a moving average to detect divergence against price action. Trades are taken when bullish or bearish divergences align with a long-term EMA trend filter. Position exit

Strategy v6 VolumeDivergence
Updated 2 months ago · None stated GitHub repository of Tn Sovereign Volume Delta
1 stars

A Pine Script v4 indicator that draws daily and weekly levels on the price chart, built from a volume-profile style calculation. It works out the point of control and value area (default share 68.3 percent for the first timeframe, 86.6 percent for the second)

Indicator v4 Support & resistanceVolume Repaints
Updated 6 months ago · None stated GitHub repository of Daily Weekly Monthly Level

HDB Tracker

by Allen1212
303 stars

The HDB Tracker indicator visualizes historical buy and sell transactions made by ARK Invest funds in HDB stock. It plots colored labels directly on the price chart at specific trade dates, displaying the operation type and the count of participating ARK funds

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

Test-016-Matrices

by ricardosantos79
261 stars

This script demonstrates matrix operations in Pine Script v4 using one-dimensional arrays before native matrix types were introduced. It provides custom functions to initialize pseudo-matrices, perform matrix multiplication, and compute matrix transpositions.

Indicator v4
Updated 4 years ago · None stated GitHub repository of Test-016-Matrices
99 stars

Gann High-Low Activator plots a trend line on the price chart from simple moving averages of highs and lows. Close above the high average sets a bullish trend and the line follows the low average; close below the low average sets a bearish trend and the line f

Indicator v6 TrendMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Gann High-Low Activator

My Script

by be-thomas
65 stars

This indicator tracks and plots the cumulative highest and lowest closing prices recorded across the entire chart history. Using custom recursive functions, it continuously compares the current bar close against historical state variables to maintain running e

Indicator v4 Support & resistance
Updated 5 days ago · GPL-3.0 GitHub repository of My Script

Spinning Top White

by TWODS-CAPITAL
37 stars

Spinning Top White is a price-chart indicator that marks a bullish spinning top. It treats a candle as a match when both shadows are at least 34 percent of the range, the body is not a doji, and the close is above the open. On a match it draws an STW label bel

Indicator v5 Candlestick patterns
Updated 3 years ago · MIT GitHub repository of Spinning Top White

Trailering

by ruckard
13 stars

This strategy enters trades on the price chart using price excursion logic and historical statistical advice to identify market opportunities. Depending on the number of trigger conditions met, it scales capital allocation per position. Exits are managed throu

Strategy v5 Sessions & time
Updated 1 year ago · None stated GitHub repository of Trailering

NY SMC Suite Pro v2.1

by alboogycOdR
6 stars

The NY SMC Suite Pro v2.1 is a TradingView indicator that plots Order Blocks and Fair Value Gaps directly on the price chart to visualize Smart Money Concepts. It also displays customizable trading sessions including 714AM, NY Open, and 714PM with adjustable t

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of NY SMC Suite Pro v2.1

Lower Labels

by g-moe
3 stars

Lower Labels is a cross-asset market structure indicator that plots candles and swing structure labels for a selected secondary symbol in a separate pane. It calculates pivot highs and pivot lows to classify market structure patterns including higher highs, hi

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 5 months ago · None stated GitHub repository of Lower Labels

HH-LL ZZ

by regalouisei
2 stars

This indicator detects higher highs and lower lows on the price chart by counting a user-specified number of breaches in the chosen source value. When the count reaches the threshold, it plots a horizontal line and a label at the new level. It also draws suppo

Indicator v5 Support & resistance
Updated 8 months ago · None stated GitHub repository of HH-LL ZZ

PF probe 75 - stop after flat

by pineforge-4pass
1 stars

This strategy enters long positions at specific time windows on the price chart. It places entries using a stop price set to high plus one tick and closes positions at predefined times during the trading day. The script supports pyramiding up to one position a

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 75 - stop after flat

Mirror Oscillator Pro is a custom momentum indicator displayed in a separate pane. It projects mirrored price calculations using recent pivot highs, pivot lows, and a selectable baseline anchor such as Golden Cloud, ATR, Bollinger Bands, or Ichimoku. An RSI ca

Indicator v5 Oscillators & momentumMoving averages

Strong Gold Signals

by vedkanani123
1 stars

A gold-oriented price-chart indicator that looks for liquidity sweeps followed by a rejection wick. Swept levels can come from macro pivots, the previous higher-timeframe bar, or session highs and lows for Asia, London and New York. Each signal draws a stop be

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of Strong Gold Signals

Naga Disp v1 (Tick)

by nishpa800
1 stars

Marks a candle when a very high volume reading and a large displacement happen on the same bar. Volume tiers compare the bar against lookbacks of 1000, 2000, 3000 and 4000 bars, and displacement compares the candle range to a standard deviation multiple with a

Indicator v5 VolumeSessions & time
Updated 2 months ago · None stated GitHub repository of Naga Disp v1 (Tick)
1 stars

This strategy pairs the Vortex Indicator with an exponential moving average trend filter to execute trend-following trades. It initiates a long entry when VI+ crosses above VI- while price trades above the 200 EMA, and a short entry when VI- crosses above VI+

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Tn Sovereign Vortex v6
1 stars

This indicator draws Future Line of Demarcation lines on the price chart: the price source is shifted forward by half a cycle for up to three cycle periods, with automatic or manual periods and bar multipliers based on the chart timeframe. Projected forward an

Indicator v4 Support & resistance Repaints
Updated 6 months ago · None stated GitHub repository of FLD with Projection Simple V2

HEI-tracker

by Allen1212
303 stars

This indicator marks historical ARK Invest purchases and sales of HEI on the price chart. It places green buy labels below bars and red sell labels above bars at fixed calendar dates, with text such as Buy X1 or Sell X1 for the number of ETFs trading that day.

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

Test-017-zz

by ricardosantos79
261 stars

This indicator draws a zigzag overlay on the price chart. It offers four reversal methods: a manual percent move from parameters X and Y, a percent of ATR, a running maximum true range, or confirmed high and low pivots. The function tracks extremes since the l

Indicator v4 Support & resistance
Updated 4 years ago · None stated GitHub repository of Test-017-zz

(IK) Base Break Buy

by hasnocool
106 stars

This price-chart strategy marks a base when enough recent bar bottoms cluster within a set deviation of the current bottom, then ignores new bases that sit too close to existing ones. A buy is considered when price falls a chosen percentage below a base inside

Strategy v4 Support & resistanceBreakout
Updated 2 years ago · GPL-3.0 GitHub repository of (IK) Base Break Buy
99 stars

This indicator plots a Gaussian filter of a chosen price source on the price chart. It builds a normalized Gaussian kernel whose width follows the sigma setting, then convolves that kernel with recent bars to produce a smoothed value. Sigma controls how wide t

Indicator v6 Trend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Gaussian Filter (GAUSS)

My Script

by be-thomas
65 stars

This Pine Script v4 educational indicator demonstrates dynamic label creation directly on the price chart. On every bar, the script instantiates a chart label and evaluates whether the bar closed higher than or equal to its open. For bullish bars, it renders a

Indicator v4 Candlestick patterns
Updated 5 days ago · GPL-3.0 GitHub repository of My Script

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