Synced with GitHub · updated yesterday

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

This strategy executes trades on futures contracts by combining custom smoothed price bars with a multi-timeframe stochastic oscillator and Ichimoku elements. It calculates percentage-based stop-loss and take-profit targets for long and short positions. It ove

Strategy v5 Oscillators & momentumTrend Repaints
Updated 6 weeks ago · None stated GitHub repository of ESH2023 5M Futures No Repaint
219 stars

This indicator plots reference levels for previous daily high and low prices directly on the price chart. It requests daily timeframe data using the security function and plots the offset values as continuous lines, displaying resistance in red and support in

Indicator v4 Support & resistanceSessions & time
Updated 5 years ago · None stated GitHub repository of 昨日高低點標示

EMA Crossover Strategy

by TradersPost
218 stars

EMA Crossover Strategy plots a fast and a slow exponential moving average on the price chart. It treats a confirmed fast-over-slow cross as a long condition and a confirmed cross under as a short condition. Position size is a percentage of equity. Optional per

Strategy v6 TrendMoving averages
Updated 3 months ago · None stated GitHub repository of EMA Crossover Strategy

Five-in-one Strategy

by capissimo
114 stars

Five-in-one Strategy combines five analytical tools into a single price chart overlay: the Dual Thrust Trading Algorithm (DTTA), Semafore, HalfTrend, Nick Rypock Trailing Reverse, and Tweezer or Kangaroo Tail candlestick patterns. It generates trade signals us

Indicator v4 TrendBreakout Repaints
Updated 1 year ago · None stated GitHub repository of Five-in-one Strategy

5msm VISHNU

by hasnocool
106 stars

This strategy overlays several classic studies on the price chart. It calculates a MACD-style oscillator from fast and slow moving averages with a signal line, a 200-period exponential moving average, and Williams Alligator smoothed averages for the jaw, teeth

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of 5msm VISHNU
99 stars

This indicator calculates Bill Williams' Awesome Oscillator in a separate pane. It forms the bar midpoint from high and low, then subtracts a slow simple moving average of that midpoint from a faster one. Default periods are 5 and 34. The histogram is green wh

Indicator v6 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Awesome Oscillator (AO)

Example 3

by be-thomas
65 stars

This indicator calculates and plots a 5-period simple moving average and a 20-period simple moving average directly on the price chart. It visualizes the channel between the two moving averages by filling the background space with dynamic colors. When the 5-pe

Indicator v5 TrendMoving averages
Updated 5 days ago · GPL-3.0 GitHub repository of Example 3

9 to Futere

by iamc1oud
56 stars

9 to Futere is an overlay indicator that projects the closing price forward onto future bars while identifying potential trading setups relative to past price action. It plots a forward-offset line based on a customizable candle count set to nine bars by defau

Indicator v4 Support & resistance
Updated 2 months ago · None stated GitHub repository of 9 to Futere

Supertrend Strategy

by dcaoyuan
55 stars

This indicator calculates a Supertrend line combined with a 200-period exponential moving average for trend filtering. It plots the Supertrend lines and background fills directly on the price chart, generating buy and sell signal labels when the trend directio

Indicator v6 TrendMoving averages
Updated 6 months ago · Apache-2.0 GitHub repository of Supertrend Strategy
47 stars

This indicator calculates John Ehlers' Detrended Synthetic Price using a dual exponential moving average (EMA) approach. It derives a fast quarter-cycle EMA and a slow half-cycle EMA from a specified dominant cycle period, applying exact warm-up normalization

Indicator v6 Oscillators & momentumMoving averages
Updated 8 months ago · MIT GitHub repository of Detrended Synthetic Price (DSP)

TTM Squeeze Divergence

by TamaraKGreen
46 stars

The TTM Squeeze Divergence indicator plots a classic TTM Squeeze momentum oscillator in a separate pane alongside Bollinger Bands and Keltner Channels squeeze status dots on the zero line. It detects regular and hidden bullish and bearish divergences between p

Indicator v6 Oscillators & momentumVolatility & bands Repaints
Updated 7 weeks ago · None stated GitHub repository of TTM Squeeze Divergence

Bollinger Bands %B

by TWODS-CAPITAL
37 stars

This indicator calculates and plots the Bollinger Bands %B oscillator in a separate pane below the price chart. It measures the relative position of the price compared to standard Bollinger Bands, normalizing values where zero represents the lower band and one

