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.
Ease of Movement is a technical oscillator that measures the relationship between price changes and volume. It calculates the distance moved by the price range midpoint relative to volume, smoothed by a Simple Moving Average. The indicator plots in a separate
This strategy trades an asymmetric long and short trend system on the price chart. Longs use shorter Donchian entry and exit lengths, tighter ATR stops, more pyramid units, and a higher risk percent per unit than shorts. Each unit is sized from equity and stop
This strategy uses the Noro Trend Ribbon to determine trend direction and open long or short positions. It defines a corridor from recent high and low prices and enters positions when price crosses the corridor boundaries, sized as a percentage of capital. Fas
Markov State Engine classifies market conditions into six distinct regimes, including strong trends, weak trends, compression, and expansion. It evaluates historical state transitions using an exit-conditional Markov model with Laplace smoothing to estimate re
The Dual Super Trend Indicator calculates and evaluates Supertrend values across two customizable timeframes to determine combined trend direction. A bullish signal triggers when both timeframes register a bullish Supertrend direction, while a bearish signal t
Apex Protocol v3.0 plots smart-money structure on the price chart. It marks break of structure and market structure shifts, order blocks, fair value gaps with optional midlines, automatic Fibonacci levels, and higher-high, lower-high, higher-low, and lower-low
Strategy Short Template provides a base structure for backtesting short-only trading strategies. It includes modular risk management with take profit and stop loss levels calculated using fixed percentages or Average True Range (ATR) multipliers. Users can sel
This indicator calculates the ATR-based Supertrend line overlaid directly on the price chart to identify market trend direction. It computes upper and lower bands around the median price using Average True Range (ATR) scaled by a configurable multiplier. The s
This indicator combines the Directional Movement Index (DMI) and the Stochastic oscillator to plot directional trade signals directly on the price chart. It offers two distinct signal logic modes: one based on DI line crossovers confirmed by Stochastic levels,
This indicator projects dynamic price target levels directly on the chart based on configurable signal conditions such as crossovers and crossunders between two sources. Users can select from a wide range of built-in technical indicators, including Supertrend,
This indicator identifies and visualizes multi-timeframe Fair Value Gaps (FVGs) directly on the price chart. It projects imbalances across multiple configurable timeframes, ranging from intraday intervals to monthly periods, with options to overlay zones or pr
The WaveTrend indicator calculates two oscillator lines, wt1 and wt2, using a channel length on hlc3 price and an average length. It plots wt1 in green and wt2 in red in a separate pane together with overbought and oversold horizontal levels and the histogram
This indicator segments market history into bull and bear cycle periods based on user-defined percentage movements or elapsed time duration. It overlays cycle stages directly on the price chart using colored background highlights, peak and trough labels, and d
The McGinley Dynamic Indicator calculates an adaptive smoothed value that responds dynamically to recent price changes. It plots one line on the price chart to show trend direction and strength. Users set the lookback period for the initial average and the fac
The Quatro SMA strategy identifies trend direction using four Simple Moving Averages combined with a volume confirmation filter. Long entries trigger when three fast SMAs align sequentially above a 200-period SMA while current bar volume exceeds 2.5 times its
The script Getting User Input is a Pine Script v5 indicator that demonstrates various user input settings. It provides boolean toggles for on/off states, color pickers, integer and float numeric controls, symbol choices, price levels, price sources, timestamp
This overlay indicator marks a four-stage bullish entry ladder on the price chart. It tracks fast and slow EMAs, swing structure, break of structure or change of character, liquidity sweep or reclaim, and optional displacement candles. Volume type, a multi-len
This Pine Script strategy identifies trend changes by checking for crossovers between fast and slow EMAs on the current timeframe. It confirms the trend with a higher timeframe EMA confluence gate set to 60 minutes. The strategy draws its signals directly on t
The P_fmt_long_line indicator calculates a complex expression on a separate pane. It sums open, high, low, close values and derived ranges like hl2, hlc3 and ohlc4 across the current bar and the prior nine bars, plus their maximum and minimum. The result is as
An indicator in a separate pane that splits each bar's volume into a buy part and a sell part, drawn as stacked columns. The split is estimated from lower-timeframe sub-bars, each classed as up or down by its own close versus open, so it approximates order flo
DEPV2 DEBUG S28 is a Pine Script v6 indicator that draws in a separate pane. It watches up to twenty user-chosen symbols, defaulting to Binance perpetual crypto pairs, and combines four method classes: trend, momentum, volatility, and volume. Signal mode can u
Auto Fractal Slope Projection with Elliott Ratios detects fractal pivot points to project dynamic trend slopes and wave targets directly on the price chart. The indicator filters fractal pivots using customizable volume and ATR thresholds, then calculates proj
A price-chart indicator by BigBeluga that detects abnormal candle moves either as a fixed percentage or as a multiple of ATR, using candle bodies or full high-to-low range. Each spike is marked with an arrow, a size percentage label and an optional dashed mid-
A bearish-side detection indicator for higher timeframe charts that marks numbered signals on the price chart. It combines relative volume tiers, displacement based on a standard deviation multiplier, a VWMA with ATR Supertrend latch, pocket pivots and fair va
An ICT-style strategy on the price chart that requires two confirmations before entering: an inverse fair value gap flip and a change in state of delivery, which is a structure break from recent swing levels. Optional filters are an EMA trend check, a liquidit
This indicator plots a WaveTrend oscillator in a separate pane, modeled after Market Cipher B. It marks wave crossings with small circles, green buy dots when waves cross up at oversold levels, and red sell dots when they cross down at overbought levels. Gold
A Pine Script v5 indicator in a separate pane, the third revision of a Hurst spectral oscillator. The hl2 price is run through bandpass filters for cycles from 1 day to 18 years and the waves are plotted with an optional composite. Bandwidth and period are set
This indicator calculates a classic Supertrend line on the price chart using Average True Range (ATR) and a user-defined multiplier. It identifies prevailing market trends by dynamically trailing support and resistance levels. When price closes across the band
An indicator in a separate pane that measures candle wick sizes, the distance from the body to the high and to the low, and shows them as columns for the chart timeframe along with 15-minute and 60-minute versions requested with lookahead. Percentile levels ov
An indicator component that finds support and resistance levels from confirmed pivot highs and lows using a 200-bar left window, with both a slow 20-bar and a quick 5-bar right confirmation. It keeps the latest levels, colours each by whether the close is abov
A Pine v4 strategy with small percentage targets, using a 12/26 MACD, a 14-period RSI and a 15-bar high-low lookback. Inputs set separate take-profit and stop-loss percentages for longs and shorts, an RSI level to close longs, a MACD bar count, and switches fo
This indicator checks bar-to-bar price relationships to detect whether the active chart uses a Point-and-Figure (P&F) chart type. It tracks consecutive close price directions and counts occurrences where opening and closing levels match between adjacent bars.
The MACD + RSI Strategy [Alorse] combines moving average convergence divergence (MACD) crossovers with recent Relative Strength Index (RSI) extreme levels to generate long trading signals overlaid directly on the price chart. A long entry triggers when the MAC
This indicator tracks historical ARK Invest transactions for BATM on the main price chart. It visualizes past buy and sell activity by plotting color-coded labels directly above or below corresponding price bars using specific calendar timestamps. The primary
MathConstantsElectromagnetic is a Pine Script library that provides a collection of predefined electromagnetic constants based on 2007 CODATA reference values. It exports functions for physical parameters including elementary electron charge, magnetic flux qua
Sideway Zones Live is an overlay indicator that estimates inner and outer sideways bands from recent highs and lows with a rational quadratic kernel. It tracks swing pivots over a loopback period and counts bars that remain between the outer high and low. Afte
This indicator plots the Relative Strength Index in a separate pane and marks regular and hidden bullish and bearish divergences. It compares confirmed price pivots with RSI pivots within a lookback window: regular divergence contrasts a price extreme with the
Aggregate Signal (Improved) calculates a composite indicator by normalizing and averaging multiple technical metrics, including the Relative Strength Index, Commodity Channel Index, Center of Gravity, and a slope-based sigmoid transform. Each factor is normali
This strategy combines Average True Range (ATR) and the Relative Strength Index (RSI) to generate volatility-filtered momentum trades on the price chart. It checks whether a normalized ATR moving average falls within user-defined bounds and requires current AT
This indicator calculates the Coppock Curve as a weighted moving average of the sum of a long and a short rate of change of a chosen source. It plots that oscillator in a separate pane and draws a dotted zero line. Inputs set the source, the long ROC lookback,
This indicator calculates the Average True Range over a user-chosen period and shows the latest value in a single-cell table at the top right of the price chart. A helper builds a format string from the symbol's minimum tick so the number is printed to tick pr
This indicator applies the hyperbolic tangent to a chosen source series and plots the result in a separate pane. It centers the transform on a 200-bar simple moving average of that source, multiplies the deviation by a steepness factor, and maps the output int
NQ Stats Helper is an overlay indicator that plots custom trading session ranges, session high and low boundaries, and 50% equilibrium levels directly on the price chart. It visualizes major sessions like New York, London, and Asia with colored range boxes and
This indicator calculates the Elders Force Index as an exponential moving average of the close-to-close price change multiplied by volume. It plots that oscillator in a separate pane and draws a horizontal zero line. The only input is the EMA length, which def
This strategy trades Donchian breakouts measured on weekly bars while orders execute on the chart timeframe. It allows long and short entries when price breaks the prior weekly channel and exits against the shorter weekly channel. Position size risks a set per
RSIScreener A003 is an indicator that plots RSI oscillator values on the price chart for multiple monitored symbols. It calculates RSI with user-defined length and source, along with customizable overbought and oversold levels. The script can enforce a higher
MFI Advanced is a separate pane volume-and-momentum oscillator that enhances the traditional Money Flow Index with pluggable smoothing options such as JMA, KAMA, and SuperSmoother. It plots a smoothed fast MFI line, a signal line, a slow trend context line, an
Dynamic Extreme Channels & Reversals tracks evolving price highs and lows to plot adaptive channel bands and a midline directly on the price chart. When no new extremes occur within the specified lookback window, the channel boundaries interpolate toward price
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.