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 automatically identifies and plots horizontal support and resistance levels directly on the price chart using pivot detection logic. Users can base pivots on either price action lookback or RSI oscillator lookback when RSI mode is enabled. The s
This indicator measures intrabar volatility by plotting price spikes (close minus open) alongside standard deviation upper and lower bands in a separate pane. It identifies regular and hidden bullish or bearish divergences by comparing pivot points of the osci
An overlay indicator written in Pine v4 that finds swing highs and lows using a configurable number of bars on each side. When a new swing is confirmed it draws an orange line linking the latest low and high, and adds a small label showing the price of the swi
A Pine v4 indicator in a separate pane that measures how far the close sits from a 50-bar Hull moving average, scaled by the rolling standard deviation of that distance, which makes it a z-score style oscillator. Dotted lines mark plus and minus one, and zones
A long-only strategy that buys when the MACD histogram turns from negative to positive while the 50 EMA is above the 200 EMA and RSI sits between a lower and an upper limit. Its only exit is a percentage take-profit above the average entry price. No stop loss
Gap Finder identifies and displays bullish and bearish liquidity gaps directly on the main price chart. The indicator calculates gap boundaries, equilibrium levels, and fill lines using either the current chart resolution or a specified higher timeframe. Users
This indicator calculates the difference between traditional Aroon lines derived from price action and RSI-adjusted Aroon lines calculated from the Relative Strength Index. It measures both upper spread and lower spread values across a user-defined rolling per
A stock-oriented overlay that weighs the current price against fundamental data. The settings let the user pick factor groups such as earnings price, per-share book value, earnings, revenue and free cash flow, EBIT and EBITDA, profit margins, returns on assets
A real-time volume indicator template that tracks intrabar tick execution to classify volume into bullish and bearish tallies. Utilizing intrabar variables, it calculates volume changes on live price updates and tracks buyer versus seller volume percentages pe
This overlay indicator plots exponential moving averages of the close at 12, 26, 50, 100, 150 and 200 periods in different colors on the price chart. The 12 and 26 lines are the fast and slow averages used in MACD and are labeled that way in the plot names. Th
An overlay that builds a Kaufman adaptive moving average of price as a center line and surrounds it with three bands above and below, scaled from an adaptive average of true range. The band length and the three deviation multipliers are adjustable, and the zon
Strategy version of a Supertrend plus Stochastic RSI system. Supertrend direction comes from an ATR period and multiplier; long and short entries require the Stochastic RSI lines to be in low or high bands and close to each other while the trend agrees. Trades
Finds barbwire zones, runs of bars with small bodies or ranges, and draws boxes around them on the price chart. The bar size source can be Heikin-Ashi open to close, high to low, a hybrid or open to close. Detection can use rank, stochastic or rate of change m
Alt Coin BB SMA Strategy calculates custom MACD delta histogram values, Bollinger Bands, and middle band slopes to generate trading signals in a separate pane. It triggers long entry orders when the price crosses above the Bollinger middle band, provided the M
1DTE is an overlay indicator designed for 1-day-to-expiration option trading analysis. It evaluates market conditions using Average True Range (ATR), consecutive green or red daily streaks, and CBOE Volatility Index (VIX) levels. Users can filter evaluation wi
This Pine v4 indicator shows a Money Flow Index line and the directional movement indicators DI plus and DI minus in a separate pane, each with a label on the last bar. A green square at the top marks bars where DI plus is above DI minus and MFI is above 50, a
A separate-pane indicator that plots a slow MACD, 21 and 200 periods by default, against a long simple-average signal line, colored green or red by which is higher. A second MACD can be shown, with its lengths multiplied by a factor chosen for the chart timefr
This indicator plots a Donchian channel with a long default period of 1440 bars, its midline and a 250-period simple moving average on the price chart. When a high reaches the upper band, or a low reaches the lower band, on volume above a multiple of its movin
This indicator shows how far the 14-period ATR sits above its lowest value over the last 200 bars, smoothed with a 9-period average. It draws this value as columns in a separate pane, coloured lime when it rises and red when it falls. A second series, the lowe
This indicator plots the 20-period EMA in green and the 20-period SMA in red directly on the price chart. It fills the space between the two moving averages using a color that changes based on which line sits above the other. The script targets crypto assets a
Slimdicator is a TradingView indicator for cryptocurrency markets that plots multiple moving averages on the price chart including a fast EMA, a medium SMA, and a slow SMA. It calculates MACD and RSI values to generate buy and sell signals. The indicator alert
A long-only strategy that enters when a fast simple moving average crosses above a slow one, the positive DI is above the negative DI and ADX is above a key level. It closes the position on the opposite cross with DI and ADX confirming. Trading is limited to a
This indicator plots a fast and a slow exponential moving average of the bar midpoint on the price chart. The slow length is the fast length multiplied by a selectable ratio from three to ten, which keeps the two lines well apart. A triangle marks each upward
Mansfield Relative Strength indicator computes relative strength by dividing the current close price by a daily index value selected from Nasdaq Composite, NYSE Composite, ARCA Composite, or Coinbase BTCUSD based on the symbol prefix. It calculates the percent
ETCBTC is an overlay indicator that fetches and displays the 60-minute closing price of the Bitstamp ETH/BTC pair directly on the current price chart. It renders the cross-pair price line using the left price scale to avoid distorting the primary asset's scale
A slow stochastic oscillator in a separate pane with adjustable K, D and smoothing periods. It plots the smoothed percent K and its percent D average, with lines at 80, 20 and an added middle line at 50, and shades the area between 80 and 20. It has no signals
A separate-pane indicator that calculates an RSI with adjustable source, length, overbought and oversold levels, then looks for bullish and bearish divergence between price and RSI. It tracks the highest and lowest price and RSI values inside a lookback window
This strategy calculates a smoothed stochastic oscillator with k and d lines. It enters long positions when k crosses above d below the oversold level and close exceeds high[1]. Exits occur when k crosses below d above the midpoint or reaches overbought levels
This indicator plots logarithmic growth curves directly on the price chart to model macro valuation channels for Bitcoin. It calculates upper and lower bounds using elapsed time from a fixed historical baseline, scaling mathematical curves and intermediate Fib
The Fibonacci Weighted Moving Average calculates a trend-following line on the price chart using Fibonacci sequence numbers as weights. Newer data points receive larger Fibonacci weights to increase responsiveness compared to standard simple moving averages. I
This indicator scans a pasted list of symbols for ICT fair value gaps and lists long and short matches in an on-chart table. It draws gap boxes on the price chart and can close them partially when price fills part of the gap. The user chooses among six scannin
Forven S01512 — Monday Drift is a calendar-based long trading strategy designed to exploit time-based recurring market patterns. It tracks UTC calendar days and hours to enter a long position at a specified day and hour, holding it for a fixed duration until a
Double RSI is a momentum strategy that calculates RSI on the current bar and a multi-timeframe RSI. Long entries trigger on RSI crossover above 30 when multi-timeframe RSI is below 35. Short entries trigger on RSI crossover below 70 when multi-timeframe RSI is
This indicator plots fast and slow moving averages using either EMA or SMA directly on the main chart to identify trend direction and crossovers. It calculates an ATR-based trailing stop line derived from the highest high minus a multiplied ATR value over a co
3402 Tracker plots historical transaction markers on the price chart to visualize buy and sell trades executed by ARK Invest for stock 3402. The indicator places colored labels on bar timestamps corresponding to dates when ARK funds opened, adjusted, or closed
This Pine Script v5 library implements a threshold activation function for neural-network style calculations. The exported function returns 1.0 when the input is greater than or equal to zero and 0.0 otherwise. Two derivative exports, derivate and derivate2, a
This overlay strategy targets one-minute ES futures and plots volume-weighted moving-average bands from the open, scaled by a standard-deviation multiple, plus a slower band from ten-minute opens. A higher-timeframe exponential moving average can filter trades
This indicator plots green circles below bars and red circles above bars on the price chart to signal Candlestick Kicker patterns. It identifies upward kickers when the prior bar is bearish with body percentage above the left threshold, the current bar is bull
Deduct 扣抵 is an educational overlay indicator that visualizes the moving average deduction point on price charts. It places a text label below the candle located a user-specified number of bars back from the current bar, defaulting to 20 periods. As each new b
This overlay strategy plots previous-day high and low, the daily open, and fair value gap zones on the price chart. It takes entries on a selectable timeframe when the FVG requirement and an optional session window allow them, then uses an ATR or fixed pip sto
This tutorial strategy demonstrates lower-timeframe multi-timeframe functionality in Pine Script using request.security_lower_tf. It evaluates synthetic lower-timeframe 1-minute close prices within each chart bar to calculate the intra-bar price range percenta
This indicator fetches and overlays the 4-hour high and low price bounds for TRXUSDT onto the price chart. It draws prominent red and green lines representing the 4-hour high and low levels respectively, providing reference points for price action across lower
This indicator implements an approximation of the Jurik Moving Average algorithm, featuring an adjustable power parameter. It overlays a smoothed curve and a one-bar lagged reference curve directly on the price chart. When the slope turns upward, a green circl
This strategy executes mean-reversion trades based on Bollinger Bands and the Stochastic Oscillator. Long orders trigger when price dips below the lower band alongside a bullish Stochastic crossover, with an optional oversold threshold. Short orders execute on
This overlay strategy looks for gold scalps from break of structure and change of character. It enters long when a bullish break, a bullish character change, and an optional volume filter align, and short on the opposite set. Optional RSI levels can block trad
Candlestick Pattern Strategy 1 is a scalping strategy designed for short-term timeframes. It evaluates two-bar candlestick price action patterns to generate entry signals directly on the price chart. When a bullish or bearish setup is detected, the strategy ex
This indicator plots Price Headley's Acceleration Bands on the price chart. It builds a middle line as a simple moving average of close, plus upper and lower bands from simple moving averages of highs and lows widened by a factor times the bar's high-low range
This overlay indicator draws horizontal liquidation lines for HYPE from a baked-in snapshot of Hyperliquid long and short positions. It plots the ten closest long liquidation prices in red and amber and the ten closest short prices in green and cyan, with the
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.