Indicator v5 Volatility & bandsOscillators & momentum
Updated 3 years ago · MIT GitHub repository of Bollinger Bands %B

Zen Bar Count

by Zen-Tim
29 stars

This indicator counts bars from the start of each trading day and resets the count when the daily session changes. It plots the running count in the data window and, when enabled, draws that number below the bar every N bars. A second interval switches the lab

Indicator v5 Sessions & time
Updated 2 weeks ago · MIT GitHub repository of Zen Bar Count
24 stars

This strategy plots a Supertrend and a double exponential moving average on the price chart. Supertrend direction flips mark buy and sell signals, with optional labels and trend highlighting. The DEMA uses a selectable timeframe and source and is requested wit

Strategy v5 TrendMoving averages Repaints
Updated 4 years ago · MPL-2.0 GitHub repository of Super Duper Trend Strategy
16 stars

This strategy enters long or short Donchian breakouts and sizes each unit from a percentage of equity and ATR. It sets an initial ATR stop, trails with a chandelier stop, and tightens that trail after a chosen number of bars. Optional profit targets close one

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 25: Time Profit Lock

Divergenced I002

by ruckard
13 stars

Divergenced I002 is a trading strategy that identifies entry points using Squeeze Momentum Indicator divergences across price and momentum structure. Long positions trigger on bullish momentum divergences, while short positions trigger on bearish divergences.

Strategy v5 DivergenceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Divergenced I002

This indicator detects compressed corrective coils inside a higher-timeframe trend and signals when they resolve into clean directional breaks. It plots compression bands, fractal boxes, efficiency scores, and a light dashboard on the price chart. Signals clas

Indicator v6 Volatility & bandsSMC / ICT / price action
Updated 2 days ago · MIT GitHub repository of Compression Fractal Release [WavesUnchained]
9 stars

Volatility Contraction Score is a separate-pane indicator that scores how tightly price and volume are contracting. It compares short and long true-range averages and close standard deviations, then folds in a five-bar volume ratio against a longer volume aver

Indicator v6 Volatility & bandsVolume
Updated 4 months ago · MIT GitHub repository of Volatility Contraction Score

Williams %R Reversal - Eterna MCP

by EternaHybridExchange
9 stars

This strategy tracks the Williams %R oscillator to trade mean-reversion bounces from overbought and oversold extremes. It opens long or short positions when a reversal signal occurs alongside confirming price direction, while generating JSON-formatted alert pa

Strategy v5 Oscillators & momentumMean reversion
Updated 7 months ago · MIT GitHub repository of Williams %R Reversal - Eterna MCP
8 stars

Stochastic with STC X combines three momentum oscillators into a single separate indicator pane: a standard Stochastic Oscillator, the Schaff Trend Cycle (STC), and an adapted WaveTrend oscillator. It plots smoothed %K and %D lines with visual circle markers f

Indicator v4 Oscillators & momentum
Updated 4 years ago · None stated GitHub repository of Stochastic with STC X

Heikin Ashi Dots

by lunarticktrading
7 stars

Heikin Ashi Dots calculates trend momentum using Heikin-Ashi candle values retrieved across a customizable timeframe. It evaluates the relationship between the open and close of the current and prior Heikin-Ashi bars, plotting a horizontal series of colored ci

Indicator v6 TrendCandlestick patterns
Updated 2 weeks ago · None stated GitHub repository of Heikin Ashi Dots

Smooth Theil-Sen

by eddiebelaval
7 stars

This indicator calculates and plots a smoothed Theil-Sen robust linear regression line directly on the price chart alongside statistical deviation bands. It uses Gaussian kernel weighting to blend between median and mean calculations for slopes and residuals.

Indicator v6 TrendVolatility & bands
Updated 3 months ago · None stated GitHub repository of Smooth Theil-Sen
7 stars

Fibonacci Bollinger Bands overlays standard Bollinger Bands along with multiple internal and external Fibonacci ratio levels on the price chart. It calculates a center basis line using a simple, exponential, or weighted moving average, and computes upper and l

Indicator v5 Volatility & bandsSupport & resistance
Updated 4 months ago · None stated GitHub repository of Fibonacci Bollinger Bands
6 stars

This indicator plots a session volume-weighted average price on the price chart and resets the cumulative price-volume totals when a new session begins. It uses typical price and volume, and can draw optional standard-deviation bands around the VWAP. A corner

