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

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

A table overlay on the price chart, short title Fundamentals, that shows company financial data pulled with TradingView's financial data requests. It lists diluted earnings per share, total revenue and operating margin for recent quarters or years, with quarte

Indicator v5 Screeners & dashboards
Updated 2 days ago · None stated GitHub repository of Earnings & Fundamentals Dashboard

Martingale Lab

by jayadevrana
1 stars

Martingale Lab is an educational indicator that tests position sizing models, including flat stake, martingale, and anti-martingale, on simulated trade results from an EMA crossover strategy. It logs trade returns in R-multiples using ATR-based stop losses and

Indicator v6 Moving averagesScreeners & dashboards
Updated 3 days ago · MPL-2.0 GitHub repository of Martingale Lab

SMC HTF Confluence

by skipp-dev
1 stars

SMC HTF Confluence calculates multi-timeframe market structure and setup scores using confirmed higher-timeframe data. It evaluates exponential moving averages for trend alignment, RSI for divergences, ATR for volatility regimes, and Bollinger Band Squeezes re

Indicator v6 TrendSMC / ICT / price action Repaints
Updated 3 days ago · None stated GitHub repository of SMC HTF Confluence

Drawing Delete Halt

by pineforge-4pass
1 stars

This validation strategy monitors price crosses against a dynamic level derived from a 20-period simple moving average drawn as a line object. It enters a long position when the closing price crosses over the line level and exits when price crosses under it. A

Strategy v6 Moving averagesTrend
Updated 6 days ago · Apache-2.0 GitHub repository of Drawing Delete Halt

P Syn Time Functions

by GammaExpansion
1 stars

This indicator plots the sum of several time variables using Pine Script v6. It defines multiple timestamp values with different formats and timezones, then applies functions including dayofweek, hour, minute, second, year, month, dayofmonth, weekofyear, timef

Indicator v6
Updated 6 days ago · MIT GitHub repository of P Syn Time Functions

A strategy for 5-minute charts that turns a triggered retest of a broken 15-minute delta level into orders. Entry needs a new trigger, a flat position, a cooldown module allowing the trade and, by default, agreement with the 4-hour bias. The stop sits at the z

Strategy v6 VolumeSupport & resistance Repaints
Updated 7 days ago · GPL-3.0 GitHub repository of Delta Break and Retest Stage 7 Orders and Risk

DEPV2 C2 · SIRALAMA

by YuceSezar89
1 stars

This indicator ranks five user-selected symbols in a separate pane. On a chosen signal timeframe it computes a 12-bar log return, an ATR percentage, a directional state, and a score equal to direction times return divided by ATR. An RSI reading above 40 gates

Indicator v6 Oscillators & momentumVolatility & bands
Updated 12 days ago · None stated GitHub repository of DEPV2 C2 · SIRALAMA

An overlay indicator that records the high and low of a configurable opening range, starting at a set market open hour and minute, and projects the average, sub-levels and second and third support and resistance lines from it. It also plots 9 and 21 EMAs with

Indicator v5 Sessions & timeSupport & resistance
Updated 2 weeks ago · None stated GitHub repository of OR Levels + EMA Cross Integrated

Nexus Fusion Engine ML

by vedkanani123
1 stars

An oscillator in a separate pane, adapted from an earlier oscillator under an open license. It smooths price with a selectable method such as DEMA, adds a signal line and marks crosses with dots. Overbought and oversold zones default to 80 and 20. Optional lay

Indicator v6 Oscillators & momentumDivergence
Updated 2 months ago · None stated GitHub repository of Nexus Fusion Engine ML

Silver Setup Strategy

by GreyssonEnterprises
1 stars

A strategy version of the paint bar setup. It detects candles whose low is above the high from two bars earlier, or the mirror case, and trades only inside up to three user-set sessions on weekdays. Inputs set the take profit multiplier, stop offset in bars, a

Strategy v5 Sessions & timeSupport & resistance
Updated 2 months ago · MIT GitHub repository of Silver Setup Strategy

MES + XSP Busby Pivot

by majohnst
1 stars

This indicator draws Busby-style pivot levels on the price chart for XSP, using a selectable MES or ES futures symbol. It stores New York premarket highs, lows, and closes on the chart and on a 15-minute MES series, then builds an opening-range box after the r

Indicator v5 Support & resistanceSessions & time
Updated 4 months ago · None stated GitHub repository of MES + XSP Busby Pivot

EMA-Flat

by riegodavid-git
1 stars

A separate-pane indicator that measures how flat an exponential moving average is. It takes the absolute one-bar change of the EMA and divides it by the ATR, then plots that ratio as a histogram. Bars are teal when the ratio is below a flat threshold and orang

Indicator v5 TrendVolatility & bands
Updated 4 months ago · None stated GitHub repository of EMA-Flat

