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.
Detects volume order block zones from six sensitivity tiers and draws zone lines on the price chart. This version gives every detection lane two separate checkboxes, one for chart markers and one for alerts, so a marker setting never changes alerts. Lanes incl
This overlay strategy enters only after a buy-side or sell-side liquidity sweep confirms a displaced fair value gap. It sizes the position from a fixed fraction of equity, uses a dynamic stop based on that risk, and sets the target from a reward-to-risk multip
The LGVW Tracker script visualizes historical trade actions taken by ARK Invest for Longview Acquisition Corp (LGVW) directly on the price chart. It plots text labels on specific dates indicating buy or sell activity alongside the number of participating ARK f
An ADX-based trend-following strategy that enters long positions when the positive directional indicator (DI+) crosses above the Average Directional Index (ADX) while ADX remains below a preset threshold and a fast EMA is above a slow EMA. It allows adding to
This indicator applies a simple affine transformation to a chosen price source, multiplying it by a slope and adding an intercept. It plots the transformed series on the price chart as a yellow line. The source, slope, and intercept inputs change the input ser
This indicator calculates the relative strength index of the closing price with a fixed length of twenty and plots that series in black. It also plots the bar index as a second series. Both plots are drawn in a separate pane. There are no user inputs, so the R
This indicator plots recurring time-based price levels on the price chart using Wednesday South African Standard Time and midnight UTC plus two session data. It calculates and draws the open, high, and low levels of the first five Wednesdays of each month with
This indicator overlays multi-timeframe candlesticks on the current price chart. It pulls data from up to five selected higher timeframes and renders them as boxes with customizable body, border, and wick colors. Candles can be styled as regular or Heikin-Ashi
This TradingView Pine Script indicator plots the Fractal Dimension Index (FDI) calculated from multiple length parameters for slow fast and ultra slow variants. It optionally displays RSI and BBWP indicators with customizable sources and baselines. Horizontal
This strategy draws an exponential moving average of close and an ATR envelope around it on the price chart. It enters one long contract when close crosses above the upper band and one short contract when close crosses below the lower band, reversing only from
The Quantum Tick-Volume Collapse indicator calculates a combined tick-volume metric to derive two probability branches: an UP timeline and a DOWN timeline. While the current bar is forming, both branches coexist in superposition and blend translucently into th
Detects volume order block zones from six sensitivity tiers and draws zone lines on the price chart. Each detection lane has its own plot checkbox and alert checkbox, kept independent of each other. Lanes include strict ladder patterns, multi-zone coincidences
TNSovereignLib is a Pine Script v6 library providing modular components for trading systems. It defines custom data structures including an execution regime enumeration and a signal payload user-defined type containing price, validity flags, and metadata tags.
This indicator marks historical ARK Invest purchases and sales of LHX on the price chart. It places green buy labels below bars and red sell labels above bars at fixed dates, with text that notes the trade direction and how many ARK ETFs acted that day. An ETF
This price-chart strategy treats a rising ADX above a chosen key level as a trend and uses plus and minus DI to choose direction. It enters long when plus DI leads and short when minus DI leads, if short trades are allowed. Volume and an EMA or SMA can block e
This indicator plots a LOESS smoother on the price chart. It fits a locally weighted linear regression inside a sliding window and returns the fitted value at the window center. The length setting sets the window, which is forced to an odd size of at least thr
This indicator calculates a 20-period relative strength index of the close and plots that series in a separate pane. It also plots the current bar index as a character marker at the top of the same pane. The RSI length is fixed and no inputs are exposed. The s
This indicator plots key support and resistance levels based on Wednesday session high, low, and open prices, as well as daily Midnight (UTC+2) candle ranges. It automatically adjusts for US Daylight Saving Time changes to maintain precise weekly levels across
This indicator overlays candles from multiple higher timeframes on the main price chart. It fetches OHLC data from timeframes 5, 15, 30, 60, and daily, displaying them clustered with customizable colors for bullish and bearish bodies, borders, and wicks. Selec
This indicator draws session boxes and labels for New York, London, and Asia markets on the price chart. It supports projection options of Bars, Line, or None, profile types of Letters, Bars, or None, and shows pre-market and post-market sessions optionally. V
This validation strategy calculates fast and slow simple moving averages of the closing price. It submits a fixed-size long entry when the fast SMA crosses above the slow SMA, and enters short when the fast SMA crosses below the slow SMA, reversing any open po
Calculates and projects a reflecting line that bounces back and forth between two defined price boundaries based on a specified slope angle. Starting from a chosen time anchor, the line updates on every bar of the selected timeframe, reversing direction whenev
Detects volume order block zones from six sensitivity tiers and draws zone lines on the price chart. Each detection lane keeps separate plot and alert checkboxes. Lanes cover strict ladder patterns, multi-zone coincidences, and high-volume events combined with
This indicator ranks swing-pivot liquidity pools on the price chart and marks the highest-scoring pool as the current magnet. It clusters equal highs and lows, then scores each pool from strength, proximity, age decay, and momentum bias. A higher-timeframe EMA
LMT-Tracker visualizes historical buy and sell transactions executed by ARK Invest funds for Lockheed Martin (LMT) stock. The indicator overlays labels directly onto the price chart at specific historical dates using timestamps, displaying trade actions and ET
This strategy captures strong bullish momentum by combining a 200-period SMA baseline, a custom Bollinger Band, the True Strength Index (TSI) smoothed with WMAs, and the ADX trend strength indicator. It initiates long positions when price is above the 200 SMA,
Log-Cosh Loss computes a numerically stable log-cosh of the difference between an actual series and a predicted series, then plots the simple moving average of that loss over a user-set length. Defaults compare close with open. It draws the result in a separat
This educational script demonstrates how to plot custom shapes directly onto the price chart using Pine Script. It evaluates whether the close of the current bar is greater than or equal to its open. Bullish or neutral bars display a green upward triangle abov
This indicator plots time-based support and resistance levels on the price chart across global trading sessions. It maps the high, low, and open levels of the first five Wednesdays of each month, daily midnight candles, and New York pre-market levels derived f
MTF Candles Price Levels overlays higher-timeframe reference lines and custom candle styling onto the main chart. It fetches higher-timeframe open and close prices to calculate configurable offset levels above key prices. Additional features include session fi
Naked Intrabar POC is a price-chart indicator that estimates each bar's point of control from lower-timeframe samples. It splits the bar range into bins and accumulates either time or volume from those samples, then draws the resulting level as a line. Hit and
This strategy combines a one-dimensional Kalman filter with an EMA midline and ATR breakout bands. It enters long when the Kalman estimate rises and close crosses above the upper band, and short when the estimate falls and close crosses below the lower band. A
This indicator draws a simulated price path as a blue polyline on the price chart. It stores recent closes, highs, and lows, then builds each point from a lookback-weighted average of older closes, an attraction toward that average, and random noise scaled by
Pine v5 overlay indicator that builds volume order block zones from fast and slow EMA crossovers at six sensitivity tiers, from 1000 to 2500 bars. Bullish zones form around the lowest bar and bearish zones around the highest, and zones are removed when price c
TnSovereignLiquidityMatrixV6 is a Pine Script v6 strategy that identifies liquidity zones for trading. It extracts a macro anchor point from the highest volume bar on a user-defined timeframe such as daily. Fibonacci levels are then extended using ATR multiple
LPSN-tracker plots historical ARK Invest buy and sell activity for LivePerson on the price chart. It places green labels below bars for buys and red labels above bars for sells, each marked with an X1 count of funds trading that day. The only setting chooses A
This strategy calculates and plots aggregated Bitcoin volume collected across multiple exchanges, along with two volume moving averages in a separate pane. It enters long positions when price crosses above a fast EMA while remaining above a slow EMA, and enter
This indicator computes the cumulative distribution function (CDF) of a log-normal distribution applied to a min-max normalized price series. It normalizes the source series within a rolling lookback window and calculates the CDF using an Abramowitz and Stegun
This indicator builds a table of simple moving averages and places it on the price chart. It calculates a user-chosen number of SMAs whose periods start at a base length and increase by a fixed step. On the last bar it lists each period and its SMA value, colo
This script plots time-based key price levels directly on the main price chart, including Wednesday high, low, and open levels, Midnight levels, and NY PreMarket session high/low levels. It tracks global market session opens, London fixes, and key economic eve
This multi-timeframe indicator calculates the Commodity Channel Index and Parabolic SAR across four user-defined timeframes, defaulting to 1, 30, 60, and 240 minutes. It generates signals when CCI exceeds an entry threshold across all four periods while price
This indicator projects future pivot levels on the main chart by combining zigzag price swings with a choice of underlying momentum oscillators, such as RSI, CCI, CMO, COG, MFI, or ROC. It draws projected pivot points, pivot lines, sentiment background fills,
This strategy confirms swing pivot highs and lows and compares each new pivot with the previous swing of the same type. It draws on the price chart. A long entry fires when a confirmed pivot high is a higher high and the position is flat or short. A short entr
A drawing tool that renders a wireframe sphere on the price chart. The user picks two points by time and price, and the script scales a fixed set of precomputed outline coordinates into the box between them, drawing each ring as a blue polyline once on the las
Tick-chart-friendly Pine v5 overlay indicator that builds volume order block zones from fast and slow EMA crossovers at six sensitivity tiers, from 1000 to 2500 bars. Bullish zones form around the lowest bar and bearish zones around the highest, and zones are
This strategy draws on the price chart and trades structural breakouts. It stores confirmed pivot highs and lows, then looks for a close beyond the last pivot in the direction of an exponential moving average. A thermodynamic check must also pass, with free en
This overlay indicator marks historical ARK Invest purchases of LSPD on the price chart. It places green buy labels below bars at fixed calendar dates, each showing a buy count of one. An ETF input switches between all recorded ARK activity and ARKF only; the
Alex Days HiLo Rajib tracks the highest high and lowest low over a customizable lookback period and overlays them directly on the price chart. When the current high exceeds the previous highest level, the script displays a signal arrow, and another arrow appea
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.