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

Green Wave | Sathvik

by Gethubsathvik
2 stars

Green Wave plots a Fibonacci golden zone between the latest swing high and swing low on the price chart. It finds the range high and low over a configurable swing length, stores recent pivots, and draws two retracement lines, by default at 0.5 and 0.618, with

Indicator v5 Support & resistance
Updated today · None stated GitHub repository of Green Wave | Sathvik

CNN Fear and Greedy Index

by CasualStudy
2 stars

CNN Fear and Greedy Index plots historical sentiment data from the CNN Fear and Greed Index in a separate pane below the chart. Because Pine Script cannot fetch external API data dynamically, the script utilizes a hardcoded array of daily sentiment values upda

Indicator v6
Updated today · None stated GitHub repository of CNN Fear and Greedy Index

TRH Hunter AI

by davoodepb
2 stars

This indicator identifies Smart Money Concepts and liquidity levels directly on the price chart. It detects equal highs, equal lows, liquidity sweeps, fair value gaps, order blocks, displacement moves, and market structure shifts such as break of structure and

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated yesterday · None stated GitHub repository of TRH Hunter AI
2 stars

This indicator constructs bar-by-bar volume profiles and volume delta distributions directly on the price chart. Utilizing lower-timeframe data through intrabar requests, it calculates volume distribution across a configurable number of price rows per bar, pin

Indicator v6 VolumeSupport & resistance
Updated 2 days ago · None stated GitHub repository of Intrabar Profile [Kioseff Trading]

Divergence Signal Alerts

by allanninal
2 stars

This indicator detects regular and hidden divergences between price and RSI or MACD histogram oscillators, drawing lines and arrows directly on the price chart. It identifies swing highs and lows using configurable left and right pivot lookback windows, evalua

Indicator v6 DivergenceOscillators & momentum
Updated 6 days ago · Custom licence GitHub repository of Divergence Signal Alerts

BTC MA Accumulation v1

by yalili8521
2 stars

BTC MA Accumulation v1 is a scalping strategy designed primarily for 1-minute Bitcoin charts. It identifies trend continuation by requiring a triple moving average stack alongside steady price accumulation or distribution. The script counts consecutive rising

Strategy v6 TrendMoving averages
Updated 7 days ago · None stated GitHub repository of BTC MA Accumulation v1

Sell-Only Strategy

by karma659
2 stars

This short-only strategy identifies sell setups by combining a 3-period RSI overbought condition with a bearish engulfing candlestick pattern. It triggers short entries when the open RSI exceeds 70 and momentum turns downward alongside a bearish engulfing bar.

Strategy v5 Oscillators & momentumCandlestick patterns
Updated 9 days ago · None stated GitHub repository of Sell-Only Strategy

1x MA = Moving Average

by piecioshka
2 stars

This indicator plots a single moving average of user-defined length and type overlaid on the price chart. The average can be SMA, EMA, WMA, VWMA or RMA with default length 50 and EMA type. The line color is also configurable. An optional label at the end of th

Indicator v6 Moving averages
Updated 10 days ago · MIT GitHub repository of 1x MA = Moving Average

MCDX Smart Money

by vtnhqw
2 stars

MCDX Smart Money is a separate pane momentum oscillator that calculates and categorizes momentum components into Banker, Hot Money, and Retailer profiles using modified RSI calculations. The values are computed using configurable RSI periods, bases, and sensit

Indicator v6 Oscillators & momentum
Updated 10 days ago · None stated GitHub repository of MCDX Smart Money

Calculates market volatility, velocity, dynamic VIX thresholds, and multi-timeframe directional bias to assess risk regimes for Nifty index options trading. It computes a danger score based on ATR, VIX rate of change, Bollinger Band width, and price velocity t

Indicator v5 Volatility & bandsScreeners & dashboards
Updated 13 days ago · None stated GitHub repository of NIFTY SpreadGuard V2024 - Mega-Sidebar Sniper

VCP Silver Tier Strategy

by alejandr02820
2 stars

