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 Pine Script indicator detects swing highs and lows on a higher timeframe while analyzing the current chart timeframe. It calculates trend direction using swing structures with bullish or bearish momentum and compression status. CHoCH detection identifies
Adaptive Moving Average (AMA) is a trend-following indicator that dynamically adjusts smoothing based on recent price volatility. It blends a fast EMA (default length 2) with a slow EMA (default length 30) using an adaptive multiplier derived from the highest
This strategy replays historical execution logs exported from TradersPost on the main price chart. It iterates through hardcoded timestamp, direction, price, and quantity arrays generated by an external conversion tool. When the current bar timestamp matches a
This strategy enters long when a fast EMA crosses above a slow EMA and short when it crosses below, only after the bar is confirmed. It sizes each order as a percentage of equity and exits with a percentage stop and a percentage target measured from the averag
This indicator calculates a multi-timeframe MACD line alongside signal lines and volatility bands in a separate chart pane. It offers nine customizable moving average types, including SMA, EMA, DEMA, TEMA, Hull MA, Volume Weighted MA, and Least Squares MA. Use
This indicator plots buy and sell signals on the price chart overlay using Supertrend as the primary trend filter combined with multiple moving average crossover strategies. Users select from preset modes or enable custom combinations via toggles for 12 differ
This strategy combines fractal-based supply and demand order blocks with Awesome Oscillator divergence detection. It generates long signals when price interacts with a demand zone alongside a confirmed bullish divergence, and short signals at supply zones with
This strategy implements a daily Bitcoin trend-following system combining exponential moving averages (EMA 25, 52, and 144) with daily and 4-hour MACD indicators. It triggers long and short positions based on EMA alignments, zero-line momentum segments, and hi
Mean Reversion T is a dual-engine intraday indicator designed for 15-minute charts to detect mean-reversion and shock-reversal trading opportunities. It calculates Z-score price deviations from a moving average mean alongside regime scores across 15-minute and
RTD IFVG tracks inverted fair value gaps (IFVGs) and identifies bullish or bearish trade setups when price closes through gaps following liquidity sweeps, higher-timeframe FVG reactions, or SMT divergence. The indicator grades setups from A+ to C based on posi
TradingFlow: Stoch X is a Stochastic oscillator indicator plotted in a separate pane. It calculates standard percent K and percent D lines along with secondary crossover lines to generate trade signals outside overbought and oversold bands. The indicator autom
KatanaFlow is a trend-following overlay indicator that combines a Twin Range Filter with a smoothed moving average line to identify market direction and signal reversals. It calculates adaptive volatility bands using dual-period range smoothing to filter out p
This indicator plots pivot levels and inflection zones on the price chart. It calculates P, S1 to R4 pivot points using selected type such as Traditional or Fibonacci and anchor timeframe. Inflection zones appear as supply and demand boxes based on swing highs
AI Bot - Manual Alerts is an overlay indicator that scores buy and sell conditions from optional MACD, EMA, RSI, and break-of-structure checks. It treats the share of enabled conditions that fire as a confidence value and sends a JSON buy or sell alert once pe
This overlay indicator scores stock swing setups from fast and slow EMAs, a weekly EMA, RSI and MACD momentum, relative strength versus a benchmark, OBV volume flow, and ATR volatility. It suggests probe, starter, add-on, and full buys plus partial and full ex
Cyber HUD XAU is an overlay indicator designed for XAUUSD that combines trend, momentum, and volatility filters. It calculates fast and slow ATR ratios alongside local price ranges to detect consolidation and chop filter states. The script evaluates candle bod
The Mc War indicator identifies Smart Money Concepts market structure elements directly on the main price chart. It detects swing highs and lows using pivot calculations to label higher highs, lower highs, higher lows, and lower lows. The script draws lines an
The Buy/Sell Position Strategy combines a long-term Exponential Moving Average (EMA) with a short-term Relative Strength Index (RSI) to capture pullbacks in an uptrend. It enters a long position on the price chart when the price is above the EMA filter and the
This indicator calculates a multi-timeframe trend and momentum score across five configurable timeframes for up to three symbols. It evaluates price relative to a fast EMA along with RSI momentum, weighting each timeframe to generate a normalized confluence sc
This strategy draws swing signals and overlays on the price chart. It enters from an Open/Close or Renko setup, optionally confirmed by a higher timeframe, and can color bars by trend. Sideways conditions are filtered with ATR, RSI, both, or neither, using two
Daily High Levels calculates and tracks regular trading hours (RTH) session open, high, low, and close values for intraday charts based on customizable New York session bounds. It fetches the prior daily close of NQ futures using higher-timeframe data retrieva
The Linchuan Event Indicator plots multi-timeframe opening price zones alongside key moving averages and Bollinger Bands in a separate indicator pane. It tracks opening price lines and colored expansion zones across 5-minute, 30-minute, 1-hour, and 4-hour time
This indicator measures the percentage change of the close over a configurable lookback and compares it with a breakout threshold. It marks upward and downward momentum regimes with a faint background tint on the price chart, plots a translucent close line, an
This indicator plots optional moving averages on the price chart and generates entry signals based on custom conditions from multiple technical indicators. Users select which indicators contribute to long or short signals, choose confirmation of candles, and c
CryptoSwarmStrategy is a chart overlay strategy that enters long when a fast EMA crosses above a slow EMA, RSI is below the oversold level, and volume exceeds its 20-bar average. It enters short on the opposite EMA cross with RSI above overbought and the same
Calculates a volume-weighted Average True Range by multiplying the standard ATR calculation by the current bar volume. The indicator plots this combined metric as a red line directly on the price chart. The main setting controls the lookback length for the ATR
AI Debug Helper is a Pine Script indicator that provides AI-powered debugging suggestions for PineScript code. It loads a simulated database of common error patterns such as series index out of bounds, division by zero, Na propagation, infinite loops, and best
GainzAlgo EA is a trend-following strategy designed for scalping and intraday trading, optimized for gold and liquid assets. It establishes trend direction using a three-EMA alignment alongside RSI momentum filters and an optional higher-timeframe trend confir
This strategy calculates standard Bollinger Bands and Average True Range to implement a basic mean-reversion system. It opens long positions when price drops below the lower band and short positions when price pierces above the upper band. Open trades are exit
Calculates and plots ICT concepts on the price chart, including Buy-Side Liquidity (BSL) and Sell-Side Liquidity (SSL) levels identified through fractal swings. The indicator detects liquidity sweeps, identifies Premium and Discount valuation zones with an Equ
DP2 is a price-chart strategy that looks for a short dump between the chosen from and to prices, optionally requiring a break of a multi-day low while ignoring moves larger than a dump cap. It can enter through classic, two-close, break-and-retest, ATR-stop, a
The Regard Hodler's Profile indicator plots a volume profile on the price chart. It analyzes the last lookback bars to bin prices and accumulate buy and sell volumes based on candle direction. Stacked green and red bars appear at each price level, with a dashe
This overlay indicator scores each confirmed bar from zero to six using fast, slow, and trend EMAs, higher-timeframe bias, RSI, MACD, ATR, and volume. It plots buy and sell labels when the score meets the minimum entry threshold and exit labels when the opposi
This strategy plots Bollinger Bands on the price chart and trades a long-only mean-reversion idea. It enters when the close is below the lower band, or when the low touches that band if Touch mode is selected, and only while flat. With the opposite-band exit e
JINADA Down is a multi-oscillator visualizer rendered in a separate chart pane. It constructs an oscillator map using Momentum, Commodity Channel Index, Stochastic, and RSI metrics. The indicator calculates and identifies standard and hidden bullish and bearis
The Traffic Light Strategy is a breakout trading system overlaid on the main price chart. It detects momentum transitions whenever two consecutive candles have opposing colors (bullish followed by bearish, or vice versa). Upon detection, it marks the combined
This indicator plots a composite Liquidity Health Index in a separate pane. It averages four 0 to 100 scores: the US 10-year minus 2-year yield spread, an inverse CBOE VIX score, an inverse MOVE index score, and the year-over-year change in the Fed balance she
%R Trend Exhaustion is a momentum and trend exhaustion indicator based on dual-period Williams %R calculations. It combines a standard fast %R with a slow-period %R to identify extended trends and subsequent exhaustion breaks around overbought and oversold thr
This strategy executes long trades based on the Supertrend indicator and candle color confirmation. It enters when a fresh bullish Supertrend flip occurs on a green candle and exits when the trend flips bearish on a red candle. It also places bracket orders wi
This strategy backtests short entry setups by evaluating multiple confluence factors directly on the price chart. It combines price surge detection, RSI overbought conditions with rollover confirmation, Bollinger Band exhaustion, and optional volume spikes alo
Crypto Bull Market Strategy is a long-term Bitcoin cycle indicator overlaying price targets and trend phase tracking on the price chart. It calculates a 50-week simple moving average to evaluate long-term market trends and monitors progress toward user-defined
This breakout strategy identifies trade entries when price breaks above recent swing highs or below swing lows. Entries are verified through optional filters, including a 233 EMA trend filter, ATR volatility threshold, volume multiplier confirmation, RSI bound
This indicator plots a fast and a slow exponential moving average on the price chart and marks buy and sell signals for Bitcoin scalping. A buy appears when the fast EMA crosses above the slow EMA, RSI is above its buy threshold, the MACD line is above its sig
This indicator implements Steve Mauro's Beat the Market Maker (BTMM) methodology on the price chart. It plots the standard five-EMA food system (5, 13, 50, 200, and 800 EMAs) with optional labels and calculates an automated multi-point directional bias score.
Plots volume distribution across price levels over a user-defined historical window. Divides price range into equal-height rows and aggregates volume in each. Highlights the Point of Control (highest volume row) with a bold line and the Value Area (containing
This strategy plots RSI and Bollinger Bands on the price chart. It calculates the 14-period RSI and 4-period RSI to detect overbought and oversold conditions. The strategy enters short positions when the RSI crosses above 70 and long positions when it falls be
This overlay strategy trades BTC/USDT with EMA trend and micro-trend filters, RSI thresholds, volume spikes, and optional momentum and higher-timeframe confirmation. It requires consecutive bars to agree and limits entries by a minimum bar gap and a maximum nu
This indicator tracks market trends using an ATR trailing line derived from close prices and a risk multiplier, inspired by the UT Bot algorithm. It plots the trailing line directly on the price chart, identifies bullish and bearish regime flips, highlights si
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.