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 applies a natural logarithmic transformation to a chosen price series and plots the result in a separate pane. For each bar it returns the natural logarithm of the source when the value is positive, and returns a missing value when the source is
This indicator draws a one-row heatmap table at the bottom center of the price chart. On the last bar it compares the current high with each of the previous lookback highs. A cell is bull-colored when the current high is above that past high and bear-colored o
This indicator calculates and plots time-based support and resistance levels on the price chart. It identifies monthly Wednesday session highs, lows, and opens adjusted for daylight saving time, alongside daily Midnight and New York Premarket 15-minute range l
This indicator plots multi-timeframe candlestick sequences directly on the price chart using boxes and lines. It projects historical candlesticks from up to five customizable higher timeframes alongside the current price action. Users can configure the timefra
Plots key period levels including Open, High, Low, and Equilibrium (EQ) for multi-timeframe intervals such as yearly and quarterly periods directly on the price chart. To prevent chart clutter, the script checks across active levels and suppresses duplicates.
This strategy detects liquidity sweep patterns based on pivot high and pivot low levels calculated over configurable left and right bar periods. A bullish sweep occurs when a candle's low pierces below the most recent pivot low while closing back above it, tri
The Spiral Map indicator calculates spiral patterns on a price chart using a symmetric price level within user-defined time ranges. It generates pre-range and post-range spirals of Archimedean, Logarithmic, or Fibonacci types, scaled according to width and hei
A read-only companion to the volume order block tools. It builds bullish zones for six sensitivity tiers from moving average crossovers, tracks the latest active zone midpoint of each, and checks whether the zones from the lowest tier upward sit at strictly as
This strategy trades breakouts of the New York opening price range on Nasdaq futures. It builds a short range after the session open, then allows one long or short entry only inside a later trade window when price leaves that range. Optional RSI regime and EMA
MASS-tracker places fixed historical labels on the price chart for ARK Invest purchases and sales of this stock. Green labels below bars mark buys and red labels above bars mark sells, each showing an X count of how many ARK ETFs traded the name that day. The
This overlay strategy scores alignment of seven moving averages, lengths 5 through 200, of a user-selected type. Full stacks count as up or down, and partial alignment can add a smaller score. A rolling high-low period flags the current extreme, while an optio
The sigmoid indicator applies the logistic function to a source series, transforming any real-valued input into the range between 0 and 1. It calculates the output using the formula S(x) = 1 / (1 + exp(-k * (x - x0))), where k is the steepness factor and x0 is
This strategy serves as an educational demonstration of price-conditioned order execution in Pine Script strategy design. Once a year filter condition is satisfied, the script places two long entry orders using stop prices set at specified increments above the
This indicator identifies and plots key high and low price levels established on Wednesdays at 13:30 EST in the New York timezone. It draws extended horizontal lines and optional range boxes for historical Wednesday session levels, assigning distinct colors to
MTF Cipher Dots plots colored dots on the price chart based on WaveTrend oscillator calculations across multiple timeframes. It generates bull and bear signals by comparing WaveTrend values to thresholds, with dots appearing when conditions are met above or be
Order Chain [Kioseff Trading] is a realtime order flow indicator that tracks live price changes and volume flow in a separate pane. By utilizing intrabar persistent variables, it constructs an order chain visualization showing tick delta statistics and order v
This strategy tracks liquidity sweeps across pivot highs and lows to trigger delayed reversal entries. It identifies pivots based on configurable left and right bar lengths and records sweeps when the price breaches a pivot but closes back inside it. Upon dete
This indicator plots horizontal price levels including upper, lower, and center lines on the chart. It calculates spiral symmetric patterns based on a defined time range and price action, using inputs for multipliers, divisor modes, and endpoint options. The s
Finds volume order blocks, zones where heavy volume built up around a moving average crossover, and draws them on the price chart as support or resistance areas. Six sensitivity tiers each produce buy and sell tier signals with mutually exclusive handling, plu
This strategy implements a multi-session Opening Range Breakout (ORB) system across Asia, London, and New York trading sessions. It measures opening price ranges using configurable time durations and triggers breakout entries when price moves beyond an ATR thr
This indicator overlays historical ARK Invest purchase and sale markers for MCRB on the price chart. It places green buy labels below bars and red sell labels above bars at fixed dates, with text that counts how many ARK ETFs traded the stock that day. An ETF
This overlay strategy scores whether price and moving averages from 5 through 200 periods are fully or partially aligned, and it marks when the bar is a period high or low. Direction helpers compare a series with earlier bars over two configurable lookbacks. I
This indicator plots the lowest value of a chosen source over a rolling lookback. It uses a monotonic deque so each bar updates the window minimum without scanning the whole period. A period input sets the lookback length, and a source input selects the series
This strategy demonstrates priced long entries. After the calendar year passes 2020, it counts bars and, on the first such bar, submits two long stop orders of quantity two that share an OCA cancel group. One stop sits 35 ticks above the bar high and the other
This overlay indicator marks the high and low of the 19:30 SAST Wednesday bar and draws a separate pair of horizontal lines for the first through fifth Wednesday of the month. Each Wednesday has its own high and low colours and line widths, and each pair can b
This indicator calculates Elder's Force Index (EFI) across multiple configurable timeframes and displays resulting signals directly on the price chart. Users can select the smoothing length, choose the moving average type (EMA, SMA, VWMA, RMA, or HMA), and tog
Oscillator Workbench — Chart plots a configurable blend of two built-in oscillators and an optional external oscillator on the price chart. It draws a weighted oscillator line and a reference moving average, coloring both by successive up or down states. Users
This strategy detects pivot highs and lows to establish swing structure, then identifies liquidity sweeps where price breaks the wick of the most recent pivot and closes back inside it. After a one-bar delay on continuation, it fires long entries on bullish st
This indicator calculates dynamic symmetry lines by reflecting lagged price points across upper and lower boundary bands. Users can choose between Bollinger Bands or Donchian Channels to define the baseline boundaries. The script generates alternating BUY and
Tick-chart-friendly overlay indicator extending the volume order block engine with multi-zone and cluster detection. Six sensitivity tiers build zones from fast and slow EMA crossovers, and the default view shows only VLB bull and bear markers, which need zone
TnSovereignPineFlowIctFvgV6 [TeleNexus] implements a multi-layer ICT/FVG strategy that stacks 4H context bias using EMA and FVG detection, 15m setup confirmation via liquidity sweeps and FVG formation, and 1m trigger execution. It signals long or short entries
This indicator overlays historical ARK Invest buy and sell events for META on the price chart. It places green labels below bars for purchases and red labels above bars for sales, with a same-day count of how many selected ARK ETFs traded the stock. The ETF in
This strategy scans the price chart for a large set of classic candlestick patterns and lets the user enable or disable each pattern. It classifies setups as bullish, bearish, or both, and can require price to be above or below an SMA 50, or aligned with both
This indicator calculates the lunar phase for each bar from the bar open timestamp using orbital elements, perturbation terms, and epoch corrections. It plots a continuous phase value from 0 at new moon to 1 at full moon in a separate pane. It marks new moon n
This indicator creates a float array of user-specified size in Pine Script v4 and fills it with sequential integer indices from zero. It then plots the array size on a separate pane. The main input setting controls the array size, which determines the length o
This indicator identifies and plots high and low price levels established during specific Wednesday trading sessions based on South Africa Standard Time (SAST). It accounts for daylight saving time shifts by adjusting target hours between 19:30 and 20:30. User
This strategy uses Elder Force Index on the price chart, combining price change with volume and a chosen moving-average smoother. Separate buy and sell thresholds can be enabled on up to seven timeframes, with 15, 30, 60 and 120 minutes on by default. Higher-t
The Percent Rank indicator plots the percent rank of closing prices for ten different cryptocurrency symbols in columns within a separate pane. It calculates the rank relative to previous values over a user-defined length period, defaulting to 60 bars. Columns
This strategy detects market regime state transitions based on pivot high and low break levels. It calculates pivot highs and lows using a specified strength setting and updates the market state when the close price breaks above the last pivot high or below th
This strategy calculates dynamic upper and lower boundaries over a specified lookback period alongside expanding mathematical spiral levels. It monitors price rejections where candles penetrate the upper or lower spiral bounds but close back within them. When
Finds volume order blocks, zones built from heavy volume around moving average crossovers, and draws them on the price chart. This multiples-only edition focuses on combined events: strict ladder patterns across six sensitivity tiers, multi-zone coincidences,
TnSovereignPineFlowOrbV6 is an intraday strategy that identifies breakout entries using the opening range session combined with HTF EMA trend confirmation and DMI/ADX strength filters. It calculates position size based on equity risk percentage and ATR volatil
This Pine Script indicator plots ARK Invest trade labels directly on the price chart for selected stocks. Labels show buy or sell events with share volumes and ETF weights, including counts for multiple ETFs trading the same day. The main input setting allows
This strategy overlays multiple switchable trading models onto the main price chart, allowing the user to select between standard RSI crossing, Connors RSI, MACD, EMA, or Stochastic signals. Entries execute in long, short, or bidirectional modes when the selec
The MA Envelope indicator calculates upper and lower channel bands shifted by a user-defined percentage around a baseline moving average. It supports Simple Moving Average, Exponential Moving Average, and Weighted Moving Average calculation types. The script p
Analyzes price action over a rolling five-day lookback window calculated from the current real-time timestamp. The indicator identifies bars that fall within the five-day period, computes the highest high across that window, and plots a marker at that price le
This indicator calculates and plots the standard Supertrend bands directly on the price chart to determine trend direction. It computes volatility bands using either Pine's built-in RMA-based ATR or an SMA-based true range, adjusting dynamically with close pri
This overlay indicator calculates a smoothed Elder Force Index and compares it across up to seven user-selected timeframes. Each timeframe can be switched on or off and given separate buy and sell threshold values. The force index length and the smoothing meth
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.