Synced with GitHub · updated today

Free TradingView Pine Scripts

8,340 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
8,340 scripts
2 stars

This indicator calculates real-time risk metrics and position duration limits based on Average True Range (ATR) volatility. It estimates how many minutes a position can remain open before hitting maximum allowable drawdown, considering user inputs for account

Indicator v5 Volatility & bandsScreeners & dashboards Repaints
Updated 9 months ago · None stated GitHub repository of Espérance de Vie Trading - ATR
2 stars

This indicator calculates the Bollinger Band Width Percentile (BBWP) across multiple selectable timeframes to assess relative volatility levels. It evaluates the current bandwidth against historical lookback periods and plots percentile values alongside moving

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Bollinger Band Width Percentile - Multi Time Frame

This indicator plots Bollinger Bands and Keltner Channel on the price chart to analyze volatility and price action. It supports switching between Bollinger Bands, Keltner Channel, Parallel Channels, and VWAP Bands. Users select the source price, moving average

Indicator v6 Volatility & bandsMoving averages
Updated 9 months ago · MPL-2.0 GitHub repository of Bollinger Bands + Keltner Channel Refurbished

BMNR Power Law

by 0xDkd
2 stars

BMNR Power Law is a crypto-focused valuation channel indicator that plots dynamic power law bands on the main chart. It calculates top, middle, and bottom valuation lines using exponential model parameters applied to daily prices. An optional Average True Rang

Indicator v5 Support & resistanceVolatility & bands Repaints
Updated 9 months ago · MIT GitHub repository of BMNR Power Law

This indicator detects breakout signals on the price chart when volume exceeds a threshold, a gap appears, or a strong candle forms, combined with an upward MA50 trend. It plots MA10, MA50, MA150 and MA200 for reference and places entry and exit labels directl

Indicator v6 BreakoutMoving averages
Updated 10 months ago · MIT GitHub repository of Breakout Strategie + MA Labels + Stops

HMACross Algobid

by Algobid-ir
2 stars

HMACross Algobid calculates and plots a Hull Moving Average (HMA) with trend signal indicators directly on the main price chart. It evaluates multi-timeframe market data across four user-defined timeframes and incorporates an optional Average Directional Index

Indicator v5 TrendMoving averages Repaints
Updated 10 months ago · None stated GitHub repository of HMACross Algobid

QQE + AK Trend + EFI

by realanthonyc
2 stars

Combines Quantitative Qualitative Estimation (QQE), AK Trend calculation, and Elder Force Index (EFI) into a single indicator pane. It calculates a smoothed RSI-based QQE histogram with Wilder's ATR factor, integrates dynamic timeframe scaling for the AK Trend

Indicator v6 Oscillators & momentumTrend
Updated 10 months ago · MPL-2.0 GitHub repository of QQE + AK Trend + EFI

EMA Trend Surfer

by nxtaiapp
2 stars

EMA Trend Surfer is a dual-timeframe trend-following strategy designed for index futures such as MES and MNQ. It determines overall trend direction using fast and slow exponential moving averages on a higher timeframe while seeking entry signals on a lower tim

Strategy v5 TrendMoving averages
Updated 11 months ago · MIT GitHub repository of EMA Trend Surfer
2 stars

Better Volume PRO v2.0 calculates volume distribution, estimating buying and selling pressure to derive a volume delta and confidence score. The confidence scoring system evaluates candle structure, VWAP coherence, relative volume, and multi-bar consistency. H

Indicator v6 VolumeScreeners & dashboards
Updated 11 months ago · MIT GitHub repository of Better Volume PRO v2.0 (Enhanced + Stats)

[TradingX] SMA|EMA

by TradingX-TF
2 stars

This indicator plots six moving averages on the price chart. Each line is independently set as an SMA or EMA, with default lengths of 11, 22, 50, 100, 200 and 360. It draws colored plots and optional labels that name each length and type. When enabled, it high

Indicator v6 Moving averages
Updated 11 months ago · None stated GitHub repository of [TradingX] SMA|EMA

