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

A swing strategy that goes long when the SuperTrend (period 10, multiplier 5) is bullish, price is above a rising 200-period EMA, and the long side is enabled. Shorts follow the mirror rules but are switched off by default. An optional partial exit closes a se

Strategy v6 TrendMoving averages
Updated 7 days ago · GPL-3.0 GitHub repository of Pro-Swing System: 200 EMA and SuperTrend

DEPV2 DEBUG S22

by YuceSezar89
1 stars

DEPV2 DEBUG S22 is a multi-symbol crypto indicator that monitors twenty perpetual futures pairs across four distinct market dimensions: trend, momentum, volatility, and volume. It evaluates signals using simultaneous consensus or sequential chains, requiring a

Indicator v6 Screeners & dashboardsTrend Repaints
Updated 12 days ago · None stated GitHub repository of DEPV2 DEBUG S22

0-1 Reversal Signals

by morindok
1 stars

0-1 Reversal Signals tracks consecutive sequences of bullish or bearish candlestick closes to highlight potential trend reversals. It counts consecutive green (1) or red (0) candles and generates visual Buy or Sell shape signals directly on the price chart whe

Indicator v5 Candlestick patternsTrend
Updated 7 weeks ago · None stated GitHub repository of 0-1 Reversal Signals

Apex Nexus Flip Engine v11

by vedkanani123
1 stars

A trend flip indicator on the price chart with BUY and SELL labels. It builds a zero-lag trail from an ATR multiple and an optional volume-weighted source, with an evasive mode that pushes the trail away during small pullbacks. Flips pass gates for choppiness,

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Apex Nexus Flip Engine v11
1 stars

This multi-factor consensus strategy aggregates directional votes across five independent analytical agents: dual EMA trend alignment (50/200), RSI momentum, Bollinger Bands baseline position, intraday VWAP, and higher-timeframe daily EMA 50 trend. It executes

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of TN Federated Swarm Voting v6

Polish

by GreyssonEnterprises
1 stars

This indicator overlays multiple smoothed moving averages, candlestick reversal patterns, and trading session highlights directly onto the price chart. It calculates 21, 50, optional 100, and 200-period smoothed moving averages alongside a short-term moving av

Indicator v4 Moving averagesCandlestick patterns
Updated 2 months ago · MIT GitHub repository of Polish

A Pine Script v5 indicator in a separate pane that plots a Hurst spectral oscillator: the hl2 price is passed through bandpass filters for cycles from 1 day up to 18 years and the cycle waves are drawn together. Bandwidth is set per cycle, with narrower defaul

Indicator v5 Oscillators & momentum Repaints
Updated 6 months ago · None stated GitHub repository of Hurst Spectral Analysis Oscillator A1.1

combination by yzz

by webcrack4
1 stars

This overlay indicator scans price pivots for regular and hidden divergences against several oscillators at once, including MACD, MACD histogram, RSI, stochastic, CCI, momentum, OBV, volume-weighted MACD, Chaikin money flow, money flow index, and an optional e

Indicator v4 DivergenceOscillators & momentum Repaints
Updated 9 months ago · None stated GitHub repository of combination by yzz

Opening High Low

by ivansoft
1 stars

Records the high and low of the candle that begins a chosen session window and plots them as circles on the price chart, holding them until the next session start. The session is an input, defaulting to a five-minute window starting at 10:30. It works on intra

Indicator v6 Sessions & timeSupport & resistance
Updated 1 year ago · None stated GitHub repository of Opening High Low

MACD Test VWAP

by tseitz
1 stars

This strategy combines standard Moving Average Convergence Divergence (MACD) crossovers with Volume Weighted Average Price (VWAP) level interactions. It enters long positions when the MACD line sits above its signal line and short positions when below. Positio

Strategy v4 TrendOscillators & momentum Repaints
Updated 4 years ago · None stated GitHub repository of MACD Test VWAP

Laguerre Filter

by everget
948 stars

