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

Volumetric Supply and Demand identifies and renders supply and demand zones directly on the price chart using pivot swings and ATR-based impulse triggers. Within active zones, it constructs localized volume profiles, highlights Point of Control levels, and dis

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 3 months ago · None stated GitHub repository of Volumetric Supply and Demand [BOSWaves]

This indicator overlays four customizable moving averages alongside a Keltner Channel directly on the price chart. Users can individually configure the type (SMA, EMA, or WMA) and period length for each moving average, as well as the basis MA type for the Kelt

Indicator v5 Moving averagesVolatility & bands
Updated 4 months ago · None stated GitHub repository of Moving Average & Keltner Channel
6 stars

This hybrid trading strategy combines wick rejection support and resistance levels with Smart Money Concepts. It calculates entry confidence scores based on multi-timeframe structure, Fair Value Gap taps, Order Block alignment, and recent Change of Character o

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of WR-SR + SMC Strategy ENHANCED
5 stars

This overlay indicator is a research diagnostic that builds a volume profile between two user-set 15-minute swing times. It bins each bar's volume by high-low tick overlap on fine, base, and coarse row sizes, then applies local density gates and a paired-node

Indicator v6 VolumeSupport & resistance
Updated 3 days ago · MPL-2.0 GitHub repository of VP RSD Paired Node Consensus Diagnostic
5 stars

This indicator calculates central tendencies and intermediate channel bounds over a configurable lookback period and plots them directly on the price chart. Users can select the central basis measure from mid-range, simple moving average mean, or 50th percenti

Indicator v4 TrendSupport & resistance
Updated 8 months ago · None stated GitHub repository of Rolling Midpoints

EMA Breakout

by jerryinyang
5 stars

EMA Breakout is an indicator combining Exponential Moving Averages with higher-timeframe Keltner Channels to identify breakout market conditions. It calculates multi-timeframe EMAs and dynamic Keltner Channel boundaries using ATR, True Range, or bar width. The

Indicator v4 TrendMoving averages Repaints
Updated 2 years ago · None stated GitHub repository of EMA Breakout
5 stars

This strategy trades long only on the price chart. It enters when the current bar opens at or below the prior close, opens below the prior open, and closes above the prior open, after a chosen backtest start. It exits at a percent profit and stop, or at ATR mu

Strategy v4 Candlestick patterns
Updated 3 years ago · Apache-2.0 GitHub repository of Engulfing Candle Long Strategy (D)

MACD_Crossover_STEPFUN

by eltonaguiar
4 stars

This strategy enters long when the MACD line crosses above its signal line and short when it crosses below. Optional filters require the histogram to exceed a threshold, price to sit on the matching side of a simple moving average, and a simplified three-bar d

Strategy v5 Oscillators & momentumMoving averages
Updated yesterday · None stated GitHub repository of MACD_Crossover_STEPFUN
4 stars

This strategy trades GBP/USD on the price chart. It enters long when a fast EMA crosses above a slow EMA while price stays above a trend EMA, and enters short on the opposite cross below that EMA. Signals are allowed only in the London session, 07:00 to 17:00

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of GBP/USD Forex Strategy [trugurpala]

Volatility Band Indicator

by mitchell-917
4 stars

The Volatility Band Indicator calculates volatility bands around a customizable moving average basis line directly on the price chart. Users can select between SMA, EMA, RMA, or WMA basis types, alongside adjustable length and standard deviation multiplier set

Indicator v5 Volatility & bandsMoving averages
Updated 11 months ago · Custom licence GitHub repository of Volatility Band Indicator

TrendStop+boll

by gocaman
3 stars

The TrendStop+boll indicator combines a trend trailing level system with configurable Bollinger Bands directly on the price chart. It evaluates Directional Movement (+DI/-DI) and MACD, locking in an EMA or VWAP benchmark level whenever momentum and directional

Indicator v5 TrendVolatility & bands
Updated yesterday · None stated GitHub repository of TrendStop+boll

Jash_test

by jash-git
3 stars

