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
16 stars

Seykota Alt 22 is a trend-following strategy combining 55-bar Donchian channel breakouts for entries with a Parabolic SAR trailing stop for exits. Position sizing and initial stop-loss levels are determined using Average True Range (ATR). The strategy supports

Strategy v6 TrendBreakout
Updated 11 months ago · None stated GitHub repository of Seykota Alt 22: Parabolic SAR

Divergenced F002

by ruckard
13 stars

This strategy detects momentum divergences based on shifts between color states of the Squeeze Momentum indicator. It enters long positions when lower price lows form alongside higher oscillator values, and enters short positions on higher price highs with low

Strategy v5 DivergenceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Divergenced F002
10 stars

This indicator overlays buy and sell signals on the price chart by combining multi-period Stochastic oscillators with a Traders Dynamic Index (TDI). It computes three Stochastic oscillators across different lengths and checks if all lengths concurrently reach

Indicator v4 Oscillators & momentumVolatility & bands
Updated 5 years ago · None stated GitHub repository of WE: TDI/STOCH/SIGNALS

This indicator identifies and plots price compression zones directly on the price chart using multi-module scoring. It measures ATR compression, ADX chop levels, boundary touches, volume dry-up, and historical pivot levels to identify consolidation areas and s

Indicator v6 BreakoutSupport & resistance
Updated yesterday · MIT GitHub repository of CoilForge Zones [WavesUnchained]

This indicator applies Singular Spectrum Analysis (SSA) to decompose price data into distinct structural components, including the underlying trend, long-term periodic cycles, short-term periodic cycles, and high-frequency noise. Using a configurable window le

Indicator v6 TrendOscillators & momentum
Updated 4 months ago · MIT GitHub repository of Singular Spectrum Decomposition [LuxAlgo]

TSI Strategy - Eterna MCP

by EternaHybridExchange
9 stars

The TSI Strategy - Eterna MCP calculates the True Strength Index using double-smoothed momentum and an exponential moving average signal line. It opens long positions on bullish signal line crossovers occurring below zero or in oversold territory, and short po

Strategy v5 Oscillators & momentum
Updated 7 months ago · MIT GitHub repository of TSI Strategy - Eterna MCP

|AG| Project

by Anderson-ALGO
9 stars

|AG| Project is a Pine Script v4 indicator that draws four mini charts in a separate pane. It requests open, high, low, and close for user-selected symbols, rescales those values with a stochastic calculation, and plots an exponential moving average of each sc

Indicator v4 Screeners & dashboardsCandlestick patterns
Updated 5 years ago · None stated GitHub repository of |AG| Project
8 stars

This strategy combines moving averages, ATR volatility bands and ADX trend strength on the price chart. It calculates ADX from price data and adjusts the ATR multiplier dynamically based on whether ADX is rising or falling. Long and short entries are controlle

Strategy v4 TrendMoving averages
Updated 4 years ago · None stated GitHub repository of MA+ATR+ADX+PP Strategy

EMA Cloud

by lunarticktrading
7 stars

This indicator plots a fast and a slow exponential moving average on the price chart and fills the space between them as an EMA cloud. The fill is green when the fast average is at or above the slow average and red when it is below. Arrows mark bullish crossov

Indicator v6 Moving averagesTrend
Updated 2 weeks ago · None stated GitHub repository of EMA Cloud

This indicator builds a channel from a Hull moving average of the source and an ATR scaled by a band multiplier, then normalizes price inside that channel into a 0 to 100 oscillator. It smooths the result with a weighted moving average and plots the line in a

Indicator v6 Mean reversionVolatility & bands
Updated 3 months ago · None stated GitHub repository of Radiant Mean Reversion Channels [Pineify]

Bollinger Bands

by suyons
7 stars

This indicator calculates and plots multi-timeframe Bollinger Bands directly on the price chart. Users can select from various moving average types for the basis line, such as SMA, EMA, WMA, HMA, RMA, VWMA, or ALMA, alongside customizable basis length, standar

Indicator v5 Volatility & bandsMoving averages
Updated 4 months ago · None stated GitHub repository of Bollinger Bands

