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

Nexural ORB

by JasonTeixeira
9 stars

This indicator plots opening range breakout levels across multiple timeframes, including five, fifteen, thirty, and sixty minutes, directly on the price chart. It also displays the session open and overnight high and low levels. The script calculates an openin

Indicator v6 BreakoutSessions & time
Updated 13 days ago · Custom licence GitHub repository of Nexural ORB

Arbitrage Matrix [LuxAlgo]

by MeridianAlgo
9 stars

This overlay indicator builds a dashboard that compares last price, last volume, average price, or average volume across selected crypto exchanges or forex brokers. The source input can follow the chart asset automatically or lock the list to exchanges or brok

Indicator v6 Screeners & dashboards
Updated 4 months ago · MIT GitHub repository of Arbitrage Matrix [LuxAlgo]

Awesome Oscillator - Eterna MCP

by EternaHybridExchange
9 stars

This strategy implements Bill Williams' Awesome Oscillator (AO) calculated as the difference between two simple moving averages of the median price. It generates long and short entries using three classic signal triggers: zero-line crossovers, twin peaks diver

Strategy v5 Oscillators & momentumMoving averages
Updated 7 months ago · MIT GitHub repository of Awesome Oscillator - Eterna MCP
9 stars

This multi-timeframe indicator detects and visualizes Smart Money Concepts (SMC) and ICT market structures on the price chart. It maps higher-timeframe dealing ranges, premium and discount zones, break of structure (BOS), change of character (CHoCH), order blo

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 8 months ago · None stated GitHub repository of SMC/ICT Zones Pro Generalized

DC-B v2.5

by crissrocca
9 stars

This indicator is an oscillator suite inspired by Market Cipher B and VuManChu Cipher B that plots in a separate pane. It combines a WaveTrend oscillator, a Money Flow Index (MFI) area, and an RSI indicator with automatic divergence detection. Visual signals h

Indicator v4 Oscillators & momentumDivergence
Updated 3 years ago · MPL-2.0 GitHub repository of DC-B v2.5

Stochastic

by andreperez
9 stars

Calculates the standard Stochastic Oscillator (%K and %D) based on price range over a user-defined period. The indicator plots the smoothed %K line and %D signal line in a separate pane along with upper and lower boundary levels set at 80 and 20. Users can adj

Indicator v4 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Stochastic

Scalping 3EMA

by rodrigo-brito
9 stars

This long-only strategy calculates three exponential moving averages with lengths of 50, 100, and 150 periods, plotting them directly on the price chart. It also calculates a 14-period RSI and MACD. The strategy opens long positions when the moving averages al

Strategy v4 TrendOscillators & momentum
Updated 5 years ago · MIT GitHub repository of Scalping 3EMA
9 stars

This indicator plots currency strength values for EUR, USD, JPY, GBP, CHF, AUD, CAD, NZD and optionally XAU or XAG on a separate pane. It computes strength by comparing current pair closes to daily closes using broker-specific data from OANDA, FX or FOREXCOM.

Indicator v4 Oscillators & momentumSupport & resistance Repaints
Updated 5 years ago · None stated GitHub repository of 4th Dimension Currency Strength

Repanocha V4 Edited

by wocclyl
9 stars

This strategy plots a Tillson T3 average on the price chart and colors it by slope. It combines the T3 direction with a range filter, ADX, RSI, MACD and parabolic SAR to mark long and short entries, including optional unconfirmed signals. Positions can be rest

Strategy v4 TrendOscillators & momentum Repaints
Updated 7 years ago · MIT GitHub repository of Repanocha V4 Edited

Loop Sum Probe

by folknor
8 stars

A minimal test script from a Pine Script linter project that checks indentation of a for loop body. It adds the closing prices of the previous seven bars in a loop and plots the total in a separate pane. There are no inputs and no signals, and it exists to exe

Indicator v6
Updated 4 weeks ago · Custom licence GitHub repository of Loop Sum Probe

5000x Breakout Scanner

by jmragsdale
8 stars

This indicator marks momentum breakouts on the price chart. A signal appears only when the bar makes a new high over the lookback, volume is at least a chosen multiple of the 20-bar average, the percentage change from the prior close meets a minimum, the close

Indicator v5 BreakoutVolume
Updated 7 weeks ago · None stated GitHub repository of 5000x Breakout Scanner
8 stars