This indicator plots five exponential moving averages with Fibonacci lengths on the price chart. Lengths 3 and 13 form a fast group, 34 and 55 a slow group, and 144 a trend filter. It counts how many of those averages the current and previous candle bodies cro

Indicator v5 TrendMoving averages
Updated 4 weeks ago · None stated GitHub repository of Jash_test

CSW Auto Fib

by g-moe
3 stars

CSW Auto Fib draws Fibonacci retracement and extension levels on the price chart from the high and low of a selected time period. It tracks that period's extremes and plots horizontal lines at user-defined ratios, with optional labels and colors. Period choice

Indicator v5 Support & resistance Repaints
Updated 5 months ago · None stated GitHub repository of CSW Auto Fib

Criptom4N(r)

by IAMATOMIC001
3 stars

This indicator plots SuperTrend lines and SMA values on the price chart. It generates buy and sell signals from crossovers between close price and SuperTrend. Additional features include ATR-based stop loss and take profit levels, candlestick coloring, and swi

Indicator v5 TrendMoving averages Repaints
Updated 12 months ago · None stated GitHub repository of Criptom4N(r)

This strategy evaluates market conditions on the price chart by combining composite RSI STARC bands, an EMA and SMA crossover, VWAP standard deviation bands, and security-derived volume metrics. It enters long positions when cumulative delta, momentum breakout

Strategy v5 Oscillators & momentumMoving averages Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Version Alpha: Composite Momo + Volume + Price Strategy

Smart Money Concepts

by TamTH-Dev
2 stars

This indicator maps market structure and session activity directly on the price chart. It detects and labels internal and swing structures with customizable confluence filters and candle coloring. Additionally, it highlights major trading killzones including N

Indicator v5 SMC / ICT / price actionSessions & time Repaints
Updated 5 weeks ago · None stated GitHub repository of Smart Money Concepts

Mirpapa Lib SumBox

by alvinng214
2 stars

This library provides data structures and validation functions for bundled candle analysis in ICT trading scripts. It defines SumCandleStates type with pending, confirmed and completed values, plus a function to create instances of the state set. SumCandleData

Library v6 SMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Mirpapa Lib SumBox

Alpy Vix

by avatar-lavventura
2 stars

This strategy plots the Williams Vix Fix in a separate pane with Bollinger Bands and VWMA lines. It signals long entries when the Vix Fix color shifts from lime to gray, meets VWMA long conditions and close is lower. Short signals trigger on the opposite color

Strategy v4 Volatility & bandsOscillators & momentum Repaints
Updated 7 months ago · None stated GitHub repository of Alpy Vix

Magnificent 7 Oscillator

by regalouisei
2 stars

Calculates smoothed momentum across the primary Magnificent 7 mega-cap tech stocks (AAPL, MSFT, GOOGL, AMZN, NVDA, TSLA, META) and optional additional tickers. It aggregates their performance either through equal weighting or market comparison modes against be

Indicator v6 Oscillators & momentumScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Magnificent 7 Oscillator

Dskyz Adaptive Futures Elite (DAFE)

by mushroom-men-Trading
2 stars

Dskyz Adaptive Futures Elite (DAFE) is an automated strategy designed for intraday trading. It generates long and short entries by pairing fast and slow moving average crossovers with candlestick pattern detection, filtered by RSI, volume, volatility, and a hi

Strategy v6 Moving averagesCandlestick patterns
Updated 9 months ago · None stated GitHub repository of Dskyz Adaptive Futures Elite (DAFE)

饥饿者~01

by wynnforthework
2 stars

This strategy overlays execution signals directly on the main price chart. It calculates entry points using a Kalman gain filter and dynamic approach percentages. Positions execute in both long and short directions, scaling out across three predefined take-pro

Strategy v5 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of 饥饿者~01

RSI Swing Signal

by Web3Degenerate
2 stars

This indicator plots an RSI oscillator in a separate pane and marks long and short setups when RSI is oversold or overbought and a swing low or swing high fractal forms with a reversing candle. It sizes a stop from the recent extreme plus an ATR multiple, then

