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

This strategy overlays a volume-weighted moving average of open prices and standard-deviation bands on the ES futures chart, aimed at the one-minute timeframe. It requests open and low from several higher timeframes with lookahead enabled. Percentage inputs se

Strategy v5 Volatility & bandsMoving averages Repaints
Updated 6 weeks ago · None stated GitHub repository of ES - Futures 1M No repaint

STRG-HOLP

by harryguiacorn
219 stars

STRG-HOLP is a trading strategy that identifies High of Low Period (HOLP) and Low of High Period (LOHP) breakout setups. It tracks the lowest low or highest high over a user-defined lookback window. A long trade opens when the close breaks above the high of th

Strategy v5 BreakoutSupport & resistance
Updated 1 year ago · None stated GitHub repository of STRG-HOLP
219 stars

This educational indicator detects local swing highs across a rolling nine-bar window. It checks whether the high from four bars ago equals the highest high of the nine-bar period. When confirmed, it plots an asterisk and the letter H directly on the price cha

Indicator v4 Support & resistance
Updated 5 years ago · None stated GitHub repository of 教學:尋找高低點2

Dead Cat Bounce

by TradersPost
218 stars

Calculates consecutive bar sequences that fail to create new price extremes and identifies potential reversal breakout points. When a run breaks, the script plots measured move projection arrows, high-water mark lines, and Fibonacci levels directly on the pric

Strategy v6 BreakoutMean reversion
Updated 3 months ago · None stated GitHub repository of Dead Cat Bounce

Aroon-based Strategy

by capissimo
114 stars

This indicator overlay generates buy and sell signals based on Aroon extreme levels combined with optional volume or volatility filters. It calculates Aroon Up and Aroon Down lines using localized high and low lookbacks, generating trade entries when Aroon rea

Indicator v4 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Aroon-based Strategy
106 stars

This strategy plots 50-, 100- and 200-period simple moving averages on the price chart. After a user-chosen start date, it enters a long position when the 50-period average crosses above the 100-period average, using 100 percent of equity. A short order is cod

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of 50/100/200 Moving Average Strategy

Calculates and plots an Autoregressive Finite Impulse Response (AFIRMA) moving average directly on the price chart. It weights historical price data using selectable windowing functions, including Hanning, Hamming, Blackman, and Blackman-Harris filters. An opt

Indicator v6 Moving averagesTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Autoregressive FIR Moving Average (AFIRMA)

Dual-color bars

by be-thomas
65 stars

This indicator draws a separate OHLC bar series in its own pane using plotbar. Each bar is colored lime when the close is greater than or equal to the open, and red when the close is below the open. It has no user inputs, no signals, and no entry, exit, stop,

Indicator v5 Candlestick patterns
Updated 5 days ago · GPL-3.0 GitHub repository of Dual-color bars

Strategy Template

by iamrichardD
57 stars

This strategy template implements an EMA trend filter paired with MACD momentum confirmations. Long positions trigger when the fast EMA is above the slow EMA alongside a bullish MACD crossover and positive histogram, while short positions require the reverse.

Strategy v6 TrendOscillators & momentum
Updated 1 year ago · Apache-2.0 GitHub repository of Strategy Template

Supply Demand

by iamc1oud
56 stars

This overlay indicator maps market structure and draws supply and demand zones on the price chart. It marks swing points, optional structure mapping, sweep marks, and bubbles, and can color candles from its trend detection. It plots the last selected order blo

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

Simple RSI

by dcaoyuan
55 stars

Simple RSI calculates and plots the standard Relative Strength Index oscillator in a separate pane. It tracks price momentum based on a user-defined calculation length, defaulting to 13 bars, applied to a selectable price source such as the close. Dashed horiz

Indicator v6 Oscillators & momentum
Updated 6 months ago · Apache-2.0 GitHub repository of Simple RSI
53 stars

