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 indicator calculates a user-selected moving average of the source and plots that average's rate of change in a separate pane. Users choose among SMA, EMA, WMA, HMA, RMA, VWMA, and ALMA, plus length and source. ROC length and a multiplier scale the plotted
The Capital41 Structure Swings v3 indicator tracks market structure on the main price chart using pivot detection. It identifies swing highs and swing lows based on a user-defined pivot length, plotting labels and horizontal dotted level lines at active swing
This trading strategy detects key support and resistance zones on the price chart by identifying candle rejection wicks over a customizable lookback period. It filters potential trades using an Exponential Moving Average (EMA), Change in Status/Direction (CISD
This indicator is a research diagnostic that builds a volume profile over a user-defined swing range and draws it on the price chart. It allocates each bar's volume by exact high and low tick overlap across fine, base, and coarse row sizes. It marks a volume n
This indicator measures the drift or directional slope of a series relative to its deviation or range over a chosen lookback period. It can transform the input series by differencing, integrating, or keeping the original prices. The metric evaluates the slope
This overlay strategy combines RSI, which can be read from another timeframe, with fast and slow exponential moving averages. It sequences overbought and oversold crosses with returns into a base zone, optionally counting those events only when the moving-aver
This long-only strategy overlays 50-period exponential moving averages taken from the daily and four-hour timeframes. It opens a long trade when price is above the daily average, crosses above the four-hour average, and closes above the previous bar high. Exit
This indicator is a live strategy scanner for cryptocurrency pairs. It runs six strategies on the current chart, tracks their wins and losses, and rates them to show the best one for this pair and timeframe. It uses ATR for adaptive TP/SL, auto-scales based on
This Pine Script indicator plots multiple exponential moving averages in a separate pane for technical analysis. It calculates Elliott wave EMAs using Fibonacci wave counts of 34 and 89, plus 200-session and golden ratio lines. Additional Pythagorean cloud lev
This strategy trades on the price chart using a fast and slow exponential moving average crossover. It enters long when the fast EMA crosses above the slow EMA and short when it crosses below, but only during the London or New York session in GMT. Each entry s
This indicator tracks the high and low of a user-defined intraday session and plots them as broken horizontal lines on the price chart. It can also show the previous session extremes and places a label at each session start. The session window, previous-level
The VIX Trending indicator plots on the price chart for the VIX symbol. It computes EMA values on 1m and 5m timeframes using security requests and detects trend shifts via consecutive high or low breaks along with volume. Buy signals trigger on upward EMA alig
P-MACD TARAMA2 calculates a MACD from a fast and slow moving average and plots the MACD line, signal line, and histogram in a separate pane. It marks MACD and signal crossovers with circles and includes pivot-based bullish and bearish divergence settings. User
Calculates five Exponential Moving Averages (EMAs 3, 13, 34, 55, and 144) based on Fibonacci sequence lengths to combine Guppy Multiple Moving Average (GMMA) concepts with Granville's moving average rules. Plots all moving average lines directly on the main pr
This indicator calculates a simple or exponential moving average and dynamically colors its plot based on the slope angle of the average line. The angle is calculated using an ATR-normalized arctangent formula over a user-defined lookback period. Green indicat
This multi-functional technical indicator overlays custom volume profile mapping and Smart Money Concepts tools directly on the main price chart. It identifies and plots order blocks, breaker blocks, market structure breaks, and range levels alongside support
This strategy combines the Stochastic Oscillator with Chaikin Money Flow (CMF) to generate trading signals on the price chart. It enters long positions when the Stochastic %K line crosses above the %D line while CMF is above 0.1, and enters short positions on
Time Window Highlight is an intraday chart overlay that shades specific daily time windows with background boxes. It measures price performance from the start of the defined time window to the latest point within it, coloring the background green when price ri
PA Helpers is a price action visual tool that plots multi-timeframe exponential moving averages and psychological round price levels directly on the price chart. It calculates up to three customizable EMAs with individual timeframe, period, and color controls.
Market Dominance + Liquidity Sweep + OB is an overlay indicator that identifies Smart Money Concepts market structure elements directly on the price chart. It detects market dominance shifts, order blocks, order block touches, and liquidity sweeps based on con
This strategy executes gold trades by combining multiple exponential moving averages with RSI, Stochastic oscillator, and ATR indicators alongside Fibonacci zones. It triggers confirmed buy or sell positions and optional scalp legs based on trend direction and
Alpy Kazan combines a WaveTrend oscillator with a Bollinger Bands and Keltner Channels squeeze detector. It plots the WaveTrend lines, overbought and oversold boundary levels, and visual crossover markers in a separate pane, while highlighting crossover bars o
The HTF Candle Volume Thermometer indicator renders higher-timeframe candles on the price chart overlaid with volume heatmaps. It calculates internal volume distribution across price bins defined by ATR step sizes. Bins with higher trading activity are highlig
Conditional Volatility (CV) calculates annualized volatility using a GARCH(1,1) econometric model based on log returns of closing prices. It plots the resulting annualized variance percentage as a continuous line in a separate pane to display volatility dynami
The strategy combines support and resistance levels with RSI or MFI momentum oscillators, optional WaveTrend indicators, and Bollinger Bands filters. Strategy logic evaluates trade signals on either Heikin Ashi or standard candle data to execute DCA entries wi
This Pine Script utility library provides exported helper functions and data structures for calculating market trend directions and key support and resistance boundaries. It includes a custom SuperTrend function with configurable bar confirmation requirements
This indicator plots the 14-period RSI oscillator on the chart. It also demonstrates string handling by converting a fixed string to a number and plotting the result. The script uses namespaces to access built-in functions like ta.rsi and str.tonumber. It draw
This indicator draws a ZigZag on the price chart by connecting recent swing highs and lows. It searches the last Depth bars for the highest high and lowest low, then keeps a pivot only when price has moved beyond the Deviation setting in minimum ticks. A red l
TrendSignal + Supertrend Strategy detects trend changes using a custom indicator based on recent high-low ranges and a percentage K value calculated from RISK input. It sets buy or sell signals when the trend shifts. Supertrend is overlaid using ATR period and
Paste Check is an overlay indicator that identifies trend direction using dual exponential moving averages. It plots a fast EMA and a slow EMA directly on the price chart. When the fast EMA crosses above the slow EMA, it displays a green triangle below the bar
SMC Long-Dip Alerts is an indicator that provides selectable alertcondition() signals for an SMC Long-Dip Suite. It detects structure events such as BOS and CHoCH using a configurable swing length and resolves product state, zone activity, and trust tier from
This strategy calculates three simple moving averages with lengths 10, 20 and 50. It identifies a bull stack when the shortest exceeds the middle which exceeds the longest, and a bear stack in the opposite direction. A var-bool latch tracks prior states to sup
This script acts as a test fixture from the OptiPine parser test suite designed to evaluate Pine Script compilation behavior. It initializes a variable with an integer value, attempts to reassign it to a string, and attempts to plot the result in a separate pa
This indicator evaluates signal performance and multi-timeframe market dynamics through a shadow bankroll tracking framework. It measures market conditions across trend, momentum ROC Z-scores, ATR volatility expansion, and volume flow, alongside multi-timefram
This overlay indicator identifies high and low fractal pivots using a customizable period setting. Users select two anchor points directly on the chart to establish a central trendline. The script then projects reflected price and time levels relative to this
Tn Adaptive Risk Regime v6 is a strategy that switches between mean reversion and breakout modes based on volatility regime. It compares ATR to its SMA over a lookback to classify high or low volatility. Low volatility triggers mean reversion by fading range e
V10 Swing Sniper (KLSE) is a daily chart overlay indicator designed for swing trading Bursa Malaysia equities based on Mark Minervini's Stage 2 and Volatility Contraction Pattern (VCP) principles. It calculates exponential moving averages, relative strength ag
Corpus EMA Cross is a strategy that plots two exponential moving averages on the price chart. The fast EMA uses a length of 12 and the slow EMA uses 26. It generates long entries on the crossover of the fast line above the slow line and short entries on the cr
This strategy plots exponential moving averages of 10, 55 and 200 on the price chart and shades the background when a smoothed stochastic is oversold or overbought. It opens long positions when the stochastic K line crosses above D below the oversold level, in
The Liquidation Heatmap indicator detects potential liquidation zones by scanning recent price swings and calculating volume or range-based weights over a configurable lookback period. It overlays boxes and labels on the price chart to highlight long and short
Inside Bar Breakout identifies standard and double inside bar candlestick patterns to trade breakout momentum. It sets trigger levels using reference bar extremes plus an adjustable percentage buffer. Once a pattern forms, the strategy waits up to five bars fo
The ES Professional Fade strategy plots entry and exit signals on the price chart for E-mini S&P futures. It fades price action after the opening range closes during regular trading hours. The strategy declares a fixed position size of one contract with $2.01
This technical indicator plots multiple analytical components directly on the price chart, combining Bollinger Bands, moving averages, relative strength index calculations, and average true range measurements. It generates buy and sell signals based on volatil
This indicator plots the Relative Strength Index (RSI) and its Bollinger Band percentage bandwidth (%B) deviation directly on the price chart. It calculates RSI from a user-defined source and length, applies an EMA, and derives the %B deviation using a configu
This indicator calculates common technical analysis variables including RSI, Stochastic Oscillator, EMA moving average, ATR volatility, and MACD with signal and histogram. It plots the MACD line, signal line, and histogram in a separate pane. The script serves
This indicator generates normalized probability factors for bull, bear and stagnant market states by combining CBOE Put-Call Ratio data with Money Flow Index. It applies an odd generator to distribute the probabilities across the three states and plots the res
Max Index is an oscillator that measures range expansion and contraction over rolling periods. It calculates a rolling high-low range over a user-defined lookback window, applies double exponential smoothing to that range, computes the ratio between the two sm
Asymmetrical RSI is an indicator that computes a custom relative strength index from the rate of change of a user-selected source. It plots the resulting ARSI line in a separate pane with color coding that turns green above the overbought level and red below t
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.