The Laguerre Filter is a technical indicator designed to reduce lag while smoothing price data using John Ehlers' time-warping Laguerre polynomials. It processes a selected price source across four recursive filter components governed by a user-defined damping

Indicator v4 Moving averagesTrend
Updated 11 days ago · GPL-3.0 GitHub repository of Laguerre Filter
330 stars

This indicator plots a TTM Squeeze momentum oscillator and a MACD line in a separate pane. It builds the squeeze oscillator from a linear regression of price against a high-low and simple moving average midpoint, and colors the area by slope and sign. Circles

Indicator v5 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of TTM Squeeze + MACD line [Alorse]

AUDC Tracker

by Allen1212
303 stars

This indicator plots visual labels directly on the price chart to display historical stock buy and sell transactions executed by ARK Invest for AUDC. Using hardcoded timestamps and transaction counts, it highlights the specific dates on which ARK funds traded

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

MathComplexEvaluate

by ricardosantos79
261 stars

MathComplexEvaluate is a Pine Script v5 utility library designed to evaluate string-based mathematical expressions containing complex numbers. It parses tokens into reverse Polish notation using external helper libraries and computes arithmetic operations such

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

This overlay strategy marks short-term turning points on the price chart and enters SPY option-style trades from them. It plots simple moving averages of highs and lows, draws up and down reversal arrows, and colors bars when a short-term extreme coincides wit

Strategy v5 TrendMoving averages Repaints
Updated 6 weeks ago · None stated GitHub repository of SPY Options Trading - Alert

Quick Flip Scalper

by TradersPost
218 stars

This strategy executes an opening-range liquidity fade based on the first candle of a session. It qualifies the opening range against the daily ATR to confirm manipulation or liquidity spikes. If qualified, it searches for reversal candlestick patterns, such a

Strategy v6 Sessions & timeCandlestick patterns
Updated 3 months ago · None stated GitHub repository of Quick Flip Scalper

Volatility Arbitrage

by capissimo
114 stars

Volatility Arbitrage calculates the Rate of Change (ROC) for a selected price dataset and plots it along with upper and lower standard deviation bounds in a separate pane. The indicator measures momentum fluctuations relative to zero and identifies statistical

Indicator v4 Volatility & bandsOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Volatility Arbitrage

Archens Shares

by hasnocool
106 stars

Archens Shares is an intraday breakout strategy designed for session-based trading. It tracks the highest high and lowest low from a 30-minute timeframe during a specified session window, defaulting to 09:45 to 10:15. A long position is entered when the closin

Strategy v5 BreakoutSessions & time
Updated 2 years ago · GPL-3.0 GitHub repository of Archens Shares

Choppiness Index

by mihakralj
99 stars

The script plots the Choppiness Index in a separate pane. It sums true range over a lookback and compares that sum with the highest-high to lowest-low range, then scales the result from 0 to 100. Lower readings indicate a trending market and higher readings in

Indicator v6 TrendVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Choppiness Index

array.copy()

by be-thomas
65 stars

This indicator demonstrates the Pine Script array.copy function. It builds a float array and appends the values 0 and 1. On the last bar it copies that array, appends 2 only to the copy, and draws a large label that prints both arrays so the original stays unc

Indicator v4
Updated 5 days ago · GPL-3.0 GitHub repository of array.copy()

This indicator estimates the dominant market cycle length in bars using John Ehlers’s Hilbert Transform method. It smooths the chosen source, builds in-phase and quadrature components, and converts their phase angle into a period that is clamped between 6 and

Indicator v6
Updated 8 months ago · MIT GitHub repository of HT_DCPERIOD: Hilbert Transform Dominant Cycle Period

MTF OHLC stats

by TamaraKGreen
46 stars

This indicator plots previous open, high, low and close levels from a selected timeframe on the price chart. It requests those values with a configurable bar offset and marks a new higher-timeframe session. Users can show only the latest levels, extend the lin