Magic Sequential 9

by realanthonyc
2 stars

Magic Sequential 9 tracks price sequences by comparing the current close to the close four bars prior, drawing numerical markers on the chart for counts seven, eight, and nine. It incorporates an optional Average True Range volatility threshold to filter out s

Indicator v6 TrendVolatility & bands
Updated 11 months ago · MPL-2.0 GitHub repository of Magic Sequential 9
2 stars

The MA/EMA + RSI Trend & Pullback indicator combines moving averages with the RSI oscillator to determine trend direction and identify pullback opportunities for entries and exits. It plots fast and slow MAs on the price chart along with the RSI, and applies b

Indicator v6 TrendOscillators & momentum
Updated 11 months ago · None stated GitHub repository of MA/EMA + RSI Trend & Pullback

FVG [atrader934]

by Ahmedhub934
2 stars

The script identifies bullish and bearish Fair Value Gaps (FVGs) on the current or specified timeframe. It plots auto-updating boxes and labels directly on the price chart to highlight detected gaps. Main settings control box extension in bars, fill and border

Indicator v6 SMC / ICT / price action Repaints
Updated 11 months ago · MIT GitHub repository of FVG [atrader934]

Normalized EFI

by realanthonyc
2 stars

Normalized EFI calculates a normalized variation of the Elder Force Index and plots it as an oscillator in a separate pane alongside a zero baseline. It scales percentage price changes by relative volume, defined as current volume divided by an exponential mov

Indicator v6 VolumeOscillators & momentum
Updated 11 months ago · MPL-2.0 GitHub repository of Normalized EFI
2 stars

This indicator identifies swing pivot points using an external signal library configured with depth, deviation, and backstep parameters. It calculates market direction changes and plots buy and sell signal labels directly on the price chart. Users can configur

Indicator v6 Support & resistanceTrend Repaints
Updated 12 months ago · None stated GitHub repository of Buysellsignal-Yashgode9

VWAP Price Channel Enhanced

by realanthonyc
2 stars

Calculates an adaptive price channel anchored to Donchian extremes, combining VWAP resets on dynamic highs and lows. The indicator automatically toggles between short-term and long-term calculation lengths based on the chosen timeframe. It plots upper and lowe

Indicator v6 TrendVolatility & bands
Updated 1 year ago · MPL-2.0 GitHub repository of VWAP Price Channel Enhanced

This indicator combines five technical metrics normalized between 0 and 100 in a separate pane: RSI (with optional divergence detection), Stochastic, Relative Volatility Index (RVI), Average Directional Index (ADX), and Money Flow Index (MFI). Users can select

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of TLC 0 to 100 Five Indicators VolMom

This indicator automatically detects and plots support and resistance areas on the price chart. It identifies reversal patterns using candlestick spikes, pivot points, and trend analysis while applying noise filtering for small candles. Areas get shaded with c

Indicator v6 Support & resistanceTrend
Updated 1 year ago · None stated GitHub repository of Trend Areas - Support/Resistance

2Mars - MA / BB / SuperTrend

by wynnforthework
2 stars

This strategy combines moving averages, Bollinger Bands, and SuperTrend indicators to generate long and short entry signals. It uses configurable moving average crossovers and Bollinger Band threshold levels for trade execution, complemented by optional SuperT

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of 2Mars - MA / BB / SuperTrend
2 stars

The Covered Calls Optimizer indicator helps traders analyze covered call option strategies directly on price charts. It calculates target strike prices and estimated yields based on stock volatility (ATR and 20-day historical volatility) and user-defined risk

Indicator v5 Volatility & bandsSupport & resistance
Updated 1 year ago · MIT GitHub repository of Covered Calls Optimizer
2 stars

The Multi EMA + VWAP Combo indicator consolidates five Exponential Moving Averages (EMAs) and a Volume Weighted Average Price (VWAP) into a single chart overlay. It calculates five configurable EMAs (defaulting to 9, 21, 50, 100, and 200 periods) to track mult

Indicator v6 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of Multi EMA + VWAP Combo

