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

This indicator standardizes price inputs using z-score normalization before calculating a relative strength index (RSI). It generates trade signals when standardized price components cross over or under the standardized RSI feature. Signals can be filtered by

Indicator v4 Oscillators & momentumVolatility & bands Repaints
Updated 1 year ago · None stated GitHub repository of Preprosessed & Standardized RSI
106 stars

Calculates multi-period logarithmic regression trend channels and deviation bands across up to twenty selectable lookback lengths directly on the price chart. It evaluates channel slopes and Pearson's correlation coefficient to detect market trends and generat

Strategy v5 TrendSupport & resistance Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Advanced Trend Detection Strategy

Bollinger %B (BBB)

by mihakralj
99 stars

This indicator calculates the Bollinger Bands %B oscillator, measuring the position of price relative to the upper and lower Bollinger Bands. A value of 1 represents the upper band, 0 represents the lower band, and 0.5 indicates the middle band. Standard refer

Indicator v6 Oscillators & momentumVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Bollinger %B (BBB)
65 stars

This indicator demonstrates Pine Script bar-state handling on the price chart. It creates one persistent label on the first bar and, when the current bar is the last bar, moves that label to the bar high and sets its text to the high formatted to the symbol mi

Indicator v5
Updated 5 days ago · GPL-3.0 GitHub repository of V5 Concepts Bar States 02

Channel

by dcaoyuan
55 stars

The Channel indicator identifies recent pivot highs and pivot lows using fixed left and right bar lengths. It connects the two most recent pivot highs and two most recent pivot lows with extended lines to project upper and lower boundaries directly on the pric

Indicator v5 TrendSupport & resistance
Updated 6 months ago · Apache-2.0 GitHub repository of Channel
47 stars

This indicator applies the exponential transformation y equals e to the power x to a user selected input series. The function computes the transformed values using a runtime validated implementation that errors on non numeric data. The result series plots in a

Indicator v6
Updated 8 months ago · MIT GitHub repository of Exponential Transformation (EXP)

Daily close statistics

by TamaraKGreen
46 stars

This indicator plots the previous day's high, low and midpoint and the previous week's high, low and midpoint directly on the price chart. It also marks New York, London and Asia sessions, optionally filling each session range and showing that session's maximu

Indicator v5 Support & resistanceSessions & time
Updated 7 weeks ago · None stated GitHub repository of Daily close statistics

Commodity Channel Index

by TWODS-CAPITAL
37 stars

This indicator plots the Commodity Channel Index in a separate pane. It measures how far the selected source, defaulting to the average of high, low, and close, sits from its simple moving average, scaled by mean deviation. Dashed bands mark plus and minus 100

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Commodity Channel Index
16 stars

This strategy trades Donchian channel breakouts and can go long or short. It sizes the first unit from a percent of equity and an ATR stop, then adds smaller fractional units only when RSI confirms momentum. It exits with an ATR initial stop, a chandelier trai

Strategy v6 TrendOscillators & momentum
Updated 12 months ago · None stated GitHub repository of Seykota Alt 34: Fract + Momentum

Ersinator A002

by ruckard
13 stars

Ersinator A002 is a strategy that combines moving average and KDJ momentum calculations to generate trade signals directly on the price chart. It features built-in alert formatting designed for integration with the Zignaly crypto trading platform. Position ris

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Ersinator A002
9 stars

FlowBias calculates a composite market momentum metric using Chaikin Money Flow, volume delta, Stochastic, and the Ultimate Oscillator. Plotted in a separate pane, it identifies trend pullbacks and market exhaustion reversals through visual signals and labels.

Indicator v6 TrendOscillators & momentum
Updated 2 days ago · MIT GitHub repository of FlowBias [WavesUnchained]
7 stars

Aivance Opening Range & Vol Factor identifies the first candle of each new trading day, plotting its high, low, open, and close levels with colored boxes and lines directly on the chart. It calculates a Volume Factor percentage by comparing the opening bar vol

Indicator v6 Sessions & timeVolume
Updated 3 months ago · None stated GitHub repository of Aivance Opening Range & Vol Factor

RSI Signal

by suyons
7 stars

RSI Signal is a multi-timeframe momentum indicator that plots buy and sell signals on the price chart based on Relative Strength Index crossovers. It retrieves RSI values across four configurable timeframes and evaluates trend alignment using the highest timef

Indicator v5 Oscillators & momentumScreeners & dashboards Repaints
Updated 4 months ago · None stated GitHub repository of RSI Signal

MACD x RSI Study

by jerryinyang
5 stars

This indicator combines MACD and RSI to generate pullback signals on forex pairs. It plots MACD line, signal line and histogram alongside RSI and Wave Trend oscillator. Higher-timeframe MACD provides trend bias while RSI identifies overbought and oversold zone

Indicator v4 Oscillators & momentumMoving averages
Updated 2 years ago · None stated GitHub repository of MACD x RSI Study

Kijun-Sen + SSL + WAE

by krosenfeld7
5 stars

