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.
BitLa Microtendencias A002 is a TradingView strategy that enters long when a 10-period EMA crosses above a 120-period EMA and enters short on the opposite cross. It draws on the price chart and can limit trading to a start and stop date. Risk controls include
Extrema is an overlay strategy that evaluates lowest low price points across exponentially scaled lookback periods. It calculates period lengths using exponential math controlled by base, factor, and crop settings, then tracks falling price extremes across mul
This indicator overlays static chart annotations generated from fixed timestamps and prices. It draws a red fill between two hidden price plots during a limited time window, plus vertical and horizontal arrow lines and text labels that describe a measured pric
Not MCB draws a zero line and dotted overbought and oversold levels in a separate pane. It builds an RSI-MFI series from each candle’s close-to-open change divided by its high-to-low range, then smooths that value with a chosen moving average and a scale setti
The indicator tracks four-bar fractal sweep and reclaim setups on chart timeframes of 15 minutes and above. It calculates Reclaim Strength based on where C2 closes relative to C1's range and plots level lines for the swept C1 extreme and C2 extreme. An on-scre
This strategy is titled for Bitcoin on the four-hour chart and is set to draw on the price chart. It detects three-candle fair value gaps and inverted gaps, and it defines a check for price near a gap midpoint within a percentage tolerance. An optional filter
ICT HTF Candles displays higher timeframe candle structures directly on the price chart using customized boxes and lines. It tracks up to six user-defined higher timeframes, plotting historical body, wick, and imbalance zones alongside optional price level tra
This strategy evaluates market trend and momentum to generate long and short trading signals on price charts. It plots 100-period and 500-period moving averages (EMA or SMA) to establish macro trend direction. Long entries require trend alignment alongside opt
This indicator calculates 12-period and 26-period Exponential Moving Averages (EMAs) and plots them directly on the main price chart. It identifies bullish crossovers and bearish crossunders between the two moving averages, displaying visual buy and sell marke
RS: Footprint is an overlay indicator that draws a footprint-style view of volume inside each candle on the price chart. It accumulates up and down volume across price levels spaced by the ticks-per-step setting and can display either bid versus ask or delta.
This indicator calculates a smoothed average range filter and combines it with a Relative Strength Index framed by Bollinger Bands. It projects range levels, breakout boundaries, and buy or sell signals directly onto the price chart. A custom 20-step color gra
This strategy executes hardcoded historical trade entries and exits based on exact Unix timestamps for the BTC/USD 2-hour timeframe on Bitfinex. It plots trades directly on the price chart to visualize static trade log data from a specific backtest export. The
AwesomeADX is a Pine Script v4 strategy that combines an Awesome Oscillator, ADX directional movement, and Bollinger percent B with an optional four-length moving-average trend filter. It sizes each position as a percentage of equity and can limit trades to a
Pattern Trade Levels is a price-chart overlay that plots levels typed in by the user for a chart pattern. It draws the breakout boundary, a confirmation level and a negation stop from a percentage buffer, a measured-move target using either a log formula or an
This indicator identifies and visualizes key support and resistance zones directly on the price chart using historical 1-hour bar evidence. It calculates zone strength by weighting price rejections, support-resistance flips, relative volume spikes, price gaps,
This overlay indicator marks volume-driven buying and selling pressure on the price chart. It compares volume with a simple moving average scaled by a volatility-based multiplier, and it uses a trend simple moving average plus RSI thresholds to color bars. Swi
This overlay indicator identifies Smart Money Concepts (SMC) and Inner Circle Trader (ICT) market structure elements directly on the price chart. It detects higher highs, lower lows, Break of Structure (BOS), and Change of Character (CHoCH) labels alongside st
This indicator implements a full Chanlun pipeline on the price chart. It merges contained bars, marks top and bottom fractals, and connects alternating fractals into strokes. Overlapping strokes form pivot boxes, and MACD area ratios flag trend or consolidatio
This strategy implements a channel breakout system directly on the main price chart. It calculates highest highs and lowest lows over configurable entry and exit periods using historical candles. A long entry triggers when the close breaks above the entry chan
The iHotel Index indicator tracks Indian hotel sector equities listed on the National Stock Exchange (NSE). It uses security functions to fetch closing prices for multiple hospitality stocks, including Indian Hotels Company, EIH, Royal Orchid Hotels, Chalet Ho
This strategy detects bullish and bearish pinbar candles on the price chart and opens a long or short position when the pattern appears and no trade is open. Take profit and stop loss are set from the signal candle's range using separate multipliers, and trail
This indicator framework backtests trading strategies and generates execution alerts directly from an overlay chart study. It simulates trade entries, fills, stop losses, and take-profit targets across custom or built-in rules, including moving average filters
This indicator plots Central Pivot Range levels on the price chart for daily, weekly, monthly, and yearly periods. It calculates the pivot from the prior period high, low, and close, then derives the bottom and top central prices and draws three horizontal lin
This indicator estimates cryptocurrency liquidation levels and liquidation density using open interest delta data fetched from Binance USDT perpetual futures. It identifies spikes in open interest relative to a simple moving average and plots estimated liquida
This overlay indicator marks Wyckoff-style buying and selling climaxes on the price chart. It filters trend with an exponential moving average and a higher-timeframe EMA, then flags accumulation or distribution when price and ATR sit relative to their swing av
SMC Strategy is a Pine Script v5 overlay strategy based on smart money concepts. It flags market structure shifts from ten-bar highs and lows, draws bullish and bearish order blocks as rectangles when that option is on, and marks liquidity sweeps with short li
MarketCipher B plots a wave oscillator in a separate pane. It builds two smoothed waves from the typical price, draws their difference as a VWAP-style area, and marks wave crosses with buy and sell dots, including larger dots below a lower threshold. Optional
This strategy places repeated long entries of a fixed cash amount on a chosen weekday at a selected weekly interval inside a user-defined start and end date. It draws on the price chart. Settings choose the calendar window, the starting week, whether buys occu
The 1BullBear indicator is an all-in-one chart utility that displays key trading sessions, reference levels, and market structure helpers directly on the price chart. It highlights Asian, London, and New York sessions with customizable background ranges, label
The Reverse RSI Strategy is a scalping system designed for forex pairs during specific trading sessions. It combines a smoothed RSI indicator with five Exponential Moving Averages to identify mean-reversion trade opportunities. Position sizing dynamically adju
This indicator combines SuperGuppy exponential moving average ribbons with SuperTrend pivot points in a separate pane screener. It classifies up to twenty assets as neutral, long, strong long, short, or strong short. Fast and slow EMA stacks define trend align
Accumulation Zones identifies macro accumulation periods specifically geared toward Bitcoin by measuring elapsed time since the genesis block. It calculates a historical bar offset based on the Feigenbaum constant, comparing current closing prices against hist
This indicator calculates three Simple Moving Averages (SMAs) sourced from a user-defined higher timeframe resolution, defaulting to Daily. Intended for 1-hour charts, it plots all three SMAs directly on the price chart and includes built-in alerts for moving
Calculates adaptive arithmetic candles by blending price data with Kaufman Efficiency Ratio smoothing and a linear regression anchor. It measures trend health using a zero-to-hundred Quality Score derived from market efficiency, regression slope, and normalize
Nexural Flow Pro plots real order flow data in a separate pane as stacked buy and sell volume columns. It highlights imbalances at 3:1 ratios with glow effects, detects absorption patterns, and marks unfinished auction continuations. Session filtering optional
This indicator plots RSI in a separate pane and marks regular divergences between confirmed price pivots and RSI pivots. A bullish signal requires a lower price low, a higher RSI low, and an RSI reading in the oversold zone, within a set bar gap. Bearish detec
This indicator projects a three-dimensional surface plot of multiple MACD calculations in a separate indicator pane. It calculates exponential moving averages across ranges of fast and slow periods defined by user-selected minimum, maximum, and step parameters
Calculates the Average Directional Index (ADX), Directional Movement Index (DMI), and an Exponential Moving Average to trade strong directional momentum. It enters long when the DI+ line crosses above DI- while ADX exceeds a threshold and price is above the EM
This indicator detects and visualizes Smart Money Concepts (SMC) and Inner Circle Trader (ICT) structures directly on the price chart. It performs multi-timeframe analysis across customizable trend (H1), entry (M15), and micro (M5) timeframes to identify bulli
This indicator implements Chanlun (Zen Theory) structural concepts directly on the main price chart. It identifies top and bottom fractals using five-bar pivot conditions and dynamically tracks high and low arrays to plot strokes (Bi) and segments. Traders can
Markov Strategy is a mean-reversion quantitative strategy inspired by streak-based Markov chain analysis. Applied directly to the price chart, it monitors price action for consecutive downward closes. The strategy enters a long position after detecting six con
This overlay indicator builds many SuperTrend trailing stops across a user-set ATR length, factor range, and step. Each factor is scored with an exponential performance memory. K-means clustering groups those results, and the user chooses the best, average, or
DC Hacendado A is an overlay indicator inspired by Market Cipher A and VuManChu Cipher A. It calculates an eight-line exponential moving average ribbon alongside WaveTrend oscillator conditions, Relative Strength Index measurements, and a custom RSI plus Money
Calculates the Stochastic Momentum Index (SMI) Ergodic oscillator in a separate pane. Users can choose from nine different moving average types for both the SMI line and signal line calculations, including SMA, EMA, DEMA, TEMA, WMA, SSMA, LSMA, Hull, and ALMA.
This indicator plots a HiLo Activator on the price chart. It computes a simple moving average of highs and a simple moving average of lows, each shifted by a user-set number of bars. Direction starts from whether price is below the lower average, then flips do
This indicator calculates relative currency strength across major foreign exchange currencies and gold by pulling multi-symbol price data via security calls. Users can select specific currency pair sets (such as GBP, EUR, USD, or XAU) or a global strength over
RePaNoCHa V4 is an overlay alert indicator that plots a Tillson T3 moving average on the price chart and colors it by whether the line is rising or falling. It combines that slope with a range filter, ADX, parabolic SAR, RSI, and MACD to mark long and short si
This indicator analyzes Maximum Adverse Excursion (MAE) and Maximum Favorable Excursion (MFE) across hourly and multi-hour intraday trading sessions. It plots session open baselines, historical excursion boundaries, custom probability target zones, and time hi
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.