Complexity Trender

by panzmoravylab
2 stars

Complexity Trender is an indicator that combines EMA crossovers, RSI momentum, Stochastic signals, Bollinger Bands, ADX trend strength, volume analysis, and divergence detection to identify trends. It plots labels, trend lines, and a summary table directly on

Indicator v6 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Complexity Trender

Trend Analyzer EMA Only

by panzmoravylab
2 stars

Trend Analyzer EMA Only is a price-chart indicator that compares a fast and a slow exponential moving average. It marks BUY and SELL when the averages cross, and it treats a trend as up or down only when both slopes agree and their relative gap exceeds a neutr

Indicator v6 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Trend Analyzer EMA Only
2 stars

This indicator plots an Exponential Moving Average directly on the price chart and dynamically changes its color based on the market trend. When the closing price is above the moving average, the line and background tint turn green to indicate bullish conditio

Indicator v6 Moving averagesTrend
Updated 1 year ago · MIT GitHub repository of 200 EMA with Trend Color
2 stars

Support/Resistence MTF indicator plots support and resistance levels on the price chart by detecting pivots across multiple configurable timeframes. It identifies turning points using ta.pivothigh and ta.pivotlow functions, then consolidates nearby levels into

Indicator v5 Support & resistance Repaints
Updated 1 year ago · MIT GitHub repository of Support/Resistence MTF

RSI Strategy

by vanAmsen
2 stars

The RSI Strategy plots the Relative Strength Index (RSI) on the chart with oversold and overbought level lines. Long entries trigger when RSI crosses above the oversold threshold, and short entries when it crosses below the overbought threshold. Positions exit

Strategy v5 Oscillators & momentum
Updated 1 year ago · GPL-3.0 GitHub repository of RSI Strategy

15M

by etnt
2 stars

15M is an intraday chart overlay designed for 15-minute timeframes. It plots a volume-weighted moving average (VWMA) alongside a simulated 5-day moving average calculated from user-defined daily trading hours. The script detects several classic candlestick pat

Indicator v6 Moving averagesCandlestick patterns
Updated 1 year ago · MPL-2.0 GitHub repository of 15M

Color

by Electrified-Trading
2 stars

Color is a Pine Script utility library designed for advanced color manipulation and comparison within scripts. It provides helper methods to compare two color instances across RGB and transparency channels, calculate relative color luminosity, and determine hi

Library v6
Updated 1 year ago · MPL-2.0 GitHub repository of Color
2 stars

The Multi-Indicator Trading System is an indicator that plots EMAs on the price chart. It calculates EMA50 and EMA200 crossovers on the 15-minute timeframe, with optional trend filters from 1H or 4H timeframes. Confirmations come from RSI, MACD, Bollinger Band

Indicator v6 TrendMoving averages
Updated 1 year ago · MIT GitHub repository of Multi-Indicator Trading System

Custom Strong Levels

by ashwagamma
2 stars

This indicator identifies key support and resistance price levels and automatically plots trendlines connecting major highs and lows directly on the price chart. It tracks price structure using custom level objects and processes 1-minute lower timeframe data t

Indicator v6 Support & resistanceTrend
Updated 1 year ago · None stated GitHub repository of Custom Strong Levels

The Smart Money Liquidity Heatmap indicator identifies potential institutional liquidity zones on the main price chart. It compares Smart Money Index (derived from NVI) against Dumb Money Index (derived from PVI) relative to their moving averages and RSI value

Indicator v5 SMC / ICT / price actionVolume
Updated 1 year ago · None stated GitHub repository of Smart Money Liquidity Heatmap [AlgoAlpha]
2 stars

The Kairi Relative Index with Arrows indicator calculates the percentage deviation of a chosen price source relative to its Simple Moving Average. It plots green and red arrows when the KRI crosses above or below the zero line, signaling potential bullish or b

Indicator v6 Oscillators & momentumMoving averages
Updated 1 year ago · MIT GitHub repository of Kairi Relative Index with Arrows

