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 calculates the full Ichimoku Kinko Hyo indicator system, plotting the Tenkan-sen, Kijun-sen, Senkou Spans, Chikou Span, and Kumo Cloud directly on the price chart. It enters long positions when the Tenkan-sen is above the Kijun-sen while price tr
This indicator draws a volume profile on the price chart from recent bars. It accumulates volume until a circulation threshold is reached, then splits that price range into histogram rows and assigns each bar's volume to buy and sell boxes by where the close s
The Capital41 Liquidity Sweep Simple indicator detects liquidity sweeps where price breaks a recent swing high or low then closes back inside the range with volume confirmation. It plots triangular shapes below the bar for bullish sweeps and above for bearish
Institutional CRT State Engine is an overlay indicator that combines Direction of Liquidity (DOL) bias detection with Candle Range Theory (CRT) pattern recognition. It monitors key institutional session windows—including CBDR, Asia, London, London Lunch, and N
Indicatorv6SMC / ICT / price actionSessions & time
TheStrat Suite is a multi-timeframe price-action indicator that implements Rob Smith's TheStrat on the price chart. It classifies bars, marks inside bars, hammers, shooters, Failed 2s and outside bars, and plots magnitude and exhaustion targets plus stop level
Calculates an adaptive tracking model using a Mechanical Feedback Price Model to measure price innovations. It evaluates positive and negative deviations through peak decay and saturation functions to determine dynamic intensity levels. It applies these intens
This indicator calculates and plots dynamic SuperTrend volatility bands around median price to identify market trend direction. It signals bullish conditions when price stays above the green support line and bearish conditions when price falls below the red re
This indicator plots RSI(14) on the price chart along with regular and hidden bullish and bearish divergences. It detects divergences by comparing price highs and lows to RSI values using pivot points with configurable lookback bars. Signals appear as triangle
This indicator plots 50-period and 200-period exponential moving averages on the price chart while calculating money flow index and WaveTrend oscillators in the background. Long signals trigger when price trends above the 200 EMA with a recent 50 EMA pullback,
Elton's Screener is an indicator that runs in a separate pane and scores one of twenty selectable strategies, or auto-selects a route from the symbol type. It filters signals by a minimum confidence level and a higher-timeframe EMA trend alignment. ATR multipl
The Relative Liquidity Index measures market volatility and liquidity dynamics by calculating the Relative Strength Index (RSI) of the Average True Range (ATR). Displayed in a separate pane, it highlights low and high liquidity states based on configurable thr
This strategy trades exponential moving average crossovers tailored for the German DAX market during Xetra session hours. It enters long positions on bullish EMA crossovers and short positions on bearish crossovers, provided the bar falls within 09:00 to 17:30
Multi-Timeframe Trend Analyzer [Lab] is an overlay indicator that evaluates market trends across five customizable timeframes using a selected detection method. Traders can determine trend direction using Moving Average Crossovers, Supertrend, EMA Slope, or Pr
This indicator detects the bullish Upside Tasuki Gap candlestick pattern on the price chart. It looks for a long green candle, a smaller gapped green candle, and a red candle that closes inside the gap without filling it, while an optional trend filter require
NYSA-Trend Kanali combines Parabolic SAR, higher-timeframe exponential moving averages, and weekly MACD signals on the price chart. It calculates Parabolic SAR to highlight trend shifts with visual buy and sell labels, plots weekly 8-period and 13-period EMAs,
This indicator draws an on-screen dashboard table tracking market structure and technical metrics across higher timeframes such as 2-hour and 4-hour intervals. It uses higher-timeframe data to evaluate swing highs, swing lows, RSI levels, support and resistanc
This indicator calculates and plots the Fisher Transform oscillator alongside its trigger line in a separate pane to highlight extreme price moves and potential reversals. It identifies bullish signals when the Fisher line crosses above its trigger line from o
This indicator implements a modified Guppy Multiple Moving Average system based on Fibonacci periods (3, 13, 34, 55, and 144 EMAs) combined with Granville rules. It detects reset crossover signals when the 3 EMA crosses the 55 EMA with price confirmation, as w
This indicator detects price movements over a configurable number of lookback bars based on percentage or price distance thresholds. It plots buy and sell signals directly on the price chart and can invert signals for counter-trend entries. Users can filter si
The RSI Alert Strategy with Webhook Integration is a Pine Script v5 strategy that plots RSI and EMA on the price chart to generate trading signals. It enters long positions when RSI drops below oversold levels while above the EMA and short positions when RSI r
ICT + Kill Zone + Silver Bullet is an overlay indicator that highlights key Inner Circle Trader (ICT) session timeframes on the price chart. It draws colored background boxes and labels for trading sessions including Asia, London, NY AM, NY Lunch, and NY PM. U
BTMM OTE Zones automatically identifies swing points to project key Fibonacci retracement levels and Optimal Trade Entry (OTE) areas such as 61.8%, 70.5%, and 78.6%. It plots these levels along with Premium and Discount valuation zones directly on the main pri
This library exports a function that calculates the Relative Strength Index from the close price. It measures bar-to-bar change, separates gains and losses, smooths both with a running moving average, and returns the standard 100-scale RSI. Callers pass the lo
The Long Term Alpha Indicator computes a weighted alpha from price change (close minus average of high low close) multiplied by volume and smoothed via simple moving average. It produces EMAs of this weighted alpha at fixed lengths of 110 30 and 8. Each EMA is
This indicator plots the comparative relative strength of major currencies in a separate pane below the price chart. It calculates strength metrics based on raw price or momentum oscillators including RSI, CCI, and Stochastics, smoothed using various moving av
MA Spread Histogram calculates the difference between two configurable moving averages and plots the result as a color-coded column histogram in a separate pane. The histogram bars highlight expanding or contracting momentum across the zero line. When the shor
This indicator calculates RSI and identifies regular and hidden bullish and bearish divergences against price swing pivots in a separate pane. It features an early signal mode that uses a shorter lookback to detect provisional divergence earlier, tracking whet
The Price Action Toolkit is an indicator that combines several price action tools on the chart. It calculates the ATR with user-defined length and shows it in a table. It plots multiple Kaufman Adaptive Moving Averages (KAMA) with different lengths and sources
WaveTrend Oscillator Pro calculates WT1 and WT2 lines derived from exponentially smoothed typical price channels and moving averages. Displayed in a separate pane, it visualises momentum alongside customizable overbought and oversold bands. Crossover signals b
This indicator plots key levels from historical Monday sessions, including Monday High, Low, Open, Close, and custom ratio levels such as the equilibrium line. Extending these level lines across the trading week, it draws reference levels and labels directly o
This strategy plots a Supertrend indicator directly on the price chart to generate trend-following trade signals. It calculates dynamic upper and lower bands using a chosen ATR period, multiplier, and calculation method. Entries trigger when the trend switches
Volume Historical Patterns indicator plots volume analysis in a separate pane. It computes an SMA of volume using optional time filtering for NYC hours and identifies the highest volume bar ever seen. Bars receive custom colors based on volume relative to this
This strategy is designed for gold trading using multi-indicator confirmation and custom profit protection mechanisms. It combines Stochastic, RSI, moving averages (EMA 20, 50, 200), Fibonacci levels, and ATR buffers to generate confirmation or scalp entries.
Lakshmi Zones v3 is an overlay indicator that builds demand and supply boxes from a volume-profile histogram of recent bars, then merges nearby levels and limits how many zones appear and how far they sit from price. Optional plots include a Magic Line channel
This strategy combines the WaveTrend oscillator with Bollinger Bands and Keltner Channels squeeze momentum calculations in a separate pane. It displays WaveTrend signal lines, oscillator difference areas, threshold levels, and crossover points directly in the
The Grid Bot Direction Plugin Supertrend Pivot indicator calculates dynamic market trend direction for automated grid trading. It computes a smoothed center level derived from pivot highs and lows, combining it with ATR-based bands to generate a trailing stop
This indicator plots cumulative volume delta as candles in a separate pane. It builds volume delta from lower-timeframe intrabars, either as raw delta or as a percent of volume, and accumulates it until a chosen reset. Resets can follow a higher timeframe, a f
This indicator calculates Average True Range as a percentage of the closing price and plots that value in a separate pane. True range is the largest of the bar range and the gaps from the previous close. An RMA-style average with a warmup correction smooths th
This strategy plots a custom SuperTrend Polyfactor Oscillator in a separate pane using ATR, adjustable factors, and normalization options on the chosen indicator source. It generates long, short, or both direction signals based on the oscillator values with mu
Plots timeframe-adaptive moving averages and technical overlays directly on the price chart. It displays standard daily moving averages, weekly trends, or intraday averages depending on the active timeframe. The 200-period simple moving average dynamically shi
This library provides utility functions for managing labels on a TradingView chart. It allows creating labels at the last bar with specified levels, text, colors, and sizes. The refreshXPos function updates the x position of existing labels with optional bar o
Calculates the Z-score of closing prices over a specified moving average period and standard deviation length. It identifies potential statistical outliers by checking if the Z-score breaches positive or negative threshold levels during a user-configurable tra
This strategy generates buy and sell signals on the price chart using MACD crossovers. It applies an EMA 200 filter requiring price to trade above or below the EMA. Only the first MACD crossover is used after the filter condition is met. Stop loss is calculate
This indicator overlays higher-timeframe candles and pivot levels on the price chart. It draws HTF candle bodies and optional wicks or hollow fills, plus vertical time-division lines. Labels can show the timeframe, an average, the weekday, and a TD sequential
The script is a technical indicator that plots two zigzag lines on the price chart to highlight swing highs and lows. It uses ta.highest and ta.lowest to detect macro structures with length 16 and internal details with length 4. Lines connect these points in b
This strategy identifies reversal points using large and additional fractals on the price chart. It detects breaks of fractal levels and plots post-break ranges along with retest lines and signals. Entries occur on retest signals, with pyramiding allowing mult
This overlay indicator scans swing pivots and draws classic and harmonic chart patterns on the price chart. It can mark head and shoulders, wedges, double and triple tops and bottoms, cup and handle, triangles, pennants, flags, broadening formations, Gartley,
Plots the spread between a Euribor futures contract and a SOFR futures contract, optionally converted to implied rates by subtracting price from 100. Settings choose the contracts, data timeframe, price source, sign inversion, basis point display and EMA smoot
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.