Indicator v5 Support & resistanceScreeners & dashboards Repaints
Updated 7 weeks ago · None stated GitHub repository of MTF OHLC stats

Doji Star - Bullish

by TWODS-CAPITAL
37 stars

This indicator marks a bullish Doji Star on the price chart. It looks for a downtrend, a long black candle, and a following doji whose body sits below the prior candle body. Trend detection can use a 50-period SMA, both 50- and 200-period SMAs, or no filter. A

Indicator v5 Candlestick patternsTrend
Updated 3 years ago · MIT GitHub repository of Doji Star - Bullish

This strategy implements a Donchian breakout trend-following system with volatility-adaptive profit targets. It enters long or short on 55-period Donchian channel breakouts, sizes positions by ATR risk, and pyramids up to four units as price advances. Stop los

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 43: Volatility Adaptive

FilledValueGap E002

by ruckard
13 stars

FilledValueGap E002 is a trading strategy that enters positions opposite to the direction of a filled value gap, operating on the premise that the prevailing trend will resume after gap completion. It utilizes Curie closing moving averages as trend filters to

Strategy v5 SMC / ICT / price actionTrend
Updated 1 year ago · None stated GitHub repository of FilledValueGap E002

Calculates continuous structural market bias by detecting swing high and low pivots (higher highs, higher lows, lower highs, and lower lows) using configurable left and right bar lookbacks. It assigns weighted values to classified pivots within a rolling windo

Indicator v6 SMC / ICT / price actionTrend
Updated 2 days ago · MIT GitHub repository of Market Structure Advanced [WavesUnchained]
7 stars

The Capital Rotational Event (CRE) indicator tracks capital flows and rotational momentum between two selectable assets, defaulting to SPY and GLD. It calculates a relative strength ratio between the target assets, smoothed by a moving average, along with a mo

Indicator v6 Oscillators & momentumMoving averages
Updated 3 months ago · None stated GitHub repository of Capital Rotational Event (CRE)

Apex Protocol Assistant

by alboogycOdR
6 stars

Apex Protocol Assistant is a Smart Money Concepts charting tool designed to identify session-based setups and market structure shifts. It determines directional bias using a higher-timeframe exponential moving average and highlights key trading windows includi

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of Apex Protocol Assistant
5 stars

This indicator calculates and displays the Relative Strength Index, Slow Stochastic, and a normalized MACD line together in a separate pane. It plots the oscillators alongside customizable overbought, middle, and oversold threshold levels with shaded backgroun

Indicator v4 Oscillators & momentumMoving averages
Updated 3 years ago · Apache-2.0 GitHub repository of RSI + Slow Stochastic + MACD

RSI OB/OS [trugurpala]

by trugurpala
4 stars

This indicator calculates a Relative Strength Index (RSI) with dynamic gradient coloring in a separate pane. It tracks defined overbought and oversold thresholds, dynamically adjusting the line color according to momentum strength. Background shading highlight

Indicator v6 Oscillators & momentum
Updated 2 months ago · MIT GitHub repository of RSI OB/OS [trugurpala]

Daily Levels

by g-moe
3 stars

Daily Levels plots horizontal price offset lines based on the current day's open and previous day's close. Users can define two custom price offsets to project key reference levels above opening and closing values. The indicator renders directly on the price c

Indicator v5 Support & resistanceSessions & time Repaints
Updated 5 months ago · None stated GitHub repository of Daily Levels

Setup-1

by IAMATOMIC001
3 stars

This indicator plots multiple technical analysis components directly on the price chart, including a Nadaraya-Watson envelope, pivot-based trendlines, and a kernel regression oscillator. It also renders visual overlay panels for the Relative Strength Index and

Indicator v5 TrendOscillators & momentum Repaints
Updated 12 months ago · None stated GitHub repository of Setup-1

This indicator detects multi-timeframe Liquidity Engulfing Candles directly on the price chart. It evaluates bullish and bearish engulfing patterns augmented by optional stop hunt wick filters and close breakout conditions across H1, H4, and current timeframes

