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

Performance

by regalouisei
2 stars

The Performance indicator calculates percentage price changes across multiple customizable higher timeframes, displaying the results in an on-screen dashboard table overlay. Users can toggle up to nine timeframes, including weekly, monthly, and multi-month per

Indicator v5 Screeners & dashboards Repaints
Updated 8 months ago · None stated GitHub repository of Performance
1 stars

This strategy maintains a market regime state based on breaks through recent pivot highs and lows. It tracks pivot levels with user-set strength and flips from neutral to bull on price closing above the last pivot high or to bear on closing below the last pivo

Strategy v6 TrendSupport & resistance
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe Market-Shift-Probe-01-Shift-State

VOB v11.10

by nishpa800
1 stars

Detects volume order block zones from six moving average pairs at different sensitivity lengths and draws them on the price chart. It marks ladder patterns across the six tiers, multi-zone coincidences on a single candle, tier clusters and all-time-high-volume

Indicator v5 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB v11.10
1 stars

TnSovereignSignalForgeV20 is a price-chart strategy that combines seven directional votes from RSI, EMA, MACD, volume, VWAP, Bollinger Bands, and a volume oscillator. A long condition requires the vote total to meet a minimum agreement setting. A thermodynamic

Strategy v6 Oscillators & momentumMoving averages
Updated 2 months ago · None stated GitHub repository of TnSovereignSignalForgeV20

MGIC-tracker

by Allen1212
303 stars

The MGIC-tracker is a TradingView indicator that overlays ARK Invest trade records onto stock price charts. It plots buy and sell labels at the exact timestamp of each transaction, showing share volume and ETF weight. Users select a specific ETF type via setti

Indicator v4 Support & resistanceVolume
Updated 2 years ago · None stated GitHub repository of MGIC-tracker
106 stars

This multi-indicator strategy provides selectable trading engines based on crossing RSI, Connors RSI, MACD, EMA crossovers, or Stochastic oscillators. It enters long, short, or bidirectional positions within a specified date window when the selected indicator

Strategy v4 Oscillators & momentumMoving averages Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of All in One Strategy no RSI Label
99 stars

This script calculates Bill Williams' Market Facilitation Index (BW MFI) to evaluate price movement efficiency relative to trading volume. It computes the range between the high and low prices divided by volume for each bar, returning zero when volume is zero.

Indicator v6 VolumeVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Market Facilitation Index (MARKETFI)

Revers Demo

by be-thomas
65 stars

Demonstrates basic strategy position reversal mechanics during the first 100 bars of historical data. The strategy enters a long position of size four when market position is non-positive, and reverses into a short position of size six when market position is

Strategy v4
Updated 5 days ago · GPL-3.0 GitHub repository of Revers Demo
3 stars

Calculates and projects multi-timeframe supply and demand zones directly on the price chart. The indicator identifies pivot points and renders colored zone boxes across configurable timeframes ranging from 5 minutes to 1 week. Settings allow users to adjust pi

Indicator v5 Support & resistanceSMC / ICT / price action Repaints
Updated 5 months ago · None stated GitHub repository of MTF Supply/Demand

Point of Control

by regalouisei
2 stars

This indicator tracks and plots the Point of Control (POC) directly on the price chart by distributing volume across discrete price increments. It can reset calculations daily, weekly, or after a custom number of bars. Additional options allow plotting histori

Indicator v5 VolumeSupport & resistance
Updated 8 months ago · None stated GitHub repository of Point of Control

This Pine Script strategy computes rolling highest and lowest prices over a user-set window. It draws reference levels on the price chart and issues long signals on close crossing the prior rolling low plus short signals on close crossing the prior rolling hig

Strategy v6 TrendSupport & resistance
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe market-shift-probe-02-rolling-extreme
1 stars

A momentum oscillator in a separate pane that compares upward and downward candle force over a lookback of 21 bars, scaled from minus 100 to plus 100, then smooths it with a short average and adds a signal line and histogram. Overbought and oversold levels def

Indicator v5 Oscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of Spiral Trend Exhaustion (STE) Pro

VOB v11.10 Tick

by nishpa800
1 stars

Detects volume order block zones from six moving average pairs at different sensitivity lengths and draws them on the price chart. It marks ladder patterns across the six tiers, multi-zone coincidences on a single candle, tier clusters and all-time-high-volume

Indicator v5 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB v11.10 Tick
1 stars

This strategy plots on the price chart and combines seven scored models into a weighted composite. It scores RSI extremes, volume spikes against a 20-bar average, price versus VWAP, EMA 9 and 21 alignment, MACD direction, Bollinger band location, and an estima

Strategy v6 Oscillators & momentumMoving averages
Updated 2 months ago · None stated GitHub repository of TnSovereignSignalForgeV6

MKFG-tracker

by Allen1212
303 stars

