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

This Pine Script indicator identifies potential trade entries for the USDJPY pair exclusively on 5-minute and 15-minute charts. It plots three Exponential Moving Averages: 9-period fast, 20-period slow, and 200-period trend filter. Signals trigger on EMA 9 cro

Indicator v6 Moving averagesVolatility & bands

AAPL Best Position

by theteelek
1 stars

A long-only strategy that accumulates a fixed quantity by buying near the lower edge of a smoothed channel. The channel is an EMA of the highest high and lowest low over an adjustable range. A buy fires when price touches the lower line while RSI is rising out

Strategy v6 Mean reversion
Updated 1 year ago · None stated GitHub repository of AAPL Best Position

MOST on RSI

by CihadCengiz
1 stars

An oscillator that applies the MOST (moving stop) trailing line to an RSI-based moving average. It plots RSI with a smoothed average and the stop line in a separate pane, with fixed 30, 50 and 70 levels. The average type can be SMA, EMA, RMA, WMA, VWMA, Bollin

Indicator v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of MOST on RSI

Draw-On-Liquidity

by harshaldulera
1 stars

Draw-On-Liquidity is an overlay indicator that marks liquidity on the price chart. It reads highs and lows from a chosen higher timeframe and draws extended lines with buy-side and sell-side liquidity labels when consecutive values fall within a percentage thr

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 1 year ago · None stated GitHub repository of Draw-On-Liquidity

Adaptive Strategy

by Studentcodee
1 stars

This adaptive strategy combines multiple classic technical indicators into a unified framework to generate trading signals on the price chart. It evaluates conditions across Moving Average crossovers, Donchian channel breakouts, MACD, RSI, Bollinger Bands, Par

Strategy v6 TrendOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of Adaptive Strategy
1 stars

A strategy meant for one-minute charts that buys when price is near a recent pivot low, RSI is below an oversold level, a hammer or bullish engulfing candle appears and price is above an EMA. Sells mirror this near pivot highs with overbought RSI, bearish patt

Strategy v6 Candlestick patternsSupport & resistance

An overlay indicator that detects swing structure on up to three configurable timeframes and marks break of structure and market structure shift events with lines and labels. Each timeframe has its own swing length, line style, colours and a choice between clo

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of Multi Timeframe Break of Structure (BOS) & Market Structure Shift (MSS)
1 stars

This indicator visualizes Wyckoff Volume Spread Analysis principles directly on the price chart. It calculates volume moving averages, bar spread, and close location values to categorize individual candlestick behavior relative to average trading activity. Whe

Indicator v5 VolumeCandlestick patterns
Updated 1 year ago · MIT GitHub repository of VSA Volume Spread Analysis

Raj Reversion Strategy

by LongVu219
1 stars

Measures how far price sits from an Arnaud Legoux moving average, shown as a percentage in a separate pane. The average length is scaled by the ratio between a chosen higher timeframe, 60 minutes by default, and the chart timeframe so values stay comparable ac

Indicator v6 Mean reversionOscillators & momentum
Updated 1 year ago · Apache-2.0 GitHub repository of Raj Reversion Strategy
1 stars

Calculates take profit and stop loss levels from the Average True Range and shows them on the price chart for long and short setups. Settings are the ATR period and separate multipliers for the stop loss and the take profit. The levels are computed from the la

Indicator v5 Volatility & bandsSupport & resistance
Updated 1 year ago · None stated GitHub repository of ATR Auto TP/SL Calculator
1 stars

A plain Average True Range indicator in a separate pane. It plots the ATR of the chart with an adjustable averaging length, 14 by default, and has no signals, levels, alerts or trade rules. The repository description and README present it as a way to size stop

Indicator v5 Volatility & bands
Updated 1 year ago · None stated GitHub repository of Average True Range

EA

by equitymarkets
1 stars

This Pine Script strategy provides a basic moving average crossover trading template. It calculates and plots a fast simple moving average and a slow simple moving average directly on the price chart. The strategy enters a long position when the fast average c

Strategy v6 Moving averagesTrend
Updated 1 year ago · MIT GitHub repository of EA
1 stars

