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.
An overlay that builds a zigzag from pivot highs and lows over a chosen length and searches those pivots for a five-wave Elliott impulse structure within an error tolerance. When one is found it draws the wave lines, labels and target levels on the price chart
A short-only daily strategy for E-mini S&P futures, the mirror of the long version. It enters short when the 200-period SMA is falling, the candle is bullish and the whole bar sits above the 5-period SMA, and it closes the position when price closes below the
j14-E1 adv is an overlay indicator that maps higher-timeframe price structure on the chart. It builds a developing higher-timeframe candle as a wick box and a body box, tracks whether the last bar is inside the previous range, and draws aqua and orange zigzag
This indicator calculates the Relative Strength Index (RSI) and displays buy and sell labels directly on the main price chart. A buy label triggers when the RSI crosses below the user-defined oversold threshold, while a sell label appears when the RSI crosses
Advanced Trade Metrics is an overlay breakout strategy that uses a 20-bar Donchian channel to generate trade signals. It opens long positions when the closing price breaches the prior 20-bar high and short positions when it drops below the 20-bar low. Position
This Pine Script test fixture indicator evaluates and plots various Pine Script language execution behaviors. It tracks short-circuit evaluation call counts, conditional technical calculations like RSI inside conditional statements, function-level persistent v
EMA-Volume calculates two Exponential Moving Averages alongside volume moving averages derived from scaled USD volume. It draws directly on the price chart, plotting both moving averages with bullish and bearish crossover markers and colored background highlig
An indicator that redraws levels exported from an ATAS workspace onto a TradingView chart. The user pastes a text feed of lines, rectangles and full-width zones, and the script draws those matching the chart's ES or NQ family with their labels, colours and tim
A simple long-only strategy that buys when the RSI rises above a chosen level, 70 by default, and closes the position when the RSI crosses back below that level. The RSI length and the level are adjustable. The RSI line and the level are drawn in a separate pa
This indicator draws a price and time grid on the price chart with automatically calculated bounds. It takes the highest and lowest close since a chosen start date, falls back to the first available bar when the symbol's history starts later, and uses an end d
A strategy that defines a 30-minute range, waits for a breakout, then looks for a retracement into a configurable percentage band before entering on a lower-timeframe trigger. The range can be each closed 30-minute candle, the session opening range, or a matur
A price-chart indicator that combines an ATR trend line, similar to a SuperTrend with a configurable multiplier and source, with market structure tools. The trend line switches colour and prints buy and sell labels when the trend flips, with an optional backgr
An earlier Pine v6 version of a day trading research strategy for crypto charts. It combines RSI, Fibonacci Bollinger Bands, trend moving average, Ichimoku, pivot support and resistance, candlestick and chart pattern modules into a weighted score. A trading se
DEPV2 is a multi-symbol Pine Script v6 indicator for cryptocurrency trading. It analyzes 20 Binance symbols including BTC, ETH, SOL, and others using four signal classes: TREND, MOMENTUM, VOLATILITY, and VOLUME. The indicator supports multiple modes including
A strategy that combines optional multi-timeframe moving average trend filters, SuperTrend, linear regression, VWMA, volume and higher-high structure checks to trigger entries on crypto spot pairs. Risk is set with a swing-low stop and a take profit at a chose
Donchian Breakout identifies potential momentum shifts based on Donchian channel extremes. It calculates highest highs and lowest lows across a user-defined lookback period. A bullish signal triggers when the current high matches or exceeds the channel high an
This indicator measures underlying chart and market data properties to highlight conditions that may produce unreliable backtest results. It evaluates trading costs like commission and slippage against median bar ranges, detects zero-volume bars, and flags pri
An overlay that draws a projection of higher-timeframe candles next to the chart and tracks a sweep, confirmation and change-in-state-of-delivery sequence between a lower and a higher timeframe. The pair can be set automatically or by hand, with a bias option,
Williams Swings V2 plots short-term, intermediate-term and long-term swing zigzags on the price chart and marks key and critical levels for each horizon. It flags break-of-structure events and optional critical-break and key-warning alerts. Settings control st
An overlay indicator that plots 9, 21 and 50 period EMAs and prints BUY or SELL labels when the 9 EMA crosses the 21, price sits on the correct side of the 50 EMA, the candle matches the direction and volume is above its 20-bar average. On each signal it store
Measures the high to low range of a morning session and an afternoon session each weekday, defaulting to 0930 to 1200 and 1200 to 1600, and draws them as boxes on the price chart. A dashboard compares the two ranges and keeps statistics over previous days. A w
A long-only strategy for the price chart that pairs a lower timeframe with a higher one, selected by a volatility mode: 10 and 45 minutes, 15 and 75 minutes, or 30 and 120 minutes. It buys when price crosses above the 20 EMA with RSI above 52 while price is ab
A Pine v6 indicator in a separate pane that plots a running total of advancing volume minus declining volume for a chosen US exchange. The exchange can be NYSE, NASDAQ, AMEX, ARCX, US total or Dow Jones. It reads the exchange up-volume and down-volume symbols
This indicator automatically calculates and plots Fibonacci retracement and extension levels directly on the price chart. Utilizing a ZigZag library to identify major price swings, it draws horizontal levels corresponding to key ratios such as 0.236, 0.382, 0.
A long-and-short trend strategy on the price chart that uses a fast and slow EMA pair with a momentum window to decide direction. Position size is scaled to a target annualised volatility using realised volatility, with a maximum leverage cap. Exits use an ATR
An overlay indicator that draws five moving averages on the price chart: EMAs of 5, 25, 50 and 100 bars and a 200-bar SMA, each with its own show toggle. It also plots Bollinger Bands with an adjustable length and standard deviation, and shows a 14-period ATR
An experimental gold indicator that scores several conditions before drawing a signal on the price chart: RSI levels, MACD, ADX strength, a Supertrend, an ATR volatility threshold against a baseline, and VWAP. Optional filters add a session window, a higher-ti
A test script that plots a long list of built-in values on the price chart so a converter can be checked against exported chart data. It includes Supertrend, parabolic SAR, VWAP with weekly bands, volume indicators such as OBV and accumulation distribution, pi
This strategy identifies bullish and bearish Pin Bar or Engulfing candlestick patterns interacting with Fibonacci levels calculated from a 1,440-bar lookback range. It enters long or short positions when a valid candlestick pattern crosses a Fibonacci level. E
Draws an options entry plan on the price chart from a text line pasted into a settings box. The pasted line can carry a status, expiry, near and structural resistance and support bands, a trigger zone, a best candidate strike with premium, alternatives, invali
A crypto futures signal indicator in a separate pane, the later version of the V17 script. It scores setups and shows only those passing a validity gate, using a trend pullback engine with limit-style entries and a range engine that fades stretched moves. Filt
This overlay indicator draws swing-based liquidity levels, fair value gaps and inverted fair value gaps on the price chart. It marks a sweep as RAW after a wick takes a swing and price closes back, then shows a short confirmation label after a later close beyo
This indicator scans up to 40 symbols across a user-defined timeframe to identify Smart Money Concepts Fair Value Gaps, Inversion FVGs, displacement bars, and internal order blocks. It calculates a weighted quality score for each gap, monitors price proximity,
An overlay that finds bullish and bearish order blocks from a pattern across several candles, with an adjustable lookback, and draws boxes that extend a set number of bars. Blocks below a minimum size in ATR multiples are skipped, and mitigation is judged by w
A Bitcoin strategy that enters long or short when price, a fast and slow EMA and a 50-period SMA trend filter agree, RSI sits inside a set band, MACD line and histogram point the same way, and volume is near its average. Each trade gets an ATR-based stop and a
A price-chart overlay that groups bars into custom range blocks. A developing range closes when its high-low span reaches the chosen point size and volume is at least a set multiple of its recent average. A box shows the forming range, a triangle marks the dir
The Inside Bar Breakout indicator identifies inside bar patterns and detects subsequent price breakouts beyond the mother bar boundaries. It marks inside bars with diamonds, plots mother bar high and low reference lines, and generates close-confirmed breakout
This strategy defines opening range breakouts within Asian, London and New York sessions using ATR-based width and buffer filters. It identifies potential entries on breakout after a retest followed by continuation, applying ICT-style context and SMC proxies f
A helper indicator that plots raw indicator values in a separate pane so they can be compared bar by bar with an external Python bot. It outputs a 200 and a 50 period EMA, ATR, RSI, the plus and minus directional indicators, raw ADX and an EMA-smoothed ADX, a
This indicator calculates a multi-factor trend and momentum score by combining triple exponential moving averages, Supertrend, ADX regime filters, WaveTrend, and StochRSI oscillators. It identifies regular divergences across pivot points, checks multi-timefram
A large price-chart overlay that combines many filters into tagged signal markers. It uses a 21, 50 and 200 EMA stack with slope, a higher-timeframe reference, Supertrend, ADX regime, WaveTrend, StochRSI, regular and hidden divergence, relative strength agains
An overlay indicator that finds pivot highs and lows and marks equal highs and equal lows, the areas where buy-side and sell-side liquidity tend to rest. Pivots must match within a percentage tolerance, sit a minimum number of bars apart and pass an ATR promin
Synthetic test fixture for a strategy-description simulator, drawn in a separate pane. Instead of chart prices it uses a built-in array of 24 artificial candles, so it runs the same on any chart. The comments state the policy: signals at bar close, fills at th
A long-only strategy ported from a bot, intended for five-minute crypto charts. It buys dips when a reversal candle appears, a three-day trend gate is satisfied, and one of three paths holds: Z-score with RSI, Z-score with the lower Bollinger Band, or RSI with
An enhanced version of the ATR SuperTrend-style buy and sell indicator. Signals can be gated by a 9 and 21 EMA cross, and two ATR take profit levels are drawn. A smart money layer adds clustered support and resistance zones, break of structure and change of ch
A Pine v5 indicator, written as the second layer of a gold-focused framework, that reads market direction from moving averages across weekly, daily, 4-hour and 1-hour data. A timeframe is bullish when price sits above 9, 21 and 50 averages in order, bearish wh
An extended version of a Bollinger Band wick marker that labels candles with wicks beyond the bands on the 15-minute timeframe. It adds RSI overbought and oversold alerts, an RSI divergence check, a repeated-wick warning, shooting star and engulfing candle det
The Key Level Confluence indicator plots support and resistance levels on the price chart. It calculates pivot highs and lows, the point of control from a simplified volume profile, VWAP, EMA50 and EMA200, Bollinger Bands, and ATR-based stop levels. Confluence
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.