This strategy calculates a StockCharts Technical Rank metric alongside an O'Neil-style relative strength rating, plotting both curves in a separate pane. It evaluates long-term, medium-term, and short-term exponential moving average deviations, rate-of-change

Strategy v5 Oscillators & momentumMoving averages
Updated 4 years ago · None stated GitHub repository of SCTR & ONeil + RSI strategy

PA Trade Overlay

by Enesp4rl4k
7 stars

This script plots horizontal trade plan levels generated by an external trade assistant directly onto the price chart. It draws visual lines and text labels for entry, stop-loss, and up to two take-profit targets based on template parameters. Additionally, it

Indicator v6 Support & resistanceScreeners & dashboards
Updated 6 days ago · MIT GitHub repository of PA Trade Overlay

ATR Values

by lunarticktrading
7 stars

This indicator calculates the Average True Range over a user-defined lookback period and reference offset, displaying the resulting values alongside multiple selectable ATR multipliers. Instead of plotting line curves, it presents current volatility metrics in

Indicator v6 Volatility & bandsScreeners & dashboards
Updated 2 weeks ago · None stated GitHub repository of ATR Values
7 stars

The Average Sentiment Oscillator (ASO) measures bullish and bearish market sentiment by evaluating intrabar and group price ranges over a specified period. It plots bull and bear sentiment lines in a separate pane along with optional shifted lead or lag lines

Indicator v6 Oscillators & momentumVolatility & bands
Updated 3 months ago · None stated GitHub repository of Average Sentiment Oscillator

Breaker Block

by muammeryldrm42
7 stars

The Breaker Block strategy identifies failed Smart Money Concepts (SMC) order blocks and trades their retests. It uses an ATR impulse condition to detect bullish and bearish order blocks, tracking when price breaks through them. When price retests a broken ord

Strategy v5 SMC / ICT / price actionTrend
Updated 3 months ago · MIT GitHub repository of Breaker Block

A trend-following strategy that combines Bollinger Bands, RSI momentum, triple exponential moving average alignment, and volume filters directly on the price chart. It calculates standard Bollinger Bands, RSI, three EMAs (50, 100, 200), and customized ranging

Strategy v6 TrendOscillators & momentum
Updated 4 months ago · None stated GitHub repository of Bollinger + RSI + SMA Trend Filter
7 stars

Custom EMA Crossover Strategy calculates two Exponential Moving Averages to identify trend direction on the main price chart. It enters a long position when the fast EMA crosses above the slow EMA during a specified backtest period. The strategy closes the lon

Strategy v6 Moving averagesTrend
Updated 5 months ago · None stated GitHub repository of Custom EMA Crossover Strategy

Candle Breaks 1v1 L+S

by chargersfan47
7 stars

This indicator detects 1v1 candle break setups for both long and short directions directly on the price chart. It identifies when the current candle closes beyond the open of the prior opposite-color candle, calculates a 1.618 Fibonacci extension target based

Indicator v6 BreakoutCandlestick patterns
Updated 5 months ago · None stated GitHub repository of Candle Breaks 1v1 L+S
7 stars

This indicator serves as a starter template calculating an exponential moving average (EMA) directly on the price chart. It detects price crossovers relative to the moving average and plots green triangle-up markers when price crosses above, or red triangle-do

Indicator v6 Moving averagesTrend
Updated 9 months ago · None stated GitHub repository of Template Indicator
7 stars

This strategy plots DeMark pivot, support, and resistance levels on the price chart. It can keep several historical daily pivots, draw labels and prices, and mark crosses of the pivot. When strategy trading is enabled, it sizes trades from a risk-per-trade per

Strategy v6 Support & resistanceBreakout Repaints
Updated 1 year ago · MPL-2.0 GitHub repository of DeMark Pivot Points Strategy

Temp RSI

by benniebendiksen
7 stars

This strategy calculates the relative strength index of the closing price using a user-set length and prints that value in labels on the price chart. It also requests the close from a selectable higher timeframe, though the shown logic does not use that series

Strategy v5 Oscillators & momentum
Updated 1 year ago · MIT GitHub repository of Temp RSI

Signals

by Harshil427
7 stars

Calculates and plots dynamic support and resistance zones alongside manipulation zones directly on the price chart. It identifies price interactions around these levels, generating signals for bullish and bearish breakouts, tests, retests, and rejections. Sett