Draws Bollinger Bands from up to three user-chosen timeframes at once on the price chart. For each timeframe it can show the basis line and bands at one, two and three standard deviations, with its own period, offset and colours. The average type can be SMA, E

Indicator v6 Volatility & bandsMean reversion
Updated 1 year ago · None stated GitHub repository of MTF Bollinger Bands TT (3BB)

Supertrend Strategy

by meetghodasara
1 stars

A long-only strategy built on the built-in Supertrend indicator. It enters long when Supertrend flips to an uptrend and closes the position when it flips back to a downtrend, with orders processed on bar close. ATR length and factor are adjustable. Green and r

Strategy v6 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Supertrend Strategy

Micha 150

by crabiner
1 stars

Micha 150 is a trend-following overlay indicator that calculates a 150-period daily Simple Moving Average (SMA) along with its three-point backward difference derivative slope. It identifies entry and exit conditions using customizable percentage buffer zones

Indicator v5 TrendMoving averages Repaints
Updated 1 year ago · None stated GitHub repository of Micha 150

ShinobiTrend

by Yasukeey
1 stars

A feature-rich overlay indicator that prints buy and sell signals with a sensitivity setting, a signal tuner and presets such as All Signals or Trend Scalper. It adds a trend cloud, a long-term trend tracer, pullback signals, trend heatmap candle colouring and

Indicator v5 TrendScreeners & dashboards
Updated 1 year ago · None stated GitHub repository of ShinobiTrend
1 stars

Scans recent price swings on the chart for four harmonic patterns, Bat, Butterfly, Crab and Shark, checking Fibonacci ratios within an adjustable tolerance over a lookback window. Detected patterns are drawn with labels, price levels, a completion marker and a

Indicator v5 Support & resistance
Updated 1 year ago · MIT GitHub repository of Harmonic Pattern Recognition

A pivot breakout strategy for the S50 futures on a 30-minute chart. Swing highs and lows are found from left and right bar counts, with stop entries placed beyond them. Each entry has an exit order with a stop one ATR past the pivot and a limit set by a risk t

Strategy v6 BreakoutSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of S50 TFEX Strategy LeftBar RightBar
1 stars

An overlay that draws a ribbon of moving averages with lengths from 20 to 50 in steps of five, plus optional 100 and 200 length lines. A switch chooses exponential or simple averages, and the price source can be changed. The area between the 100 and 200 lines

Indicator v6 Moving averagesTrend
Updated 1 year ago · MIT GitHub repository of Moving Average Ribbon

BTC Fair Value Levels

by PitzTech
1 stars

An indicator that plots a 200-period simple moving average on the price chart and builds colour-filled bands from multiples of it: half, one and a half, two, two and a half and three times the average. The length is adjustable, and the intended use is the 200-

Indicator v6 Support & resistanceMoving averages
Updated 1 year ago · None stated GitHub repository of BTC Fair Value Levels

ETHBTC MTPI V2.0

by Mikelkulla
1 stars

This strategy detects whether Ethereum outperforms Bitcoin relative to the overall market using MTPI signals. It combines outputs from DEMA Adaptive Fractal Range, DEMA Supertrend, Schaff Trend Cycle, RMI Trend Sniper, and FDI-Adaptive Supertrend indicators. L

Strategy v6 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of ETHBTC MTPI V2.0
1 stars

A small test strategy used to exercise a browser automation project rather than to trade. It goes long when a 14-period simple moving average crosses above a 28-period one and short on the opposite cross, with no stop loss or take profit. It also defines sampl

Strategy v6 Moving averages
Updated 1 year ago · None stated GitHub repository of Automation Tests Strategy Script
1 stars

This strategy plots several exponential moving averages and an optional VWAP on the price chart. It defines a long setup when the short EMA crosses above the long EMA, price is above the short EMA, and, if enabled, above VWAP. A short setup uses the opposite c

Strategy v6 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of EMA Crossover Strategy
1 stars

This indicator plots a 14-period Relative Strength Index alongside two smoothed Stochastic oscillators in a separate pane. It displays momentum across fast and medium periods relative to a dashed 50 midline. Background coloring signals alignment: green indicat

