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 21: Breakeven Lock is a trend-following breakout strategy based on Donchian channels and ATR position sizing. It enters positions on Donchian channel breakouts and scales in up to multiple units as price moves in favor. The system moves stop losses

Strategy v6 TrendBreakout
Updated 11 months ago · None stated GitHub repository of Seykota Alt 21: Breakeven Lock

Divergenced E005

by ruckard
13 stars

Strategy identifying market entries based on Squeeze Momentum Indicator divergence patterns and exiting via Curie Closing Lines moving averages. It evaluates color transitions in the squeeze momentum histogram against price movements to detect divergence condi

Strategy v5 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of Divergenced E005

This indicator aggregates spot trading volume for Bitcoin across multiple cryptocurrency exchanges using security calls. It plots total spot volume or exchange volume differences in a separate pane to display market-wide activity. Users can filter the volume d

Indicator v4 Volume
Updated 5 years ago · None stated GitHub repository of WE: Aggregated Volume BTC: SPOT
10 stars

TPCharts Market Structure indicator marks key swing points and patterns on the price chart. It identifies equal highs and lows using two-bar patterns, minor highs and lows with three-bar patterns, and major highs and lows with five-bar patterns. Plot shapes in

Indicator v4 Support & resistanceSMC / ICT / price action
Updated 5 years ago · GPL-3.0 GitHub repository of TPCharts Market Structure

This strategy plots an ATR Chandelier trailing stop on the price chart and tracks a directional trend state. It marks confirmed flips, weak body-rejected flips, and wick traps, and colors bars as price nears warning or danger zones around the flip trigger. Ada

Strategy v6 TrendVolatility & bands
Updated yesterday · MIT GitHub repository of Chandelier Flip Radar [WavesUnchained]

Quantum Structure | jjart

by MeridianAlgo
9 stars

This indicator analyzes market structure and identifies key swing highs, swing lows, and consolidation ranges across multiple timeframes. It automatically adapts swing lengths and consolidation thresholds according to chosen profiles for scalping, intraday, or

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · MIT GitHub repository of Quantum Structure | jjart

Stochastic RSI Crossover - Eterna MCP

by EternaHybridExchange
9 stars

This strategy plots a Stochastic RSI oscillator in a separate pane. It computes RSI of close, then a stochastic of that RSI, and smooths the result into K and D lines. It enters long when K crosses above D below the oversold level and short when K crosses belo

Strategy v5 Oscillators & momentum
Updated 7 months ago · MIT GitHub repository of Stochastic RSI Crossover - Eterna MCP
9 stars

4th Dimension Currency Strength is a multi-currency indicator that calculates and displays relative currency strength across major Forex pairs and Gold. It uses security calls to fetch multi-symbol prices from selected brokers like OANDA or FOREXCOM, comparing

Indicator v4 Oscillators & momentumScreeners & dashboards
Updated 5 years ago · None stated GitHub repository of |AG| 4th Dimension Currency Strength
8 stars

MA+ATR+ADX+PP Strategy combines configurable moving averages with an ADX-modulated ATR volatility band to generate trading signals directly on the price chart. It allows traders to select between eight moving average types, including SMA, EMA, Hull, and Tilson

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

ADX Dots

by lunarticktrading
7 stars

This indicator evaluates trend strength by calculating the Average Directional Index (ADX) and plotting colored dots at a fixed horizontal level in a separate pane. The color of each dot dynamically indicates whether the trend is weak, medium, or strong based

Indicator v6 Trend
Updated 2 weeks ago · None stated GitHub repository of ADX Dots

Pulse Mean Accelerator

by eddiebelaval
7 stars

This indicator overlays a dynamic moving average on the price chart by adjusting a baseline mean with a pulse acceleration factor. It measures rate of change differences between price and the moving average, scaling the displacement by volatility via standard

Indicator v6 TrendMoving averages
Updated 3 months ago · None stated GitHub repository of Pulse Mean Accelerator

Wyckoff Phase

by muammeryldrm42
7 stars

This strategy identifies Wyckoff consolidation ranges directly on the price chart to trade potential spring and upthrust events. It calculates highest highs and lowest lows over a customizable lookback period, filtering setups by average volume spikes and ATR

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · MIT GitHub repository of Wyckoff Phase

Watermark

by suyons
7 stars

Watermark is a chart overlay that prints custom title and subtitle text, the symbol with its timeframe, and the current date and time in a chosen timezone. It maps hourly periods to readable labels and appends chart type names such as Renko, Kagi, or Point and

Indicator v5
Updated 4 months ago · None stated GitHub repository of Watermark
7 stars

This long-only strategy identifies pullback opportunities within a broader trend. It enters a long position when the closing price trades above a long-term exponential moving average while falling below a short-term exponential moving average. Once in a trade,

Strategy v5 TrendMoving averages
Updated 1 year ago · MPL-2.0 GitHub repository of Pullback Strategy for Stocks
6 stars