This overlay indicator marks historical ARK Invest purchases and sales of MKFG on the price chart. It places dated labels below bars for buys and above bars for sells, including a count of how many selected funds traded that day. The ETF input switches between

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

All-time-high

by hasnocool
106 stars

This strategy tracks the highest price on the chart and plots that all-time high plus bands at 90, 80, and 70 percent of it. It enters a long when the close falls below a user-set fraction of the high, defaulting to 80 percent, using full equity. It closes the

Strategy v4 Support & resistanceMean reversion
Updated 2 years ago · GPL-3.0 GitHub repository of All-time-high

Mean %Error (MPE)

by mihakralj
99 stars

Mean %Error measures the average percentage difference between an input price series and a predicted target, set by default to its Exponential Moving Average. It calculates individual bar percentage errors and computes a sliding average over a customizable loo

Indicator v6 Moving averagesVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Mean %Error (MPE)

RMA in for loop

by be-thomas
65 stars

This indicator sums two running moving averages of the close and plots that total in a separate pane. A for loop from 1 to 2 adds rma of close for each length into a running sum, then plots the result. There are no user inputs, so the lengths stay fixed at 1 a

Indicator v4 Moving averages
Updated 5 days ago · GPL-3.0 GitHub repository of RMA in for loop
3 stars

This indicator draws multi-timeframe supply and demand zones as boxes on the price chart. It uses a swing length to locate pivots and a width setting to set zone thickness, and it can optionally add one-minute and five-minute zones. Users can allow overlapping

Indicator v5 Support & resistanceSMC / ICT / price action Repaints
Updated 5 months ago · None stated GitHub repository of MTF Supply/Demand v2

This indicator enables traders to construct and evaluate a custom multi-asset portfolio directly on the chart. Users can select multiple symbols, assign specific weighting percentages, and designate long or short positions. It calculates cumulative percentage

Indicator v5 Screeners & dashboards
Updated 8 months ago · None stated GitHub repository of Portfolio Laboratory [Kioseff Trading]
1 stars

This strategy composes confirmed pivot breaks, a rolling price extreme, and a state-edge detector into overlay entries on the price chart. Market state turns bullish when close breaks the latest confirmed pivot high and bearish on a break of the latest pivot l

Strategy v6 Support & resistanceBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe market-shift-probe-integration

VOB v11.11

by nishpa800
1 stars

Detects volume order block zones from six moving average pairs at different sensitivity lengths and draws them on the price chart. It marks ladder patterns across the six tiers, multi-zone coincidences on one candle, tier clusters and all-time-high-volume bars

Indicator v5 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB v11.11
1 stars

This strategy plots on the price chart and measures fractal efficiency over 10, 20, and 40 bars. It multiplies those efficiencies into a connectivity score and requires a volume z-score above a threshold. A long opens when connectivity is high, the 10-bar aver

Strategy v6 TrendVolume
Updated 2 months ago · None stated GitHub repository of TnSovereignTopologicalSutureV6

MKTX-tracker

by Allen1212
303 stars

This indicator plots historical ARK Invest purchase and sale records for MKTX directly on the price chart. It renders visual labels below or above price bars at specific timestamps, indicating buy actions and the volume multiplier of involved funds. The input

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

Calculates the correlation coefficient and covariance between the current crypto asset and a reference market index, such as CRYPTOCAP:TOTAL2, using higher-timeframe data. It tracks percentage price changes in rolling arrays to compute correlation alongside a

Strategy v4 TrendMoving averages Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Altcoin Correlation Meter
99 stars

Calculates the Mean Absolute Percentage Deviation (MAPD) between a chosen price source and its exponential moving average over a specified period. It measures relative dispersion by averaging percentage differences using an internal circular buffer algorithm.

Indicator v6 Volatility & bandsMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Mean Absolute %Deviation (MAPD)

Searching in Arrays

by be-thomas
65 stars

This educational script demonstrates how to search for specific elements within array structures in Pine Script. It initializes a floating-point array with predefined numbers and checks for the presence of a user-specified input value on the final chart bar. U

Indicator v4
Updated 5 days ago · GPL-3.0 GitHub repository of Searching in Arrays
3 stars

This indicator plots four simple moving averages of periods 5, 10, 20, and 50 on the price chart. It calculates and sends alert conditions for every pairwise crossover and crossunder between the moving averages, including MA5 cross above MA10, MA10 cross above

Indicator v5 Moving averagesTrend
Updated 5 months ago · None stated GitHub repository of Multi MA Crossover Alerts

Probability Cones

by regalouisei
2 stars

Calculates and projects statistical probability cones forward onto the price chart based on historical sample data over a selectable lookback period. It supports standard deviation, Laplace distribution, and absolute deviation calculation methods. The cone anc

