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

Candlestick Structure [LuxAlgo] detects multiple classic bullish and bearish candlestick patterns in the context of broader market structure. It evaluates patterns such as hammers, engulfing candles, stars, haramis, tweezers, and three-method formations agains

Indicator v5 Candlestick patternsTrend

Intrabar Delta

by jayadevrana
1 stars

Intrabar Delta estimates buying and selling volume within each chart bar by fetching lower timeframe OHLCV data. It categorizes lower timeframe bars as bullish, bearish, or neutral to calculate buy and sell volume. The script plots the net intrabar volume delt

Indicator v6 VolumeScreeners & dashboards
Updated 2 days ago · MPL-2.0 GitHub repository of Intrabar Delta

SMC Decision Board

by skipp-dev
1 stars

SMC Decision Board is an on-chart decision-support dashboard designed for Smart Money Concepts analysis. It processes aggregated signal states from linked chart scripts to display a structured HUD table, trade plan risk lines, and live setup highlights directl

Indicator v6 SMC / ICT / price actionScreeners & dashboards
Updated 2 days ago · None stated GitHub repository of SMC Decision Board

Dual Thrust Breakout

by pineforge-4pass
1 stars

The Dual Thrust Breakout strategy calculates upper and lower price threshold channels based on an open-anchored range formula over a configurable lookback period. It determines the maximum value between highest high minus lowest close and highest close minus l

Strategy v6 BreakoutSupport & resistance
Updated 5 days ago · Apache-2.0 GitHub repository of Dual Thrust Breakout

MA Cross

by GammaExpansion
1 stars

This strategy calculates fast and slow moving averages using SMA or EMA selections and plots them on the price chart. It signals long entries on fast MA crossing above slow MA, optionally requiring slow MA to be rising. It closes positions on fast MA crossing

Strategy v6 Moving averagesTrend
Updated 5 days ago · MIT GitHub repository of MA Cross

DEPV2 B1b - Günlük Open

by YuceSezar89
1 stars

This indicator tracks and plots the daily opening price based on a user-defined UTC hour setting. Plotted in a separate pane, it enables traders to benchmark intrabar price action against a specific daily open anchor. The primary setting adjusts the starting h

Indicator v6 Support & resistanceSessions & time
Updated 11 days ago · None stated GitHub repository of DEPV2 B1b - Günlük Open
1 stars

The Fractal Field Smoother calculates Williams Fractals based on price high and low pivot points over a user-defined period. It measures price distance and center points between consecutive fractals, using array storage to calculate smoothed field levels and b

Indicator v6 Support & resistanceTrend
Updated 7 weeks ago · None stated GitHub repository of Fractal Field Smoother
1 stars

A basic introductory indicator script from an educational Pine Script v6 course. It calculates and plots the closing price of each bar directly on the main price chart as a simple line. Designed as a foundational starting point, the script demonstrates essenti

Indicator v6
Updated 2 months ago · Custom licence GitHub repository of My First Pine Script

VuManChu B Divergences

by GreyssonEnterprises
1 stars

This indicator plots a WaveTrend oscillator in a separate pane, modeled after Market Cipher B. It marks wave crossings with small circles, green buy dots when waves cross up at oversold levels, and red sell dots when they cross down at overbought levels. Gold

Indicator v4 Oscillators & momentumDivergence
Updated 2 months ago · MIT GitHub repository of VuManChu B Divergences

STT SR TMA Scale Plan

by majohnst
1 stars

The STT SR TMA Scale Plan is an intraday trading strategy that overlays price charts to execute trades based on Triangular Moving Average (TMA) crossings, VWAP breakouts, and support/resistance levels like daily pivots or Anchored VWAP. Entries are restricted

Strategy v6 TrendMoving averages
Updated 3 months ago · None stated GitHub repository of STT SR TMA Scale Plan

Tên Indicator

by mrdungx2603
1 stars

This script provides a standardized boilerplate template for developing Pine Script version 6 indicators rendered directly on the price chart. It establishes input configurations for data source selection, period length, and visual signal toggling. The file is

Indicator v6
Updated 4 months ago · None stated GitHub repository of Tên Indicator
1 stars

This strategy identifies breakout opportunities in Bursa Malaysia stocks using a slow EMA trend filter where price exceeds the 150-period EMA and the slow EMA is above its 150 EMA. It plots fast and slow EMAs on the price chart. Entry occurs on a new 20-day hi

Strategy v5 BreakoutMoving averages
Updated 4 months ago · None stated GitHub repository of KLSE VCP Breakout Backtest
1 stars

This strategy plots a volume-weighted moving average, a Hull moving average, and a linear regression on the price chart. It enters long when the Hull average crosses above the volume-weighted average while stochastic is above 50, on-balance volume is rising, m

Strategy v5 TrendOscillators & momentum
Updated 4 months ago · MIT GitHub repository of Advanced Indicator Suite
1 stars

This intraday trading strategy combines fast, slow, and trend exponential moving averages with MACD, RSI, and ADX filters to generate trade signals during active trading sessions. It enters long positions when the fast EMA crosses above the slow EMA above the

