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

The Keltner Center Of Gravity Channel Mutations Indicator calculates adaptive channel metrics based on Donchian range Fibonacci levels (38.2% and 61.8%) and Average True Range (ATR) offsets. The lookback period automatically adjusts according to the active tim

Indicator v5 Volatility & bandsVolume
Updated 8 months ago · None stated GitHub repository of Keltner Center Of Gravity Channel Mutations Indicator
1 stars

A test strategy from a reference corpus that places a long stop and a short stop at the same time, 0.2 percent above and below the close of the 02:45 bar. It only does so on bars where the open is nearer to the high than to the low, so the price path is expect

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 87 Dual Stop High First

Moving Box

by morindok
1 stars

This indicator draws customizable boxes, rhombuses, or ellipses on the price chart centered on a selected moving average. It computes the box height from the MA's high-low range over a lookback period and applies optional golden ratio midpoints or symmetry. Sh

Indicator v5 Moving averagesSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Moving Box
1 stars

Overlays up to 46 buy and sell marker signals on the price chart, built from standard deviation displacement, pullback pockets, relative volume tiers and fair value gap structures. Inputs set three displacement multipliers, a first-bar-only switch and per-sign

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Squarify 46 v3.1 (Tick-Friendly)

TN_CMO_v26

by raybird
1 stars

The TN_CMO_v26 strategy calculates the Chande Momentum Oscillator and applies causal divergence filters against price action within a trend regime defined by a 200-bar EMA. It generates long entries on bullish divergence or CMO crossing above negative extreme

Strategy v6 DivergenceOscillators & momentum Repaints
Updated 2 months ago · None stated GitHub repository of TN_CMO_v26

Time Segmented Volume

by mikeyhu70
1 stars

Calculates a time segmented volume line in a separate pane by weighting volume by the change in price over a chosen length, then smoothing it with a moving average. An oscillating option changes how the line is presented. Positive readings suggest volume on ri

Indicator v4 VolumeOscillators & momentum
Updated 6 months ago · None stated GitHub repository of Time Segmented Volume

ICE-tracker

by Allen1212
303 stars

This indicator plots historical buy and sell records from ARK Invest funds directly on the price chart for Intercontinental Exchange. It generates visual label markers timestamped to specific transaction dates, displaying trade direction and the count of funds

Indicator v4
Updated 2 years ago · None stated GitHub repository of ICE-tracker
106 stars

This strategy backtests a long Bollinger Band deal on the price chart for 3Commas-style bots. It plots short and long simple moving averages, offset bands, and the average entry price of the open deal. A long starts when price crosses the lower band inside a c

Strategy v4 Volatility & bandsMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of 3Commas Bollinger Strategy

Ichimoku Cloud

by mihakralj
99 stars

This indicator plots the five classic Ichimoku components on the price chart. It calculates Tenkan-sen, Kijun-sen, and Senkou Span B as midpoints of the highest high and lowest low over their periods, then derives Senkou Span A from Tenkan and Kijun. Chikou Sp

Indicator v6 TrendSupport & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ichimoku Cloud

My Script

by be-thomas
65 stars

My Script is a minimal Pine Script v4 visual example that demonstrates how to align text inside a drawing label. It creates a persistent label on the chart using a var declaration and sets its text alignment to right. On each new price bar, the script updates

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

TRIX

by TWODS-CAPITAL
37 stars

This indicator calculates and plots the classic Triple Exponential Average (TRIX) momentum oscillator in a separate pane. It applies a triple exponential moving average to the natural logarithm of closing prices and computes the 1-bar rate of change multiplied

Indicator v5 Oscillators & momentumTrend
Updated 3 years ago · MIT GitHub repository of TRIX

Trailering L007

by ruckard
13 stars

This long-only strategy executes automated cryptocurrency trades designed to interface directly with Zignaly webhooks. It triggers entries when a configurable minimum threshold of sub-strategy conditions are met within a lookback window, adjusting position siz

Strategy v5 Scalping
Updated 1 year ago · None stated GitHub repository of Trailering L007

Welles Wilders MAs - MTF

by eddiebelaval
7 stars

Calculates four Welles Wilder Moving Averages (RMA) using a user-specified timeframe and plots them directly on the price chart. The script tracks short, medium, extension, and long trend lines (default periods 34, 72, 89, and 144). Users can configure timefra

Indicator v5 Moving averagesTrend
Updated 3 months ago · None stated GitHub repository of Welles Wilders MAs - MTF
6 stars

The Shved Supply & Demand indicator identifies and draws dynamic supply and demand zones directly on the price chart using fast and slow pivot points. It determines zone height using an ATR multiplier and categorizes levels by strength, including untested, ver

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of Shved Supply & Demand Optimized
3 stars

