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.
TheStrat Suite classifies candles across six configurable timeframes using Rob Smith's TheStrat bar types. It plots inside bars, hammers, shooters, failed 2s and outside bars on the price chart, with magnitude and exhaustion targets, stop levels and full timef
This indicator applies kernel density estimation to analyze price distributions and residuals directly on the main chart. It calculates probabilistic moments, modes, and density profiles across sliding or session-anchored windows using selectable kernel functi
This indicator plots the Relative Strength Index, a momentum oscillator that measures the speed and magnitude of price changes using Wilder's RMA of gains and losses. It draws the oscillator and configurable upper and lower bands in a separate pane, with the l
Sirius Wavetrend is an oscillator-style indicator that requests higher-timeframe MACD and Wave Trend values and compares them with optional RSI or Stochastic filters. It marks long and short MACD states from histogram color and the MACD sign, with an optional
This indicator combines a 200-period Exponential Moving Average (EMA), a Stochastic RSI oscillator, and three distinct Supertrend lines utilizing different ATR periods and multipliers. It overlays the EMA and Supertrend tracking lines directly onto the price c
This strategy trades trend pullbacks on the price chart. It goes long when the 50-period EMA is above the 200-period EMA, price is above the slower average, RSI of length 2 is below 20, and ADX is above 15. Shorts mirror that in a downtrend with RSI above 80.
This indicator plots multi-timeframe moving average bands alongside a Relative Strength Index in a separate pane. It calculates up to four configurable moving averages across different timeframes, offering selectable types such as SMA, EMA, and WMA with colore
This strategy evaluates momentum conditions in a separate pane to trigger long and short positions. Although titled after stochastic crossovers, the code calculates two Relative Strength Index series for trade signals. It enters long when the primary oscillato
This strategy builds Chandelier trailing stops from the highest high and lowest low over an ATR window, offset by an ATR multiple. The long stop only ratchets up and the short stop only ratchets down. Direction turns long when the close exceeds the prior short
SMC Quant Engine is an intraday trading strategy that combines Smart Money Concepts with a quantitative scoring system. It identifies order blocks and fair value gaps aligned with higher-timeframe 240-minute moving averages, ADX trend strength, and volume. Ent
Ichimoku Cloud — Large Cap is a long-only trend-following strategy designed for large-cap stocks. It calculates standard Ichimoku components, including Tenkan-sen, Kijun-sen, Senkou Span A, Senkou Span B, and Chikou Span. Trades enter on a bullish Tenkan/Kijun
This overlay indicator marks Elliott Wave structure on the price chart. Comments describe detection of impulse and corrective waves across three ZigZag lengths, Fibonacci retracement levels, and numbered wave labels. Users choose high and low sources, turn eac
This indicator plots a fast and a slow moving average on the price chart and marks bullish and bearish crossovers. The user can choose SMA, EMA, RMA, or WMA, the price source, and both lengths. Triangle shapes appear below or above the bar at each crossover, a
This indicator marks a bearish long upper shadow candlestick pattern on the price chart. It treats a bar as a match when the upper shadow is greater than 75 percent of the full high-to-low range. On a match it draws an LUS label above the bar, tints the backgr
Calculates a custom-period Relative Strength Index alongside an Exponential Moving Average of the RSI in a separate pane. It identifies pivot highs and lows directly on the RSI plot to highlight trendlines and potential divergence patterns. The area between th
This indicator measures price volatility using the Coefficient of Variation, calculated by dividing the standard deviation by the simple moving average over a specified lookback period. It filters out ranging market conditions by comparing the current variatio
This script plots three MACD lines calculated from exponential moving averages on the close price. The first line subtracts the 14-period EMA from the 21-period EMA, the second subtracts the 41-period EMA from the 90-period EMA, and the third subtracts the 90-
This indicator plots overbought and oversold markers on the price chart. It calculates RSI from a chosen source and a smoothed Stochastic %K. A red down triangle labeled OB appears above a bar when both oscillators are at or above their overbought levels. A gr
Snagprofit Buy Sell is an overlay trend-following indicator that calculates smoothed triple exponential moving averages (TMA) based on Heikin-Ashi and standard price inputs. It plots two trend lines directly on the chart and fills the space between them in gre
This indicator highlights unusually high trading volume relative to a moving average baseline. It calculates a volume threshold by multiplying a simple moving average of previous volume bars by a user-defined factor. Volume is plotted as a column chart in a se
DIP FINDER BIST is a multi-symbol dashboard indicator designed for the BIST stock market. It scans predefined groups of Turkish stocks across user-selected timeframes to identify potential market bottoms and oversold conditions. The script evaluates multiple t
This indicator plots exponential moving averages of lengths 3, 13, 34, 55 and 144 on the price chart and calculates a MACD with lengths 3, 15 and 6. It defines a long or short entry when an EMA 3/13 golden or death cross and a matching MACD cross fall no more
Alert Test is a utility indicator designed to demonstrate and test TradingView alert functionality in Pine Script v5. It monitors the closing price of the current bar against a hardcoded threshold level of 3000. When the closing price exceeds this value, it tr
This Pine Script v5 indicator overlays RSI, MACD line, signal line, and histogram on the price chart. It also plots a custom composite indicator derived from normalized RSI and MACD values. Buy and sell signals trigger when RSI crosses oversold/overbought leve
Stella's MACD + RSI Combo plots both the Moving Average Convergence Divergence oscillator and the Relative Strength Index in a separate chart pane. It evaluates momentum by comparing the MACD line against its signal line alongside RSI overbought and oversold t
This indicator combines a Delta Money Flow Profile with Bjorgum price levels directly on the main price chart. It calculates buying and selling volume delta using either candle polarity or buying/selling pressure to display money flow profiles, normalized dist
This indicator detects bearish M and bullish W chart formations on the price chart based on Steve Mauro's Beat The Market Maker (BTMM) methodology. It emphasizes second-leg entries confirmed by a clean close across the 13 EMA, volume filters, and minimum ATR p
This strategy plots a 12-line moving average rainbow directly on the price chart using customizable types such as EMA, SMA, RMA, WMA, HMA, or VWMA. It enters positions based on moving average alignment and turnover signals across the ribbon. Exits are managed
This indicator measures a 20-bar rolling correlation between lagged changes in several price factors and the close change over the previous 10 bars. It is configured to draw in a separate pane. The factors include the gap between a 13-period EMA and a 30-perio
Currency Strength Chart plots the relative strength of major currencies including EUR, USD, JPY, GBP, CHF, AUD and CAD on a separate pane. It calculates values from price or oscillator sources such as RSI, CCI or Stochastics then smooths the result. Users choo
This strategy identifies hidden bullish and bearish divergences between price pivots and the True Strength Index (TSI) indicator. It incorporates an Exponential Moving Average (EMA) trend filter and a customizable trading session time window. Long positions en
The GMMA indicator plots two groups of exponential moving averages on the price chart. The short-term group uses EMAs with periods 3, 5, 8, 10, 12 and 15. The long-term group uses EMAs with periods 30, 35, 40, 45, 50 and 60. The two groups are colored blue and
This strategy identifies price consolidation ranges during Asia session hours and trades mean-reversion reclaims following liquidity sweeps. It marks an initial range box, measures sweep depths past box boundaries using ATR multiples, and enters trades when pr
Oscillator combines WaveTrend calculations, Money Flow Oscillator (MFO), VWAP metrics, and fractal-based divergence detection into a single separate pane indicator. It plots overbought and oversold threshold levels, identifies trend momentum waves, and highlig
This indicator maps the Asia, London, and New York sessions on the price chart. It draws each developing session range as a translucent box and places dashed liquidity rails at prior session highs and lows. Those rails remain until price sweeps them, then they
This indicator tracks multi-timeframe market structure across up to four user-defined timeframes in a separate pane. It identifies structural changes through Break of Structure (BoS) and Change of Character (CHoCH) events derived from pivot highs and lows. Use
This strategy calculates and plots up to three Double Exponential Moving Averages directly on the price chart. It signals entries based on DEMA crossovers and crossunders, using an optional third moving average as a directional trend filter. Position sizing al
This indicator identifies consolidation by checking if the closing price stays within a user-defined percentage of three moving averages: a 21-period SMA, a 50-period SMA, and a 65-period EMA. When the condition holds, it plots a green X marker below the candl
Calculates a confluence scoring model based on Stochastic, RSI, triple EMA alignment (20, 50, 200), Fibonacci retracements, and automated support/resistance zones. Generates trade signals when composite scores exceed early or full thresholds, supported by wick
Lakshmi v1 Institutional Flow Engine is an overlay indicator that combines volatility channels, multi-timeframe order block levels, and volume-price anomaly signals. It plots an ATR-based adaptive channel alongside higher-timeframe supply and demand zones deri
This strategy calculates and plots the traditional Moving Average Convergence Divergence (MACD) line, signal line, and histogram in a separate pane. It enters a long position when the MACD histogram is above zero and closes the long position when the histogram
This indicator calculates predictive volatility boundaries and support/resistance range channels for grid trading configurations. It determines grid envelopes using an ATR-based step algorithm across a configurable length and multiplier factor, with customizab
This indicator plots a multi-asset correlation heatmap in a separate pane to measure statistical relationships between assets. It calculates Pearson correlation coefficients over a user-specified lookback period between a chosen primary symbol and up to twenty
This indicator calculates the Archer On-Balance Volume (AOBV) by applying custom exponential moving averages to standard On-Balance Volume data. It computes two distinct smoothed lines—a fast period of 4 and a slow period of 14—using a warmup compensation algo
This indicator tracks market volatility regimes by calculating the ratio between the CBOE Volatility Index (VIX) and the 3-Month Volatility Index (VIX3M). Plotted in a separate pane, a line displays the VIX to VIX3M ratio alongside a dashed reference line at 1
This strategy applies a Supertrend calculation to Heikin Ashi price data to identify trend direction and potential market reversals. It executes trades based on Supertrend trend shifts and incorporates an On-Balance Volume filter. Risk management includes a co
This indicator tracks and displays open portfolio positions in an on-chart table overlay. It monitors up to ten user-defined symbols alongside their respective buy prices, retrieving current market prices and calculating the unrealized percentage change for ea
Calculates composite scoring across multiple technical indicators including EMAs, SuperTrend, Parabolic SAR, Hull Moving Average, RSI, MACD, WaveTrend, Stochastic, Bollinger Bands, and ATR. Trading entries trigger on the price chart when cumulative weighted sc
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.