Combines the Kijun-Sen baseline, SSL channel crossovers, and Waddah Attar Explosion momentum calculations to generate directional trade signals. The indicator plots the Kijun-Sen and SSL lines directly on the price chart. When price aligns relative to the Kiju

Indicator v4 TrendOscillators & momentum
Updated 3 years ago · Apache-2.0 GitHub repository of Kijun-Sen + SSL + WAE

Super Alligator Strategy

by eltonaguiar
4 stars

This strategy plots the Alligator indicator with customizable Jaw, Teeth, and Lips lines on the price chart. It generates buy and sell signals when the close price moves beyond the Lips line by a minimum gap percentage. The strategy includes optional SMA and V

Strategy v5 TrendMoving averages
Updated yesterday · None stated GitHub repository of Super Alligator Strategy
4 stars

This strategy combines a standard Moving Average Convergence Divergence (MACD) crossover signal with an exponential moving average (EMA) trend filter. Long positions are entered when the MACD crosses above its signal line while price is above the trend EMA. Sh

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · MIT GitHub repository of MACD Strategy [trugurpala]

v2

by jash-git
3 stars

This indicator plots five Exponential Moving Averages (EMA 3, 13, 34, 55, and 144) on the price chart to determine market trend structure. It identifies entry confluence signals by detecting when an EMA 3 and 13 crossover coincides with a MACD crossover within

Indicator v5 TrendMoving averages
Updated 4 weeks ago · None stated GitHub repository of v2
3 stars

CSW MTF Sentiment Line evaluates market sentiment across five customizable timeframes on the price chart. Traded assets can be measured using RSI, volatility (RSI of price standard deviation), or volume (RSI of volume moving average), with values normalized on

Indicator v5 Oscillators & momentumVolatility & bands Repaints
Updated 5 months ago · None stated GitHub repository of CSW MTF Sentiment Line
3 stars

This indicator overlays a dynamic trend ribbon or cloud on the price chart to visualize market direction and strength. It generates long and short signals based on selected strategy modes such as Default, Scalping, Intraday or Swing, using adjustable period, s

Indicator v5 TrendSMC / ICT / price action Repaints
Updated 12 months ago · None stated GitHub repository of Money Moves [Premium Algo V2]

Ichimoku Kinko Hyo

by TamTH-Dev
2 stars

Plots the classic Ichimoku Kinko Hyo system directly on the price chart. It calculates the Tenkan-Sen, Kijun-Sen, Senkou Span A, Senkou Span B, and Chikou Span based on midpoints of highest highs and lowest lows over user-defined lookback periods. The Kumo clo

Indicator v5 TrendSupport & resistance
Updated 5 weeks ago · None stated GitHub repository of Ichimoku Kinko Hyo

Alpy VIX

by avatar-lavventura
2 stars

This strategy combines the Williams Vix Fix oscillator with volume-weighted moving average (VWMA) bands to identify reversal entries. It plots the VIX Fix histogram and optional Bollinger and percentile bands in a separate pane. Long entries trigger when the o

Strategy v4 Volatility & bandsMoving averages Repaints
Updated 7 months ago · None stated GitHub repository of Alpy VIX

Options Max Pain Calculator [BackQuant] estimates options max pain theory levels, pin risk zones, and market maker gamma exposure directly on the price chart. It models strike prices, put/call volume ratios, implied volatility, and dealer hedging parameters to

Indicator v6 Support & resistance
Updated 8 months ago · None stated GitHub repository of Options Max Pain Calculator [BackQuant]

Garman-Klass Volatility (GKV)

by mushroom-men-Trading
2 stars

The Garman-Klass Volatility indicator measures market volatility using open, high, low, and close prices on a logarithmic scale. By accounting for intraday high-low range alongside opening and closing prices, it offers a more detailed volatility measure than s

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Garman-Klass Volatility (GKV)

CTC BB Hedge Strategy

by wynnforthework
2 stars

CTC BB Hedge Strategy calculates the Pearson correlation coefficient between the close prices of two symbols to determine market alignment. It applies Bollinger Bands to the primary symbol for mean-reversion signals while optionally filtering with a moving ave

Strategy v5 Volatility & bandsMean reversion Repaints
Updated 1 year ago · None stated GitHub repository of CTC BB Hedge Strategy

ATR Indicator

by Web3Degenerate
2 stars

This educational script calculates trailing stop loss reference levels based on the Average True Range. It measures 14-period market volatility and projects potential long stop levels below the current low and short stop levels above the current high. The scri

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

Signal Forge

by jayadevrana
1 stars

This indicator calculates an ATR-based trailing stop and combines it with a 200-period baseline EMA to identify trend reversals on closed candles. To eliminate false breakouts, it filters signals through an ADX chop detector, a relative volume threshold, and a

Indicator v6 TrendMoving averages
Updated 3 days ago · MPL-2.0 GitHub repository of Signal Forge

SMC Structure Context

by skipp-dev
1 stars

The SMC Structure Context indicator overlays visual elements on the price chart to represent the current market structure state. It displays a state label indicating bullish, bearish, or neutral conditions, along with markers for change of character (CHoCH) an

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 days ago · None stated GitHub repository of SMC Structure Context

Input Source Runtime Override