Indicator v5 Support & resistanceBreakout
Updated 1 year ago · None stated GitHub repository of Signals
7 stars

This strategy combines Ichimoku Kinko Hyo components, a Stochastic oscillator, and specific candlestick patterns to generate trade signals. It identifies Kumo twists and range breakouts while evaluating candle body shapes using Fibonacci threshold filters. Tra

Strategy v4 TrendOscillators & momentum
Updated 2 years ago · MIT GitHub repository of Soulevement / Ressaut Strategy
7 stars

This strategy evaluates market trend alignment across multiple timeframes by plotting a 90-period Simple Moving Average from the daily and 4-hour timeframes alongside a weekly VWAP directly on the price chart. Long trades are entered when the weekly VWAP cross

Strategy v5 TrendMoving averages Repaints
Updated 3 years ago · MIT GitHub repository of 1D Bullish Buy 4H Bearish Sell

FX Market Sessions

by itmakesyousick
7 stars

This indicator highlights key trading sessions directly on the price chart using colored boxes and text labels. It tracks up to three customizable sessions, defaulting to London, New York, and Tokyo, and can display opening ranges, session extensions, and Fibo

Indicator v5 Sessions & timeSupport & resistance
Updated 3 years ago · None stated GitHub repository of FX Market Sessions
7 stars

This Pine Script strategy combines Triple Exponential Moving Average, Bollinger Bands, and RSI to generate trading signals on the price chart. It plots the TEMA line along with the Bollinger Bands basis and outer bands. Long entries trigger when RSI crosses be

Strategy v5 Moving averagesVolatility & bands
Updated 4 years ago · GPL-3.0 GitHub repository of TEMA + Bollinger Bands Strategy

Input metadata

by pineforge-4pass
6 stars

This strategy declares many input types and plots a simple moving average of the chosen source in a separate pane. Length sets the average period and source selects the price series. Other inputs cover a numeric threshold, an enable flag, a long or short side,

Strategy v6 Moving averages
Updated yesterday · Custom licence GitHub repository of Input metadata

Bollinger Bands

by trsdn
6 stars

This indicator plots classic Bollinger Bands on the price chart. It calculates a simple moving average of the selected source over the chosen length, then places upper and lower bands at a multiple of the standard deviation around that basis. The basis, upper

Indicator v5 Volatility & bandsMoving averages
Updated 6 days ago · MIT GitHub repository of Bollinger Bands

Calculates price projection ranges over a specified horizon using Monte Carlo simulations via empirical bootstrap or parametric normal distributions. It plots projected price range boundaries directly on the price chart alongside a distribution profile histogr

Indicator v6 Support & resistanceVolatility & bands

C41 Key Calendar

by damianpitt
6 stars

Identifies and highlights recurring key market calendar dates directly on the price chart. It plots visual lines and labels for month, quarter, and year opens and closes, as well as monthly and quarterly options expiration (OPEX), OPEX week starts, earnings se

Indicator v6 Sessions & time
Updated 8 weeks ago · MIT GitHub repository of C41 Key Calendar
6 stars

This indicator detects and visualizes Candle Range Theory (CRT) setups directly on the price chart across defined session windows. It tracks 1-hour and 4-hour key ranges for Asian, London, and New York sessions using higher-timeframe data. The script draws hor

Indicator v6 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT All-Models Visual Suite v6
6 stars

MarketMerge Data Panel is a Pine Script indicator that overlays a customizable data panel on price charts to display company fundamentals. It shows ratings including composite, RS, EPS, SMR, Acc/Dis, P/E, ROE and Minervini trend template checks. The panel pres

Indicator v6 Screeners & dashboardsMoving averages
Updated 8 months ago · MIT GitHub repository of MarketMerge Data Panel
6 stars

Basic Long Entry System 2 is a long-only price-chart strategy that reads one-hour ADX and an exponential moving average, then looks for a 15-minute RSI pullback under the hourly RSI. It sets the hourly bias when ADX is above a threshold, declining, and price i

Strategy v6 Oscillators & momentumTrend Repaints
Updated 1 year ago · MIT GitHub repository of Basic Long Entry System 2
6 stars