Indicator v5 Oscillators & momentum
Updated 1 year ago · None stated GitHub repository of RSI + Stochastic Panel

MACD Divergence Analysis

by fuyuanyuan
1 stars

This indicator calculates the MACD line, signal line, and color-coded histogram in a separate pane below the chart. It includes a specialized divergence detection algorithm that splits a lookback period into recent and older segments to compare price extremes

Indicator v6 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of MACD Divergence Analysis

ADX Trend Strategy

by pcjtse
1 stars

This strategy goes long when ADX is above a threshold and price crosses above a 20-period simple moving average, and goes short on the opposite cross. Each entry carries an ATR-based stop loss and take profit, set by two multipliers. Orders use all available e

Strategy v5 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of ADX Trend Strategy
1 stars

A candlestick pattern detector for the rising and falling three methods setup on a five-candle window. For a bullish final candle it checks that the three candles before it are bearish and sit within the range of the first candle, and for a bearish final candl

Indicator v5 Candlestick patterns
Updated 1 year ago · MIT GitHub repository of Rise/Fall of Three Methods
1 stars

A strategy built on two Donchian midlines, one long and one short, plus an ATR readout. It enters long when price has crossed above the long line and the short line has crossed above the long line, in either order, and enters short on the mirror pair of crosse

Strategy v5 TrendBreakout
Updated 1 year ago · None stated GitHub repository of Ardakani Dual Condition Strategy
1 stars

Auto Trend Line Indicator is a minimal overlay script that looks back over a set number of bars for the most recent swing high and swing low, then draws a green line joining them. Swing length and lookback period are the only settings. A new line is created on

Indicator v5 Support & resistance Repaints
Updated 1 year ago · GPL-3.0 GitHub repository of Auto Trend Line Indicator

ADX & DI Histogram

by munlit
1 stars

A separate-pane indicator that computes the directional movement system by hand, smoothing true range and plus and minus directional movement over a set length to derive DI values and ADX, and shows them as a histogram. An ADX threshold input sets the level fo

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

Forex Sessions

by klimasevskiy
1 stars

This indicator highlights key trading sessions directly on the price chart to help identify periods of high volatility. It visualizes Asian, Frankfurt, London, and New York killzones using configurable background boxes, high and low boundary lines, and pip-ran

Indicator v5 Sessions & timeSupport & resistance
Updated 1 year ago · None stated GitHub repository of Forex Sessions

Liquidation Levels

by mrgunkin
1 stars

This indicator calculates estimated long and short liquidation prices from a manually entered base price and five leverage settings. A maintenance-margin factor shifts each level, and a nonlinear option changes the leverage used for inverse-style contracts. It

Indicator v6 Support & resistance
Updated 1 year ago · MIT GitHub repository of Liquidation Levels

Trade Value

by barnett-yuxiang
1 stars

This indicator calculates a trade value for each bar by multiplying volume by the average of open, high, low, and close. It plots that series on the price chart with a fully transparent line so the chart stays visually clear while the value remains readable in

Indicator v6 Volume
Updated 1 year ago · None stated GitHub repository of Trade Value
1 stars

This strategy trades long or short on the chart. It takes a long entry when a fast EMA is above a slow EMA, MACD is above its signal line, ADX is above a threshold and price is above VWAP, or when price breaks above a pivot high; shorts mirror this. Each trade

Strategy v5 TrendBreakout
Updated 1 year ago · None stated GitHub repository of AI-Optimized Trading Strategy

COT Disaggregated

by ivansoft
1 stars

