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.
An overlay signal indicator that routes between three exclusive modes: a trend mode using Supertrend flips or Donchian continuation, a range fade mode, and a transition mode that trades breakouts of a finished Asia range. Shock candles, gaps, micro-ranges and
Tick-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
A strategy that trades liquidity sweeps on the price chart. A bullish sweep is a low below the lowest low of the prior 20 bars that closes back above it with a lower wick longer than a set multiple of the body; a bearish sweep mirrors this at the highs. A volu
Draws supply and demand zones on the price chart from engulfing candle patterns. A lookback setting decides when a zone is invalidated, a tolerance margin allows small breaches, and a long term mode keeps more zones. Algorithm modes range from looser to strict
An indicator on the price chart that tracks the high, low, open and close of calendar periods, with session, day, week, month and year contexts, and keeps a short history of recent periods. It handles Moscow Exchange futures sessions with their main and evenin
This Pine Script indicator plots labels on the price chart to mark ARK Invest ETF buy and sell events for a selected stock. The main input setting is ETF type selection, defaulting to ALL or specific ETFs such as ARKQ. Labels appear below the chart price for e
This indicator is a Pine Script v4 drawing experiment that stores ten recent price changes and a rounded RSI reading in arrays. It plots those values as circles in a separate pane, using plot offsets to place points horizontally and a gradient function to colo
This indicator implements basic volume and dollar bar thresholds on the main price chart. It accumulates either traded volume or dollar volume (volume multiplied by price) until reaching a user-defined delta threshold. When the accumulated value crosses the de
This strategy enters a long position on Monday when the current bar falls inside the 1400-1601 session window. It closes that long on Wednesday inside the same window, and also exits at a percentage stop loss or take profit. Default stop loss is 4 percent and
This indicator calculates John Ehlers Trendflex in a separate pane. It pre-filters the chosen source with a two-pole SuperSmoother, sums the difference between the current filtered value and recent filtered values as a cumulative slope, then divides that slope
This Pine Script v4 indicator demonstrates history referencing on array values versus series values. It stores the close in a one-element float array, then plots the previous value of that array element beside the previous close. It also plots a 20-period simp
This indicator plots a rolling linearly weighted average of a chosen source on the price chart. Weights rise from the oldest bar to the newest, matching a weighted moving average, and a circular buffer updates the sums in constant time. During warm-up the deno
The OutSide Bar Strategy identifies outside bar candlestick patterns directly on the main price chart. It triggers a long entry when a bar's high exceeds the previous high and its low drops below the previous low, provided the bar closes higher than its open.
This price-chart strategy looks for a long volume pattern: three or more candles with falling volume, then a higher-volume candle, while price is lower from the start of that sequence to the end. Long strict mode is on by default and short strict mode is off.
Vein Exhaustion is a price-chart indicator that scores how stretched a directional move is before structure confirms a turn. It builds separate bull and bear scores from consecutive directional bars, EMA distance in ATR units, RSI and MFI extremes, volume-base
This indicator draws horizontal daily and weekly levels on the price chart from two exponential moving averages and a Bollinger-style envelope. It calculates EMA 9, EMA 20, and an EMA-based band with a configurable standard-deviation width, then requests those
The script plots horizontal lines on the price chart for key trading levels, including previous day high and low, daily session ranges split into Asia and London, and gaps labeled NDOG daily, NWOG weekly, and NMOG monthly. It optionally shows wick rejection sy
This indicator combines MACD calculations, Bollinger Bands, and Keltner Channels to identify trend conditions and momentum shifts. It plots colored MACD lines, dot signals, and a squeeze cloud in a separate pane to highlight overbought or oversold momentum lev
Divergence-Support/Resistence combines dual Zigzag pivot detection with momentum oscillators to identify divergence patterns and plot support and resistance levels directly on the price chart. Users can select from various built-in oscillators, such as RSI, CC
The Volatility Ratio (VR) indicator measures short-term price range relative to average historical volatility. It calculates the current bar's True Range and divides it by an Average True Range (ATR) computed via Wilder's smoothed moving average with initial b
This strategy compares an 8-period EMA with a 21-period EMA on the price chart. When the fast average is above the slow average it places a long stop at the prior bar high and cancels the pending short; otherwise it places a short stop at the prior bar low and
This indicator combines traditional Ichimoku Kinko Hyo calculations with a dynamic moving average whose length automatically adjusts based on the duration of the current Ichimoku cloud segment. It computes dynamic EMA or SMA values capped by a user-defined max
A price-chart indicator that classifies the market into trend, range, transition or shock regimes using an adaptive core, ATR, ADX, choppiness and efficiency measures. Each regime has its own sleeve: trend-following on structure and momentum, range-edge revers
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.
TN Sovereign Lorentzian v6 is a quantitative strategy that classifies price action regimes using multi-dimensional indicators and causal volume auditing. It generates entry signals based on RSI center-line crossovers, 10-period momentum, and price alignment re
Draws supply and demand zones on the price chart from engulfing candle patterns. A lookback setting decides when a zone is invalidated, a tolerance margin allows small breaches, and a long term mode keeps more zones. Algorithm modes range from looser to strict
A test indicator in a separate pane that exercises an imported period high and low library. It detects session, day, week, month and year changes, with extra handling for Moscow Exchange futures sessions, and plots the change markers as lines so the period det
This indicator plots ARK Invest trade marks for FARO on the price chart. It places dated labels above bars for recorded sales, including a sell mark on 17 January 2020 labeled as one ETF. The only input is an ETF selector whose sole option is ALL, so it does n
This indicator uses array operations to track recent high and low values. It defines helper functions to insert values into a fixed-size array. On each bar it calculates the 10-bar highest high and lowest low, then checks for the formation of a new high or low
This indicator measures normalized buying and selling volume pressure in a separate pane. It rescales volume, open, and close prices over a selected lookback period using min-max normalization. Volume is categorized into bullish or bearish pressure based on ba
This strategy takes long trades only. It enters when a fast simple moving average crosses above a slower one and either weekly CCI or ADX meets its threshold, depending on the toggles. It closes the long when price falls below a third moving average, and it ca
This indicator plots John Ehlers' truncated bandpass filter beside a standard infinite-impulse-response bandpass in a separate pane. It passes cycles near a chosen center period, with bandwidth setting how wide the passband is and length setting the finite tru
This indicator demonstrates history referencing on a one-element float array. On every bar it creates a new array, stores the current close in its only element, and reads that element one bar back. It also reads the previous close directly from the price serie
This indicator calculates the classic weighted close, also called HLCC4, as one quarter of the high plus the low plus twice the close. It calls a small helper that multiplies the four price terms by 0.25 and plots the result as a yellow line of width two direc
This indicator calculates and plots the standard Parabolic Stop and Reverse directly on the price chart using cross markers. It tracks potential trend direction and reversal points as price moves, plotting dots above or below the price candles. The main input
This strategy identifies volume-based rebound signals on the price chart. It detects three or more consecutive lower volume candles followed by a higher volume candle, with price remaining lower from the start of the volume sequence, signaling potential long e
Vein: Pullback identifies temporary counter-trend retracements and signals when they end versus when structure breaks. It calculates a multi-layer confluence score from 0 to 10 based on trend quality, move weakness, structure preservation, and Fibonacci retrac
Session Dominance Profile [Pointalgo] is an overlay indicator that calculates a volume profile broken down by global trading sessions over a specified lookback period. It divides the historical high-low range into price bins and categorizes volume into Asian,
Key Trading Levels Pro plots previous-day high and low, Asia and London session ranges, and new daily, weekly, and monthly opening gaps on the price chart. It can mark candles whose wicks touch a level while the body closes on the other side. Users toggle each
The Jerry Buy Zone Strategy calculates standard MACD line values and applies Bollinger Bands directly to the MACD line to identify momentum breakouts. Long entries trigger when the MACD line crosses above zero while remaining above the upper Bollinger Band, or
This indicator draws a pie chart of cryptocurrency market-cap dominance in a separate pane. It requests CRYPTOCAP close values for Bitcoin, Ethereum, several major altcoins, Tether, and the others bucket, then accumulates those shares into wedge angles. Precom
This indicator calculates Yang-Zhang historical volatility from open, high, low, and close prices, including overnight gaps. It estimates daily variance, smooths it with a bias-corrected RMA, and plots the square root of that smoothed variance as a single line
PF probe 53 - stop touch boundary is a strategy that draws on the price chart. It checks for specific UTC hours (2:15 for long, 14:15 for short) and enters a long position when no position exists by placing a stop order one tick beyond the previous bar's high.
Icosahedron is a chart overlay that draws a wireframe icosahedron between two user-chosen time and price points. It scales fixed fractional coordinates by the time span and price difference of those points, then connects the resulting vertices with thin blue p
A price-chart indicator that extends a three-regime signal engine (trend, range edge reversal, breakout) with higher-timeframe context and a transparent confidence score. The higher timeframe uses the previous completed bar, either auto-selected or set manuall
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 executes trades based on MACD line crossovers filtered by trend direction and histogram slope. Long positions open on bullish MACD crossovers when price is above the trend EMA and histogram momentum is rising. Short positions open on bearish cros
Draws supply and demand zones on the price chart from engulfing candle patterns, in a version labelled stable by its file name. Settings set how many bars back removal of invalidated zones begins, how much history is kept after invalidation, and a tolerance ma
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.