This overlay indicator calculates the 14-period Relative Strength Index to identify overbought and oversold market conditions. When RSI crosses key thresholds, it plots initial long or short entry labels directly on the price chart. If price continues moving a

Indicator v6 Oscillators & momentumMean reversion
Updated 2 months ago · MPL-2.0 GitHub repository of RSI Multi-Layer Entry Indicator
47 stars

Calculates the Composite Fractal Behavior metric across multiple depth tiers to analyze trend persistence and cycle behavior. It evaluates fractal pattern ratios across logarithmic period steps, smooths the resulting index, and applies Jurik Moving Average fil

Indicator v6 Oscillators & momentumVolatility & bands
Updated 8 months ago · MIT GitHub repository of Composite Fractal Behavior (CFB)

Session Raid Stats

by TamaraKGreen
46 stars

Session Raid Stats highlights custom session price ranges and projects range extension lines at fixed point intervals above and below session highs and lows. It identifies liquidity raids exceeding user-defined point thresholds within a specified time cutoff f

Indicator v6 Sessions & timeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Session Raid Stats
43 stars

This overlay indicator marks Williams fractal highs and lows on the price chart. It compares each bar’s high and low with a user-set number of bars on either side and plots a tiny triangle above a confirmed up fractal and below a confirmed down fractal. The on

Indicator v4 Support & resistance
Updated 1 year ago · None stated GitHub repository of Williams Tiny Fractals
43 stars

Donald - AI Futures is a price-chart strategy that estimates inner and outer high-low zones and a smoothed close with rational quadratic kernel regression. It builds bullish and bearish momentum signals, optionally compares volume with a volume-weighted moving

Strategy v5 Oscillators & momentumSMC / ICT / price action Repaints
Updated 2 years ago · None stated GitHub repository of Donald - AI Futures

Awesome Oscillator

by TWODS-CAPITAL
37 stars

This indicator plots the Awesome Oscillator in a separate pane. It subtracts a 34-period simple moving average of the high-low midpoint from a 5-period simple moving average of the same midpoint. Rising bars are drawn as teal columns and falling bars as red co

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Awesome Oscillator

Zen Trading Toolkit

by Zen-Tim
29 stars

Zen Trading Toolkit is an overlay indicator that plots average bar range measured-move targets from the prior regular-hours close, plus optional yesterday high, low, close and range projections. It draws an N-bar opening-range box and a volatility table of ave

Indicator v6 Volatility & bandsSupport & resistance
Updated 2 weeks ago · MIT GitHub repository of Zen Trading Toolkit
26 stars

This indicator identifies and plots bullish and bearish Fair Value Gaps (FVG) directly on the price chart. It detects three-bar imbalances where gaps occur between the high of the first candle and the low of the third candle, or vice versa. The tool includes a

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · AGPL-3.0 GitHub repository of Fair Value Gap (FVG)

KC15

by benso87
24 stars

KC15 is a price-chart strategy that configures two moving averages, a Bollinger Band Width Percentile filter, and PMARP entry and exit thresholds for long and short trades. Users can switch each average between SMA and EMA, set lengths and colors, and toggle l

Strategy v5 Moving averagesVolatility & bands
Updated 4 years ago · MPL-2.0 GitHub repository of KC15

Trailing Drawdown

by palitojendthen
20 stars

The Trailing Drawdown indicator calculates and visualizes the percentage drop of a price series from its peak over a user-specified lookback period. It tracks maximum price levels within a rolling window and measures the current deviation from those peaks. Tra

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

RSI/BB/60 Strategy

by SammyEnigma
18 stars

This strategy plots Bollinger Bands on the price chart and calculates RSI plus Bollinger Band width from one shared length. It enters long when band width crosses under 0.01, with a stop order at the lower band. It adds short orders when price crosses the uppe

Strategy v4 Oscillators & momentumVolatility & bands
Updated 6 years ago · None stated GitHub repository of RSI/BB/60 Strategy
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 12 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 2 days ago · 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 3 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 yesterday · 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 yesterday · 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

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