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 indicator tilts a simple moving average by the slope between two user-chosen price and time points and plots that average, its inverse, and a horizontal midpoint. It also mirrors the average around the midpoint and draws reconstructed candles reflected th
A signal indicator on the price chart built on a 9, 21 and 55 EMA ribbon. Buy and sell signals need a minimum confluence score drawn from trend, RSI, volume and other checks, and are graded A plus, A, B or C, with C hidden by default. It plots an ATR or struct
Overlays a Keltner Channel and an ATR supertrend on the price chart and marks candles where several built-in detectors agree on the same bar. The detectors cover pullback patterns, displacement, relative volume and high-volume bars, shown as lettered markers.
A trend strategy on the price chart. It enters long when a fast EMA crosses above a slow EMA with RSI below 60 and short on the opposite cross with RSI above 40. An optional higher-timeframe EMA filter, set to four hours by default, requires price to agree wit
A Pine v4 pane indicator that builds a stack of up to 28 rows of moving average based momentum readings and colors them as a heat map, with greens for positive and reds for negative momentum. The moving average type can be SMA, EMA or WMA, momentum can be smoo
An indicator on the price chart that draws support and resistance zones from bars with unusually high volume, measured against a volume moving average threshold. Zones can come from the chart timeframe and several higher timeframes, each with its own number of
Visualizes historical buy and sell transactions made by ARK Invest ETFs for FTCH (Farfetch) directly on the price chart. The script plots green labels below price bars for buy trades and red labels above price bars for sell trades based on historical timestamp
This indicator calculates and plots the rolling median and mode values of close prices over a user-defined length using Pine Script array functions. It maintains a custom floating-point array of recent price data, sorting it to calculate the median, and counti
This strategy draws exponential moving averages and automatic Fibonacci retracement levels on the price chart. It opens a short when the previous close is below the upper Fibonacci extreme and the 21-period average is below the 55-period average. It closes the
This indicator calculates John Ehlers' Voss predictive filter. It first applies a two-pole bandpass to the selected source, then builds a weighted feedback predictor that offsets filter delay by a chosen number of bars. Period sets the primary cycle length, Pr
This indicator calculates a linear regression trend channel and Pearson's R correlation coefficient directly on the price chart. Using Pine Script line drawings, it plots a central regression baseline along with configurable upper and lower deviation bands bas
This strategy builds a price channel from the highest high and the lowest low over a user-set lookback. Once enough bars exist, it places a long stop order at the channel high and a short stop order at the channel low. The only setting changes the channel leng
Sergapi B002 is a price-chart strategy that opens long trades when both an ATR signal and an EMA signal indicate buying, and short trades when both indicate selling. A strategy-type setting controls direction. Optional percentage or ATR stop losses, take profi
Volume Strata [WavesUnchained] is a fixed-range volume profile indicator that anchors to the right side of the price chart. It calculates volume or money flow distribution over a configurable lookback period to highlight the Point of Control (POC), Value Area
Calculates standard position sizing based on a user-defined maximum dollar loss per trade. Risk distance can be set using Average True Range (ATR) multiples or a fixed tick count. It automatically detects dollar-per-point multipliers for popular futures contra
This overlay strategy builds independent timed session ranges and marks range, trendline, mean, VWAP, and high-low levels when those displays are enabled. It enters on range breakouts and exits with strategy exits, choosing among range, ATR, fixed-point, and r
This overlay indicator draws rounded psychological price levels and optional PVSRA vector candle colors on the price chart. It plots quarter, half, and whole levels from a user-set rounding value, with separate color, line style, and width for each. Vector col
Everything Bitcoin [Kioseff Trading] is an overlay indicator that gathers on-chain Bitcoin network metrics and lower timeframe market data. It requests BCHAIN datasets via Quandl—including hash rate, mining difficulty, transaction volume, miner revenue, and wa
A test strategy from a reference corpus that isolates the timing of market close orders. It buys one unit at 03:15 and closes at 05:15, then sells short one unit at 15:15 and covers at 17:15, based only on the clock. There are no indicators, stop loss or take
This indicator calculates and visualizes geometric symmetry across the chart using two user-selected anchor points. It computes a slope, midpoint time, and horizontal cross level, then derives a simple moving average whose length reflects the time span between
A trend indicator on the price chart using an efficiency-ratio adaptive moving average with ATR-based bands. A trend flip produces a Long or Short signal, and the script can draw a stop at a multiple of ATR with three targets set as multiples of the risk dista
Overlays a Keltner Channel and an ATR supertrend on the price chart and marks candles where several built-in detectors agree on the same bar. The detectors cover pullback patterns, displacement, relative volume and high-volume bars, shown as lettered markers.
This strategy overlays a multi-timeframe trend system on the price chart. It reads a higher timeframe, selected in minutes, for fast and slow EMA alignment and Supertrend direction, using the prior bar. It enters long or short only when flat, after an executio
A Pine v4 pane indicator that shows moving average based momentum as a heat map of up to 28 rows, with a second moving average setting and a second slower smoothing for short-term readings. Colors run from green for positive to red for negative momentum, with
An indicator on the price chart that requests pivot lows and pivot highs from the one-hour timeframe and plots them as circles on the chart. For each new pivot it draws a dashed horizontal line back to the bar where the pivot formed. Despite the name it does n
FVRR-tracker is an overlay indicator that marks recorded ARK Invest activity on the Fiverr price chart. It places a label under the bar for a historical buy, showing a short count such as X1 at a fixed date. An ETF setting is present but only offers ALL in thi
This statistical analysis tool mines historical relationships between RSI values and candle volatility. It calculates a 14-period RSI from the previous bar and normalizes absolute price change using a 14-period Average True Range (ATR). Based on the normalized
This strategy generates trend-following entries using double-smoothed exponential moving averages, two Commodity Channel Index (CCI) periods, VWAP, and volume filters. Long entries require price to trade above smoothed EMAs and VWAP alongside high volume and b
The Elder Ray Index plots Bull Power and Bear Power values in a separate pane to measure buying and selling pressure. Bull Power is calculated as high minus EMA and Bear Power as low minus EMA, where the EMA uses a period-based smoothing formula with alpha and
This indicator tracks bar lows during consecutive rising highs using Pine Script arrays. When at least four lows accumulate or the price breaches the minimum low in the stack, the script sorts the recorded lows in ascending order and flushes them. It plots up
This indicator plots the percentage price oscillator in a separate pane. It divides the difference between a short moving average and a longer moving average by the longer average, then multiplies by 100. Users choose the source, both lengths, and whether the
This strategy generates long and short signals using high and low closing moving average channels combined with ATR trend filtering. It plots directly on the price chart alongside an optional moving average ribbon. Positions enter when directional criteria ali
This overlay indicator plots a session VWAP that resets daily plus pivot-anchored VWAP highs and lows. It marks price crosses of those VWAPs, crosses between session and anchored VWAPs, and clusters where several VWAP lines sit close together. Display mode, cl
This technical indicator combines SuperTrend signals, moving average trend clouds, pivot points, and daily range breakout targets directly on the price chart. It generates Buy, Strong Buy, Sell, and Strong Sell labels when price crosses the SuperTrend level in
This indicator identifies and plots custom time-based ranges on the price chart using GMT hours, monitoring for price breakouts within a configurable time window. When price breaks beyond the high or low of the range before expiration, it displays directional
LibraryStopwatch is a Pine Script library designed to measure and benchmark script execution timing. It tracks the time elapsed since the script started running using built-in system time variables and estimates execution metrics across processed bars. The lib
Exploring Unicode is a Pine Script v5 indicator that demonstrates Unicode character support on the price chart. It labels high and low pivots with blocks of special symbols and emojis using the label.new function. The script also applies plotchar to mark bars
A test strategy from a reference corpus that checks how closing by order id behaves after several entries have been stacked. It buys one unit at 00:15, 00:30 and 00:45 under the same id and closes all at 01:15, then repeats the pattern on the short side at 12:
This indicator plots iterative zero-lag moving averages directly on the price chart. It starts with a base simple moving average and applies recursive lag-reduction calculations using symmetric past offsets across up to ten iterations. The indicator computes t
A separate-pane indicator that fuses a selectable moving average type (EMA, SMA, HMA, KAMA and others) into a multi-state trend cloud and a smoothed oscillator with signal line. Buy and sell labels depend on a probability score against two thresholds and an op
Overlays a Keltner Channel and an ATR supertrend on the price chart and marks candles where several built-in detectors agree on the same bar. The detectors cover pullback patterns, displacement, relative volume and high-volume bars, shown as lettered markers.
A trend strategy that requires four conditions to agree: price on the right side of a 200 EMA, ADX at or above a threshold, the positive directional index leading the negative for longs or the reverse for shorts, and a custom ATR-band Supertrend pointing the s
This indicator calculates a smoothed momentum oscillator from price and plots many offset momentum lines in a separate pane as a colour-graded heat map. Moving average type, smoothing periods, the number of plotted lines and the colour theme are adjustable. It
This indicator calculates and visualizes statistical volume thresholds across dynamic, time-based lookback windows. It converts multi-hour and multi-day periods into bar counts based on the active timeframe to compute rolling volume medians, simple moving aver
GBTC Tracker visualizes historical buy and sell transactions executed by ARK Invest funds for the GBTC asset directly on the main price chart. It plots green upward labels for buy orders and red downward labels for sell orders at specific historical date times
This experimental script calculates a custom linearity metric using rolling historical close price data stored in a fixed-size array. It computes a weighted sum of price differences relative to the oldest price held in the array buffer. The script plots the re
This intraday strategy enters positions based on an alignment of trend, momentum, and oscillator indicators. It triggers long entries when the Commodity Channel Index is above a positive threshold, a fast Relative Strength Index crosses above a slow RSI, price
This indicator calculates a second-order Elliptic lowpass filter (IIR) with defined passband ripple and stopband attenuation. It applies digital signal processing techniques to smooth price data while attempting to maintain a sharp frequency cutoff. The result
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.