Indicator v6 Sessions & timeVolume
Updated 8 weeks ago · MIT GitHub repository of Capital41 Session VWAP v2
6 stars

Wick Rejection S/R Strategy identifies key support and resistance zones based on candlestick wick rejections and liquidity sweeps directly on the price chart. It calculates potential reversal and breakout retest zones using configurable wick thresholds, level

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of Wick Rejection S/R Strategy
5 stars

This indicator builds a frozen volume profile over a fixed, half-open timestamp range and draws it on the price chart. It aggregates one-minute source bars into output rows sized by a chosen tick count, marks a configurable value-area percentage, and can plot

Indicator v6 VolumeSupport & resistance
Updated 3 days ago · MPL-2.0 GitHub repository of VP RSD Fixed Range Shelf Diagnostic
5 stars

Quick Scan for Cycles is a technical indicator designed to analyze cyclic behavior in financial asset prices. Operating in a separate indicator pane, it uses a customizable data source and bar lookback length to process price data and scan for recurring cycle

Indicator v5 TrendOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Quick Scan for Cycles
5 stars

This indicator identifies Smart Money Concept (SMC) market structure elements, specifically Order Blocks (OB) and Fair Value Gaps (FVG), across current or higher timeframes. It highlights dynamic order blocks and imbalance zones directly on the price chart usi

Indicator v4 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 years ago · None stated GitHub repository of Cerebrum Order Block and FVG

This short-only strategy enters when price is below a daily 50-period EMA, crosses under a four-hour 50-period EMA, and closes below the previous bar low. Position size is 20 percent of equity. Exits use a limit and stop based on percentage distances by defaul

Strategy v4 TrendMoving averages Repaints
Updated 3 years ago · Apache-2.0 GitHub repository of Daily Trend + 4 Hour Reversal + 15 Min Pressure Short
4 stars

This indicator presents a separate-pane dashboard that looks up stored figures for a chosen crypto pair and a named strategy. It does not calculate RSI, MACD, bands, or other indicators from live prices. Inputs select the pair and strategy and toggle metric an

Indicator v5 Screeners & dashboards
Updated yesterday · None stated GitHub repository of Crypto Pair Selector STEPFUN

Noob's MTF multi-EMA

by InNoobWeTrust
4 stars

This strategy draws up to three exponential moving averages, default lengths 34, 89 and 610, across as many as seven user-chosen timeframes in a separate pane. Each series uses a gradient by timeframe, and optional smoothing or variable line width changes how

Strategy v5 Moving averagesScreeners & dashboards Repaints
Updated yesterday · None stated GitHub repository of Noob's MTF multi-EMA
4 stars

This strategy trades Ethereum with a fast and slow exponential moving average crossover filtered by a 200-period EMA. It enters long when the fast EMA crosses above the slow EMA and price is above the 200 EMA. Shorts stay off by default and open only when that

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of Ethereum ETH Strategy [trugurpala]
4 stars

Tracks the high and low of a user-defined intraday session and enters breakout trades when the bar closes outside this range. It can enter during the session or wait until the session ends. Long trades enter on a close above the session high, while short trade

Strategy v5 BreakoutSessions & time
Updated 11 months ago · Custom licence GitHub repository of Session Breakout Strategy [Lab]

SPY Trending

by dearvn
4 stars

SPY Trending is an indicator designed for SPY that evaluates trend alignment across multiple timeframes using Exponential Moving Averages (5, 10, and 20 EMAs). It fetches data across lower and higher timeframes to evaluate buy and sell conditions, displaying t

Indicator v5 Moving averagesScreeners & dashboards Repaints
Updated 4 years ago · None stated GitHub repository of SPY Trending

P-Linear TSI Tar

by gocaman
3 stars

Calculates a True Strength Index (TSI) oscillator modified with a linear regression line and standard deviation bands. It plots the regression line in a separate pane along with static reference levels at zero, 0.8, and -0.8, coloring the line based on slope d

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated yesterday · None stated GitHub repository of P-Linear TSI Tar

Jash Test

by jash-git
3 stars

This indicator plots five Fibonacci-based exponential moving averages on the main price chart, using lengths of 3, 13, 34, 55, and 144. It tracks Guppy Multiple Moving Average and Granville concepts to analyze trend direction and alignment. The script tests wh

Indicator v5 Moving averagesTrend
Updated 4 weeks ago · None stated GitHub repository of Jash Test

