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.
Institutional CRT Engine identifies Candle Range Theory setups by monitoring session-based time models for liquidity sweeps, Market Structure Shifts, and Fair Value Gaps. It plots CRT range boxes and signal labels directly on the main chart. Key settings allow
This lower-pane indicator tracks a custom Supertrend built from ATR and a selectable average, then colors trend states such as rising, bear, pretrend, overbought, and oversold. It can paint bars, plot optional arrows, and show a dashboard of EMA lengths and sc
Delta Volume Candles [LucF] plots replacement candles on the price chart and colors them from delta volume derived with lower-timeframe intrabar data. Users choose body coloring, including polarity or several volume-balance modes, optional gradients, and hollo
The Zero-Lag Double EMA indicator calculates a double exponential moving average with zero-lag smoothing using lag compensation and exponential warmup compensator. It plots the resulting ZLDEMA line on the price chart. The main input is the period, defaulting
This strategy plots four exponential moving averages on the price chart and compares their order. It treats a fully rising stack, shortest above the next three lengths, as bullish and the reverse order as bearish. It opens one long contract on the first bar th
Probe B Orders Strings is a diagnostic testing strategy designed to verify order execution rules, string formatting, and price rounding behavior for stop and limit orders. Operating on a repeating 24-bar cycle, it enters alternating long and short market posit
Hyper Fibo System is an overlay indicator that projects Fibonacci wave cycles and linear regression lines based on two user-selected chart anchor points. It calculates the slope, midpoint, and range between the anchors, allowing traders to apply cyclic Fibonac
A price-chart indicator for one- to five-minute charts that marks each accepted entry as a buy or sell label with boxes for the stop and for 1R, 2R and 3R levels. Entries need a Supertrend flip, agreement from a completed higher-timeframe Supertrend, the EMA s
Tick-chart overlay indicator that merges forty-six bullish and bearish combination markers into one study, replacing an earlier bull and bear pair. Combos blend Keltner Channel logic with a VWMA base line, ATR Supertrend, PB and J filter, pocket pivot and a di
This strategy implements a modified Ichimoku Cloud system with causal HTF trend filtering on the price chart. It computes Tenkan-sen, Kijun-sen, Senkou A and B lines using user-set lengths for displacement. Long signals trigger on cloud breakout above with Ten
Draws supply and demand zones on the price chart from engulfing candle patterns. Algorithm modes range from looser to strict engulfing, with a threshold separating big from small candles. Settings limit how many zones and how much history are kept, with a sepa
Pine library of functions that average values only when a condition is met. Functions cover a cumulative average when a condition is true, an average over the last chosen number of occurrences, an average over a chosen number of bars back, an average since a c
EDIT-tracker is a Pine Script v4 overlay indicator that marks historical ARK Invest purchases and sales of the EDIT stock on the price chart. With the ETF input set to ALL, it places green Buy labels below bars and red Sell labels above bars on fixed calendar
Function: Decision Tree is a Pine Script v4 study that demonstrates a weighted decision-tree path sampler in a separate pane. A small pseudo-random generator reseeds itself from a stored float and picks node indices whose weights are at least the random draw.
This indicator adapts Donovan Wall's range filter to create trend-following trade labels on the price chart. It calculates a smoothed average price range using exponential moving averages and gates price fluctuations that fall within this threshold. When price
This strategy tracks Bitcoin network hashrate data from external sources like Quandl, Glassnode, or IntoTheBlock using short and long moving averages. It generates buy or sell signals when the short hashrate moving average crosses above or below the long movin
Calculates John Ehlers' Rocket RSI indicator by combining a two-pole SuperSmoother filter with a summation-based RSI and a Fisher Transform. It measures price momentum, applies smoothing to reduce lag and noise, computes relative directional change, and applie
This indicator computes a simple moving average of the close over a fixed length of ten bars and plots a percentage oscillator equal to the gap between that average and the close, scaled by one hundred. It draws the oscillator in a separate pane and fills the
This indicator calculates the typical price by averaging the high, low, and close prices for each bar. It plots the HLC3 series on the price chart with a yellow line of width two. The calculation uses multiplication by 0.333333 for optimization instead of divi
Net Volume plots signed bar volume in a separate pane. It multiplies each bar's volume by the sign of the close-to-close change, so a rising close is positive and a falling close is negative. The result is drawn as one blue series titled NV. On the last bar it
This strategy plots on the price chart and enters from a moving-average filter, ADX and Gann colours. Price above a 200-period EMA allows only longs; price below allows only shorts. A Gann aqua colour with ADX above a key level opens a long, and a Gann brown c
This overlay indicator detects tweezer tops and bottoms and kangaroo-tail pin bars, then draws supply and demand zones from those patterns. It scores each zone, decays freshness, merges overlapping zones, and can invalidate a zone after a close-through or afte
This indicator plots a single-timeframe WaveTrend oscillator in a separate pane. It calculates WT1 from an EMA-smoothed typical-price channel and WT2 as a four-period simple moving average of WT1. Color coding marks bullish or bearish line order and extreme ov
This indicator plots an institutional candle-range-theory model on the price chart. It tracks a chosen one-hour or four-hour session candle, stores that candle’s high and low, and uses a state machine to mark the range. An optional higher-timeframe filter requ
Indicatorv5SMC / ICT / price actionSessions & time
This indicator draws a SPY scalping panel in a separate pane. It calculates a Supertrend side from ATR smoothed by a selectable average, defaulting to HMA, and uses three moving averages of selectable type, defaulting to EMA lengths 13, 50, and 75. Colors mark
Calculates and plots a Zero-Lag Exponential Moving Average directly on the price chart. It reduces traditional moving average lag by computing a signal from the current price and a lagged price offset by half the smoothing period, followed by exponential smoot
PF Probe 4EMA-RSI Probe 02 RSI Pullback is a stateful momentum strategy that triggers trades based on Relative Strength Index dip-and-recovery patterns. It arms a persistent long variable when RSI drops below a pullback threshold and opens a long trade when RS
This strategy serves as a test fixture for commission and slippage calculations across market, stop, and limit orders, utilizing percentage-based commission settings. It periodically opens long and short positions based on bar index cycles, applying predefined
Hyper Fibo System plots dynamic price lines, Fibonacci waves, symmetry projections, and regression channels based on two user-selected anchor points. The script calculates slope, midpoints, and cross levels between anchor points to project Fibonacci wave cycle
An indicator for the price chart that classifies conditions as trend, range, transition or shock and lets only the matching module signal: a Supertrend flip or continuation in trends, a fade of a completed range edge in ranges, and a break of the completed Asi
Time-chart bearish overlay indicator with 23 combination markers that mix Keltner Channel logic with other engines. Inputs cover a VWMA base line, an ATR Supertrend, a PB and J filter, Keltner bands with slope thresholds, pocket pivot size, and a displacement
This strategy draws on the price chart and trades ICT-style market structure. It uses swing pivots to set a bullish or bearish bias, then requires a fair value gap larger than a fraction of ATR and a simplified engulfing order block. Long and short entries fir
Draws supply and demand zones on the price chart from engulfing candle patterns, with a zone invalidated after a set number of level breaches. Algorithm modes range from looser to strict engulfing, and a threshold separates big from small candles. Settings lim
Calculates daily median and 85th percentile ranges for high-to-open and open-to-low distances over a 30-day lookback period using higher timeframe daily data. At each new trading day, the script projects expected upper and lower volatility levels directly on t
EDR-tracker is an overlay indicator that marks historical ARK Invest purchases and sales of EDR on the price chart. It places green buy labels below bars and red sell labels above bars at hardcoded dates. Each label shows the trade direction and how many ARK E
Implements a Discrete Fourier Transform (DFT) custom function in Pine Script to decompose time-series amplitude data into frequency domain components. The function calculates arrays of complex numbers representing frequency amplitudes and phase angles by itera
This indicator implements a distance-based pair trading strategy applied across two timeframes of the same instrument. It calculates the spread or statistical distance between price data on the active chart and a secondary timeframe using selected metrics like
This strategy calculates the WaveTrend oscillator from HLC3 averages and its smoothed difference to generate long signals on BTC price charts. It enters positions when WT1 crosses above WT2 and stays below a limit value. Stop loss triggers at the recent bar lo
The Ehlers Roofing Filter isolates cyclical market components by eliminating low-frequency macro trends and high-frequency market noise. It combines a two-pole Butterworth high-pass filter with a Super Smoother filter. The high-pass stage removes cycle compone
This script demonstrates how to implement a custom Simple Moving Average (SMA) function using an explicit loop construct in Pine Script v4. It defines a function that iterates through past bar values up to a specified length of 14, sums the closing prices, and
The Ultimate Channel calculates an ultra-smoothed centerline alongside upper and lower volatility bands directly on the main price chart. It processes true range values through an advanced infinite impulse response smoothing filter to establish dynamic channel
This indicator plots the standard On Balance Volume (OBV) in a separate pane by accumulating volume based on the direction of price changes. It includes an optional smoothing line that can apply a Simple, Exponential, Smoothed, Weighted, or Volume-Weighted Mov
This Pine Script v5 strategy draws on the price chart and sends TradingView orders toward Zignaly. It uses a selectable moving average, defaulting to a 200-period EMA of close, together with an SSL calculation based on a 10-period SMA. The user can trade long
This indicator computes and plots multiple technical analysis features on a separate pane. It calculates EMA-based trend indicators including fast and slow EMAs along with their slope, momentum oscillators such as RSI, Stochastic RSI, and MACD histogram, WaveT
This strategy plots RSI on the price chart and enters a long when RSI falls below the oversold level or a short when it rises above the overbought level, only while flat. It exits with a take profit and stop loss measured in pips from the current close. Inputs
Institutional CRT Engine Dual Mode implements Candle Range Theory across selectable 1-hour and 4-hour timeframes. It anchors to defined session opening hours across Asian, London, and New York market periods to establish range boundaries. The indicator evaluat
J8 30 123 SPY Scalping PRO 2 Jerry is an overlay strategy designed for short-term SPY scalping and spread setups. It combines multiple Exponential Moving Averages with a custom Supertrend calculation based on flexible moving average types and ATR lengths to pl
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.