Strategy v6 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Señales Intradía EMA + MACD v3

Stochastic Final Version

by gabriel-klettur
1 stars

This strategy combines Exponential Moving Averages and a Stochastic Oscillator to generate trading signals directly on the main price chart. Long positions enter when %K crosses above %D below an oversold threshold of 40, exiting on a crossunder above an overb

Strategy v6 Oscillators & momentumMoving averages
Updated 7 months ago · None stated GitHub repository of Stochastic Final Version
1 stars

Slow & Steady is a swing trading strategy that identifies trend direction using aligned EMAs of 50, 100, and 200 periods. It generates buy and sell signals when the MACD line crosses its signal line within a confirmed trend, filtered by ADX strength. Entries c

Strategy v5 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of Slow & Steady - Swing Strategy

4x4 Futures Ghost Matrix

by knectardev
1 stars

This indicator generates intraday trading signals by combining dual-sigma standard deviation bands, Heikin Ashi candle vectors, and a four-bar confluence score. It triggers long and short signals during defined trading sessions using either mean-reversion boun

Indicator v5 Volatility & bandsMean reversion
Updated 9 months ago · None stated GitHub repository of 4x4 Futures Ghost Matrix
1 stars

This indicator calculates custom moving average convergence divergence values using selectable calculation methods, fast and slow lengths, source prices, and signal smoothing types. It plots an oscillator on the price chart with customizable vertical placement

Indicator v5 Oscillators & momentumMoving averages Repaints
Updated 9 months ago · None stated GitHub repository of MACD-X Overlay, More Than MACD

Coin to CNY

by zhuzp98
1 stars

The script converts cryptocurrency prices to Chinese Yuan (CNY) by multiplying the open, high, low, and close prices of the selected coin with the corresponding USDCNY exchange rates. It plots candlestick data in a separate pane for the translated prices. User

Indicator v5 Candlestick patterns
Updated 1 year ago · None stated GitHub repository of Coin to CNY

Hello world

by fiji-solutions
1 stars

This indicator plots the closing price of the asset. It is a basic example written in Pine Script v5 that displays the close value. The plot is configured to appear in a separate pane. No input settings are available and no trading signals or calculations are

Indicator v5
Updated 2 years ago · None stated GitHub repository of Hello world
1 stars

This indicator draws a stochastic momentum oscillator in a separate pane. It measures how far the close sits from the midpoint of the highest high and lowest low over the Percent K length, then double-smooths that relative distance and the full range with nest

Indicator v4 Oscillators & momentum
Updated 2 years ago · None stated GitHub repository of UCS Stochastic Momentum Index

Total Divergence+

by krosenfeld7
1 stars

Total Divergence+ is a price-chart indicator that looks for divergences between price and several oscillators. It can show RSI, Stochastic RSI, Stochastic, ADX, MACD, and Price Volume Trend divergences, each with its own display switch. Lookback lengths set ho

Indicator v4 DivergenceOscillators & momentum
Updated 3 years ago · Apache-2.0 GitHub repository of Total Divergence+

DMI & ADX

by JohnsonHsiao
1 stars

This indicator computes and plots the Directional Movement Index and Average Directional Index using Pine Script's built-in DMI function. It renders the positive directional indicator (+DI), negative directional indicator (-DI), and the ADX line in a separate

Indicator v5 TrendOscillators & momentum
Updated 3 years ago · None stated GitHub repository of DMI & ADX
948 stars

This indicator calculates a moving average where historical prices are weighted according to a sine function over a user-defined length. It plots directly on the price chart, coloring the line based on whether the slope is rising or falling. Optional settings

Indicator v6 Moving averagesTrend
Updated 10 days ago · GPL-3.0 GitHub repository of Sine Weighted Moving Average
575 stars

This indicator marks ICT liquidity voids on the price chart. It requests open, high, low, close, time, and ATR from a chosen timeframe with lookahead enabled, then draws bullish and bearish voids as boxes and lines. The source can be the high and low, an OTE l

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Liquidity Void Multi-timeframe
330 stars

This strategy plots a multi-timeframe exponential moving average on the price chart while evaluating momentum using the Relative Strength Index. It enters long positions when price exceeds the moving average by at least one percent and RSI crosses above the ov

Strategy v5 Oscillators & momentumMoving averages
Updated 2 months ago · None stated GitHub repository of RSI + 1200 Strategy [Alose]

Vol Cone

by namuan
318 stars

This overlay indicator estimates annualized realized volatility from an exponential moving average of squared log returns. It plots lagged upper and lower price bounds and, on the last bar, draws a forward cone of projected prices using an interest-rate drift

Indicator v5 Volatility & bands
Updated 2 months ago · MIT GitHub repository of Vol Cone

9923-Tracker

by Allen1212
303 stars

This indicator visualizes historical ARK Invest transactions by plotting buy and sell labels directly on the price chart. It marks specific trade dates using timestamp coordinates, displaying trade direction and fund count beneath relevant bars. The ETF settin

Indicator v4
Updated 2 years ago · None stated GitHub repository of 9923-Tracker

ColorExtension

by ricardosantos79
261 stars