RS vs KLCI 63d

by kevinesk
1 stars

RS vs KLCI 63d measures the relative strength of a stock compared to a benchmark index over a customizable lookback period, defaulting to 63 trading days against the FTSE Malaysia KLCI. It calculates the difference between the stock's percentage return and the

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated 4 months ago · None stated GitHub repository of RS vs KLCI 63d

Quad Rotation 9 3

by rubbermetal
1 stars

Quad Rotation 9 3 is the fast pane of a four-stochastic setup with periods 9, 14, 40 and 60. It plots the 9/3 stochastic K and D lines in a separate pane with oversold and overbought zones, K/D cross triangles inside extreme zones, and a convergence band weigh

Indicator v6 Oscillators & momentumDivergence
Updated 4 months ago · MPL-2.0 GitHub repository of Quad Rotation 9 3
1 stars

Corpus Array Stats Helpers is an experimental Pine Script strategy designed to test array manipulation and moving average functions. During the first 50 bars, the script collects close prices into an array to perform statistical calculations like sum, average,

Strategy v5 Moving averagesTrend
Updated 4 months ago · MIT GitHub repository of Corpus Array Stats Helpers

SMC Confluence Engine v4

by shubhamtaywade82
1 stars

Scores smart money confluence across a four-layer timeframe stack on the price chart. A 4-hour EMA bias and premium or discount zone set direction, 1-hour structure confirms it, 15-minute order blocks and liquidity sweeps define the entry zone, and a chart-tim

Indicator v6 SMC / ICT / price actionSupport & resistance Archived
Updated 5 months ago · None stated GitHub repository of SMC Confluence Engine v4

Talons Wyckoff Phase

by muammeryldrm42
1 stars

A strategy that looks for spring and upthrust patterns inside a consolidation range. A spring is a high-volume bar that dips below the recent range low, closes back above it and closes up. An upthrust is the mirrored move above the range high. A range counts a

Strategy v5 Support & resistanceMean reversion
Updated 5 months ago · None stated GitHub repository of Talons Wyckoff Phase
1 stars

This compact indicator labels Elliott Wave counts on the price chart. It runs a zig-zag at several depths, chooses the depth that gives the best fit, and applies Elliott Wave rules, with a strict mode that forces an A-B-C count when the rules break. A correcti

Indicator v6 Support & resistance Repaints
Updated 6 months ago · None stated GitHub repository of Mini Elliott Wave 2026-4
1 stars

A strategy that reads an external oscillator, called the thermometer, through a source input and trades a chosen signal symbol, SPX by default, according to high and low temperature thresholds of 75 and 25. Buy and sell modes include buying high and selling lo

Strategy v6 Oscillators & momentumMean reversion Repaints
Updated 7 months ago · None stated GitHub repository of Thermometer Strategy

MA+SQZ+STO V1

by gabriel-klettur
1 stars

This strategy combines exponential moving averages, a Stochastic oscillator, and Squeeze Momentum calculations to identify long trade entries on the price chart. It enters long positions when the Stochastic K line crosses above D in oversold territory while pr

Strategy v5 TrendOscillators & momentum
Updated 7 months ago · None stated GitHub repository of MA+SQZ+STO V1
1 stars

This indicator combines Volume Weighted Bands, a Keltner Hull Suite, High Volume Nodes, and Supply and Demand Zones directly on the main price chart. It calculates a smoothed volume-weighted trend line surrounded by ATR-based bands to define market bias and hi

Indicator v6 TrendVolatility & bands
Updated 7 months ago · None stated GitHub repository of Keltner Hull Suite Integrated

Double EMA Crossover

by Basant1Saini
1 stars

The Double EMA Crossover strategy plots a fast 9-period EMA and slow 21-period EMA on the price chart with a 200-period trend EMA filter. It generates long signals on golden crosses when price exceeds the trend EMA and MACD is bullish, and short signals on dea

Strategy v5 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of Double EMA Crossover

MegaBarAlgo

by Tradehook-org
1 stars

A Pine v5 script that detects unusually large candles on the price chart. A mega bar is one whose high-to-low range exceeds a multiple of its recent average range, optionally with volume above a multiple of average volume. Bullish bars get a green triangle and

Indicator v5 Volatility & bandsBreakout
Updated 8 months ago · None stated GitHub repository of MegaBarAlgo

SPX Gamma (DTE:30)

by Juice-zhi
1 stars

A price-chart overlay that draws a static set of options gamma levels for SPX (the S&P 500 index) expiring in thirty days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated 2026-02-03, produced offline fro

Indicator v5 Support & resistance
Updated 8 months ago · None stated GitHub repository of SPX Gamma (DTE:30)

RB Rejection Blocks

by Ahmed1926
1 stars