RSI Trend Strategy

by SynergOps
7 stars

The RSI Trend Strategy combines a short-period Relative Strength Index with 30-period and 100-period Simple Moving Averages to identify trading opportunities on the main price chart. Long positions trigger when a 5-period RSI drops below 30 while price sits ab

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · MPL-2.0 GitHub repository of RSI Trend Strategy

Capital41 PDH/PDL Levels

by damianpitt
6 stars

This indicator plots previous-day high, low, and midpoint on the price chart, with optional previous-week and previous-month highs and lows. It fills the high-low ranges, places right-edge labels, and shows a status badge for distance to the daily extremes and

Indicator v6 Support & resistance
Updated 8 weeks ago · MIT GitHub repository of Capital41 PDH/PDL Levels

This indicator implements an ICT Silver Bullet trading framework directly on the price chart. It detects and visualizes Fair Value Gaps (FVG), Market Structure Shifts (MSS), Order Blocks, Breaker Blocks, Breaks of Structure (BOS), and Equal Highs/Lows across d

Indicator v5 SMC / ICT / price actionSessions & time Repaints
Updated 7 months ago · None stated GitHub repository of ICT Silver Bullet Flux Charts v2 - Claude
5 stars

This diagnostic indicator computes a native footprint volume profile alongside broadening macro wall projections directly on the price chart. It aggregates 1-minute footprint data over user-specified start and end timestamps, calculates value area levels, and

Indicator v6 VolumeSupport & resistance Repaints
Updated 2 days ago · MPL-2.0 GitHub repository of VP + RSD Macro Wall Profile Diagnostic
5 stars

This indicator estimates a kernel density of the selected source over a chosen bar window and plots the price where that density peaks, the mode. Weights can emphasize recent bars by sequence and inferred volume. The user chooses the kernel, window anchor, sou

Indicator v6 Support & resistanceVolume
Updated 8 months ago · None stated GitHub repository of Weighted KDE Mode

Cerebr Bloop

by jerryinyang
5 stars

Cerebr Bloop is a momentum oscillator calculated by applying Heikin-Ashi candle logic to a zero-centered Relative Strength Index (RSI). Displayed in a separate pane, it visualizes smoothed RSI momentum candles alongside customizable overbought and oversold thr

Indicator v4 Oscillators & momentumCandlestick patterns
Updated 2 years ago · None stated GitHub repository of Cerebr Bloop

This strategy tests a short-only trend-following system based on 50-period and 200-period exponential moving averages. It enters short when the fast EMA is below the slow EMA, the close crosses below the fast EMA within a defined lookback period, and a bearish

Strategy v4 Moving averagesTrend
Updated 3 years ago · Apache-2.0 GitHub repository of 50 EMA + 200 EMA Short Strategy (Not Good)
4 stars

This strategy overlays the price chart and switches among RSI-2 mean reversion, SuperTrend, MACD crossover, triple EMA, Bollinger Bands, or a combined multi-indicator mode. It enters from the selected signals and exits with percentage take-profit and stop-loss

Strategy v6 Oscillators & momentumMoving averages
4 stars

This indicator calculates the Relative Strength Index alongside a smoothing moving average and multiple length tiers based on a fixed timeframe. It draws in a separate pane below the price chart, plotting tiered RSI levels and an optional multi-length average.

Indicator v6 Oscillators & momentumMoving averages
Updated today · None stated GitHub repository of RSI multi-length fixed timeframe

This strategy builds the opening range high and low during the first configurable minutes of the New York regular session, then enters on a close break of that range. A long triggers when price crosses above the range high while flat; a short triggers on a cro

Strategy v6 BreakoutSessions & time
Updated 2 months ago · MIT GitHub repository of ES Opening Range Breakout [trugurpala]

RSI Basic Indicator

by mitchell-917
4 stars

This indicator calculates the Relative Strength Index from a chosen source and length and plots it in a separate pane. It draws overbought, oversold, and midline levels, optionally shades the background when RSI is outside those levels, and marks crosses into

Indicator v5 Oscillators & momentum
Updated 11 months ago · Custom licence GitHub repository of RSI Basic Indicator