Capital41 Order Block Detector v2 identifies institutional supply and demand zones on the price chart. It defines bullish order blocks as the last bearish candle prior to a strong upward impulse move and bearish order blocks as the last bullish candle before a

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 8 weeks ago · MIT GitHub repository of Capital41 Order Block Detector v2
6 stars

This indicator draws Wednesday high, low, and open lines and daily midnight high and low lines on the price chart. It captures the first Wednesdays of each month around 20:30 SAST, shifting the clock for US daylight saving time, and plots the high and low of t

Indicator v6 Support & resistanceSessions & time
Updated 7 months ago · None stated GitHub repository of WED & MIDNIGHT DST System (Alerts)
5 stars

This indicator plots broadening-wall range boxes and an approximate fixed-range volume profile directly on the price chart using macro swing logic. It detects macro pivot structures to identify broadening walls and reconstructs historical volume distribution a

Indicator v6 Support & resistanceVolume Repaints
Updated 2 days ago · MPL-2.0 GitHub repository of VP + RSD Macro Wall Preview (Approx)

Cerebr

by jerryinyang
5 stars

Cerebr is a multi-timeframe trend-following strategy that combines Hull Moving Average (HMA), SuperTrend, and MACD indicators to generate trading signals. Users can individually toggle each component and adjust parameters such as the higher timeframe HMA perio

Strategy v4 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of Cerebr
5 stars

This strategy plots a short and a long exponential moving average on the price chart and opens long trades only. A long entry needs a recent close cross above the short average, a bullish candle still above it, and the short average above the long average. It

Strategy v4 TrendMoving averages
Updated 3 years ago · Apache-2.0 GitHub repository of 50 EMA + 200 EMA Long Strategy (H)

Simpleton Signals KIMI

by eltonaguiar
4 stars

This price-chart indicator is described as producing buy and sell signals with strength levels from 1 to 4. It calculates RSI, MACD, SuperTrend, and fast, medium, and slow EMAs. Labels, background color, and an information table can be shown or hidden, and a m

Indicator v6 Oscillators & momentumMoving averages
Updated today · None stated GitHub repository of Simpleton Signals KIMI

RSI fixed timeframe

by InNoobWeTrust
4 stars

This indicator calculates the Relative Strength Index and a smoothed moving average across a selectable fixed timeframe, plotting the values in a separate pane. Users can customize the timeframe, RSI length, calculation source, moving average smoothing type, a

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

EMA Ribbon [trugurpala]

by trugurpala
4 stars

