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

Golden Strategy

by AliAhmadi-Software
3 stars

The Golden Strategy is a Pine Script v6 strategy that overlays EMA and SMA on the price chart to detect crossovers for trend direction. It adds MACD for momentum confirmation and RSI to identify overbought and oversold conditions. Volume average filters out lo

Strategy v6 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Golden Strategy

Brahmāstra

by HelloMoto069
3 stars

Brahmāstra plots a fixed 10-period exponential moving average on the price chart and marks candles that sit entirely beyond it. A red candle whose low is above the average gets a cross, and a later green candle that opens below and closes above that candle's h

Indicator v5 Moving averagesCandlestick patterns
Updated 1 year ago · None stated GitHub repository of Brahmāstra

Cipher A

by diehardyearone
3 stars

Cipher A is a trend-following overlay indicator that plots a multi-line moving average ribbon alongside long-term moving averages, VWAP, and higher-timeframe weekly and monthly key levels directly on the price chart. It incorporates underlying WaveTrend, RSI,

Indicator v6 TrendMoving averages Repaints
Updated 1 year ago · None stated GitHub repository of Cipher A

This strategy combines volume surge detection, Fibonacci retracements, moving averages, and ATR volatility for trade execution. Long positions trigger when price exceeds the 0.618 Fibonacci level, price stays above a 200-period SMA, a fast EMA crosses above a

Strategy v5 TrendMoving averages
Updated 1 year ago · MIT GitHub repository of Optimized Volume + Fibonacci + Trend + ATR Strategy

Pivot Points

by roshaneforde
3 stars

The Pivot Points indicator plots horizontal lines on the price chart to mark bullish and bearish pivot points. It identifies shifts from bullish to bearish or vice versa by scanning the last 100 candles by default. Buy lines appear in blue and sell lines in re

Indicator v6 Support & resistanceTrend
Updated 1 year ago · MIT GitHub repository of Pivot Points

This indicator plots a fast and a slow simple moving average on the price chart and marks a buy when the fast average crosses above the slow average and a sell when it crosses below. It creates alert conditions that send structured JSON messages with the signa

Indicator v5 Moving averages
Updated 1 year ago · MIT GitHub repository of Moving Average Crossover with External URL Notification

200DMA Entry

by FinDeckDao
3 stars

The 200DMA Entry strategy plots the 200-day simple moving average on the price chart. It generates long signals when the close crosses above the 200 MA on the prior bar. Positions are sized at 1 percent of account equity. The strategy exits at a 2.5 times take

Strategy v5 Moving averagesTrend
Updated 1 year ago · MIT GitHub repository of 200DMA Entry

This indicator plots a MACD-style oscillator in a separate pane. It subtracts a slow moving average from a fast moving average of the chosen source, then smooths that difference into a signal line. SMA or EMA can be selected for both the oscillator and the sig

Indicator v6 Oscillators & momentumMoving averages
Updated 1 year ago · MPL-2.0 GitHub repository of Relative Moving Average Convergence Divergence (RMAC)
3 stars

This strategy template overlays a demonstration system of Parabolic SAR, regression channels, and Supertrend on the price chart while packaging TV-Hub webhook commands. It generates buy, sell, and close alert messages for selected crypto exchanges. Inputs set

Strategy v5 TrendSupport & resistance Repaints
Updated 2 years ago · MIT GitHub repository of TV-Hub Boilerplate / Template Strategy
3 stars

This indicator plots ATR-based stop bands on the price chart. It smooths true range with a selectable moving average, multiplies it by a factor, and adds that distance to the high and subtracts it from the low. The upper plot is labeled as a short stop and the

Indicator v4 Volatility & bandsSupport & resistance

VSA Wyckoff Volume

by codingfordummies911
3 stars

Calculates a Wilder's moving average on volume to categorize activity into six distinct levels ranging from Ultra High to Very Low based on user-defined ratio thresholds. It plots volume as color-coded histogram columns in a separate pane to help identify volu

Indicator v5 Volume
Updated 2 years ago · None stated GitHub repository of VSA Wyckoff Volume

SG Market Cipher B

by jeffAquinn
3 stars

SG Market Cipher B is an oscillator indicator plotted in a separate pane that combines WaveTrend and RSI calculations to identify momentum and potential trend reversals. It generates visual signal dots (buy, sell, gold, and divergence dots) based on overbought

Indicator v4 Oscillators & momentumDivergence
Updated 2 years ago · None stated GitHub repository of SG Market Cipher B
3 stars

This indicator detects and highlights Doji candlestick patterns directly on the price chart. It checks whether the absolute difference between the candle's open and close prices falls below a user-defined threshold relative to the closing price. The script dif

Indicator v5 Candlestick patterns
Updated 2 years ago · None stated GitHub repository of Doji (Candlestick Pattern)
3 stars

This strategy opens a long base order and preplaces up to seven limit safety orders below entry, increasing size by a volume scale as price falls. It recalculates an average entry and closes the whole position when price reaches a take-profit percentage above

Strategy v5 Mean reversionSupport & resistance
Updated 2 years ago · Custom licence GitHub repository of Fibonacci Martingale Strategy