CCI + Stoch + HA

by g-moe
3 stars

This indicator combines three momentum and trend analysis tools into a separate pane: a multi-timeframe Commodity Channel Index (CCI), a multi-timeframe Stochastic Oscillator, and a dual-EMA smoothed Heikin-Ashi trend bias displayed as colored dots. Users can

Indicator v5 Oscillators & momentumTrend Repaints
Updated 5 months ago · None stated GitHub repository of CCI + Stoch + HA

Swiss Knife

by IAMATOMIC001
3 stars

This Pine Script indicator draws fractal levels on the price chart. It computes up and down fractals by evaluating high and low values across multiple bars using custom array functions. The code defines weighted array sums and slices to identify fractal indice

Indicator v5 Support & resistanceTrend
Updated 12 months ago · None stated GitHub repository of Swiss Knife

Skew Weighted Average Price (SWAP) calculates a skew-weighted average price for nuanced analysis of price dynamics and potential trading opportunities. The script determines skew by comparing smoothed positive and negative true ranges derived from price direct

Indicator v5 Volatility & bandsSupport & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of Skew Weighted Average Price (SWAP)

Stochastic Oscillator

by piecioshka
2 stars

This indicator calculates and plots the Stochastic Oscillator (%K and %D lines) in a separate pane. It identifies overbought and oversold market conditions with configurable threshold levels and background zone gradients. When enabled, it plots entry markers o

Indicator v6 Oscillators & momentumScreeners & dashboards
Updated 11 days ago · MIT GitHub repository of Stochastic Oscillator

PA Helpers

by TamTH-Dev
2 stars

This indicator overlays price action assistance tools on the main price chart. It calculates and plots up to three exponential moving averages with user-defined lengths, colors, and independent multi-timeframe resolution settings. In addition to moving average

Indicator v6 Moving averagesSupport & resistance
Updated 5 weeks ago · None stated GitHub repository of PA Helpers
2 stars

Liquidity Location Detector is a TradingView Pine Script indicator that plots fast and slow EMA lines on the price chart along with crossover signals. It detects and draws liquidity zones as colored boxes representing support and resistance levels based on nor

Indicator v6 Moving averagesVolume
Updated 2 months ago · None stated GitHub repository of Liquidity Location Detector

This strategy identifies buy and sell entry points for XAUUSD using a combination of exponential moving averages, RSI, Stochastic oscillators, ATR, and Fibonacci zones. It supports multi-mode execution featuring confirmation and scalp entries triggered by over

Strategy v5 TrendOscillators & momentum

Alpy Kazan

by avatar-lavventura
2 stars

Alpy Kazan is a multi-timeframe momentum strategy combining a WaveTrend oscillator with dual-length RSI divergence calculations. It evaluates custom timeframes to plot overbought and oversold bands, WaveTrend crossovers, and RSI differentials in a separate pan

Strategy v4 Oscillators & momentum Repaints
Updated 7 months ago · None stated GitHub repository of Alpy Kazan

Half Causal Estimator

by regalouisei
2 stars

The Half Causal Estimator calculates a smoothed statistical baseline for metrics such as volume, true range, or price change. It uses time-of-day data hashing combined with non-parametric kernel filtering, supporting Gaussian, Epanechnikov, Triangular, and Sin

Indicator v6 VolumeVolatility & bands
Updated 8 months ago · None stated GitHub repository of Half Causal Estimator

Close-to-Close Volatility (CCV)

by mushroom-men-Trading
2 stars

This indicator calculates close-to-close volatility from logarithmic returns of consecutive closing prices. It computes the standard deviation of those returns over a chosen length, annualizes the result with the square root of 252, and optionally smooths it w

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Close-to-Close Volatility (CCV)

This strategy plots support and resistance from the highest high and lowest low over a lookback window, and can overlay Bollinger Bands on the price chart. It calculates RSI or MFI, optionally from Heikin Ashi prices, and exposes WaveTrend, Laguerre smoothing

Strategy v5 Support & resistanceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Support and Resistance with RSI and Trend Filter

Signal Processing

by Electrified-Trading
2 stars

This library supplies utility functions for handling signal values in Pine Script. The quantize function selects one of four results depending on whether the input value is positive, negative, zero or NaN. The negMult function multiplies the value by a given m

Library v5
Updated 1 year ago · MPL-2.0 GitHub repository of Signal Processing

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