The VCP Silver Tier Strategy is a MACD-based trading system in Pine Script v5 that draws signals on the price chart. It computes the MACD line using fast length 12, slow length 26, and signal length 9. Long entries fire on MACD crossover below zero; short entr

Strategy v5 TrendOscillators & momentum
Updated 2 weeks ago · Custom licence GitHub repository of VCP Silver Tier Strategy

This multi-timeframe indicator plots technical analysis tools directly on the price chart using 1-hour higher timeframe data. It calculates 1-hour Exponential Moving Averages (20, 30, 40), a custom Rank Correlation Index (RCI), and MACD divergence signals. Add

Indicator v6 TrendOscillators & momentum Repaints
Updated 2 weeks ago · None stated GitHub repository of Ver15 Environment Recognition (Provisional Pivot)

OWS Context

by vishnu-vardhan-d
2 stars

This indicator evaluates institutional market structure by tracking five core behaviors: liquidity sweeps with reclaims, stopping volume, range compression and expansion, breaks of structure, and order block mitigations. When a user-defined minimum number of p

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 weeks ago · MIT GitHub repository of OWS Context

ORB Multi-Model Indicator

by BobLeeHacker
2 stars

This indicator plots Opening Range Breakout signals on the price chart for the New York session. It implements nine ORB models with varying conditions including volume filters, RSI thresholds, FVG detection, and compression requirements. Signals display entrie

Indicator v6 BreakoutSupport & resistance
Updated 2 weeks ago · None stated GitHub repository of ORB Multi-Model Indicator
2 stars

The Adaptive Decycler Supertrend indicator plots an adaptive decycler baseline directly on the price chart. It adjusts its cutoff frequency between minimum and maximum bounds based on price efficiency measured over a chosen lookback period. Using the root-mean

Indicator v6 TrendVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Adaptive Decycler Supertrend

FortiTrade Elite Multi-Strategy with DeepSeek Turbo is an overlay trading strategy that combines trend-following, momentum scalping, grid bounds, and external signal inputs. It calculates dynamic volatility-adjusted RSI, adaptive fast and slow EMAs, Bollinger

Strategy v6 TrendOscillators & momentum
Updated 3 weeks ago · MIT GitHub repository of FortiTrade Elite Multi-Strategy with DeepSeek Turbo
2 stars

SMC + POC Signals identifies Smart Money Concepts structure elements including Break of Structure (BOS), Change of Character (CHoCH), Order Blocks, and Fair Value Gaps alongside a rolling Point of Control (POC) volume profile line. It marks potential long and

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 3 weeks ago · None stated GitHub repository of SMC + POC Signals [factor-lab]

SMC Marks

by kxngHADES
2 stars

This Pine Script indicator automatically marks Smart Money Concepts on the price chart. It identifies swing highs and lows as HH, HL, LH, LL using a configurable swing length. It detects breaks of market structure (BMS/BOS) and changes of character (CHoCH), wi

Indicator v6 SMC / ICT / price actionTrend
Updated 4 weeks ago · None stated GitHub repository of SMC Marks

EMA & PVSR Master MP

by midngtpickle
2 stars

This indicator unifies Price Volume Spread Analysis (PVSRA) with a suite of moving averages and VWAP. It calculates volume classifications—flagging climax, above-average, and regular bars—and projects synchronized candle coloring, six customizable EMAs, three

Indicator v6 Moving averagesVolume
Updated 4 weeks ago · Custom licence GitHub repository of EMA & PVSR Master MP

KAMA Values to JSON

by damianhunziker
2 stars

This indicator calculates Kaufman's Adaptive Moving Average (KAMA) and plots it directly on the main price chart. Traders can configure the efficiency ratio length, fast length, and slow length parameter settings. During real-time bar updates, the script store

Indicator v5 Moving averages
Updated 4 weeks ago · Custom licence GitHub repository of KAMA Values to JSON

Crypto Trading Strategy

by AmjadSaidam
2 stars