Matt Moheeka Candles repaints price chart candles using custom color rules based on session timing and price action structures. It identifies and highlights session opening candles, long-wick reversal candles such as hammers or shooting stars, and doji pattern

Indicator v5 Candlestick patternsSessions & time
Updated 5 months ago · None stated GitHub repository of Matt Moheeka Candles

Kernel Regression Toolkit

by regalouisei
2 stars

The Kernel Regression Toolkit calculates and plots non-linear regression estimations directly on the price chart. It provides multiple configurable kernel regression lines using functions such as Rational Quadratic, Gaussian, Periodic, and Locally Periodic ker

Indicator v5 TrendMoving averages
Updated 8 months ago · None stated GitHub repository of Kernel Regression Toolkit
1 stars

This strategy places long and short entries on the price chart at fixed daily times of 8:00 and 20:00. It uses fixed position sizing of 1 share with pyramiding set to 1, so only one position is held. At entry it immediately sets a three-way bracket exit that i

Strategy v6 ScalpingSessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 88 - 3-way exit set once

Moving Box{Morindok}

by morindok
1 stars

This indicator plots geometric structures and moving averages directly on the price chart. It calculates a simple moving average alongside periodic high and low extremes to construct shapes such as boxes, rhombuses, ellipses, or spirals using polylines. Users

Indicator v5 Moving averagesSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Moving Box{Morindok}
1 stars

A price-chart indicator that plots a zero-lag EMA with an ATR band around it. The trend flips long when price closes above the upper band and short when it closes below the lower band, marked with buy and sell labels and a shaded channel. Optional features inc

Indicator v5 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of Adaptive Zero-Lag Reversal Engine

Squarify 64

by nishpa800
1 stars

Overlays up to 64 buy and sell marker signals on the price chart, built from standard deviation displacement, pullback pockets, relative volume tiers and fair value gap structures. Inputs set displacement multipliers, a first-bar-only switch and per-signal tog

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Squarify 64

TnS_ICT_Combo_V6

by raybird
1 stars

TnSovereignIctComboV6 is a multi-confluence ICT SMC strategy on the price chart. It calculates HTF EMA bias, killzone sessions, FVG detection, liquidity sweeps, market structure shifts, premium discount arrays and V17 fractal gate to achieve minimum confluence

Strategy v6 SMC / ICT / price actionTrend
Updated 2 months ago · None stated GitHub repository of TnS_ICT_Combo_V6
1 stars

A Pine Script v4 indicator on the price chart that draws a moving average wave, a channel of exponential averages on the high, close and low with a default length of 38, centred on a chosen source. It can also colour candles by whether they close above, below

Indicator v4 Moving averagesTrend
Updated 6 months ago · None stated GitHub repository of ZLEMA Wave and GRaB Candles Alt2

ILMN-tracker

by Allen1212
303 stars

This indicator visualizes historical trade records executed by ARK Invest for Illumina (ILMN) directly on the price chart. It plots green buy labels below bars and red sell labels above bars at hardcoded historical timestamps, noting how many Ark ETFs traded o

Indicator v4
Updated 2 years ago · None stated GitHub repository of ILMN-tracker
106 stars

3x Supertrend and Stoch RSI is an overlay strategy combining three Supertrend indicators with Stochastic RSI momentum and a 200-period Exponential Moving Average. It uses the 200 EMA to establish the primary trend direction, requiring agreement across fast, me

Strategy v4 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of 3x Supertrend and Stoch RSI

Inertia Oscillator

by mihakralj
99 stars

This indicator calculates the Inertia Oscillator, measuring market trend strength based on the distance between price and its linear regression value. Over a user-defined length and price source, it computes the linear regression line and calculates the curren

Indicator v6 TrendOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Inertia Oscillator

My Script

by be-thomas
65 stars

This script is a minimal documentation example demonstrating basic Pine Script syntax. It takes the closing price series of the current symbol and displays it as shapes in a separate indicator pane. It does not include configurable user inputs, signal logic, o

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

True Strength Indicator

by TWODS-CAPITAL
37 stars

This indicator plots the True Strength Index in a separate pane. It double-smooths price change and absolute price change with exponential moving averages, then expresses their ratio as a percentage. A signal line is an exponential moving average of that value

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of True Strength Indicator

Trailering M008

by ruckard
13 stars

Trailering M008 is a Pine Script v5 long-only strategy that draws on the price chart and sends orders through Zignaly alerts. It increases capital as more trigger conditions are met and sets take profit from a percentage or a risk-reward ratio, using price exc

Strategy v5
Updated 1 year ago · None stated GitHub repository of Trailering M008
6 stars

This indicator plots smart-money market structure on the price chart. It marks internal and swing breaks of structure and changes of character, order blocks, equal highs and lows, fair value gaps, multi-timeframe highs and lows, and premium and discount zones.

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of Smart Money Concepts [LuxAlgo]
3 stars

