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.
This strategy tracks the high and low range established during the Asian trading session and executes breakout trades during the London session. It draws directly on the price chart. When the price crosses above the Asian high or below the Asian low, it enters
The Smart Money Concepts Analyzer draws key price action zones directly on the main price chart. It identifies bullish and bearish order blocks using historical candle sequences, highlights fair value gaps exceeding a user-defined percentage threshold, labels
This indicator modifies the classic Supertrend calculation by incorporating the Commodity Channel Index (CCI) to determine trend direction. It calculates ATR bands around the median price and updates trailing stop levels based on whether CCI is above or below
This indicator plots the Parabolic SAR on the price chart and identifies trend reversals with buy and sell labels. It features multi-symbol screening capability, allowing traders to monitor predefined symbol groups or custom BIST stock lists on a selectable ti
This indicator implements a modified Guppy Multiple Moving Average (GMMA) framework based on Granville's trading rules. It calculates and plots five Fibonacci-based exponential moving averages (3, 13, 34, 55, and 144 EMAs) directly on the price chart. When the
Consecutive Candle Levels identifies sequences of consecutive bullish or bearish candles to establish price ranges and project horizontal extension levels directly onto the main price chart. The indicator calculates customizable Fibonacci ratio levels, upper a
This indicator identifies and plots volumetric order blocks alongside trend strength on the price chart. It highlights recent bullish and bearish order blocks using full candles or custom length coordinates, displaying internal buy and sell activity, mid-lines
The Stock and NQ Futures Convergence Strategy identifies trading opportunities by comparing the Relative Strength Index of the active chart stock against NQ futures. It enters a long position when NQ RSI rises above the upper threshold while the stock RSI stay
Vertical Hour Lines draws vertical gridlines at user-defined intraday timestamps directly on the main price chart. It helps traders mark key session events, market opens, or specific time thresholds across any intraday timeframe. The script provides multiple c
This indicator calculates the Relative Strength Index from a chosen price source and length and plots it in a separate pane. It draws horizontal bands at 70, 50, and 30 and fills the area between the outer bands. An optional moving average can smooth the RSI u
This Pine Script v6 library defines shared types and price checks for smart-money boxes. It stores box type, bullish or bearish direction, start and end breach modes, state, and top, bottom, and midpoint prices, plus a box and line handle. A higher-timeframe c
This strategy executes trading setups on gold by combining multiple EMAs, RSI, Stochastic, and ATR with Fibonacci retracement levels. Entries are triggered through confirmation signals or optional scalp legs that can require higher-timeframe M15 wick rejection
This strategy tracks market direction using an ATR-based trailing envelope similar to Supertrend, combined with Bollinger Bands, Keltner Channels, and momentum filters. Long and short entry signals trigger on trend direction shifts within a specified backtest
Intrabar Efficiency Ratio calculates an efficiency ratio indicator using lower timeframe intrabar data to measure price efficiency and market noise. It plots in a separate pane using customizable visual modes such as Line, Candles, or Circles based on moving a
This indicator calculates the Deviation-Scaled Moving Average (DSMA) that adapts smoothing based on recent volatility using standard deviation. It plots the DSMA line in yellow on the price chart. The main settings let users choose the source series, lookback
This strategy identifies trending breakouts by comparing total candle ranges to the overall high-low channel over a set period alongside a Simple Moving Average. Long trades enter when the range efficiency ratio crosses above a threshold while the SMA rises, w
The indicator detects RSI divergences on the price chart. It calculates the RSI using the close prices with a configurable length and identifies potential trend reversals by comparing swings in price and RSI values. Bullish divergence is signaled when price fo
Calculates ZigZag swing points, classifies market structure pivots into higher highs, lower highs, higher lows, and lower lows, and computes swing length ratios. It renders ZigZag lines, pivot labels, and channel bands directly on the main price chart. User se
This indicator combines three analysis tools into a single chart overlay: a custom trend signal script, a ZigZag indicator, and a swing high and low pattern detector. It calculates dynamic support and resistance thresholds based on high-low price ranges and a
This overlay strategy combines an AlphaTrend core with kinematic, Bayesian, and mean-reversion models, plus harmonic, classical, and candlestick pattern engines. It plots consolidation zones, volume-profile points of control, pattern lines, and forward forecas
Pivot Levels identifies key structural high and low turning points on the price chart using customizable left and right bar confirmation periods. It calculates pivot highs and lows to plot horizontal resistance and support lines directly on the main chart pane
SMC Long-Dip Mobile is a compact companion surface and HUD indicator designed for mobile or small-screen chart viewing. It links to the main SMC Long-Dip Suite indicator outputs via plot sources, displaying setup state, quality score, and hero action or bias s
A dual simple moving average crossover strategy with adjustable fast and slow lengths. When the fast average crosses above the slow one it closes any short and enters long; when it crosses below it closes any long and enters short. There is no stop loss, take
This indicator is a minimal Pine Script v6 fixture that calculates a simple moving average of the close and plots the result in a separate pane. It passes the close series, a floating-point value, as the length argument of the moving-average function, which ex
An indicator that draws a Dynamic P0 line on the price chart: a rolling volume-weighted equilibrium price computed over a window set in minutes, with a value area band around it. A dashboard table scores acceptance and rejection from P0 migration, new-location
This indicator evaluates trade entry quality across trend, momentum, volatility, and volume dimensions. It calculates momentum ROC z-scores, ATR-based volatility expansion, volume flow thresholds, and multi-timeframe Heikin Ashi alignment across multiple timef
An overlay indicator that detects pivot highs and lows on closing prices and draws a created line that extends to the right, plus a short confirmation line. Labels show the level, price and an Indian-time stamp, and each element has its own toggle. Break alert
Builds a liquidity heat map on the price chart over the last 240 candles by default. The price range is split into rows and the history into time columns. Candle wicks, bodies and equal pivot highs and lows add weighted scores, and a candle body passing throug
An overlay indicator that measures how far price sits from a central EMA, smooths the signed deviation with a selectable moving average, and normalizes it with a root mean square deviation to scale a trailing band. The multiplier shrinks when deviation is stro
Marks the bar where a volume order block zone is first confirmed, which is when the moving average crossover completes, so the marker does not move to an earlier bar later. A sensitivity bank input selects the set of six sensitivity lengths, or custom values c
The TeleNexus Sovereign MA Relationship V6 is a Pine Script v6 strategy that evaluates price relationship to a selected moving-average family through six scored dimensions: trend quality, respect, extension, compression, acceleration, and exhaustion. These dim
This indicator searches price and selected oscillators for five-point W and M formations, based on Davinci's dav-o meter but without a fixed five-bar window. It can scan close price, OBV, Williams %R, RSI, MFI, and DI plus and minus. Enabled sources, strictnes
V11 Swing Sniper Pro is a trend-following and swing timing indicator tailored for equity markets such as the KLSE. It overlays key moving averages directly on the price chart and evaluates setups across three structured tiers: trend quality based on Minervini
Scalping BB CCI ROC is an indicator that marks Scalp L or Scalp S labels when the close is outside a Bollinger Band while CCI and rate of change are both beyond their thresholds in the same direction. It draws the bands with a fill colored by price position, a
Corpus Exit Qty Percent is a Pine Script strategy that executes trades based on exponential moving average crossovers and manages positions with Average True Range levels. It calculates 12-period and 26-period EMAs along with a 14-period ATR. When the fast EMA
Detects pivot highs and lows, draws sloping trendlines from them and marks breakouts on the price chart. After a breakout it shows take profit and stop loss visuals and a status table. Settings choose the pivot period, whether lines use wicks or candle bodies,
Draws supply and demand zones as boxes on the price chart using several detection modes, including classic candle patterns judged by body percentage and an ATR-based mode. This variant uses looser body thresholds, allowing a base candle body up to the full can
An indicator on the price chart that applies a k-nearest neighbours classifier to short-period RSI and moving average deviation features. Features are z-score normalised, optionally compressed with principal component analysis, and compared with a rolling trai
This indicator draws a liquidation heatmap on the price chart. It estimates pocket intensity from volume, price range, or their product over a configurable lookback, then filters by minimum intensity and merges nearby labels. An optional ZigZag plots swings, w
NR7 Range Breakout identifies narrowest range bars over a specified lookback period and trades breakouts beyond their high or low price boundaries. It plots an exponential moving average trend filter alongside visual highlights for range compression and breako
This strategy plots a Supertrend-style trailing band, called the TrendStepper, on the price chart and trades pullbacks to that line. It enters long when the trend is up, the low touches the lower band, and the close stays above it, and it enters short on the m
A price-chart overlay that draws a static set of options gamma levels for SPY (the S&P 500 ETF) expiring in thirty days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated 2026-02-04, produced offline from
This strategy executes gap-fade trades on E-mini S&P 500 futures during Regular Trading Hours. It compares the current market open with the prior session close to identify opening gaps, qualifying entries using minimum gap percentages, index point minimums, an
This indicator calculates several variants of the MACD oscillator, including Traditional, Histogram, Leader, and Source methods, and overlays the oscillator directly on the price chart. It plots shape labels for MACD and signal line crossovers, while rendering
An indicator in a separate pane that shows buy and sell signals with optional chop, moving average and time-of-day filters. It adds profit target lines at a tick distance, a profit wave band, background trend colouring and candle colouring. Built-in text descr
An experimental pane indicator that compares three simulated approaches inside a date window: plain dollar-cost averaging, a long account that rebalances toward a value-averaging target, and a short account that does the same. Each bar adds a configurable USDT
Restyles the chart's candles as an overlay. Bodies are coloured green when the close is above the open and red otherwise, while wicks are drawn in a fixed blue. It performs no calculation beyond the candle comparison and has no inputs or signals. It needs the
The script converts cryptocurrency prices to Chinese Yuan (CNY) by multiplying the open, high, low, and close prices of the selected coin with the corresponding USDCNY exchange rates. It plots candlestick data in a separate pane for the translated prices. User
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.