Crypto Trading Strategy identifies breakout setups on the price chart by combining Bollinger Bands with daily cumulative volume delta. It computes a standard Bollinger Band envelope alongside a daily resetting cumulative volume series normalised into z-scores.

Indicator v6 BreakoutVolume
Updated 4 weeks ago · MIT GitHub repository of Crypto Trading Strategy

MTF OTF Close Filter

by flaviusapop
2 stars

MTF OTF Close Filter calculates multi-timeframe breakout or continuation states by comparing each timeframe's current close to the highest and lowest closes over the prior N bars. It plots a six-cell status table at the bottom right of the chart showing UP, DO

Indicator v5 BreakoutTrend
Updated 5 weeks ago · None stated GitHub repository of MTF OTF Close Filter

STA S&R v2

by balacloud
2 stars

This indicator plots support and resistance levels on the price chart based on pivot detection. It identifies potential reversal points by finding local highs and lows with specified strength. For each level, it counts how many times price has touched or appro

Indicator v6 Support & resistance
Updated 5 weeks ago · None stated GitHub repository of STA S&R v2

Algo

by TamTH-Dev
2 stars

This indicator plots dual Kaufman Adaptive Moving Averages (KAMA) alongside a volume profile component on the main price chart. Users can configure two separate KAMA instances with distinct timeframes, lookback lengths, and fast or slow smoothing limits. The i

Indicator v6 Moving averagesVolume
Updated 5 weeks ago · None stated GitHub repository of Algo

Bridge Protocol Example

by propfirmgorilla
2 stars

This example strategy demonstrates how to format Pine Script order alerts into JSON payloads for automated execution engines. It generates entry signals using a 10-period and 30-period simple moving average crossover and calculates protective stop-loss prices

Strategy v5 Moving averagesTrend
Updated 5 weeks ago · MIT GitHub repository of Bridge Protocol Example

Gamma Levels v3 Auto

by Timonkru
2 stars

Gamma Levels Auto plots daily options-derived dealer gamma levels directly on the price chart. It projects structural levels (7 to 45 DTE) and near-term 0DTE levels, including gamma flip zones, call and put walls, max pain, expected move, and Vanna or Charm st

Indicator v6 Support & resistanceVolatility & bands
Updated 6 weeks ago · MIT GitHub repository of Gamma Levels v3 Auto

This indicator plots Gamma Exposure (GEX) levels, market breakout structures, and session anchors directly on the price chart for ES, SPX, and SPY. It renders key options analytics including Zero Gamma, Max Pain, Call and Put Walls, Volatility Bands, and Delta

Indicator v6 Support & resistanceBreakout
Updated 6 weeks ago · MIT GitHub repository of GEX Levels + Breakout Structure + Session AVWAP — ES/SPX/SPY

Apex Swing System

by omharde42
2 stars

Apex Swing System is a trend and momentum indicator designed for swing trading. It combines a 200-period simple moving average filter, RSI momentum checks, and the Ichimoku Cloud to identify bullish and bearish setups. Upon confirming a signal, it plots fixed

Indicator v6 TrendOscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of Apex Swing System

Trust Me Bro Strategy

by moonyroy
2 stars

A trading strategy that uses an RSI state machine tracking 50-level crossovers, pullbacks, and hidden divergences. Entries require confirmation from optional confluence filters, including an EMA touch, Fibonacci retracement zones, and Ichimoku cloud conditions

Strategy v6 Oscillators & momentumDivergence
Updated 7 weeks ago · MIT GitHub repository of Trust Me Bro Strategy

ICT + FVG + RSI

by Allysson-Rodrigues
2 stars

This multi-timeframe indicator overlays ICT Fair Value Gaps (FVGs) and higher-timeframe candle projections directly onto the price chart. It aggregates price imbalance context across up to six configurable timeframes while maintaining a dynamic multi-timeframe

Indicator v6 SMC / ICT / price actionOscillators & momentum Repaints
Updated 7 weeks ago · MIT GitHub repository of ICT + FVG + RSI
2 stars