Indicator v5 Oscillators & momentumCandlestick patterns
Updated 2 years ago · None stated GitHub repository of RSI Swing Signal

ZigZag Supertrend

by WISEPLAT
2 stars

This overlay indicator draws a ZigZag from recent pivot highs and lows and feeds those extremes into a Supertrend-style calculation that uses ATR. Pivot length, stored history, and ATR period and multiplier change how swings and the trend band form. Optional w

Indicator v4 TrendVolatility & bands Repaints
Updated 3 years ago · None stated GitHub repository of ZigZag Supertrend

Yaroslav93rus

by DaniilOkrug
2 stars

This TradingView Pine Script strategy overlays two exponential moving averages (lengths 10 and 28) on the price chart along with markers for pivot highs and lows. It optionally displays support and resistance levels based on user settings. The script includes

Strategy v4 Moving averagesSupport & resistance Repaints
Updated 4 years ago · MIT GitHub repository of Yaroslav93rus
1 stars

JAT+BSM Pro v13 Extended is a multi-timeframe trading strategy overlay that combines kinematic regression models, Bayesian inference, and consolidation zone analysis. It processes multi-layer volatility bands, volume profile buckets, and pattern structure targ

Strategy v5 TrendVolatility & bands
Updated yesterday · None stated GitHub repository of JAT+BSM Pro v13 Extended

RSI Zones

by jayadevrana
1 stars

Calculates the Relative Strength Index (RSI) based on close prices over a customizable period length. Plots the resulting oscillator in a separate chart pane alongside fixed horizontal lines at the standard 70 overbought and 30 oversold thresholds. When the RS

Indicator v6 Oscillators & momentum
Updated 3 days ago · MPL-2.0 GitHub repository of RSI Zones

SMC Orderflow Overlay

by skipp-dev
1 stars

SMC Orderflow Overlay is a separate-pane order flow indicator designed to complement Smart Money Concepts strategies. It plots relative volume, delta proxy values, ATS state and spike indicators, and flow direction confirmation markers. Traders can enable an o

Indicator v6 SMC / ICT / price actionVolume
Updated 3 days ago · None stated GitHub repository of SMC Orderflow Overlay

EMA Ribbon

by pineforge-4pass
1 stars

This strategy calculates three exponential moving averages with adjustable lengths for the fast, mid, and slow periods. It enters a long position when the moving averages form a bullish stack and a short position during a bearish stack, utilizing a transition

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of EMA Ribbon

P_err_input_defval_series

by GammaExpansion
1 stars

This script serves as a test fixture within the OptiPine parser suite to test error handling when assigning a series integer to an input default value. It attempts to declare an integer input using the current bar index as its default value and plots the resul

Indicator v6
Updated 6 days ago · MIT GitHub repository of P_err_input_defval_series

A strategy that first classifies the market using ADX and a Bollinger-inside-Keltner squeeze check, then switches between two sub-strategies. In ranging conditions it fades asymmetric Bollinger Band extremes with a 200 EMA trend filter. In trending conditions

Strategy v6 Mean reversionBreakout
Updated 7 days ago · GPL-3.0 GitHub repository of Hierarchical HTS v6 Markov-Proxy Regime Switcher

DEPV2 DEBUG DAY

by YuceSezar89
1 stars

This debug version of the DEPV2 indicator tests multi-method signal logic. It evaluates four categories—TREND, MOMENTUM, VOLATILITY and VOLUME—across 20 cryptocurrency symbols including BTCUSDT, ETHUSDT, SOLUSDT and others. Users select signal modes for simult

Indicator v6 TrendOscillators & momentum Repaints
Updated 12 days ago · None stated GitHub repository of DEPV2 DEBUG DAY

SR v5

by 7b809
1 stars

An overlay indicator that marks support and resistance from pivot lows and highs filtered by a volume delta, with zones sized by ATR. Each signal is numbered and given a status of allowed or ignored, depending on whether it repeats the previous allowed type, a

Indicator v5 Support & resistanceVolume
Updated 2 weeks ago · None stated GitHub repository of SR v5
1 stars