Indicator v5 Volatility & bandsSupport & resistance
Updated 8 months ago · None stated GitHub repository of Probability Cones
1 stars

This strategy enters trades based on EMA crossovers and manages exits with tight tick-based bracket orders on the price chart. It calculates fast and slow Exponential Moving Averages, triggering long entries on bullish crossovers and short entries on bearish c

Strategy v6 Moving averagesScalping
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe Scalping Tight TP SL Points

VOB v11.11 Tick

by nishpa800
1 stars

Detects volume order block zones from six moving average pairs at different sensitivity lengths and draws them on the price chart. It marks ladder patterns across the six tiers, multi-zone coincidences on one candle, tier clusters and all-time-high-volume bars

Indicator v5 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB v11.11 Tick

MLNX-tracker

by Allen1212
303 stars

This indicator overlays ARK Invest trade marks for MLNX on the price chart. It plots a dated buy label beneath the bar for a recorded purchase, using a green label with a same-day ETF count. The only input selects the ETF view, and the parsed script offers All

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

This strategy executes long-only entries based on moving average pullbacks relative to a 504-period high. It enters when price dips between the 13 and 21 EMAs while remaining within ten percent of the recent high. The script plots green markers on new highs an

Strategy v4 Moving averagesTrend
Updated 2 years ago · GPL-3.0 GitHub repository of AMRS LongOnly PartTimer
99 stars

This indicator calculates the mean absolute percentage error between a chosen price source and an exponential moving average of that same source. It averages absolute percentage differences with a circular buffer over the selected lookback and plots the result

Indicator v6 Moving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Mean Absolute %Error (MAPE)
65 stars

This indicator calculates a 20-period RSI and watches for crosses of the 50 level. It can call alert when RSI crosses above 50 for longs or below 50 for shorts, but only when the matching direction input is enabled. A setting named Allow Repainting, off by def

Indicator v4 Oscillators & momentum
Updated 5 days ago · GPL-3.0 GitHub repository of Selective alert() calls

My Fractals

by g-moe
3 stars

This indicator calculates and plots Bill Williams style swing high and swing low fractals directly on the price chart. It evaluates high and low price relationships across surrounding bars according to a configurable period setting. Reversal points are visuall

Indicator v5 Support & resistanceCandlestick patterns Repaints
Updated 5 months ago · None stated GitHub repository of My Fractals

This indicator provides four selectable analytical datasets directly on the price chart: quartile volume analysis, volume aggregation bars, US range bars, and gap tracking. Depending on the active mode, it plots synthetic candle structures, historical congesti

Indicator v5 VolumeSupport & resistance Repaints
Updated 8 months ago · None stated GitHub repository of Quartile Volume, Volume Aggregation, US Range Bars, Gaps
1 stars

This strategy plots a fast and a slow exponential moving average on the price chart and flips position when they cross. A crossover of the fast EMA above the slow EMA enters one unit long, and a crossunder enters one unit short. There is no stop loss, take pro

Strategy v6 Moving averagesScalping
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe scalping-probe-02-fast-ma-trigger

Spiral{Morindok}

by morindok
1 stars

Spiral{Morindok} draws a geometric spiral on the price chart between a user-selected center point and an edge point. It expands the curve with a growth ratio that defaults to a Fibonacci value, and it lets the user set turn count, start angle, clockwise direct

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Spiral{Morindok}

VOB v11.9

by nishpa800
1 stars

Detects volume order block zones from six pairs of moving averages at different sensitivity lengths and draws them on the price chart. It marks combined events such as strict ladder patterns across the six tiers, multi-zone coincidences on one candle, tier clu

Indicator v5 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB v11.9
1 stars

The strategy calculates the point of control and value area from the volume profile using a lookback of 150 bars and 24 rows. It applies a fast EMA trend filter, a V18 coherence resonance check with minimum threshold of 1.6, and an ATR volatility filter requir

Strategy v6 VolumeSupport & resistance
Updated 2 months ago · None stated GitHub repository of TnSovereignVolumeProfileScalpV6

MLTM-tracker

by Allen1212
303 stars

MLTM-tracker marks recorded ARK Invest activity for the MLTM listing on the price chart. It places timestamped labels above bars for stored sell dates, showing the word Sell and a count such as X1. The only setting is an ETF input whose sole option is ALL, so

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

Aphrodite

by hasnocool
106 stars

This Pine Script strategy overlays signals directly on the price chart, combining pseudo-random normal distribution calculations with price primeness detection. It sizes positions using a fixed percentage of equity and accumulates long entries with heavy pyram

Strategy v4 TrendSupport & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of Aphrodite
99 stars

This indicator calculates the mean absolute error between a selected price source and an exponential moving average of that same source. Absolute differences are averaged with a circular buffer over the chosen period, and the period is limited between 1 and 40

Indicator v6 Moving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Mean Absolute Error (MAE)

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