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 plots an adaptive RSI on the price chart for gold. It calculates RSI with adaptive lookback and filters signals using EMA trend, higher timeframe bias, slope threshold, ATR volatility, and structure confirmation near swings. Signals appear as bu
This strategy plots on the price chart and trades long when the MACD line crosses above its signal line. It closes the long when the MACD line crosses back below the signal. Position size is the number of shares that a fixed ten thousand Indian rupees can buy
This indicator overlays precomputed Elliott Wave count structures directly on the price chart for ETHUSD. It draws motive and corrective wave paths across primary and alternate wave scenarios, along with wave projections, subwaves, channels, invalidation level
Plots horizontal lines representing Deribit Bitcoin options max pain strike prices for multiple expirations directly on the price chart. Each line extends from the latest bar to its settlement timestamp, with line width dynamically scaled according to open int
The Fusion Cipher B Oscillator plots a multi-part momentum stack in a separate pane below the price chart. It calculates wave momentum with blue and white waves, money flow polarity, VWAP oscillator, RSI, Stochastic RSI, dots, and divergences. The script detec
A comprehensive fundamental analysis dashboard overlay tailored for the Indonesian Stock Market (IDX). It evaluates stocks across up to seven dimensions: Value, Quality, Growth, Health, Income, Momentum, and an optional Indonesia macro factor. The script autom
Papan Gerak is a multi-dimension technical analysis dashboard aimed at Indonesian stocks. This base module declares the indicator in a separate pane and stores the display and calculation settings used by the dashboard. It covers table position, font size, com
This overlay indicator divides Bitcoin price history into repeating time windows measured in days, with an optional gap between windows and an optional custom start date that phase-locks each cycle. For each window it sets a center and upper and lower bounds f
This indicator plots an exponential moving average calculated from a user-defined higher timeframe directly on the price chart. It avoids repainting and lookahead bias by applying a one-bar historical offset to the higher-timeframe data with lookahead disabled
The ATR Breakout Channel strategy detects breakouts by comparing the current close price to the high or low of the previous 20 bars, forming a channel. Entries occur when the price breaks through the channel in the trend direction of a 200-period EMA if the tr
GEKO Gold is a trend-following indicator for gold (XAUUSD/MGC). It computes a GEKO-TIMID composite trend strength score by blending weekly and daily EMAs and ADX values, then classifies the trend into Emerging, Dominant or Extended states. The indicator plots
BottleRocket Pivot Breakout is an intraday trading strategy designed to capture breakout moves above daily pivot levels. It derives floor trader pivots and ATR values from prior-day session data to avoid lookahead bias. Entries are filtered using a minimum sto
BTC RSI Momentum v25 is a momentum breakout strategy engineered for intraday Bitcoin perpetual contracts. It executes long or short entries when the Relative Strength Index breaches extreme threshold levels aligned with an EMA 200 trend filter, candle confirma
LSC Pattern is an on-chart indicator designed to detect three-bar price reversal patterns known as LSC Low and LSC High. An LSC Low bullish pattern occurs when the second bar forms a local trough relative to its adjacent bars and the third bar closes above the
The indicator plots two log regression channels on the price chart: a long-term macro channel with lookback of 300 bars and a short-term channel with lookback of 50 bars. Each channel draws upper and lower bands using standard deviation width, a middle line, b
Identifies 3-candle price patterns that combine structural liquidity sweeps with candle breaks. In a bullish pattern, a second candle sweeps the low of an initial bearish candle before closing above its open, followed by a third candle closing above the previo
Ultimate Trend Suite [AI] is an overlay indicator that combines trend identification, momentum, volume analysis, and smart money concepts. It generates buy and sell signals based on moving average crossovers confirmed by volume above its average. The script ca
The Iron Condor Signal (Range Detector) is an overlay indicator that identifies range-bound, low-trend market conditions suitable for non-directional trading strategies. It calculates Bollinger Bands, the Average Directional Index (ADX), and the Relative Stren
This strategy draws Bollinger Bands on the price chart and enters long when both the open and the close are below the lower band. Mode S1 exits the same day at a 20 percent take profit or forces a close if that target is missed. Mode S2 can hold for a set numb
This Pine Script indicator detects and plots price action concepts on the chart, including swing highs and lows, internal market structures, break of structure (BOS), change of character (CHoCH), and EQH/EQL levels. It signals trend shifts with colored BOS and
This strategy backtests Minervini-style volatility contraction pattern breakouts on the price chart. Entries can require a full seven-point trend template, a VCP squeeze, a volume surge, and optional SmartMCDX banker bars. It plots the 21 EMA, the 50, 150 and
This overlay indicator draws a fixed visual snapshot on the GBPUSD price chart only when the last bar is forming. It places a translucent box labeled FVG, a horizontal line and label marked MSS, and a text label reading GBPUSD bullish, all using hardcoded pric
This indicator calculates and plots trend-following signals based on an adaptive UT Bot trailing stop mechanism on the price chart. Entry signals trigger on trailing stop crossovers, with sensitivity keys adjusting dynamically between trending and ranging mark
Array Advanced Helpers is a Pine Script v6 strategy that plots on the price chart. It builds arrays from close, open, high and hl2 to compute the lowest and highest values along with the last index of the highest. Two EMAs with periods 8 and 21 generate crosso
This overlay script identifies Smart Money Concepts (SMC) and ICT structure on the price chart. It detects swing pivots, Break of Structure (BOS), Change of Character (CHoCH), liquidity sweeps, order blocks, and Fair Value Gaps (FVG). Additionally, it plots an
Calculates institutional liquidity sweeps across a configurable swing lookback period to trade market reversals directly on the price chart. It enters long when price dips below recent swing lows and closes back above, and enters short when price sweeps swing
Nexus Flow is a multi-dimensional trend and momentum indicator that combines EMA and ALMA trend detection with Supertrend consensus for adaptive trend filtering. It incorporates an adaptive RSI for momentum analysis with volatility-adjusted lookback and plots
The script is an indicator that plots multiple moving averages on the price chart. It displays HMA 9, EMA 16, HMA 21, EMA 34 and EMA 50 lines with separate bullish and bearish colors plus optional band fills for each. Users toggle visibility of lines and fills
Deep Trades Whales v4 is an indicator that detects large institutional trades by analyzing volume spikes against historical percentiles and Z-scores. It identifies whale activity through iceberg absorption patterns that require proximity to prior swing highs o
This strategy identifies Bollinger Band squeezes and enters positions on volatility breakouts. It defines a squeeze when the normalized band width over the last five bars drops below its 25th percentile over a configurable lookback window. When a breakout occu
This overlay strategy is built for MNQ on a five-minute chart and is meant to trade imbalance fair value gaps. It reads one-hour and two-hour closes against exponential moving averages for directional bias, and it flags liquidity sweeps of the previous day hig
This overlay indicator detects market structure on the price chart with two layers at once: internal structure on a five-bar leg and swing structure with a configurable length. It labels break of structure and change of character. After a break of structure, a
This indicator plots premium and discount zones, equilibrium lines, fair value gaps (FVG) with center of equilibrium (CE) midpoints, inverted FVGs (IFVG), scored order blocks (OB), and CISD markers on the cryptocurrency price chart. It includes a compact dashb
Sentiment 2 is a trend-following strategy that calculates a normalized composite market sentiment score ranging between 0 and 1. It combines exponential and Hull moving average slopes, high/low midpoints, Supertrend distances, and Parabolic SAR metrics. Plotte
The Gold indicator plots the 20 SMA and 200 EMA on the price chart together with $2 proximity zones around the SMA. It generates strong long signals when price enters the zone from below, stays above the SMA and MACD histogram is positive. Strong short signals
BVortex calculates a scaled Vortex Indicator presented as a histogram in a separate pane. It evaluates positive and negative directional movements over a specified lookback period relative to True Range. The histogram changes color to highlight extreme momentu
BAKOME ICT Institutional is an overlay indicator that implements Inner Circle Trader concepts directly on the price chart. It calculates 50 and 200 EMAs for trend direction, identifies market structure breaks and changes of character using pivot points, and de
This strategy overlays a seven-step smart-money process on the price chart. It compares a higher-timeframe close with an EMA to shade bullish or bearish trend, then marks equal highs and lows, order blocks, fair value gaps, and changes of character. Inputs set
This strategy trades a 30-minute opening range breakout on Nifty stocks. After the 09:15–09:45 IST range, it enters long or short on a retest of the range high or low when volume exceeds a 20-bar average and optional VWAP and ADX filters agree. It sizes the po
SR Levels visualizes custom support and resistance price zones directly on the main price chart. It parses user-defined CSV text input containing zone labels, target symbols, and price bounds for SPX, SPY, and ES contracts. When the current symbol matches the
This strategy combines Smart Money Concepts with Order Blocks and Fair Value Gaps alongside multiple VWAP levels including session, weekly, monthly, and anchored variants. It detects confluence zones to generate long and short entry signals on the price chart.
This Pine Script indicator computes a Confluence Score from 0 to 100 by aggregating seven breakout identification strategies based on VCP trend template, TTM squeeze, volume analysis, relative strength, MA setup, RSI momentum and price near resistance. It plot
This strategy trades BIST30 futures on the price chart using a fast 9-period and slow 21-period EMA crossover signal. It generates buy signals only during Turkish market session hours of 09:30-18:15 UTC+3 and closes all positions automatically at session end.
Beginner EMA + RSI + ATR is a long-only trend-following strategy plotted directly on the price chart. It identifies an uptrend when the 50-period EMA trades above the 200-period EMA, triggering long entries when the 14-period RSI crosses above the 50 centerlin
This indicator detects bullish and bearish Fair Value Gaps (FVGs) using three-bar price imbalance logic directly on the main price chart. When an imbalance occurs, it highlights the price gap with semi-transparent boxes and plots triangular shape markers above
TR 10 [Vaibhav] is an overlay indicator that plots buy and sell signals on the price chart. It calculates signals using multiple EMA periods for trend direction, RSI for momentum, and a confluence score combining these factors. Signals are generated when condi
The SMC Range STR v3 IMBA v3 indicator detects swing ranges on multi-timeframe charts. It plots range boxes, support and resistance lines, and swing dots on the price chart. Users can configure the grace period, retracement percentage, swing timeframe, break m
The Adaptive Liquidity Matrix indicator calculates and plots a synthetic liquidity matrix on the price chart. It anchors to the highest volume candle on a selected macro timeframe, reads its polarity to set support or resistance levels, and expands the matrix
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.