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.
This overlay indicator marks bullish and bearish chart patterns on the price chart and can hide either side. Optional filters require agreement from fast and slow EMAs, Supertrend, and ADX, plus volume, RSI, nearby pivot support or resistance, and a user-defin
This strategy plots a fast and a slow simple moving average on the price chart and enters long when the fast average crosses above the slow average, or short when it crosses below. Opposite crosses reverse the position. Inputs change the two lengths, leverage,
This separate-pane indicator compares selected forex and gold pairs. It requests the current close and the previous daily close from a chosen broker feed and maps numeric values onto a blue-to-red gradient. The pair-set input switches between overall currency
MA+ATR+ADX+PP Strategy is a trend-following system that plots a simple moving average with an ATR-based envelope directly on the main price chart. It changes trend state to bullish when the low exceeds the upper envelope, and bearish when the high breaks below
Swing Levels is a Pine Script indicator designed to replicate a popular pivot-based swing indicator from NinjaTrader directly on the price chart. It calculates swing high and swing low points using a user-definable length parameter and plots them with circles
This indicator projects a dual-asset momentum matrix visualizer directly onto the price chart overlay. It calculates normalized momentum for the chart symbol using either RSI or Stochastic inputs adjusted by ATR volatility, and compares it against a benchmark
The VWAP + Volume strategy trades crossovers of the Volume Weighted Average Price confirmed by volume surges. It enters long or short positions when the closing price crosses above or below the VWAP line while volume exceeds its 20-period simple moving average
This indicator draws a one-cell table at the bottom left of the price chart. It requests the close of FX_IDC:USDKRW on the one-minute timeframe and formats that value with a Korean won symbol. Text is green when the chart bar open is at or below its close, and
This indicator plots a custom RSI and an optional Money Flow Index in a separate pane so price momentum can be compared with volume-weighted momentum. It draws RSI bands at 30, 50, and 70 with gradient fills above and below the midline, plus dashed MFI levels
This strategy plots a short and a long exponential moving average on the price chart and compares them. It enters long after the short average stays above the long average for ten bars, and enters short after the opposite holds for ten bars. It tries to close
This overlay indicator maps an opening drive for a chosen session, using the first 30 or 60 minutes. It tracks drive high, low, midpoint, range, pace, and volume versus a multi-session average, then projects continuation lines from the drive edge and fade line
This indicator plots Smart Money Concepts (SMC) elements directly on the price chart, including higher-timeframe structure breaks, order blocks, and fair value gaps (FVGs). It uses an inducement filter to validate market structure shifts alongside expected hig
Volume Profile Phase 0 Probe is a non-visual diagnostic tool designed to perform parity testing and internal backend validation for volume profile calculations. It deliberately features no chart plots, signals, alerts, or visual drawings. The script computes i
This indicator calculates a volatility signal-to-noise ratio based on the absolute bar-to-bar price change. It estimates the mean and second moment using an exponential weighting scheme to evaluate relative noise in price movement. The resulting ratio is plott
This indicator calculates Williams %R, a momentum oscillator that places the selected source inside the highest-high to lowest-low range over a chosen length and scales the result from 0 to -100. It draws the oscillator in a separate pane, colors it according
This strategy combines optional Hull moving average, SuperTrend, and MACD conditions in a separate pane. It marks HMA rising or falling over a chosen period and SuperTrend long or short direction, and it treats MACD above or below its signal line as buy or sel
This strategy executes short trades based on trend confirmation and momentum exhaustion. It calculates a 50-period and 200-period EMA, requiring price to trade below the 200 EMA with a recent upward pullback through the 50 EMA. Short entries are further filter
This multi-mode trading strategy executes trades on the price chart using selectable technical models, including RSI-2 mean reversion, SuperTrend, MACD crossovers, Triple EMA, Bollinger Bands, or a combined multi-indicator approach. It filters trade entries us
This indicator calculates both a standard Relative Strength Index and a Relative Liquidity Index, which applies an RSI calculation to Average True Range values. It plots these oscillators in a separate pane alongside overbought and oversold threshold levels. I
This strategy calculates fast and slow exponential moving averages alongside an Average True Range value. It enters a long position when the fast EMA crosses above the slow EMA, and enters a short position on a cross under unless long-only mode is active. Stop
This Pine Script v5 strategy calculates a simple moving average of a configurable source over a user-defined length. It generates long entries when close crosses above the moving average and short entries when close crosses below it. The strategy draws on the
This strategy plots a fast, a slow and a derived average moving average on the price chart, each selectable as an EMA or SMA. A long entry requires a recent fast-over-slow cross outside the last four bars, price above the fast and the longer trend average, and
This indicator plots an exponential moving average ribbon consisting of 5, 8, and 13-period EMAs alongside dual Bollinger Bands (narrow and wide bands). It plots buy and sell shapes on the price chart whenever the 5 EMA crosses above or below the 13 EMA. In ad
SnagProfit Trending is a multi-timeframe dashboard indicator that monitors trend direction across multiple resolutions using exponential moving average alignments. It calculates EMA relationships across timeframes starting from lower intervals like the one-min
ODIE AT-DDT combines an Arnaud Legoux Moving Average (ALMA) and an AlphaTrend indicator into a single price chart overlay. It calculates trend direction using ALMA smoothing alongside an ATR-based AlphaTrend that utilizes MFI or RSI. Visual buy and sell signal
This indicator combines modified Guppy Multiple Moving Average (GMMA) concepts with Granville's rules using Fibonacci-based exponential moving averages. It plots five EMAs on the price chart (3, 13, 34, 55, and 144 periods) to track short-term momentum, interm
The BB Keltner Squeeze Oscillator combines Bollinger Bands and Keltner Channels to identify market volatility squeezes alongside dual moving average momentum oscillators. It plots two column histograms and zero-line squeeze dots in a separate pane below the pr
This indicator plots a fast and a slow simple moving average of the close on the price chart. It marks a bullish signal when the fast average crosses above the slow average and a bearish signal when it crosses below, using small triangles at the bar. A faint b
This multi-component overlay indicator plots algorithmic trading signals, trend clouds, and reversal bands directly on the price chart. Users can choose between multiple signal models tailored for scalping, momentum, or swing trading, adjusted via sensitivity
BTMM Performance Tracker is a trade analytics indicator designed for Steve Mauro's Beat The Market Maker methodology. It tracks simulated trade executions driven by automated, manual, or external signal inputs to compute account performance, win rates, and ris
Simple Alert Strategy is a moving-average crossover system designed for automated webhook alerting. It computes a 3-period simple moving average on closing prices directly on the main chart. The strategy enters a long position when the price crosses above the
Normalized Advanced Decomposition Oscillator decomposes price action into three distinct components: a trend component based on a simple moving average, a noise component based on standard deviation, and a transient component derived from significant rate-of-c
Currency Strength Chart plots the relative strength of selected major currencies on a separate pane. Users choose currencies to display along with their colors and line widths. The script calculates strength based on price, RSI, CCI, or Stochastics with adjust
Monthly Seasonality colors the price chart background according to the calendar month using an HSV color wheel gradient spanning winter through autumn. Primarily designed for monthly timeframes, it helps identify recurring seasonal cycles across markets, such
SMC is a multi-timeframe indicator that detects and plots Fair Value Gaps (FVGs) directly on the price chart. It scans across up to six user-selected higher timeframes—ranging from intraday minutes to daily and weekly intervals—to identify bullish and bearish
PriceAction is a Pine Script v6 library designed to calculate and track market structure elements based on customizable pivot lengths. It exports custom data structures for pivots, structure breaks, and market trends, categorizing price movement into internal
This strategy executes trend-following and scalp trades on gold using EMA alignment, RSI, Stochastic oscillators, and M15 rejection triggers. Entries are confirmed through multi-indicator filters, Fibonacci zones, and EMA chase limits. Exits utilize swing high
This indicator calculates daily candidate supply and demand zones and confirms them using 4-hour volume profile high-volume nodes. It overlays dynamic zone boxes, a Magic Line volatility channel, weekly close levels, and volume-price analysis signals directly
Alper is a Pine Script v4 strategy that plots a WaveTrend oscillator in a separate pane and colors bars when the two WaveTrend lines cross. It requests one-minute Binance DOGE perpetual prices, builds fast and slow RSI values, and enters long or short only ins
Elastic Volume-Weighted Student-T Tension is an oscillator that calculates location and dispersion parameters based on a Student-T distribution model. It uses volume or ATR as a weighting factor to estimate market tension relative to historical distribution le
The Bollinger Band Width Normalized indicator measures volatility by calculating standard Bollinger Band Width and normalizing it to a range between 0 and 1 using min-max scaling over a historical lookback period. It plots as a single oscillator line in a sepa
NEODCA is a Dollar Cost Averaging (DCA) strategy that combines MACD oscillators with volume-weighted moving average (VWMA) filters to execute trades. It supports long and short modes, placing base orders followed by up to eight safety orders scaled by multipli
Position Sizes is an overlay indicator that calculates risk-managed trade sizing based on account size and risk percentage parameters. It calculates position values, required share quantities, stop-loss levels, and 1R take-profit targets across four customizab
This Pine Script library calculates various momentum metrics and oscillator values for other scripts to use. It provides functions for standard-deviation-normalized price change, dual-moving-average momentum, Stochastic RSI, and a customizable MACD. Function p
This strategy combines an example trend pullback trading model with a modular monthly performance table displayed directly on the price chart. It buys when price is above a long-term moving average but below a short-term moving average, and exits when price cl
HTF Candles & Pivots overlays higher-timeframe candlestick bars, pivot points, and price structure directly onto the main price chart. It renders customizable higher-timeframe candle bodies, wicks, and time division separators while calculating classic pivot l
This indicator identifies pivot highs and lows using up to three customizable ZigZag calculation layers and plots horizontal support and resistance levels on the price chart. Users can configure depth, deviation, and colors for each ZigZag tier, adjust the max
This Pine Script strategy uses pivot points to calculate a dynamic center line, around which ATR-based bands are drawn to form upper and lower limits. A trailing line follows the center line, changing color based on trend direction. Buy and sell signals appear
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.