This indicator combines Bollinger Bands, fractal detection, and RSI-based swing analysis within a customizable trading session. It identifies regular or Bill Williams fractals during active session hours and generates long or short signals when fractal extreme

Indicator v5 Volatility & bandsSessions & time
Updated 5 months ago · None stated GitHub repository of MCF and Trendy Pipsy
2 stars

This indicator splits volume into buying and selling portions from candle body and wick proportions, then measures the linear-regression slope of those series over a chosen period. It plots the resulting trend strength in a separate pane as columns or another

Indicator v5 VolumeTrend
Updated 8 months ago · None stated GitHub repository of KINSKI Volume Regression Trend

This Pine Script strategy acts as a validation probe to examine TradingView order execution when using trail_points without an explicit trail_offset. It enters a long position at 08:00 and a short position at 20:00 when flat, setting wide 5% protective stop-lo

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 89 - trail_points 8 + far stop/limit

Octahedron

by morindok
1 stars

Octahedron draws a geometric shape on the price chart using two user-defined points for time and price. It computes the delta between those points and plots eight blue polylines connecting points at fixed ratios to form the outline of an octahedron. The main s

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Octahedron

Apex Ultra Engine v3

by vedkanani123
1 stars

An overlay indicator built on a zero-lag EMA with an ATR trailing stop. It reads market regime from ADX, adds RSI and Stochastic RSI momentum filters, and treats volume or oversized candles as spikes with a cooldown. Entries can display three take profit level

Indicator v5 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Apex Ultra Engine v3

Squarify Atoms v1

by nishpa800
1 stars

A companion verification indicator that exposes only the basic building-block signals, about 60 marker plots, with no combinations. All plots are off by default and each toggle explains its definition. The combination plots, alert aggregator and statistics are

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Squarify Atoms v1

TnS_ICT_V20

by raybird
1 stars

TnS_ICT_V20 is a Pine Script v6 strategy that identifies institutional trading opportunities using ICT concepts. It calculates pivot swings as support and resistance levels, OTE zones, and a thermodynamic audit based on free energy and fractal entropy to filte

Strategy v6 SMC / ICT / price actionTrend
Updated 2 months ago · None stated GitHub repository of TnS_ICT_V20

INCR-tracker

by Allen1212
303 stars

This overlay indicator marks ARK Invest activity for the INCR listing on the price chart. When the ETF input is ALL, it draws red labels above bars on fixed calendar dates, each reading a one-fund sell. The only setting selects the ETF filter, and the publishe

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

This Pine Script indicator plots a ZigZag on the price chart. It identifies reversal points when price moves more than a set percentage from the last pivot. The script calculates forecasts using zigzag data and labels detected geometric patterns including harm

Indicator v4 TrendSupport & resistance
106 stars

The 3x SuperTrend Strategy combines three SuperTrend indicators, a 200-period Exponential Moving Average trend filter, and a Stochastic RSI oscillator to generate entry signals. Long trades require price to be above the 200 EMA with Stochastic RSI crossing up

Strategy v4 TrendOscillators & momentum Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of 3x SuperTrend Strategy (Mel0nTek)
99 stars

This indicator calculates the interquartile range of a chosen price source over a lookback window. It estimates the 25th and 75th percentiles with linear interpolation, then plots their difference as a line in a separate pane. The source and lookback period ar

Indicator v6 Volatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Interquartile Range (IQR)

My Script

by be-thomas
65 stars

This indicator draws a single text label on the price chart. On the realtime bar only, it places a label ten bars back with the text Label, positioned above the bar using yloc.abovebar. It does not calculate oscillators, moving averages, or trade signals, and

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

Tweezer Bottom - Bullish

by TWODS-CAPITAL
37 stars

This indicator detects Tweezer Bottom Bullish candlestick patterns on the price chart. It identifies a two-candle reversal during an uptrend, with the first candle long and red followed by a green candle with nearly identical lows. The script calculates trend

Indicator v5 Candlestick patterns
Updated 3 years ago · MIT GitHub repository of Tweezer Bottom - Bullish

Trailering N006

by ruckard
13 stars

Trailering N006 is a crypto strategy framework designed for automated execution via Zignaly alerts. It calculates trade signals based on price excursion logic across lookback periods to enter positions with dynamic capital sizing. Key settings allow filtering

Strategy v5 TrendScalping
Updated 1 year ago · None stated GitHub repository of Trailering N006
7 stars

This indicator identifies a specific anchor candle based on user-defined start hour, start minute, and time zone inputs. It calculates the high-to-low price range of that anchor bar to project entry levels, stop losses, and target levels for both buy and sell

Indicator v5 BreakoutSupport & resistance
Updated 3 months ago · None stated GitHub repository of XAUUSD Dynamic Breakout + SL Points

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