This indicator calculates eight Exponential Moving Averages with Fibonacci lengths ranging from 8 to 233. It plots all eight EMAs on the price chart and dynamically colors them green during bullish alignment (when the fastest EMAs are stacked sequentially abov

Indicator v6 Moving averagesTrend
Updated 2 months ago · MIT GitHub repository of EMA Ribbon [trugurpala]

MyLabUtils

by mitchell-917
4 stars

MyLabUtils is an open-source utility library for Pine Script v5 that provides reusable functions for custom indicator and strategy development. It includes an example calculation for a normalized Relative Strength Index, which scales standard values relative t

Library v5
Updated 11 months ago · Custom licence GitHub repository of MyLabUtils

UMURLU-5-8-13-X

by Kalumur
4 stars

UMURLU-5-8-13-X overlays three exponential moving averages (5, 8, and 13 EMAs) alongside dual Bollinger Bands with narrow and wide standard deviation multipliers directly on the price chart. It generates visual signal labels on the chart when the 5-period EMA

Indicator v5 Moving averagesVolatility & bands
Updated 2 years ago · None stated GitHub repository of UMURLU-5-8-13-X
4 stars

The SnagProfit Trending 1H indicator calculates EMA crossovers using periods 5, 10 and 20 on the close price to identify bullish and bearish trend conditions. It draws a table panel on the chart that labels long trend status as OK CALL or NO CALL. The indicato

Indicator v5 TrendMoving averages
Updated 4 years ago · None stated GitHub repository of SnagProfit Trending 1H

This indicator evaluates multiple technical trading strategies and strategy combinations across various timeframes to identify the top-performing setup for Turkish stocks and other assets. Depending on whether the active chart is intraday or higher timeframe,

Indicator v5 Screeners & dashboardsTrend

Jash Test

by jash-git
3 stars

This indicator plots five exponential moving averages of Fibonacci lengths on the price chart: 3 and 13 as fast lines, 34 and 55 as slow lines, and 144 as a filter. They are drawn in red, orange, blue, purple, and black. The visible code also counts how many o

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

This indicator estimates buying and selling volume from each bar's range and candle body, then plots both in a separate pane. It splits the bar's volume using the upper wick, lower wick, and body size, assigning more of the volume to the close direction. Buy v

Indicator v5 Volume
Updated 5 months ago · None stated GitHub repository of Buy & Sell Volume

This indicator is a debugging example that overlays a scaled close-to-SMA ratio on the price chart. It divides close by a simple moving average, takes the natural log, and multiplies by 100. A triangle appears below the bar when that scaled value exceeds the t

Indicator v5 Oscillators & momentumMoving averages
Updated 7 months ago · None stated GitHub repository of Simple Test Indicator for Debugging
3 stars

This indicator plots a composite momentum oscillator in a separate pane, featuring a hyper wave calculation and an integrated smart money flow oscillator. It detects both bullish and bearish divergences using an adjustable sensitivity threshold. Additional vis

Indicator v5 Oscillators & momentumDivergence
Updated 12 months ago · None stated GitHub repository of Lux Algo - Oscillator Matrix
3 stars

Identifies continuation trade setups based on Beat the Market Maker (BTMM) second-leg patterns directly on the price chart. It defines trading session phases across Asian, London, and New York sessions, filters impulse legs using fast and slow exponential movi

Indicator v5 SMC / ICT / price actionSessions & time
Updated 1 year ago · None stated GitHub repository of BTMM Second Leg Confirmation
3 stars

This Pine Script v5 indicator detects spinning top candlestick patterns by comparing the real body size to user-defined min and max thresholds as percentages of the candle's range. It signals bullish spinning tops with a white arrow below the bar and bearish o

Indicator v5 Candlestick patterns
Updated 2 years ago · None stated GitHub repository of Spinning Top (Candlestick Pattern)
3 stars

This strategy is written for NVIDIA stock and overlays the price chart. It opens a long when price crosses above an exponential moving average, the rate of change is positive, and the average true range exceeds the previous daily ATR. It closes that long when

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of NVDA Buy/Sell Strategy

Currency Strength Chart

by itmakesyousick
3 stars

The Currency Strength Chart calculates and plots relative currency strength values for major forex currencies in a separate pane. Calculations can be based on raw price action, RSI, CCI, or Stochastic oscillators, smoothed with various moving average types. Us

Indicator v5 Oscillators & momentumTrend
Updated 4 years ago · None stated GitHub repository of Currency Strength Chart

Naked POC

by piecioshka
2 stars

Calculates and plots Naked Point of Control levels directly on the price chart using order flow footprint data. It identifies the price row with the highest traded volume either per individual candle or aggregated across an entire session. Levels extend horizo

Indicator v6 VolumeSupport & resistance
Updated 10 days ago · MIT GitHub repository of Naked POC

Sniper

by TamTH-Dev
2 stars

Sniper is a custom oscillator indicator that derives Bullish and Bearish lines from close and open prices using a smoothing factor based on trend length. These lines feed into a signal line calculated as EMA over the signal length. The indicator plots Bullish

Indicator v6 Oscillators & momentum
Updated 5 weeks ago · None stated GitHub repository of Sniper

ta

by alvinng214
2 stars

This Pine Script library exports multiple technical analysis functions for use in TradingView indicators and strategies. It includes helper functions for moving averages such as dema, ema2, t3, tema, and rma2, oscillators like macd2, stochFull, stochRsi, and p

Library v6
Updated 2 months ago · None stated GitHub repository of ta

This strategy overlays XAUUSD and combines stochastic, RSI, and three EMAs with an ATR-based risk model. Confirm entries can require an M15 overbought or oversold trigger plus a rejection wick, and they stay near Fibonacci or EMA zones without chasing far from

Strategy v5 Oscillators & momentumMoving averages

Alper

by avatar-lavventura
2 stars

This strategy combines a WaveTrend oscillator with a dual-period RSI differential to generate trend-following entries in a separate indicator pane. It calculates fast and slow RSI values, alongside WaveTrend channel lines and overbought or oversold thresholds.

Strategy v4 Oscillators & momentumDivergence
Updated 7 months ago · None stated GitHub repository of Alper
2 stars

EMD Trend calculates trend direction by combining moving averages with an exponential moving deviation filter. Rendered as an overlay on the main price chart, it generates visual long and short trend signals and offers optional bar coloring. It includes an on-

Indicator v6 TrendMoving averages
Updated 8 months ago · None stated GitHub repository of EMD Trend [InvestorUnknown]

Previous Candle Theory

by wynnforthework
2 stars

This strategy enters trades based on consecutive candle directions relative to a chosen moving average filter. It triggers a long entry when both the current and previous candles close bullish above the moving average, and a short entry when both candles close

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Previous Candle Theory

Quick Stats

by etnt
2 stars

Quick Stats displays key trading metrics directly on the price chart overlay. It calculates Mark Minervini's Trend Template rules by scoring moving average alignments (50, 150, and 200 SMAs), 200 SMA slope, and 52-week high/low proximities. Additionally, it co

Indicator v5 TrendVolatility & bands
Updated 1 year ago · MPL-2.0 GitHub repository of Quick Stats

MomentumSignals

by Electrified-Trading
2 stars

MomentumSignals is a Pine Script utility library designed to detect changes in momentum across technical series such as moving averages and oscillator histograms. It offers helper functions that quantize directional changes, detect reversal signals, and comput

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

Moving Average Color Filter

by Web3Degenerate
2 stars

This indicator calculates an Exponential Moving Average (EMA) and plots it directly on the main price chart. It dynamically changes the color of the EMA line based on the relationship between the current closing price and the moving average value. The line tur

Indicator v5 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of Moving Average Color Filter

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