Indicator v5 Candlestick patternsSMC / ICT / price action Repaints
Updated 2 months ago · None stated GitHub repository of Liquidity Engulfing & Displacement [MsF]

VWMA

by avatar-lavventura
2 stars

This script calculates a Volume Weighted Moving Average with length 24 using high low close and volume data then plots it directly on the price chart. The VWMA line appears in blue. It also draws an upper band in red and a lower band in green whose distances f

Strategy v4 Moving averages Repaints
Updated 7 months ago · None stated GitHub repository of VWMA
2 stars

Bear Market Probability Model plots a bear-market probability line in a separate pane. Its header describes a score built from four weighted groups: macroeconomic conditions, technical analysis, market sentiment, and market breadth. Users set warning and dange

Indicator v6 Screeners & dashboardsOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Bear Market Probability Model

NASDAQ 100 Peak Hours Strategy

by wynnforthework
2 stars

This Pine Script strategy trades the NASDAQ 100 index during peak hours using EMA crossovers, RSI, and VWAP filters. Long entries occur when close exceeds the 9-period EMA which is above the 21-period EMA, with RSI above 50, price above VWAP, EMAs aligned, and

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of NASDAQ 100 Peak Hours Strategy

Draw Tables

by Web3Degenerate
2 stars

This indicator draws a table on the price chart displaying current open, high, low, and close values. The table is positioned at the top right of the chart. Table cell colors change to green when close exceeds open or red when close is lower, providing a simpl

Indicator v5 Screeners & dashboards
Updated 2 years ago · None stated GitHub repository of Draw Tables

CHOCH + BOS Strategy

by skipp-dev
1 stars

This strategy identifies market structure shifts, specifically Change of Character (ChoCH) and Break of Structure (BOS), on the main price chart. It triggers entries based on swing pivot breakouts with an optional volume filter and moving average confirmation.

Strategy v6 SMC / ICT / price actionTrend
Updated 3 days ago · None stated GitHub repository of CHOCH + BOS Strategy

Mean Reversion Bollinger

by pineforge-4pass
1 stars

This strategy combines Bollinger Bands and the Relative Strength Index (RSI) to execute mean-reversion trades directly on the main price chart. It opens long positions when price drops below the lower band with an oversold RSI reading, and opens short position

Strategy v6 Oscillators & momentumVolatility & bands
Updated 6 days ago · Apache-2.0 GitHub repository of Mean Reversion Bollinger

P_fmt_annotations

by GammaExpansion
1 stars

This indicator is a Pine Script v6 formatting fixture rather than a trading tool. It declares a user-defined Point type with bar index and price fields, plus a function that doubles a float. On each bar it doubles the close, stores the bar index and close in a

Indicator v6
Updated 6 days ago · MIT GitHub repository of P_fmt_annotations

Quantum Trend Signal

by rosijay17-cmd
1 stars

An overlay indicator that plots a fast and a slow EMA, defaulting to 21 and 55, and shades the chart background by which one is higher. A BUY triangle appears when the fast EMA crosses above the slow one while RSI is above 55 and ATR exceeds a fraction of its

Indicator v6 TrendMoving averages
Updated 7 days ago · GPL-3.0 GitHub repository of Quantum Trend Signal

DEPV2 DEBUG S23

by YuceSezar89
1 stars

DEPV2 DEBUG S23 is a Pine Script v6 indicator that draws in a separate pane and watches up to twenty user-selected Binance perpetual symbols. It combines four signal classes—trend, momentum, volatility, and volume—through a single class, simultaneous agreement

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

The 7 Golden MA Detrended Layers indicator calculates seven simple moving averages with period lengths scaled according to powers of the golden ratio (Phi). It subtracts each moving average from the source price to construct seven detrended price oscillator la

Indicator v5 TrendMoving averages
Updated 7 weeks ago · None stated GitHub repository of 7 Golden MA Detrended Layers

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