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.
This indicator overlays a market structure dashboard on the price chart. It reads up to seven user-selected timeframes, each with an on/off switch and a trend weight, and shows columns for EMA trend, swing highs and lows, structure, order blocks, and fair valu
This strategy detects bullish and bearish RSI divergences using price and RSI pivot points. A bullish divergence triggers a long entry when price forms a lower low while RSI forms a higher low below 40. A bearish divergence triggers a short entry when price fo
MA Crossover Table is a multi-timeframe indicator that displays trend states in a table overlaid on the price chart. It computes SMA crossovers for lengths 10, 20 and 60 on timeframes 1, 5, 15 and 60. Bullish conditions trigger when successive SMAs are in uptr
This indicator combines RSI and MFI into a hybrid oscillator scaled to 0-1. It detects divergences by comparing price and MFI slopes from linear regression. The MFI receives extra weight during divergence to amplify the effect. A TMA smooths the hybrid result
This long-only strategy executes trades based on Ichimoku Kinko Hyo Tenkan-Sen and Kijun-Sen crossovers. It opens a long position when the Tenkan-Sen moves above the Kijun-Sen and closes the position when the Tenkan-Sen falls below the Kijun-Sen. Main settings
This indicator sums bar volume between a user-chosen start and end time. It highlights that interval on the price chart with a background color and plots the running total on the status line. On the last bar it draws a label above the midpoint of the interval
This indicator calculates the Relative Strength Index along with a 200-period simple moving average. It plots the RSI oscillator line alongside horizontal reference levels for overbought and oversold thresholds in a separate pane below the main price chart. Co
Capital41 Fusion Core Strategy is an overlay trading strategy that combines an exponential moving average trend filter, RSI, Williams %R, and volume/ATR expansion into a composite momentum oscillator. It executes long trades when the smoothed oscillator crosse
Institutional CRT Framework is an overlay indicator that highlights candlestick patterns including 2-candle rejection, 3-candle classic, inside bar consolidation, and outside bar ranges directly on the price chart. It offers optional time-session filtering acr
This indicator implements Rob Smith's TheStrat price action methodology across up to six configurable timeframes. It classifies candles into inside, directional, and outside bars, identifies patterns like hammers, shooters, and failed 2s, and calculates magnit
Quantile-Based Adaptive Detection calculates statistical distribution thresholds using weighted quantile moments and percentiles. It computes adaptive deviation, skewness, and kurtosis levels relative to a calculated median center using moving window data or s
This indicator plots a Rolling Moving Average, also called Wilder's smoothing or SMMA, on the price chart. It averages the selected source with a length-based Wilder formula that is seeded by a simple moving average, then can apply a second moving-average pass
This strategy combines Squeeze Momentum and MACD indicators to generate trading signals. It plots the Squeeze Momentum histogram and MACD in a separate pane. The strategy enters long positions when squeeze enters and MACD is bullish, and short when squeeze ent
This long-only strategy combines a 200-period Exponential Moving Average, Stochastic RSI, and three distinct Supertrend indicators with varying ATR periods and multipliers. It enters long trades when price trades above the 200 EMA, Stochastic RSI crosses up fr
This strategy trades pullbacks in the direction of a moving-average trend and draws on the price chart. An uptrend requires the 50-period EMA above the 200-period EMA with price above the slower average, and a downtrend is the reverse. It enters long or short
This indicator calculates and plots multi-timeframe moving average bands alongside a Relative Strength Index in a separate pane. It evaluates up to five distinct moving average layers across user-defined timeframes, ranging from the chart resolution to daily i
The SuperTrend Follow strategy determines trend direction using a simple ATR value derived from the moving average of high-low ranges. It plots on the price chart and enters long positions when price exceeds the ATR value or short when price falls below. The s
This strategy trades directional momentum breakouts for crude oil on the price chart. It enters long or short positions when a fast exponential moving average crosses a slow exponential moving average, provided that current Average True Range exceeds its movin
Ultimate PropFirm Strategy - QuantAlgo is an intraday trading system that combines Smart Money Concepts with exponential moving averages and volume filters on the main price chart. It identifies trend setups using Break of Structure, Fair Value Gaps, and order
The Keltner Channel Strategy is a breakout system plotted directly on the main price chart. It calculates upper and lower channel bands around an exponential or simple moving average using ATR, True Range, or bar range multiplied by a specified factor. A long
This strategy plots fast and slow moving averages on the price chart and trades their crossovers. It enters long when the fast average crosses above the slow average and short when it crosses below. An optional higher-timeframe moving average can block trades
This indicator scans multiple symbols for regular MACD bullish and bearish divergences filtered by long-term trend direction using 150-period and 600-period EMAs. When a divergence aligns with the trend filter, it dispatches a JSON-formatted alert on bar close
This multi-indicator toolkit and scanner overlays Tillson T3 Moving Averages, MavilimW weighted moving average combinations, Bollinger Bands, and AlphaTrend calculations directly on the price chart. It includes color-coded trend direction signals and alerts wh
This long-only strategy plots a 20-period exponential moving average of the low, a 20-period simple moving average of the low, and the close in a separate pane. It enters long when the high breaks the prior 25-bar highest close and the close is above both the
Stoch (Brahim) is a momentum indicator that calculates Stochastic oscillator values and plots signals directly on the main price chart. It evaluates whether the smoothed Stochastic %K line meets or exceeds predefined overbought and oversold thresholds. When ov
Snagprofit HL is an overlay indicator that tracks recent price extremes. It stores the highest high and lowest low over two lookback windows, defaulting to 8 and 21 bars, when price matches those extremes. It plots the longer window high and low as black lines
Dipmix is a separate-pane momentum and scanning indicator designed to identify market bottoms and oversold conditions. It calculates a WaveTrend oscillator using EMA-smoothed price channels, alongside an integrated Awesome Oscillator and Accelerator Oscillator
The script plots EMA lines with periods 3, 13, 34, 55 and 144 along with the MACD indicator on the price chart. It generates buy entry signals when both EMA3 golden cross and MACD golden cross occur within three bars of each other. It generates sell entry sign
Auto S/R v2 plots automatic support and resistance on the price chart. It finds pivot highs and pivot lows with a fixed strength of five bars, then stores those prices as horizontal key levels. A proximity check compares each new level with the average candle
This Pine Script v5 indicator provides a collection of mathematical utility functions including safe division, percentage change, normalization, array average and standard deviation calculations. The functions are wrapped with debugging capabilities that suppo
This indicator plots four exponential moving averages on the price chart and compares their order. It marks a fast-over-medium crossover only when the fast average is on the same side of the trend average, and it draws buy or sell labels when all four averages
This overlay indicator plots optional buy and sell signals on the price chart, with a selectable strategy mode, sensitivity, and an automatic sensitivity option. Filters can limit signals during consolidation, to smart signals, or to high-volume bars, and cand
The BTMM Master Dashboard indicator plots tables, boxes, and labels on the price chart for multi-timeframe analysis. It calculates 5, 13, 50, and 200 period EMAs along with session-based market maker phases including accumulation, manipulation, distribution, a
This indicator calculates and plots a custom Parabolic Stop and Reverse (PSAR) trailing level directly on the price chart. It tracks trend direction by updating acceleration factors as new extreme price highs or lows are reached. Bullish trends are displayed w
This indicator calculates a composite RSI oscillator paired with STARC volatility bands in a separate pane. It evaluates momentum by combining RSI differentials with smoothed RSI readings, while also referencing higher-timeframe data, moving averages, and esti
This indicator plots relative strength for major forex currencies in a separate pane. It calculates each currency with RSI, CCI, or stochastics over a chosen resolution, using automatic, custom, or lookback period modes. Users can show or hide individual curre
This indicator plots a fast and a slow simple moving average on the price chart, defaulting to lengths of 50 and 200. It marks a golden cross when the fast average crosses above the slow average and a death cross when it crosses below. Each cross draws a dashe
This strategy fades touches of daily Camarilla pivot boundaries (S3 for longs, R3 for shorts) during sideways market conditions. It plots pivot levels directly on the price chart and validates entries using regime filters, including maximum ADX thresholds, pri
This indicator plots a composite oscillator in a separate pane, integrating squeeze momentum, directional flux, divergence detection, and confluence gauges. It calculates momentum dynamics and squeeze conditions, highlights regular or hidden divergences with l
This indicator plots smart money concept structures directly on the price chart using confirmed swing pivots and an internal trend state machine. It identifies Break of Structure, Change of Character, Fair Value Gaps, and Order Blocks. Mitigated zones automati
Mirpapa Lib HTF is a Pine Script v6 utility library designed for higher timeframe (HTF) data processing and chart timeframe conversions. It exports a custom data structure for caching open, high, low, close, and time values across multiple bars, alongside util
This strategy executes long trades based on Double Exponential Moving Average (DEMA) crossover signals. It calculates up to three DEMAs, triggering entries when the faster DEMA crosses above the slower DEMA (optionally filtered by a third DEMA's direction) or
This indicator calculates Stan Weinstein's Mansfield Relative Strength (MRS) comparing a security against a chosen benchmark index, such as the S&P 500. It measures outperformance and underperformance relative to a zero line using a moving average baseline. Th
This strategy plots on the gold price chart and combines stochastic, RSI, and three EMAs with ATR to confirm buy and sell entries. Confirm trades can require an M15 overbought or oversold rejection wick and a Fibonacci or EMA zone, while a no-chase filter limi
Lakshmi Zones calculates and plots unmitigated daily order blocks, supply and demand zones, and key levels directly on the price chart. It processes historical daily candlestick bodies and wicks to generate zone boxes, tracking whether subsequent daily closes
This strategy combines multiple technical indicator systems into a composite trading setup. It computes an Ichimoku Cloud, an ATR-based trailing stop system (nKRAL) with optional Heikin Ashi smoothing, Bollinger Bands, Parabolic SAR, and higher-timeframe Super
This indicator builds a Supertrend-style channel from ATR and the median price, then tracks the highest and lowest prices between trend flips. It plots a grid high, grid low and midpoint, shifted by an offset, and can filter the channel by minimum and maximum
This indicator plots net positions for Commercial and Non-Commercial (Large Speculators) traders using Commitment of Traders (COT) legacy report data. It automatically converts root symbols to their corresponding CFTC codes to fetch daily long and short positi
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.