This trend-following strategy calculates asymmetric Bollinger Bands and overlays them on the price chart alongside a central moving average. It enters long positions when the price crosses above the upper band, provided an optional benchmark trend filter (chec

Strategy v5 TrendVolatility & bands
Updated 2 years ago · MIT GitHub repository of Bollinger Band Trend Follow Strategy
3 stars

Advanced Option Price Estimator applies the Black-Scholes model to estimate call and put option prices directly on the main price chart. It uses standard normal distribution functions and Newton-Raphson iterations to calculate implied volatility across calcula

Indicator v5 Volatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Advanced Option Price Estimator
3 stars

This strategy plots Bollinger bands and a simple moving average on the price chart. It opens a short when price crosses above the upper band while below the average, and a long when price crosses below the lower band while above the average. Entries are allowe

Strategy v5 Volatility & bandsMoving averages
Updated 2 years ago · None stated GitHub repository of 周末布林带策略

This overlay indicator draws MarketSmith-style price bars and several moving averages on the chart. Bar color follows the current close versus the open, or versus the previous close when that option is enabled. Four daily averages and four weekly averages can

Indicator v5 Moving averagesOscillators & momentum
Updated 2 years ago · None stated GitHub repository of MarketSmith Indicator Indian Market

TradeEase

by RA1NCS
3 stars

TradeEase is a Smart Money Concepts indicator that maps market structure and key liquidity zones directly on the main price chart. It identifies internal and swing market structure changes, including Break of Structure (BOS) and Change of Character (CHoCH), as

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 years ago · MIT GitHub repository of TradeEase
3 stars

This Pine Script strategy plots a G-Channel and a 200-period Exponential Moving Average (EMA) directly on the price chart. It triggers buy signals when price crosses the lower G-Channel line while trading below the EMA line. Long positions are managed using Av

Strategy v4 TrendMoving averages
Updated 2 years ago · Apache-2.0 GitHub repository of G-Channel & EMA Strategy with ATR SL/TP

Larry Williams 9.1

by leocairos
3 stars

This strategy tracks directional shifts in a 9-period Exponential Moving Average (EMA) to identify trend reversals based on the Larry Williams 9.1 setup. It plots the 9 EMA on the main chart and generates a long signal when the EMA turns upward after declining

Strategy v5 TrendMoving averages
Updated 2 years ago · MIT GitHub repository of Larry Williams 9.1

EMA Crossover

by mr-s8
3 stars

This strategy plots a fast and a slow exponential moving average on the price chart. It enters long when the fast average crosses above the slow average and short when it crosses below. Each entry sets a percentage take profit and stop loss from the close of t

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-2.0 GitHub repository of EMA Crossover

3 RSI DWM

by kartikayakul01
3 stars

3 RSI DWM plots a chart-timeframe RSI and up to three additional RSI series requested from user-selected timeframes, defaulting to weekly, monthly, and 60 minutes. Each series has its own length and source, and boolean inputs show or hide the extra series. It

Indicator v5 Oscillators & momentum
Updated 2 years ago · None stated GitHub repository of 3 RSI DWM

Bitcoin Market Capitalization

by datacrypto-analytics
3 stars

This indicator plots Bitcoin market capitalization from the Quandl BCHAIN/MKTCP series in a separate pane. It draws the series as an area whose color shifts with the capitalization level. An optional six-period simple moving average can be shown as a line over

Indicator v5
Updated 3 years ago · Apache-2.0 GitHub repository of Bitcoin Market Capitalization

Altcoin Correlation

by vishnugovind10
3 stars

This indicator plots rolling correlations between the chart symbol’s close and six crypto series in a separate pane. It requests 15-minute closes for an altcoin perpetual, Ethereum, Ripple, Litecoin, Cardano, and Tezos, then calculates each correlation over a

Indicator v4
Updated 3 years ago · None stated GitHub repository of Altcoin Correlation

This indicator plots a multi-symbol dashboard on the price chart to monitor up to five custom ticker symbols across three timeframes. It calculates the Relative Strength Index (RSI), Stochastic RSI %K, and %D values alongside the current price. Traders can mod

Indicator v5 Screeners & dashboardsOscillators & momentum
Updated 3 years ago · None stated GitHub repository of Multi Timeframe Stochastic RSI Screener

This indicator plots Linear Regression lines with deviation bands on the price chart to identify support and resistance levels. It filters signals using configurable EMA lines and optional Supertrend filter. A session filter restricts calculations to specified

Indicator v5 TrendSupport & resistance
Updated 3 years ago · None stated GitHub repository of Fedra Algotrading LR + TTP Indicator Lite
3 stars

This strategy calculates 50-period and 200-period exponential moving averages alongside a standard Moving Average Convergence Divergence (MACD) oscillator. It plots the moving averages and the MACD histogram directly on the price chart. The strategy opens a lo

Strategy v5 Oscillators & momentumMoving averages
Updated 4 years ago · None stated GitHub repository of 5min Scalping EMA50, EMA200, MACD

Combined Script

by maxits
3 stars

Strategy combining EMA and SMA trend alignment with pin bar candle patterns and moving average piercing. It triggers trades in the direction of the moving average fan when a pin bar forms, managing positions using an ATR-based stop loss, pip-based profit targe

Strategy v4 Moving averagesCandlestick patterns
Updated 4 years ago · None stated GitHub repository of Combined Script

Btc Version5pine

by WMW333
3 stars

This strategy detects volume-based trading signals on Bitcoin perpetual futures. It calculates volume spikes on green and red candles along with ATR for volatility filtering. Long entries trigger on red candles with high volume and specific spike conditions wh

Strategy v5 VolumeVolatility & bands
Updated 4 years ago · None stated GitHub repository of Btc Version5pine

This indicator detects and visualizes core Smart Money Concepts directly on the price chart. It plots bullish and bearish order blocks, fair value gaps, rejection blocks, break of structure levels, pivots, and liquidity pools using boxes and markers. A dedicat

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 4 years ago · None stated GitHub repository of Super OrderBlock / FVG / BoS and ABC with Alert

Currency Strength Chart

by itmakesyousick
3 stars

This indicator plots relative strength lines for major currencies and optional metals and oil in a separate pane. It builds each series from a chosen source, either raw price or RSI or stochastics, then applies a selected moving-average smoother. Resolution ca

Indicator v5 Oscillators & momentum
Updated 4 years ago · None stated GitHub repository of Currency Strength Chart

Carmelita Adelina Leandro by Professor Theta is an intraday signal script designed for futures charts. It calculates VWAP and a 9-period Exponential Moving Average to identify trend reversal triggers. Long and short entry signals are evaluated based on open pr

Strategy v5 TrendMoving averages
Updated 4 years ago · Unlicense GitHub repository of Carmelita Adelina Leandro by Professor Theta

This strategy combines Bollinger Bands and Bollinger Band Width to trigger breakout trades during periods of low volatility. It opens long positions when price crosses above the upper band while band width is below its 100-period moving average, and opens shor

Strategy v5 TrendVolatility & bands
Updated 4 years ago · CC0-1.0 GitHub repository of Greeffer's Bolinger Band Hedge Strategy

Combines Ichimoku Cloud, SuperTrend, Bollinger Bands, and three moving averages into a single overlay indicator. It plots trend direction, volatility bands, and key averages directly on the price chart. The indicator features a Bollinger Band pinch detector th

Indicator v4 TrendMoving averages
Updated 4 years ago · None stated GitHub repository of Ichimoku + SuperTrend + 3MA + Bollinger Bands

MomGulfing

by rasimandiran
3 stars

MomGulfing is a momentum strategy that identifies trade setups using multi-bar engulfing candlestick patterns paired with volume confirmation. It triggers long or short entries when price breaks key candle bounds across one to three bars while volume expands.

Strategy v5 Candlestick patternsOscillators & momentum
Updated 4 years ago · MIT GitHub repository of MomGulfing

Icarus

by niloysaha
3 stars

Icarus is an overlay indicator that projects momentum and level indicators directly onto the price chart. It calculates higher-timeframe equivalents for moving averages, computes Supertrend, and constructs price-equivalent RSI upper and lower bands based on La

Indicator v4 TrendOscillators & momentum
Updated 4 years ago · None stated GitHub repository of Icarus
3 stars

This indicator plots Camarilla pivot levels (H1 to H6 and L1 to L6) alongside the Central Pivot Range (CPR) directly on the price chart. It fetches higher timeframe market data for daily, weekly, monthly, and yearly timeframes, including previous session highs

Indicator v4 Support & resistance Repaints
Updated 5 years ago · MIT GitHub repository of Camarilla Pivots + CPR [AIO]

BB RSI Strategy

by infinityhao
3 stars

BB RSI Strategy combines Bollinger Bands, RSI, and multiple simple moving averages directly on the main price chart. It enters long positions when price drops below the lower Bollinger Band while RSI is below a set limit, and enters short positions when price

Strategy v4 Volatility & bandsOscillators & momentum Repaints
Updated 5 years ago · None stated GitHub repository of BB RSI Strategy

Bulk Notification

by bit4you-io
3 stars

Calculates price direction for the current asset alongside 60-minute directional changes for BCH and LTC using multi-symbol requests. Combines these conditions with a 24-bar percentage price change threshold to produce bullish or bearish consensus signals. Set

Indicator v4 TrendOscillators & momentum Repaints
Updated 5 years ago · None stated GitHub repository of Bulk Notification

BBI

by blackcat1402
3 stars

BBI is a price-chart indicator that builds two upper Bollinger bands from the close: a 100-bar band with a 1.25 standard-deviation multiplier and a 300-bar band with a 0.75 multiplier. It plots a small red BBI label above the bar when those bands cross and the

Indicator v4 Volatility & bands
Updated 5 years ago · MIT GitHub repository of BBI

This indicator detects pivot highs and lows, evaluates how often levels are respected by price, and uses an internal logistic regression model to estimate the probability that a level will hold. Qualifying support and resistance lines are projected onto the pr

Indicator v6 Support & resistanceAI / machine learning
Updated today · None stated GitHub repository of Support and Resistance Logistic Regression | Flux Charts

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