An indicator in a separate pane that plots Commitment of Traders disaggregated report metrics for the chart symbol, such as open interest, producer merchant, swap, managed money and other reportable positions. Settings pick the metric, the direction (long, sho

Indicator v6
Updated 1 year ago · None stated GitHub repository of COT Disaggregated

MA50 Trend Signals

by mkdir700
1 stars

A price-chart overlay built on a 50-bar simple moving average. A green circle marks the bar where the close crosses above it and a red circle where it crosses below, and a small coloured dot at the top of the pane shows the current state, green after an upward

Indicator v6 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of MA50 Trend Signals

Million Moves Algo

by hasibulc71x
1 stars

A multi-feature chart overlay that generates buy and sell signals from a SuperTrend-style calculation with an adjustable sensitivity and a choice between all signals and smart signals. It can add a trend ribbon, trend cloud, chaos trend line, order blocks, a 2

Indicator v5 TrendScreeners & dashboards
Updated 1 year ago · None stated GitHub repository of Million Moves Algo

Kotegawa Pump Tracker

by davccavalcante
1 stars

Kotegawa Pump Tracker is an overlay indicator aimed at volatile crypto markets. It combines an adaptive SuperTrend with a clustering step that sorts recent volatility into high, medium and low levels over an analysis window, and it also uses RSI. According to

Indicator v6 Volatility & bandsTrend
Updated 1 year ago · None stated GitHub repository of Kotegawa Pump Tracker

TB: Auxiliary Indicators

by farias-hecdin
1 stars

This indicator bundles several oscillators into one separate pane: an RSI drawn as circles with bands at 20, 45, 50, 55 and 80, a smoothed Stochastic with %K and %D, and a MACD with line, signal and area histogram. Further sections, such as an absolute strengt

Indicator v5 Oscillators & momentum
Updated 1 year ago · MIT GitHub repository of TB: Auxiliary Indicators

LKG 1.0

by sudesharoshaseneviratne
1 stars

A combined overlay that calculates several well-known indicators in one script: an ATR-based stop distance that colors bars yellow when price moves beyond it, ADX with directional indices, RSI with a selectable moving average or Bollinger Bands and optional di

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of LKG 1.0

TICK.US Status Box

by BrayFlex
1 stars

TICK.US Status Box is an overlay indicator that reads the NYSE TICK index (TICK.US) on the chart's timeframe and shows its value in a small box. The box text reads very low, normal, high or very high depending on three adjustable level inputs, and the box colo

Indicator v6 Screeners & dashboardsOscillators & momentum
Updated 1 year ago · MPL-2.0 GitHub repository of TICK.US Status Box

This indicator combines Fibonacci Golden Zone retracements, VWAP-based divergence detection, and RSI optimized with Kernel Density Estimation (KDE). It identifies high and low swing points to overlay key Fibonacci retracement levels directly on the main price

Indicator v6 Support & resistanceOscillators & momentum
1 stars

A strategy template that sets up Bollinger Bands, MACD and an RSI with its own Bollinger band, each with adjustable lengths, and uses a share of equity for sizing. Orders carry a percentage stop loss and take profit, defaulting to 3 and 30. The condition secti

Strategy v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Boll MACD RSI Strategy

Mxwll Suite Strategy

by nishimweprince
1 stars

A strategy built on a smart money concepts toolkit that draws internal and external market structure with break of structure and change of character labels, swing order blocks, fair value gaps, previous day and 4-hour highs and lows, and automatic Fibonacci le

Strategy v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Mxwll Suite Strategy

Shows a table on the price chart with swing trading data such as average daily range percent, relative volume, price volume, shares float, market cap and average dollar volume. Settings choose which rows appear, the table position and size, text colour, alignm

Indicator v6 Screeners & dashboardsVolume
Updated 1 year ago · None stated GitHub repository of Swing Data ADR RVol PVol Float Avg Dollar Volume
1 stars

A Pine v6 strategy on the price chart that applies a range filter to smooth price and detect direction, optionally on Heikin Ashi candles, with sampling period and multiplier settings. It also draws pivot-based support and resistance levels. Trades can be limi

Strategy v6 TrendSupport & resistance
Updated 1 year ago · MIT GitHub repository of Range Filter Buy and Sell
1 stars

Daily Range Volatility calculates the percentage range of each bar relative to its midpoint price. It plots this amplitude as silver columns in a separate pane alongside three simple moving averages: a 30-period baseline, a fast 3-period average, and a smoothe

Indicator v5 Volatility & bandsMoving averages
Updated 1 year ago · Apache-2.0 GitHub repository of Daily Range Volatility

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