This strategy tracks momentum using an 8-period and 21-period Exponential Moving Average (EMA) crossover system. It enters long positions when the 8 EMA crosses above the 21 EMA and closes open long positions when the 8 EMA crosses below the 21 EMA. Each trade

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of TradersPost Example MOMO Strategy

MultiVolatility

by wanjo-tech
6 stars

This indicator estimates multi-horizon volatility in a separate pane. It requests the chart symbol's daily and 15-minute close, volume, time, and turnover, then walks backward until each window covers a target number of hours. It computes the variance and stan

Indicator v5 Volatility & bands
Updated 2 years ago · None stated GitHub repository of MultiVolatility

Swing Points

by eonfutures
6 stars

Calculates and identifies local swing highs and swing lows on the main price chart based on a configurable lookback length. The indicator marks identified pivots with customizable labels and shapes, and can project horizontal lines across the chart from pivot

Indicator v5 Support & resistance
Updated 2 years ago · None stated GitHub repository of Swing Points

Edge 59

by subos2008
6 stars

Edge 59 is a price-chart strategy that combines an ADX directional filter, a weighted moving average, and a trend-follower channel. The channel uses an exponential moving average of close, optionally smoothed by linear regression, and a percentage of a fixed 2

Strategy v5 TrendOscillators & momentum Repaints
Updated 2 years ago · Custom licence GitHub repository of Edge 59
6 stars

This indicator overlays three moving averages and a volume-weighted average price on the price chart. Each average can be shown or hidden, with default lengths of 20, 50 and 200. A single switch changes all three from simple to exponential averages. The VWAP u

Indicator v5 Moving averagesVolume
Updated 3 years ago · None stated GitHub repository of VOIDRLM Moving Averages

MTF trend alignment

by broomva
5 stars

This strategy plots the same-length exponential moving average on the chart and on two higher timeframes. It enters long when the chart average is above the first higher-timeframe average, that average is above the second, and price is above the chart average.

Strategy v5 TrendMoving averages
Updated yesterday · MIT GitHub repository of MTF trend alignment

HTF Recon Probe v2

by 345-strategies
5 stars

HTF Recon Probe v2 is a throwaway diagnostic indicator that checks higher-timeframe reconstruction for TheStrat bar classification. It requests monthly, quarterly, and yearly time, high, and low with lookahead enabled, and when the chart is above daily it load

Indicator v6 Screeners & dashboards Repaints
Updated 3 days ago · MPL-2.0 GitHub repository of HTF Recon Probe v2
5 stars

This strategy calculates fast and slow exponential moving averages to execute trend-following trades based on CDC ActionZone logic. It colors price bars across six conditions depending on price position relative to the fast and slow EMAs. Entries occur when th

Strategy v5 TrendMoving averages
Updated 2 weeks ago · MIT GitHub repository of Xsodus CDC ActionZone V3
5 stars

ChandraQuant Kala-Chakra is an overlay indicator for Indian equity indices. It calculates Sun and Moon ecliptic longitudes from Meeus periodic series, converts them to the sidereal zodiac with the Lahiri ayanamsa, and marks nakshatra changes, Purnima and Amava

Indicator v6 TrendMoving averages
Updated 7 weeks ago · MIT GitHub repository of ChandraQuant — Kāla-Chakra
5 stars

RG Structure Break-Retest Strategy estimates pivot-constrained support and resistance trendlines and evaluates market regimes. It enters trades upon two-stage break and retest confirmation, scoring setup quality to dynamically scale position sizing between tie

Strategy v6 TrendSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of RG Structure Break-Retest Strategy

PA Indicators

by forecho
5 stars

This indicator plots price action tools directly on the main price chart. It shades candles according to Internal Bar Strength (IBS) and optional wick-length thresholds to differentiate trend bars from trading ranges. The script tracks session bar counts durin

Indicator v6 Candlestick patternsMoving averages
Updated 8 weeks ago · None stated GitHub repository of PA Indicators

TradeKit

by tanishq-rocks
5 stars

TradeKit is an all-in-one technical analysis indicator that consolidates multiple chart overlays into a single script on the price chart. It plots up to four customizable moving averages (SMA, EMA, SMMA, WMA, or VWMA), Bollinger Bands, VWAP, and reference leve

Indicator v6 Moving averagesCandlestick patterns
Updated 3 months ago · MPL-2.0 GitHub repository of TradeKit

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