by pineforge-4pass
1 stars

This strategy computes two simple moving averages on a selectable price source and plots them on the price chart. The source defaults to close but can be overridden at runtime via the input panel, for example to high. It signals long entries on fast SMA crossi

Strategy v6 Moving averagesTrend
Updated 6 days ago · Apache-2.0 GitHub repository of Input Source Runtime Override

P_err_request_security

by GammaExpansion
1 stars

P_err_request_security is a minimal Pine Script v6 test fixture designed to evaluate multi-timeframe security requests. It retrieves the daily closing price of the current ticker symbol using request.security and plots the resulting value in a separate indicat

Indicator v6
Updated 6 days ago · MIT GitHub repository of P_err_request_security
1 stars

A strategy for MNQ futures that trades with the trend only when a regime score allows it. The score blends higher-timeframe EMA bias, ADX, choppiness, efficiency ratio and persistence, with separate enter and hold thresholds. Four switchable triggers can open

Strategy v6 TrendSessions & time Repaints
Updated 7 days ago · GPL-3.0 GitHub repository of MNQ Multi-Trigger Trend Continuation

DEPV2 DEBUG S13

by YuceSezar89
1 stars

This multi-symbol indicator monitors up to twenty cryptocurrency pairs and evaluates signals across four core dimensions: trend, momentum, volatility, and volume. It allows traders to configure signal generation through individual dimensions, simultaneous mult

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

WaveTrend Adv

by 7b809
1 stars

An overlay version of the WaveTrend oscillator whose lines are hidden by default, showing buy and sell labels on the price chart instead. A bullish or bearish cross of the two lines is signalled, optionally only when price is above or below a 200-period EMA. L

Indicator v5 Oscillators & momentum
Updated 2 weeks ago · None stated GitHub repository of WaveTrend Adv

Symmetric Attraction

by morindok
1 stars

Symmetric Attraction is an indicator that plots mirrored candles on the price chart by reflecting OHLC data around a regression basis line. The basis is computed using linear regression on the selected source with an optional logarithmic transformation. It als

Indicator v6 Candlestick patternsSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Symmetric Attraction

Volatility Momentum Suite

by vedkanani123
1 stars

A separate-pane momentum tool built on a smoothed rate of change with a signal line and standard deviation bands. It also measures acceleration of that momentum with its own moving average and smoothing length. Display options include classic or Heikin Ashi va

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of Volatility Momentum Suite

Draws volume order block zones with asymmetric signals on the price chart, then adds a proximity layer that checks how close those signals sit to high-volume, displacement and tier conditions. Version 1.2 is a tick-friendly build. It is an indicator only.

Indicator v6 SMC / ICT / price actionVolume
1 stars

A strategy that switches logic by volatility regime, measured as the percentile rank of ATR as a percent of price over 200 bars. In low volatility it buys RSI below 30 and sells above 70. In the middle regime it follows a 20 and 50 EMA crossover, with longs al

Strategy v6 Volatility & bandsMean reversion
Updated 2 months ago · None stated GitHub repository of TN Adaptive Vol Regime

Grimm Silver

by GreyssonEnterprises
1 stars

This indicator draws a background color over a customizable trading session in a selected timezone. The session can be limited to specific days of the week. Only during the active session, bars are colored green for bullish paint when the current bar's low exc

Indicator v4 Sessions & time
Updated 2 months ago · MIT GitHub repository of Grimm Silver
1 stars

The strategy plots fast and slow exponential moving averages with their difference as spread on the price chart. It enters long when the spread line crosses from negative to positive and short when crossing from positive to negative. Positions stay open until

Strategy v5 Moving averagesOscillators & momentum
Updated 4 months ago · MIT GitHub repository of Tuple Return Custom Function
1 stars

A Pine Script v5 indicator in a separate pane that works with Hurst-style forward cycle projections known as future line of demand (FLD) lines. It offers seven FLD slots, each with an automatic or manual period and a bars-per-period multiplier, and a switch be

Indicator v5 Support & resistance
Updated 6 months ago · None stated GitHub repository of Hurst Diamond Notation Pivots

Range Scalper

by knectardev
1 stars

Range Scalper marks support and resistance from the latest confirmed pivot low and pivot high. It treats price as range-bound when the distance between those levels, divided by the close, is at or below the range threshold. While that condition holds, it plots

Indicator v5 Support & resistanceBreakout
Updated 9 months ago · None stated GitHub repository of Range Scalper
1 stars

A strategy built on Keltner Channels. The middle line is a simple or exponential moving average and the bands sit a multiple of the average true range, true range or high-low range away. When the source crosses above the upper band it places a long stop order

Strategy v6 Volatility & bandsBreakout
Updated 1 year ago · None stated GitHub repository of Keltner Channels Strategy
1 stars

An alert-focused version of a multi-indicator divergence scanner. It checks pivot highs and lows on the price chart against MACD, MACD histogram, RSI, Stochastic, CCI, momentum, OBV, volume-weighted MACD, Chaikin Money Flow, MFI and the Stochastic Momentum Ind

Indicator v5 DivergenceOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of Meta Divergence Alert

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