The Mirror Oscillator Morindok calculates a bounded momentum oscillator in a separate chart pane. It computes dynamic price reflection levels using a moving average and high-low channels over a specified lookback window. The script normalizes the current closi

Indicator v6 Oscillators & momentumMoving averages
Updated 7 weeks ago · None stated GitHub repository of Mirror Oscillator Morindok

SR Breakout Auto TP/SL

by vedkanani123
1 stars

An overlay indicator that detects pivot highs and lows and draws the latest resistance and support as extended lines. A buy signal fires when the close crosses above resistance, and a sell when it crosses below support. Each signal draws entry, stop loss and t

Indicator v6 Support & resistanceBreakout
Updated 2 months ago · None stated GitHub repository of SR Breakout Auto TP/SL
1 stars

Marks the bar where a volume order block zone is first confirmed, at the completion of the moving average crossover, so the marker does not shift to an earlier bar afterwards. A sensitivity bank input selects the six sensitivity lengths, or custom values can b

Indicator v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Birth Bar Study v1.3 Tick

A scalping strategy on the price chart built around market structure: change of character, break of structure and inducement sweeps, filtered by RSI extremes, volume, trend EMA, ATR range, session hours and signal confluence. A mode selector switches between C

Strategy v6 ScalpingSMC / ICT / price action Repaints
Updated 2 months ago · None stated GitHub repository of TeleNexus Sovereign Scalping Pro

FUTURES-IWBADT Reference

by GreyssonEnterprises
1 stars

A reference copy of a Pine v4 indicator that reads trend from 9 and 18 period EMAs on three higher timeframes (1 hour, 4 hour and daily by default), with an option to include the chart timeframe. Colours on the price chart show when all or only some timeframes

Indicator v4 TrendMoving averages Repaints
Updated 2 months ago · MIT GitHub repository of FUTURES-IWBADT Reference

Stochastic RSI

by rubbermetal
1 stars

Stochastic RSI plots smoothed K and D lines of a stochastic calculation in a separate pane, using smoothed moving average smoothing instead of a plain average. The K line shifts color from green to red by level. Overbought and oversold zones are filled, K/D cr

Indicator v6 Oscillators & momentum
Updated 4 months ago · MPL-2.0 GitHub repository of Stochastic RSI
1 stars

This strategy draws on the price chart and uses a 21-period EMA of the current symbol close as a fast line and a 55-period SMA of the close price from a higher timeframe (default 60 minutes) as a slow line. Long conditions trigger on EMA crossover above the sl

Strategy v5 Moving averagesTrend
Updated 4 months ago · MIT GitHub repository of Corpus MTF Security Close
1 stars

This indicator marks swing highs and lows from pivot bars on the price chart and projects dates ahead using Gann and Hurst cycle timing ideas. The first version uses one pivot setting and tables show the pivot dates and nearby future dates, with colours for bu

Indicator v5 Support & resistance
Updated 6 months ago · None stated GitHub repository of Gann Hurst Pivot HL 2024 V1
1 stars

This indicator overlays several optional trend tools on the price chart. It draws a ZigZag from a deviation setting and can plot a multi-timeframe Tillson T3, a Jurik moving average, an ALMA, and a Range Filter. Users switch each tool on or off and change leng

Indicator v6 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of Quad Trend Master & KalmanOSC

Volume Spike Reversal

by Basant1Saini
1 stars

The Volume Spike Reversal strategy identifies potential price reversals driven by high volume activity. It triggers long entries when a volume spike occurs while price is below a 20-period simple moving average, combined with oversold RSI readings and bullish

Strategy v5 VolumeOscillators & momentum
Updated 7 months ago · None stated GitHub repository of Volume Spike Reversal

V5 Combination by yzz

by webcrack4
1 stars

Combines multiple analytical tools on the main price chart, prominently featuring an interactive Volume Profile and Market Profile alongside an overlaid MACD indicator. It calculates volume or price distribution over visible, anchored, or full ranges, plotting

Indicator v5 VolumeSupport & resistance
Updated 9 months ago · None stated GitHub repository of V5 Combination by yzz

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