USTA

by Kalumur
4 stars

USTA combines multiple trend-following mechanisms on the price chart, primarily integrating SuperTrend and AlphaTrend overlay components. It calculates ATR-based volatility trailing lines to determine overall market direction, displaying visual buy and sell si

Indicator v5 TrendVolatility & bands
Updated 2 years ago · None stated GitHub repository of USTA

Snagprofit WMA MA

by dearvn
4 stars

Snagprofit WMA MA is a multi-timeframe trend indicator overlaid on the price chart. It calculates a weighted moving average across 1-minute, 5-minute, 15-minute, and 1-hour timeframes alongside a simple moving average on the active chart. Momentum shapes signa

Indicator v5 Moving averagesTrend Repaints
Updated 4 years ago · None stated GitHub repository of Snagprofit WMA MA

P-Dipmix Kripto

by gocaman
3 stars

P-Dipmix Kripto is a multi-indicator oscillator and screener designed to detect dip opportunities in cryptocurrency markets. It calculates WaveTrend oscillator lines, Bollinger Bands, the Awesome Oscillator, and the Accelerator Oscillator to evaluate oversold

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated today · None stated GitHub repository of P-Dipmix Kripto

Jash Test

by jash-git
3 stars

This indicator plots five exponential moving averages of lengths 3, 13, 34, 55 and 144 on the price chart. Fast lines are red and orange, slower lines are blue and purple, and a black 144-period average acts as a trend filter. It draws buy and sell labels when

Indicator v5 TrendMoving averages Repaints
Updated 4 weeks ago · None stated GitHub repository of Jash Test
3 stars

Canca's Sweeps n Raids is a price-chart indicator that marks bullish and bearish liquidity sweeps of prior swing highs and lows. It scans historical bars for swing levels that price has swept, using either a wick-only or regular close condition, then draws a l

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of Canca's Sweeps n Raids
3 stars

TradingView Debug Example is an overlay indicator that calculates RSI, a simple moving average, and MACD, then marks buy and sell shapes on the price chart. A buy appears when RSI is below 30 and price is above the SMA; a sell appears when RSI is above 70 and

Indicator v5 Oscillators & momentumMoving averages
Updated 7 months ago · None stated GitHub repository of TradingView Debug Example

This indicator identifies and plots market structure and smart money concept elements directly on the price chart. It detects swing structure, internal structure, liquidity sweeps, and strong or weak highs and lows. It also visualizes order blocks with buying

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 12 months ago · None stated GitHub repository of Price Action Smart Money Concepts [BigBeluga]

BTMM Stop Hunt Detection

by jcortes254
3 stars

The BTMM Stop Hunt Detection indicator identifies liquidity sweeps, stop hunts, and market maker manipulation zones directly on the main price chart. It tracks key liquidity levels, Optimal Trade Entry (OTE) zones, and premium or discount areas based on swing

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of BTMM Stop Hunt Detection
3 stars

This indicator computes and plots the Slow Stochastic momentum oscillator in a separate chart pane. It calculates the raw stochastic percentage based on price location within the highest high and lowest low range over a user-defined period, smoothing the resul

Indicator v5 Oscillators & momentum
Updated 2 years ago · None stated GitHub repository of Stochastic Slow (Momentum Oscillator)

PE and PEG Over Time

by jawauntb
3 stars

This indicator calculates the price-to-earnings (P/E) and price-to-earnings growth (PEG) ratios for a target stock and for QQQ. It fetches earnings per share basic one year growth and PEG ratio data using financial API calls, then derives P/E as close divided

Indicator v5
Updated 2 years ago · GPL-3.0 GitHub repository of PE and PEG Over Time

Currency Strength Chart

by itmakesyousick
3 stars

This indicator calculates and plots the relative strength of major forex currencies and optional commodities in a separate pane. It fetches price data across configurable broker feeds to calculate relative performance over a selected resolution or lookback per

Indicator v5 Screeners & dashboardsOscillators & momentum
Updated 4 years ago · None stated GitHub repository of Currency Strength Chart

ROC = Rate of Change

by piecioshka
2 stars

