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 combines the Relative Strength Index (RSI), Moving Average Convergence Divergence (MACD), and a volume filter to identify long trade entries. A buy signal requires RSI to be oversold, MACD to cross above its signal line, and volume to exceed 1.5
Stella's Volume Profile estimates volume distribution across price levels over a designated lookback period. It divides the high-low price range into discrete rows and accumulates volume to identify the Point of Control, representing the price level with the h
Calculates and plots Smart Money Concepts (SMC) features directly on the price chart, including supply and demand zones, internal and swing market structure breaks of structure, and order blocks. Supply and demand zones track price rejections using box drawing
This indicator detects Beat the Market Maker (BTMM) second leg confirmation patterns directly on the price chart. It evaluates first leg size in pips, sets maximum pullback thresholds, and requires multi-bar confirmation for continuation setups. Trend bias is
This indicator calculates and plots the traditional Relative Strength Index momentum oscillator in a separate chart pane. It measures recent price changes to evaluate overbought and oversold market conditions. The script uses a configurable length period setti
This indicator identifies and plots bullish and bearish order blocks directly on the price chart. It defines an order block when a directional candle is followed by consecutive rising or falling bars that meet a configurable minimum percentage price change thr
Currency Strength Chart plots relative strength lines for major currencies in a separate pane. It compares EUR, USD, JPY, GBP, CHF, AUD, CAD and NZD using logarithmic price ratios, with optional histogram bars and a currency-pair strength table. Users choose r
Calculates and displays the last date and time the market traded at the current reference price level. On the most recent bar, the indicator searches backwards up to a configurable lookback limit for the nearest historical candle whose high-low range contained
The RSI Divergence Indicator MP detects regular and hidden bullish and bearish divergences using configurable RSI and pivot parameters. It plots the RSI oscillator with customizable overbought and oversold levels in a separate pane, while optionally drawing di
The Oscillator is a technical indicator designed to analyze price momentum across multiple display modes and formulas. It calculates values using fast and slow lookback periods, incorporating adjustable smoothing types and an exhaustion threshold to identify o
This indicator fits a straight least-squares regression over a user-set lookback and wraps it in inner and outer channels built from residual standard deviation rather than raw price deviation. It reports the live z-score of price versus the fitted fair value
MirPapa_Lib_trend is a Pine Script utility library providing trend and momentum calculation functions for other scripts. It features implementations for several moving average types, including the Hull Moving Average (HMA), Exponential Hull Moving Average (EHM
This strategy calculates and plots three double exponential moving averages (DEMA) on the price chart using lengths of 8, 24, and 0. It generates long signals on DEMA crossovers and short signals on crossunders. Positions are entered based on these signals and
This indicator plots a horizontal table at the top of the price chart. It displays the symbol, name, sector, RSI value, ADR percentage, ATR percentage, and days until next earnings release. Earnings days are color-coded with gray for unknown dates, green for o
This strategy combines Stochastic, RSI, exponential moving averages, Average True Range, and Fibonacci levels to generate trend confirmation and scalping signals, specifically designed for XAUUSD (Gold). It evaluates oversold and overbought conditions alongsid
This indicator detects and plots dynamic supply and demand zones directly on the price chart by combining Volume Profile peaks, daily equal highs and lows, and fair value gap levels. Nearby levels are merged according to a user-defined dollar threshold. The sc
Alper is a multi-indicator trading strategy combining a WaveTrend oscillator, RSI, and Squeeze Momentum logic based on Bollinger Bands and Keltner Channels. Operating within a user-defined backtest time window, it plots WaveTrend lines, overbought and oversold
Grid Bot places a configurable number of long and short orders between a user-set grid top and bottom and draws those levels on the price chart. Direction can be longs, shorts, or both, with default or burst entry and an optional instant first fill. Exits use
This indicator calculates and plots cumulative volume delta directly on the price chart using lower timeframe intrabar data. It displays volume delta values as lines or histograms, tracking volume flow across customizable reset intervals such as fixed sessions
The ATRN indicator calculates a normalized version of the Average True Range using a custom RMA-based true range computation for efficiency. It normalizes the ATR value between the minimum and maximum over a lookback window of 10 times the length parameter. Th
This strategy combines momentum-based ZigZag calculations with a Supertrend overlay and an EMA trend filter to generate trading entries. It allows selecting between QQE, MACD, or Moving Averages to drive the ZigZag pivot logic. The strategy includes adjustable
This indicator marks inside bars, candles whose high and low sit entirely inside an earlier parent bar’s range, including nested sequences of inside bars. It stores the parent bar’s high and low when a new inside-bar sequence starts and draws those levels on t
Interpolation is a Pine Script utility library providing mathematical interpolation and easing functions, including linear and quadratic transitions. Designed for signal processing, custom smoothing algorithms, and sigmoid transformations, each exported functi
This indicator colors chart bars based on a Triple Exponential Moving Average (TEMA) applied to candle body volume (candle body multiplied by volume). It categorizes market flow into trending bullish, trending bearish, or non-trending messy conditions based on
This Pine Script indicator plots a higher-timeframe exponential moving average on the price chart. The script calculates the EMA using a configurable length and timeframe, then applies request.security to retrieve the value without repainting. It draws the lin
HTF Candles & Pivots is an indicator that overlays high time frame candles and pivot points on the price chart. It plots customizable candles with options for thickness, wicks, fill, history shift, and labels including day, average, and TD sequence. The script
This script is an indicator that plots a volume profile anchored to pivot points on the trading chart. It calculates the point of control (PoC), value area high (VAH), value area low (VAL), and displays them as horizontal lines and backgrounds. The volume prof
This strategy calculates higher-timeframe price levels and multi-timeframe Bollinger Bands to identify price zone interactions directly on the main chart. It uses daily source prices and 240-minute Bollinger Bands, styling them with dynamic gradient coloring b
This indicator combines a Nadaraya-Watson kernel regression estimator with moving average trend overlays. It recalculates kernel-weighted lines across historical bars on the latest candle, plotting reversal arrows when the curve direction shifts. Additionally,
Candlestick Structure [LuxAlgo] detects multiple classic bullish and bearish candlestick patterns in the context of broader market structure. It evaluates patterns such as hammers, engulfing candles, stars, haramis, tweezers, and three-method formations agains
A chart overlay that detects pivot-based chart patterns and keeps a capped registry of them, each with a target, stop and invalidation level and a confidence score filtered by a minimum value. It uses ATR, volume z-scores, a higher-timeframe reference, a lower
Detects the FX pair on the chart and pulls daily 2-year and 10-year government yields for both currencies. It blends them into a yield-spread z-score drawn as an oscillator in a separate pane, tracks its rate of change and flags abnormal moves. A rolling regre
A table overlay on the price chart, short title Fin Table, that lists recent quarterly or annual company figures pulled from TradingView financial data. Rows cover diluted earnings per share, total revenue, net income and operating income, with changes coloure
Intrabar Delta estimates buying and selling volume within each chart bar by fetching lower timeframe OHLCV data. It categorizes lower timeframe bars as bullish, bearish, or neutral to calculate buy and sell volume. The script plots the net intrabar volume delt
SMC Decision Board is an on-chart decision-support dashboard designed for Smart Money Concepts analysis. It processes aggregated signal states from linked chart scripts to display a structured HUD table, trade plan risk lines, and live setup highlights directl
A long-only EMA crossover strategy whose fast and slow lengths change with the chart timeframe. Separate pairs of lengths are set for 5, 15, 60 and 240 minute charts, and other timeframes use the 15 minute pair. It enters long when the fast EMA crosses above t
This strategy calculates fast and slow moving averages using SMA or EMA selections and plots them on the price chart. It signals long entries on fast MA crossing above slow MA, optionally requiring slow MA to be rising. It closes positions on fast MA crossing
A short-only strategy that sells when price pushes a set percentage above the upper Bollinger Band. The trigger can use the candle high or the close. After entry, it places a limit take profit a set percentage below the average entry price. Band length, multip
An indicator that builds a delta profile for each session and extracts points of interest from it at session close: the delta point of control, positive and negative delta extremes, a delta flip level and an absorption node. Each becomes a zone sized by a frac
This indicator tracks and plots the daily opening price based on a user-defined UTC hour setting. Plotted in a separate pane, it enables traders to benchmark intrabar price action against a specific daily open anchor. The primary setting adjusts the starting h
A long-only strategy preset tuned for one crypto pair, using multi-timeframe pivot support and resistance with tighter touch zones and shorter retest windows than the other versions. It can flip broken resistance into support and supports optional moving avera
An overlay indicator that plots opening range levels on an index chart with a 9 and 21 EMA cross. It tracks four option contract symbols against the third resistance and support lines, noting which levels each option has touched and when, in an optional table.
A combined chart overlay that plots EMAs of 20, 50 and 200 bars with a zone around the middle line, an Ichimoku cloud with 9, 26 and 52 bar settings, and order blocks that can show as mitigated. It also marks bullish and bearish break of structure lines, break
Synthetic test fixture for a strategy-description simulator, drawn in a separate pane. Instead of chart prices it uses a built-in array of three artificial candles with a sharp drop, built to test a rule exit before stop and target barriers, so it runs the sam
The Fractal Field Smoother calculates Williams Fractals based on price high and low pivot points over a user-defined period. It measures price distance and center points between consecutive fractals, using array storage to calculate smoothed field levels and b
A basic introductory indicator script from an educational Pine Script v6 course. It calculates and plots the closing price of each bar directly on the main price chart as a simple line. Designed as a foundational starting point, the script demonstrates essenti
A separate-pane indicator that builds a Supertrend-style trailing channel from median absolute deviation instead of ATR, scaled to standard-deviation units. The centerline can be the source, a single median or a double median, and upper and lower multipliers a
Plots volume order block zones on the price chart with three tiers of asymmetric buy and sell volume signals and a signal cooldown. High-volume proximity markers fire when the highest volume in a rolling window occurs within a chosen number of bars of a tier s
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.