Wave Amplitude Levels is an overlay indicator that measures average daily price amplitude as half the daily high-low range, smoothed over a user-set lookback. It requests the previous daily close and that average with a one-bar offset, then plots five stepline

Indicator v6 Support & resistanceVolatility & bands
Updated 7 weeks ago · None stated GitHub repository of Wave Amplitude Levels
2 stars

Crypto Intermarket Correlation calculates rolling Pearson correlation for Bitcoin and Ethereum against a user-selected benchmark symbol, such as stock indices or gold. Displayed in a separate pane, the indicator plots individual crypto correlations along with

Indicator v6
Updated 7 weeks ago · MPL-2.0 GitHub repository of Crypto Intermarket Correlation
2 stars

The Fake Breakout / Breakdown Setup indicator identifies false breakouts (FBO) and false breakdowns (FBD) by tracking liquidity sweeps of previous price highs and lows. It validates reversals using follow-up price action and a confirmation scoring system based

Indicator v6 BreakoutOscillators & momentum
Updated 8 weeks ago · None stated GitHub repository of Fake Breakout / Breakdown Setup
2 stars

This overlay strategy enters long when a fast EMA crosses above a slow EMA, the candle closes above the fast EMA and above its open, and volume is at least a set multiple of its SMA. Position size defaults to 95 percent of equity with no pyramiding. It exits w

Strategy v5 TrendMoving averages
Updated 8 weeks ago · None stated GitHub repository of EMA20/50 ATR Trail Spot

GODMODE Dashboard

by EricMohlathe
2 stars

This indicator visualises multiple smart money concepts and technical analysis modules directly on the price chart. It plots trend EMAs, VWAP bands with standard deviations, market structure breaks and changes of character, Fair Value Gaps, Order Blocks, suppl

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of GODMODE Dashboard

Market Mind Reader

by Lapommeray
2 stars

Market Mind Reader is an overlay strategy that generates buy and sell signals based on user-defined inputs for Federal Reserve bias, DNA pattern states, and liquidity directions. It evaluates alignment across these inputs to calculate a signal confidence score

Strategy v5 SMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Market Mind Reader
2 stars

This overlay indicator demonstrates TradingView alert configuration. It plots 20- and 50-period simple moving averages and creates alert conditions when price crosses the shorter average or the averages cross each other. It also alerts on RSI crossing 70 or 30

Indicator v6 Moving averagesOscillators & momentum
Updated 2 months ago · MIT GitHub repository of Alert Configuration Examples

TFX Gold Sniper - V26 Black-Gold

by vijayavardhanarajumahanandi-cell
2 stars

This indicator calculates a derivative Relative Strength Index using polynomial curve fitting and linear algebra routines to identify market momentum shifts. It displays long, short, and exit signal labels directly on the main price chart alongside risk-to-rew

Indicator v6 Oscillators & momentumTrend
Updated 2 months ago · None stated GitHub repository of TFX Gold Sniper - V26 Black-Gold

This indicator draws automatic support and resistance trend lines on the price chart. It builds them from zigzag pivots set by the pivot period and groups them as major or minor, external or internal, and rising or falling. It can alert when price breaks or re

Indicator v6 Support & resistanceBreakout
Updated 2 months ago · None stated GitHub repository of Auto TrendLines [TradingFinder] Support Resistance Alerts

A-SLP DEMALONG 6M

by danielvm-git
2 stars

This strategy plots up to three double exponential moving averages on the price chart and flags crossovers and crossunders between them. With the third length at zero, it compares the first and second DEMAs; other length combinations change which series is use

Strategy v4 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of A-SLP DEMALONG 6M

FYP Bot 1

by aleks-drozy
2 stars

This strategy executes trades based on a combination of Smart Money Concepts, including Inverse Fair Value Gaps (IFVG) and Change in State of Delivery (CISD) structure breaks. Entries require confluence between IFVG flips, structural CISD breaks, a 20-period e

Strategy v6 SMC / ICT / price actionTrend
Updated 2 months ago · MIT GitHub repository of FYP Bot 1

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