A simple overlay indicator that marks rejection blocks from three-candle price structure. A bullish block is a down candle whose low is lower than the candles on both sides, and a bearish block is an up candle whose high is higher than both neighbours. Each bl

Indicator v5 SMC / ICT / price actionCandlestick patterns
Updated 9 months ago · None stated GitHub repository of RB Rejection Blocks

ES Absolute Trigger

by knectardev
1 stars

This strategy captures the first bar of each new day as an opening range and plots those high and low levels on the price chart. It enters one long position if price trades above the range high, or one short if price trades below the range low, then blocks fur

Strategy v5 BreakoutSessions & time
Updated 9 months ago · None stated GitHub repository of ES Absolute Trigger
1 stars

This indicator identifies market trends and projects dynamic price targets directly on the price chart. It calculates high and low bands using simple moving averages offset by a smoothed Average True Range buffer. Bullish and bearish trend signals trigger when

Indicator v5 TrendMoving averages
Updated 9 months ago · None stated GitHub repository of Target Trend [BigBeluga]

A chart-overlay indicator that extends a LuxAlgo-style smart money concepts framework with trend and momentum filters. It marks internal and swing break of structure and change of character, order blocks, equal highs and lows, fair value gaps, premium and disc

Indicator v5 SMC / ICT / price actionTrend Repaints
Updated 9 months ago · None stated GitHub repository of Smart Money Concepts + EMA + RSI

Kyle Algo v1

by turnupdigital
1 stars

An indicator on the price chart that draws a ribbon of fifteen EMAs of the high, from 9 to 51 bars, coloured by whether the close is above each one when the energy option is on. A Supertrend variant based on a Keltner-style channel range, scaled by a sensitivi

Indicator v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Kyle Algo v1
1 stars

An experimental strategy that buys a fixed BTC size once a day at 00:45 exchange time within a start and end date window, building a dollar-cost-averaged long. When price is below the average cost, it adds a short hedge sized to match the open long. A selector

Strategy v5
Updated 1 year ago · None stated GitHub repository of TeeLek Lab 02 DCA with Hedging

Average Price VWAP

by ivansoft
1 stars

An indicator in a separate pane that works on the average of open and close and an anchored volume weighted average price. The VWAP and optional standard deviation bands are drawn on the price chart, with a settable multiplier and anchor period, daily by defau

Indicator v6 VolumeMean reversion
Updated 1 year ago · None stated GitHub repository of Average Price VWAP
1 stars

This indicator calculates the MACD histogram from the fast and slow exponential moving averages. It plots the MACD line, signal line, and a histogram divergence column on a separate pane. The histogram divergence uses green columns for positive changes and red

Indicator v5 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of [Z] MACD Hist Divergence

Hello World

by fiji-solutions
1 stars

This educational script demonstrates how to evaluate bar states in Pine Script v5. It retrieves the status of the current price bar using the built-in barstate.isconfirmed variable to check if a bar has officially closed. When the bar state is confirmed, it pl

Indicator v5
Updated 2 years ago · None stated GitHub repository of Hello World

BB Volume

by nvFede
1 stars

A Pine v4 indicator that plots volume multiplied by VWAP as columns, coloured by where the bar midpoint sits against Bollinger Bands on price. Blue columns mean the midpoint is between the middle and upper band, red between the middle and lower band, and a pal

Indicator v4 VolumeVolatility & bands
Updated 3 years ago · None stated GitHub repository of BB Volume

Fisher Standardize Index

by JohnsonHsiao
1 stars

The Fisher Standardize Index indicator calculates a standardized price between the lowest and highest values over a user-specified period, then applies the Fisher transformation formula to produce an oscillator value. It plots the resulting fisher_trans in a s

Indicator v5 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of Fisher Standardize Index

VCopyWave

by rajatjpatel
1 stars

A smoothed moving average drawn on the price chart, a renamed copy of the SAMA script. Prices are clamped inside a narrow standard deviation channel around a short weighted average, then passed through two weighted moving averages, one with an adjustable lengt

Indicator v5 Moving averagesTrend
Updated 4 years ago · None stated GitHub repository of VCopyWave
1 stars

A Pine v4 strategy that plots a 28-period exponential moving average of the close in orange on the price chart. It goes long when a green candle opens above the average and short when a red candle opens below it, closing each position when the opposite signal

Strategy v4 Moving averagesTrend
Updated 4 years ago · None stated GitHub repository of ETHUSDT EMA Cross Strategy
948 stars

The Adaptive RSI Moving Average (ARSIMA) is an overlay indicator that dynamically adjusts its smoothing factor based on the Relative Strength Index (RSI). When the RSI moves toward extreme overbought or oversold conditions, the smoothing factor increases to ma

Indicator v4 Moving averagesOscillators & momentum
Updated 11 days ago · GPL-3.0 GitHub repository of Adaptive RSI Moving Average

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