This utility library provides color conversion and manipulation functions for Pine Script v5 scripts. It calculates RGB color values from Hue, Saturation, Lightness, and transparency inputs, validating ranges and returning native color objects. It also include

Library v5
Updated 4 years ago · None stated GitHub repository of ColorExtension
257 stars

Donald SPX - Options Trading is an indicator designed to assist SPX index option traders by tracking session benchmarks and multi-timeframe moving average data. It calculates a 200-period weighted moving average (WMA) and requests multi-timeframe bar data from

Indicator v5 Moving averagesScreeners & dashboards Repaints
Updated 6 weeks ago · None stated GitHub repository of Donald SPX - Options Trading

ADX Histogram

by harryguiacorn
219 stars

This indicator calculates and displays the Average Directional Index (ADX) as a column histogram in a separate pane. It evaluates market trend strength by calculating directional movement metrics based on specified smoothing and DI length inputs. When the ADX

Indicator v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of ADX Histogram
218 stars

This strategy detects price breakouts above rolling highest highs or below lowest lows over a customizable lookback period. It includes optional volume spike and ATR volatility threshold filters, along with bar confirmation rules. Positions are taken upon conf

Strategy v6 BreakoutVolatility & bands
Updated 3 months ago · None stated GitHub repository of Breakout Strategy Template

Acceleration Bands

by capissimo
114 stars

Acceleration Bands is an overlay indicator that plots a volatility envelope around a central simple moving average. It calculates upper and lower boundary bands scaled by the high-to-low bar range relative to the midpoint price, smoothed by an SMA over a user-

Indicator v4 Volatility & bandsMoving averages
Updated 1 year ago · None stated GitHub repository of Acceleration Bands

5 Minute EMA Strategy

by hasnocool
106 stars

5 Minute EMA Strategy is a trend-following system designed for short timeframes that executes trades around moving average crossovers. It plots fast and slow moving averages (supporting EMA, SMA, RMA, or WMA) directly on the price chart. Users can enable an op

Strategy v5 TrendMoving averages Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of 5 Minute EMA Strategy

Aroon Oscillator

by mihakralj
99 stars

Aroon Oscillator calculates the difference between Aroon Up and Aroon Down across a user-defined lookback period. It plots the resulting oscillator line between -100 and +100 in a separate pane, alongside horizontal reference levels at 0 and plus or minus 50,

Indicator v6 TrendOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Aroon Oscillator
92 stars

This indicator plots five moving averages of a chosen source on the price chart, defaulting to EMA lengths 10, 20, 30, 40 and 50. The user can switch the average type to SMA, WMA or HMA and recolor each line. Wide translucent glows sit under the lines, and sof

Indicator v5 TrendMoving averages
Updated 8 weeks ago · Custom licence GitHub repository of Moon Dev Rainbow MA Ribbon 10-50

Color Picker Showcase

by be-thomas
65 stars

Color Picker Showcase is a basic demonstration script from the TradingView Pine Script documentation illustrating dynamic color assignment for plots. It plots the closing price in a separate pane, applying conditional logic to change the line color based on ca

Indicator v5
Updated 4 days ago · GPL-3.0 GitHub repository of Color Picker Showcase

MS+MACD Enhanced Tests

by iamrichardD
57 stars

This script implements an enhanced testing framework for the Market Structure MACD 4H strategy. It defines test cases with pass rates and includes mock functions simulating advanced market structure detection, MACD sensitivity analysis across trending and chop

Strategy v6 TrendOscillators & momentum
Updated 1 year ago · Apache-2.0 GitHub repository of MS+MACD Enhanced Tests

Power Of Index with Trendline Pivots, EMA, and RSI overlays Smart Money Concepts market structure analysis directly on the price chart. It identifies internal and swing market structure shifts, such as Break of Structure and Change of Character patterns. The s

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
55 stars

The script calculates and plots Parabolic SAR with default parameters on the price chart. It also computes Stochastic RSI using a 14-period RSI and 14-period Stoch with 3-period smoothing. Buy signals occur when Stochastic RSI crosses above its signal line fro

Indicator v6 Oscillators & momentumMoving averages
Updated 6 months ago · Apache-2.0 GitHub repository of Parabolic SAR + Stoch RSI

This Pine Script indicator identifies liquidity sweeps and confirms signals using a close-back candle pattern directly on the price chart. It tracks recent swing highs and lows over a customizable lookback period. A bullish signal forms when a prior bar sweeps

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · MPL-2.0 GitHub repository of Liquidity Sweep + Close-Back Confirmation

Center of Gravity (CG)

by mihakralj
47 stars

This indicator calculates John Ehlers' Center of Gravity oscillator, which measures the balance point of price over a lookback window to identify cycle turning points with low lag. It computes a weighted price distribution ratio normalized around a zero center

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Center of Gravity (CG)
46 stars

The OHLC StatMap indicator calculates and plots statistical price levels based on historical open, high, low, and close data across up to four higher timeframes. It overlays statistical anchor lines, period open prices, manipulation levels, and distribution qu

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 7 weeks ago · None stated GitHub repository of OHLC StatMap (Multi-Timeframe)

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