This indicator identifies Smart Money Concepts structure alongside a four-line moving average ribbon on the price chart. It detects swing highs and lows across a user-defined lookback period, generating price action labels such as higher highs, lower highs, hi

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of FluidTrades - SMC Lite + Moving Average Ribbon

Tik 1 USD

by keiru517
2 stars

Tik 1 USD is an overlay indicator that plots a grid of horizontal price level lines across a specified price range. The script iterates from a configurable start ratio to an end ratio in fixed increments, drawing color-coded extended lines directly on the main

Indicator v6 Support & resistance
Updated 1 year ago · None stated GitHub repository of Tik 1 USD

This indicator identifies bullish and bearish Fair Value Gaps (FVG) on the main price chart based on three-bar price imbalances. It features an optional ATR-based displacement filter to isolate gaps formed during strong market momentum. Detected gaps are displ

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · GPL-3.0 GitHub repository of Pro SMC Fair Value Gap (FVG) Indicator
2 stars

This indicator tracks and visualizes the previous hourly price range directly on the chart. When an hourly bar closes, it draws a shaded rectangular box spanning the highest and lowest prices of that 60-minute period. As a new hourly session forms, earlier box

Indicator v6 Support & resistanceSessions & time
Updated 1 year ago · MPL-2.0 GitHub repository of PriceCatch - Previous Hour Range

1-Minute ATR Table

by ryangaraygay
2 stars

This indicator calculates 1-minute Average True Range (ATR) values for three different period lengths: 5, 8, and 14. It applies predefined multipliers to these ATR values to compute estimated stop-loss distances in price ticks. The output is displayed in a cus

Indicator v6 Volatility & bandsScreeners & dashboards
Updated 1 year ago · MIT GitHub repository of 1-Minute ATR Table

Table Test

by hikari112
2 stars

Table Test is a Pine Script v6 indicator that renders a precomputed ASCII-art image in a table in a separate pane. Integer arrays store character indexes for each image row, and the script maps those indexes to ASCII glyphs so the picture appears as text. A si

Indicator v6
Updated 1 year ago · None stated GitHub repository of Table Test
2 stars

The indicator calculates volatility-based stepped support and resistance levels overlaying the price chart. It tracks a central average that shifts incrementally when price exceeds an ATR-scaled boundary. From this baseline, it projects two upper resistance le

Indicator v5 Support & resistanceVolatility & bands
Updated 1 year ago · Custom licence GitHub repository of Predictive Ranges [LuxAlgo]

Logan Bollinger Bands

by RsKBruno
2 stars

This Pine Script strategy plots Bollinger Bands on the price chart using a central line and standard deviation for volatility detection. It includes an optional EMA trend filter and ADX strength filter to refine signals. The strategy allows buy or sell entries

Strategy v5 Volatility & bandsMoving averages
Updated 1 year ago · MIT GitHub repository of Logan Bollinger Bands

ICT Macros

by klimasevskiy
2 stars

The ICT Macros indicator plots volatility periods based on ICT smart money concepts on the price chart. It highlights London Macros (02:33-03:00, 04:03-04:30), New York AM Macros (08:50-09:10, 09:50-10:10, 10:50-11:10), and New York Lunch + PM Macros (11:50-12

Indicator v5 Volatility & bandsSupport & resistance
Updated 1 year ago · None stated GitHub repository of ICT Macros

Advance Trading Script

by devgaganin
2 stars

This overlay indicator applies a recursive multi-pole filter to a chosen price source and is set up to scale that filter with a filtered true range. The pole count selects the filter order from one to nine, while the sampling period controls how quickly the sm

Indicator v6 TrendMoving averages
Updated 1 year ago · GPL-3.0 GitHub repository of Advance Trading Script
2 stars

This indicator marks regular New York Stock Exchange (NYSE) session open (9:30 AM ET) and close (4:00 PM ET) times directly on the price chart. It draws vertical lines and descriptive text labels at historical session boundaries and projects lines forward for

Indicator v6 Sessions & time
Updated 1 year ago · MIT GitHub repository of NYSE Market Lines & Labels

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