This indicator calculates the rate of change of a chosen source over a set number of bars and plots it as columns in a separate pane, colored green above zero and red below. A horizontal zero line marks the sign change. Optional markers appear on the price cha

Indicator v6 Oscillators & momentum
Updated 10 days ago · MIT GitHub repository of ROC = Rate of Change

TTM Squeeze Pro

by TamTH-Dev
2 stars

This indicator identifies volatility compression and momentum direction in a separate pane. It calculates Bollinger Bands against three tiers of Keltner Channels to detect low, medium, and high squeeze states, displaying them as color-coded dots along the zero

Indicator v6 Volatility & bandsOscillators & momentum
Updated 5 weeks ago · None stated GitHub repository of TTM Squeeze Pro

Alper

by avatar-lavventura
2 stars

This Pine Script v4 strategy draws in a separate pane. It calculates a WaveTrend oscillator from typical price, plots the fast and slow lines, their difference, and crossover markers against two overbought and two overold levels. It also builds Bollinger and K

Strategy v4 Oscillators & momentumVolatility & bands
Updated 7 months ago · None stated GitHub repository of Alper

This indicator displays company fundamentals in a separate pane. It plots one selected series, such as EPS, revenue, margins, cash flow, assets, equity, or ratios, across a chosen number of fiscal quarters or years. Four optional tables cover profitability and

Indicator v6 Screeners & dashboards Repaints
Updated 8 months ago · None stated GitHub repository of Financial Statement Indicator PRO by zdmre

Chaikin A/D Oscillator (ADOSC)

by mushroom-men-Trading
2 stars

This indicator calculates the Chaikin Accumulation/Distribution Oscillator in a separate pane. It builds a cumulative accumulation/distribution line from the money-flow multiplier of high, low, close and volume, then subtracts a long exponential moving average

Indicator v6 Oscillators & momentumVolume
Updated 9 months ago · None stated GitHub repository of Chaikin A/D Oscillator (ADOSC)

Radius Trend [ChartPrime]

by wynnforthework
2 stars

This indicator tracks directional market movement directly on the price chart using adaptive curved bands. It measures volatility via a smoothed high-low bar range, setting an initial boundary when trend flips occur. As the trend persists across bars, the scri

Indicator v5 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Radius Trend [ChartPrime]

PivotPointsDailyTraditional

by Electrified-Trading
2 stars

PivotPointsDailyTraditional is a Pine Script library that provides calculation functions for standard daily pivot points. It imports daily high, low, and close values to compute the main pivot point along with multiple resistance and support levels. The librar

Library v5
Updated 1 year ago · MPL-2.0 GitHub repository of PivotPointsDailyTraditional

My Super Fancy Script

by Web3Degenerate
2 stars

My Super Fancy Script is an introductory Pine Script indicator that plots the daily closing price on the main price chart alongside a visual text label on the most recent bar. Designed as a basic tutorial example, it demonstrates how to configure indicator ove

Indicator v5
Updated 2 years ago · None stated GitHub repository of My Super Fancy Script

HTF Candles & Pivots

by itmakesyousick
2 stars

This indicator overlays higher-timeframe candles and traditional pivot levels on the price chart. It draws open-close or high-low ranges with optional wicks, thickness, filled negative candles, and bar coloring. History can show only new candles, all candles,

Indicator v5 Support & resistanceCandlestick patterns
Updated 3 years ago · None stated GitHub repository of HTF Candles & Pivots

This indicator builds a volume profile over a chosen number of recent bars and draws it on the price chart. It splits each bar's range into price bins, assigns a share of volume to the bins the bar overlaps, and separates that volume into buy and sell using th

Indicator v4 VolumeSupport & resistance
Updated 3 years ago · None stated GitHub repository of Fr3d0's Volume Profile Visible Range

Range Breaking

by DaniilOkrug
2 stars

This strategy detects pivot highs and lows on the chart to form range levels. It tracks recent pivot points and calculates a price range around their average adjusted by the difference percentage. Horizontal lines are drawn at potential break levels. The strat

Strategy v4 Support & resistanceBreakout
Updated 4 years ago · MIT GitHub repository of Range Breaking

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