8,340 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 detects stop hunts, liquidity raids, and Rob Hoffman Inventory Retracement Bar breakouts directly on the main price chart. It tracks bullish and bearish retracement bars using dynamic arrays, identifying when incoming price action breaks these s
This indicator combines the Koncorde oscillator with a traditional Moving Average Convergence Divergence (MACD) indicator in a separate pane. It calculates Koncorde using a mixture of the Relative Strength Index (RSI), Money Flow Index (MFI), Bollinger Bands o
This technical indicator combines multiple popular analysis tools into a single price chart overlay to optimize chart space. It calculates and plots the complete Ichimoku Cloud, 50 and 200 Simple Moving Averages, and standard Bollinger Bands. Furthermore, it t
Moving Average Crossover Bot is a simple trend-following strategy that generates trading signals when a fast Simple Moving Average crosses a slow Simple Moving Average. It enters long positions on a bullish crossover and short positions on a bearish crossunder
This indicator plots three volume-weighted average price lines on the price chart. Each line is anchored at a swing low, a swing high, or the highest-volume candle found inside a user-set lookback measured in days. It requests daily timestamps and chart-timefr
ADW - Colour Trend is an overlay indicator that normalizes the bar high and low against the highest high and lowest low over a chosen length, then averages those values. It paints price bars green when the average is above minus forty, red when it is below min
This indicator overlays trend and momentum signals directly on the price chart. It calculates fifty-period and two-hundred-period exponential moving averages, a fourteen-period Stochastic oscillator smoothed with three-period simple moving averages, and a four
ZigZag++ Lucem Anb calculates and plots MetaTrader 4 style ZigZag swing high and swing low points directly on the price chart. It connects major highs and lows with colored trend lines and marks market structure pivots with higher high, lower high, lower low,
This indicator plots smart-money market structure on the price chart. It marks internal and swing breaks of structure and changes of character, optional swing points, and strong or weak highs and lows. It draws internal and swing order blocks filtered by volat
This indicator identifies Fair Value Gaps by detecting price imbalances between the current bar and two bars prior on both current and higher timeframes. It draws shaded boxes on the price chart representing bullish and bearish gaps, along with optional midpoi
This overlay indicator plots Central Pivot Range levels and bands across yearly, quarterly, monthly, weekly, daily, and six-hour periods. Each timeframe can be shown or hidden, and pivot and band colors are set separately. It also marks MACD momentum and EMA t
Greeffer's Scalping Indicator overlays higher-timeframe exponential moving averages, Bollinger Bands, and Donchian channels on the price chart. It flags a long when price touches the lower Donchian and lower band while the faster averages are not stacked beari
This indicator plots a detrended price oscillator and a random walk index in a separate pane. It subtracts a simple moving average of close from price, either with the average lagged or with price shifted back when the centered option is on. The oscillator lin
This strategy enters long positions based on momentum confirmation from RSI and MACD, operating directly on the main price chart. It buys when the 14-period RSI exceeds 60 while the MACD line trades above the signal line. Positions close when the price crosses
This indicator combines multiple moving averages and volume-weighted average price calculations into a single price chart overlay. It calculates up to two adjustable Simple Moving Averages (SMAs), one user-configurable Exponential Moving Average (EMA), fixed 2
This strategy plots five simple moving averages on the price chart and trades crosses of a 150-period signal average. It enters long when the close crosses above that average and enters short when the close crosses below it, from a user-set start year onward.
This indicator identifies trend reversal signals on the price chart by combining exponential moving average crossovers with momentum and volatility filters. It calculates fast, slow, and long-term filter EMAs, along with RSI and ATR. A bullish reversal trigger
This indicator detects large price gaps by comparing each candle’s high-to-low range with the previous ATR and requiring a minimum body percentage. Qualifying candles are stored in a rolling buffer and drawn as price zones on the chart, limited to the most rec
This indicator calculates a short-period Relative Strength Index and monitors crosses around a center threshold. It triggers buy signals when the RSI crosses above the level and sell signals when it crosses below. Signal shapes are plotted directly on the main
This indicator plots moving averages, a daily-reset aligned VWAP, and highlights market structure directly on the price chart. It calculates Heikin-Ashi bar data to detect touches with key moving averages (10, 20, 30, 50, and 200 SMA) and VWAP. It incorporates
Lucid 100K is an automated evaluation strategy tailored for micro futures contracts such as MES, MGC, and MNQ on lower timeframes. It operates a two-phase state machine that moves from an initial risk-averse lock-in phase to an expanded payout phase once targe
This strategy enters long when a series labeled ADX is above a threshold and RSI is below 40, and enters short when that series is above the threshold and RSI is above 60. Both series are calculated with the RSI function, so the trend filter is not a true ADX.
BTC Breakout Short Selling with Hedge is a strategy designed to trade downside breakouts. It identifies market lows over a specified lookback period to trigger short entries. Upon entry, it calculates dynamic stop loss and take profit levels based on Average T
This strategy enters a long position when a short RSI falls below a user threshold and price is above a simple moving average trend filter. It closes the long when RSI rises above a second threshold and does not set a stop loss. Position size defaults to full
This indicator overlays an order flow intelligence suite directly on the price chart. It renders a liquidity heatmap across configured price zones, alongside an on-chart information panel displaying volume delta, cumulative volume delta, a momentum compass bas
Webhook Test generates standard alert conditions designed to verify webhook integrations between TradingView and external automated trading bots. It evaluates conditions on the latest price bar to trigger simulated open long, close long, open short, and close
JoppanFX Candlestick Patterns identifies classic single-candle and multi-candle price patterns directly on the main price chart. It checks for bullish patterns (Hammer, Inverted Hammer, Bullish Engulfing) and bearish patterns (Shooting Star, Hanging Man, Beari
Breakout Follow Trend is a quantitative trend-following strategy designed to capture volatility expansion. It triggers entries when price breaks out of Bollinger Bands, filtered by an EMA trend filter, optional candle overlap rules, and a volume moving average
Meridian - Futures Context is an intraday analysis indicator designed for US index futures. It measures volume participation using relative volume, calculates rolling realized volatility, and evaluates trend context through VWAP slope and EMA structures. Displ
This strategy enters long when the fast EMA crosses above the slow EMA while ADX is at least the minimum and DI plus exceeds DI minus. It enters short on the opposite cross with DI minus above DI plus. Each entry sets an ATR-based stop and take profit using th
42H Map calculates custom time cycle structures and session ranges directly on the price chart. It partitions market action into forty-two-hour cycles, ten-and-a-half-hour micro-sessions, half-week periods, and quarter-month segments to track highs, lows, and
GemHunter v4 classifies market conditions into bullish, bearish, or neutral regimes using a multi-indicator voting system. It combines exponential moving average alignment, MACD momentum, and RSI strength, optionally gated by ADX trend strength and higher-time
Air Pocket Profile builds a range-distributed volume profile over a user-set lookback and draws it on the price chart, extending it by a projection length. Rows below a fraction of peak volume form air-pocket zones, while the heaviest row is the volume anchor
Brucetrade Mechanical Framework is an overlay strategy combining higher-timeframe bias with Smart Money Concepts (SMC). It detects Fair Value Gaps (FVG), Inverted FVGs, and liquidity sweeps across configurable higher and momentum timeframes. Signals are filter
This strategy overlays asymmetric Bollinger Bands built on a Weighted Moving Average of hlc3. It opens long positions on an upside breakout above the upper band, confirmed by positive momentum and candle structure filters. Positions exit only when the closing
SHODAN9 Katana is a trend-following strategy that generates trading signals using Heikin-Ashi candle color transitions. It enters long positions on the first green Heikin-Ashi candle after a series of red candles and enters short positions on the first red can
This strategy serves as a modular foundation for developing custom trading systems in Pine Script v6. It provides leverage-adjusted position sizing, date range filtering, and trade execution handlers, while leaving entry conditions open for user-defined logic.
Multi Kernel Regression [ChartPrime] calculates non-parametric kernel regression on price data to smooth market noise and highlight underlying trend direction. It provides 17 mathematical kernel types, including Gaussian, Laplace, Epanechnikov, Logistic, and C
This indicator identifies cash-and-carry arbitrage regime opportunities by calculating a trailing seven-day annual percentage yield from cryptocurrency funding rates. It signals regime entry and exit when the rolling yield crosses defined percentage thresholds
This overlay indicator draws a volume heatmap and marks high-volume candles with bubbles. It splits the lookback into price rows and spreads each bar’s volume across the rows it spans. A blue-to-red gradient shows density, and boxes are deleted and redrawn onl
This overlay indicator draws an on-chart depth-of-market table that splits volume at each price tick into estimated buy volume, sell volume, delta, and session volume. Growing text bars compare buyers and sellers, and recent bars approximate resting bid and as
This indicator combines five normalized oscillator channels: RSI, stochastic, MACD histogram, money flow index, and the ADX directional difference. It cross-subtracts channel pairs with a fixed or correlation-based weight meant to reduce shared overlap, then s
Calculates standard Bollinger Bands and identifies volatility contraction when band width drops below a percentage of its moving average. The strategy enters long positions when a confirmed candle closes above the upper band following a recent squeeze, and ent
Christian Qullamaggie Strategy is a trend-following and breakout strategy overlay designed to identify high-momentum trading opportunities directly on the price chart. It evaluates market conditions using fast, mid, and slow EMAs, average true range (ATR), and
This indicator recolors price candles from recent volume and range. It marks climax bars when current volume times range exceeds the prior ten-bar peak or volume is at least twice a ten-bar average, and rising bars at one and a half times that average. Bullish
This indicator plots Bollinger Bands on the price chart. It uses a lookback length and a multiplier, the usual controls for the middle band and the distance of the upper and lower bands. The length setting changes how many bars enter the calculation, and the m
This indicator computes the Watchtower Axis as a 257-period weighted moving average of closing prices to establish the main trend baseline. It defines volatility gates using the highest high and lowest low over 463 periods, along with a 377-period exponential
This indicator plots a simple moving average of a chosen source on the price chart and defines two alert conditions. It marks a cross above when the source crosses over the average and a cross below when the source crosses under it. The source and moving avera
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.