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.
A swing strategy that goes long when the SuperTrend (period 10, multiplier 5) is bullish, price is above a rising 200-period EMA, and the long side is enabled. Shorts follow the mirror rules but are switched off by default. An optional partial exit closes a se
DEPV2 DEBUG S22 is a multi-symbol crypto indicator that monitors twenty perpetual futures pairs across four distinct market dimensions: trend, momentum, volatility, and volume. It evaluates signals using simultaneous consensus or sequential chains, requiring a
0-1 Reversal Signals tracks consecutive sequences of bullish or bearish candlestick closes to highlight potential trend reversals. It counts consecutive green (1) or red (0) candles and generates visual Buy or Sell shape signals directly on the price chart whe
A trend flip indicator on the price chart with BUY and SELL labels. It builds a zero-lag trail from an ATR multiple and an optional volume-weighted source, with an evasive mode that pushes the trail away during small pullbacks. Flips pass gates for choppiness,
A second version of a utility indicator that counts combo hits across recent bars with a one-bar-one-hit rule. It reads matrix, fair value gap and pullback-and-jump signals from another indicator through source inputs, merges matrix and gap signals on the same
This multi-factor consensus strategy aggregates directional votes across five independent analytical agents: dual EMA trend alignment (50/200), RSI momentum, Bollinger Bands baseline position, intraday VWAP, and higher-timeframe daily EMA 50 trend. It executes
This indicator overlays multiple smoothed moving averages, candlestick reversal patterns, and trading session highlights directly onto the price chart. It calculates 21, 50, optional 100, and 200-period smoothed moving averages alongside a short-term moving av
A Pine Script v5 indicator in a separate pane that plots a Hurst spectral oscillator: the hl2 price is passed through bandpass filters for cycles from 1 day up to 18 years and the cycle waves are drawn together. Bandwidth is set per cycle, with narrower defaul
This overlay indicator scans price pivots for regular and hidden divergences against several oscillators at once, including MACD, MACD histogram, RSI, stochastic, CCI, momentum, OBV, volume-weighted MACD, Chaikin money flow, money flow index, and an optional e
Records the high and low of the candle that begins a chosen session window and plots them as circles on the price chart, holding them until the next session start. The session is an input, defaulting to a five-minute window starting at 10:30. It works on intra
This indicator calculates the standard Moving Average Convergence Divergence (MACD) using 12, 26, and 9 period exponential moving averages, plotting the MACD line, signal line, and colored histogram in a separate pane. It identifies regular and hidden divergen
This strategy combines standard Moving Average Convergence Divergence (MACD) crossovers with Volume Weighted Average Price (VWAP) level interactions. It enters long positions when the MACD line sits above its signal line and short positions when below. Positio
The Laguerre Filter is a technical indicator designed to reduce lag while smoothing price data using John Ehlers' time-warping Laguerre polynomials. It processes a selected price source across four recursive filter components governed by a user-defined damping
This indicator plots a TTM Squeeze momentum oscillator and a MACD line in a separate pane. It builds the squeeze oscillator from a linear regression of price against a high-low and simple moving average midpoint, and colors the area by slope and sign. Circles
This indicator plots visual labels directly on the price chart to display historical stock buy and sell transactions executed by ARK Invest for AUDC. Using hardcoded timestamps and transaction counts, it highlights the specific dates on which ARK funds traded
MathComplexEvaluate is a Pine Script v5 utility library designed to evaluate string-based mathematical expressions containing complex numbers. It parses tokens into reverse Polish notation using external helper libraries and computes arithmetic operations such
This overlay strategy marks short-term turning points on the price chart and enters SPY option-style trades from them. It plots simple moving averages of highs and lows, draws up and down reversal arrows, and colors bars when a short-term extreme coincides wit
This strategy executes an opening-range liquidity fade based on the first candle of a session. It qualifies the opening range against the daily ATR to confirm manipulation or liquidity spikes. If qualified, it searches for reversal candlestick patterns, such a
Volatility Arbitrage calculates the Rate of Change (ROC) for a selected price dataset and plots it along with upper and lower standard deviation bounds in a separate pane. The indicator measures momentum fluctuations relative to zero and identifies statistical
Archens Shares is an intraday breakout strategy designed for session-based trading. It tracks the highest high and lowest low from a 30-minute timeframe during a specified session window, defaulting to 09:45 to 10:15. A long position is entered when the closin
The script plots the Choppiness Index in a separate pane. It sums true range over a lookback and compares that sum with the highest-high to lowest-low range, then scales the result from 0 to 100. Lower readings indicate a trending market and higher readings in
This indicator demonstrates the Pine Script array.copy function. It builds a float array and appends the values 0 and 1. On the last bar it copies that array, appends 2 only to the copy, and draws a large label that prints both arrays so the original stays unc
This indicator estimates the dominant market cycle length in bars using John Ehlers’s Hilbert Transform method. It smooths the chosen source, builds in-phase and quadrature components, and converts their phase angle into a period that is clamped between 6 and
This indicator plots previous open, high, low and close levels from a selected timeframe on the price chart. It requests those values with a configurable bar offset and marks a new higher-timeframe session. Users can show only the latest levels, extend the lin
This indicator marks a bullish Doji Star on the price chart. It looks for a downtrend, a long black candle, and a following doji whose body sits below the prior candle body. Trend detection can use a 50-period SMA, both 50- and 200-period SMAs, or no filter. A
This strategy implements a Donchian breakout trend-following system with volatility-adaptive profit targets. It enters long or short on 55-period Donchian channel breakouts, sizes positions by ATR risk, and pyramids up to four units as price advances. Stop los
FilledValueGap E002 is a trading strategy that enters positions opposite to the direction of a filled value gap, operating on the premise that the prevailing trend will resume after gap completion. It utilizes Curie closing moving averages as trend filters to
Calculates continuous structural market bias by detecting swing high and low pivots (higher highs, higher lows, lower highs, and lower lows) using configurable left and right bar lookbacks. It assigns weighted values to classified pivots within a rolling windo
The Capital Rotational Event (CRE) indicator tracks capital flows and rotational momentum between two selectable assets, defaulting to SPY and GLD. It calculates a relative strength ratio between the target assets, smoothed by a moving average, along with a mo
Apex Protocol Assistant is a Smart Money Concepts charting tool designed to identify session-based setups and market structure shifts. It determines directional bias using a higher-timeframe exponential moving average and highlights key trading windows includi
Indicatorv5SMC / ICT / price actionSessions & time
This indicator calculates and displays the Relative Strength Index, Slow Stochastic, and a normalized MACD line together in a separate pane. It plots the oscillators alongside customizable overbought, middle, and oversold threshold levels with shaded backgroun
This indicator calculates a Relative Strength Index (RSI) with dynamic gradient coloring in a separate pane. It tracks defined overbought and oversold thresholds, dynamically adjusting the line color according to momentum strength. Background shading highlight
Daily Levels plots horizontal price offset lines based on the current day's open and previous day's close. Users can define two custom price offsets to project key reference levels above opening and closing values. The indicator renders directly on the price c
This indicator plots multiple technical analysis components directly on the price chart, including a Nadaraya-Watson envelope, pivot-based trendlines, and a kernel regression oscillator. It also renders visual overlay panels for the Relative Strength Index and
This indicator detects multi-timeframe Liquidity Engulfing Candles directly on the price chart. It evaluates bullish and bearish engulfing patterns augmented by optional stop hunt wick filters and close breakout conditions across H1, H4, and current timeframes
This script calculates a Volume Weighted Moving Average with length 24 using high low close and volume data then plots it directly on the price chart. The VWMA line appears in blue. It also draws an upper band in red and a lower band in green whose distances f
Bear Market Probability Model plots a bear-market probability line in a separate pane. Its header describes a score built from four weighted groups: macroeconomic conditions, technical analysis, market sentiment, and market breadth. Users set warning and dange
Calculates Kaufman's Adaptive Moving Average (KAMA) based on market efficiency and volatility over a specified lookback period. It dynamically adjusts smoothing constants using fast and slow exponential moving average parameters, smoothing prices during choppy
This Pine Script strategy trades the NASDAQ 100 index during peak hours using EMA crossovers, RSI, and VWAP filters. Long entries occur when close exceeds the 9-period EMA which is above the 21-period EMA, with RSI above 50, price above VWAP, EMAs aligned, and
This indicator draws a table on the price chart displaying current open, high, low, and close values. The table is positioned at the top right of the chart. Table cell colors change to green when close exceeds open or red when close is lower, providing a simpl
This indicator fits a quadratic surface to normalized bar index and second axis data derived from close price, volume or RSI over a lookback period. It classifies the resulting conic sections into ellipses, parabolas or hyperbolas to extract and plot curved po
This strategy identifies market structure shifts, specifically Change of Character (ChoCH) and Break of Structure (BOS), on the main price chart. It triggers entries based on swing pivot breakouts with an optional volume filter and moving average confirmation.
This strategy combines Bollinger Bands and the Relative Strength Index (RSI) to execute mean-reversion trades directly on the main price chart. It opens long positions when price drops below the lower band with an oversold RSI reading, and opens short position
This indicator is a Pine Script v6 formatting fixture rather than a trading tool. It declares a user-defined Point type with bar index and price fields, plus a function that doubles a float. On each bar it doubles the close, stores the bar index and close in a
An overlay indicator that plots a fast and a slow EMA, defaulting to 21 and 55, and shades the chart background by which one is higher. A BUY triangle appears when the fast EMA crosses above the slow one while RSI is above 55 and ATR exceeds a fraction of its
DEPV2 DEBUG S23 is a Pine Script v6 indicator that draws in a separate pane and watches up to twenty user-selected Binance perpetual symbols. It combines four signal classes—trend, momentum, volatility, and volume—through a single class, simultaneous agreement
The 7 Golden MA Detrended Layers indicator calculates seven simple moving averages with period lengths scaled according to powers of the golden ratio (Phi). It subtracts each moving average from the source price to construct seven detrended price oscillator la
A trend flip indicator on the price chart with BUY and SELL labels. It builds a zero-lag trail from ATR, with an optional volume-weighted source and an evasive mode that pushes the trail away during noise. Flips must pass choppiness, baseline slope, volatility
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.