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.
A Pine v5 indicator in a separate pane that tracks accumulation and distribution flow, using either Williams or Chaikin A/D, with a smoothing EMA, Chaikin Money Flow and ATR. It finds divergences between price pivots and flow pivots, and can show regular, hidd
A separate-pane indicator that compares the chart symbol with a domestic index and a US index using rolling log returns. It plots rolling correlations, betas against each index and an R-squared area for the domestic index, each with a toggle. The background sh
This indicator detects bullish and bearish order blocks on the price chart following swing pivot breaks of structure. It highlights unmitigated supply and demand zones, flagging broken zones as dead to prevent breaker re-entries. The script tracks first-touch
A long-only mean reversion strategy for an Indian rupee account. It buys when RSI falls to 30 or below and closes the position when RSI reaches 80 or above. Order size is a fixed rupee amount divided by price, and orders are only placed within a hard-coded one
A very small Pine v4 strategy that plots simple moving averages of 5, 8 and 13 bars, each rounded to two decimals, in a separate pane. When all three rounded values are exactly equal, which will be rare, it sends one buy order and a second order that is also l
This indicator plots options Max Pain strike price levels for HYPE from Deribit as horizontal dashed lines on the price chart. Each line extends from the current bar to the expiration settlement timestamp, with line thickness dynamically scaled to relative ope
A chart-overlay indicator that draws key intraday reference levels as lines and labels. These include premarket, today, overnight and after-hours highs and lows, the day's open, and shaded opening ranges for the Globex, Asia, London and New York sessions, each
A long-term valuation oscillator in a separate pane. It fits a log-price regression over a lookback, takes the deviation of price from that fair-value line, and converts it to a Z-score using EMA-based mean and deviation. Zones labelled gift, cheap, fair, expe
This indicator is a position sizing calculator that shows its results in a table on the price chart. From an account size, risk percentage, leverage and fee estimate, plus a long or short direction, it works out position size, stop distance and a target at a c
A Pine v6 starter template for a strategy rather than a ready-made system. Its setup uses percent-of-equity sizing, a commission and slippage assumption, no pyramiding and orders processed on bar close. Inputs cover fast and slow lengths, a risk percent per tr
An indicator that draws unmitigated bullish and bearish fair value gaps, with a dashboard stating whether to trade long, trade short, wait or stay flat. Gaps pass filters for size, impulse versus ATR, candle body and volume, plus an EMA trend filter and a prem
This strategy calculates multiple technical indicators including EMAs, SuperTrend, ADX, RSI, MACD, Stochastic, and volume MA to generate entry signals for Indonesian stocks. It supports three entry trigger modes: Composite Score, Pullback, and Breakout, with f
This Pine Script v6 indicator calculates and plots the standard Relative Strength Index (RSI) oscillator in a separate chart pane. It computes momentum using a configurable input source and length parameter. The indicator plots the resulting RSI value alongsid
This strategy plots an anchored volume-weighted average price and two standard-deviation bands on the price chart. It buys dips below the inner band when a short RSI is oversold and an optional EMA trend filter agrees, and it can sell rallies above the inner b
This indicator for index futures such as ES and NQ plots the regular-session opening range as a box with high and low lines. It offers two modes: a classic opening range breakout and a Noise Area model with volatility-based boundaries from the open and a VWAP
An indicator for a 1-minute chart that finds 5-minute fair value gaps and looks for a smaller 1-minute gap forming inside them. A nested gap triggers a bullish or bearish label and a trade plan with entry, stop, partial target, main target and extended target
This strategy applies Gann swing lane signals to generate entries in micro futures instruments. It enforces compounding risk controls that scale take-profit targets upward after wins and downward after losses using configurable ratios. Additional risk manageme
A Pine v6 strategy variant for 15-minute Bitcoin perpetual charts that trades RSI momentum breakouts with no pyramiding. Entries need RSI to pass set levels plus a gap, with candle color, EMA 200, ATR range and body-size filters, and an optional pullback re-en
This indicator identifies Smart Money Concepts market structure directly on the price chart. It detects swing points to label higher highs, higher lows, lower lows, and lower highs based on pivot or session seed calculations. The script marks Break of Structur
A strategy version of an ICT optimal trade entry indicator. It finds a swing leg, applies a confluence score from structure shift, liquidity sweep, fair value gap, killzone and higher-timeframe bias, then places a limit entry inside the OTE zone, 0.705 by defa
ManipulationX + Liquidity Sentiment is an SMC chart overlay indicator for tracking liquidity, session ranges, and market structure. It detects multi-timeframe Fair Value Gaps (15m, 1h, 4h), inverted FVGs, liquidity sweeps, and Draw on Liquidity swing levels. I
Indicatorv6SMC / ICT / price actionSessions & time
An indicator that draws time-based boxes for intraday timing. Macro boxes cover a set number of minutes before and after each hour and follow the high and low of that window. A session ribbon shows Asia, London and New York blocks using Singapore time, and qua
Projects a distribution of possible future price moves on the price chart using a Monte Carlo style simulation of drift and returns. Settings control the number of simulations, lookback, steps into the future, outcome bins, smoothing, drift method (standard or
A separate-pane indicator for daily charts that builds a macro regime dashboard from cross-market data. It combines an economic season model, a copper-to-gold ratio check, a monetary policy pressure measure using yields and real rates, cross-market synchroniza
A second strategy version for index futures built on New York session phases, session VWAP, previous day high and low, EMAs, ATR and RSI with thresholds that tighten in low volatility. It builds a session volume profile from price and volume to find the point
A long-only Bollinger Band strategy intended for daily stock charts. It buys when the previous close was below the lower band, the current open is also below it, and no position is open. Mode S1 targets a large percentage gain on the same day and otherwise clo
Unified Trade Strategy is the strategy version of a combined signal. It goes long when price breaks above a Nadaraya-Watson envelope band, the fast EMA is above the slow EMA, the trend channel slopes up and RSI is in a bullish rising band; shorts mirror this.
A strategy version of an ATR pullback scanner. It requires a strong, rising ADX with directional indicators to set the trend direction, and an optional daily SMA 50 and 200 filter. A pullback zone is measured in ATR units from the recent swing. A toggle choose
A fractional differencing Z-score oscillator in a separate pane, set up for testing optional entry filters on five-minute Nasdaq futures charts. Signal modes include the base snapback, a volume-exhaustion mode, a conservative mode and an early mode. Filters co
This strategy identifies Minervini Volume Confirmation Patterns fused with Smart Money Concepts for Bursa Malaysia stocks. It plots entry and exit signals with trend lines, boxes and labels directly on the price chart. The strategy enters long positions when v
A separate-pane oscillator based on the centre of gravity calculation with an adjustable length, an optional RMA smoothing, and a trigger line made with an ALMA filter. It also computes a linear regression line, previous high and low levels of the oscillator a
This strategy trades long only on the price chart. It enters when price pulls back near the EMA20 and closes back above it, while the MACD line and signal stay above zero and the histogram is not falling. A longer trend EMA must sit below price and the EMA20,
Combines a volume check, a consolidation zone detector and Ichimoku lines on the price chart. Relative volume against a 20-bar average flags high and low volume, bar range and close position describe the candle, and a lookback range under a maximum percentage
A price-chart overlay for gold scalping that labels BUY WAIT, SELL WAIT, BUY CONFIRMED and SELL CONFIRMED states. It combines market structure from pivots, liquidity sweeps, candlestick confirmation, breakout and retest logic, an optional higher-timeframe filt
A strategy that looks for mean-reversion entries when volume shows exhaustion, using wave comparison, volume rate of change or z-score detection plus several confluence checks, including a higher-timeframe volume ROC. It is designed for Renko charts, with Heik
A strategy that trades the release of a Bollinger Band and Keltner Channel squeeze. When the bands move back outside the channel, it buys if momentum, measured against the Donchian midline, is positive and sells short if it is negative. An optional ATR-based s
A strategy that builds chandelier style stops from the highest high and lowest low over a period minus or plus an ATR multiple. It goes long when close crosses above the short stop with price above a 200 EMA, and short when close crosses below the long stop wi
The Institutional Levels Dashboard v7 indicator plots multi-timeframe key levels on the price chart including previous day, week, month and quarter highs and lows. It displays labeled lines for these levels plus round number grids, previous same-day high and l
An overlay indicator that follows the Asia, London and New York sessions in a chosen timezone, drawing session highs, lows and opening ranges. It marks sweeps and reclaims of earlier session levels, works out a session bias and lists it on a dashboard whose co
A forex strategy that follows a fast and slow EMA crossover, filtered by a 200-period EMA so longs trade only above it and shorts only below. An RSI filter blocks longs when overbought and shorts when oversold, and a session filter limits trading to a chosen w
BVortex SP500 4H is a momentum-based trend strategy designed for 4-hour charts. It calculates a scaled Vortex Indicator to detect extreme overbought and oversold zones. Long or short entry signals trigger when exiting these extreme levels with a confirming can
An overlay indicator built on smart money concepts, with separate switches for market structure and volumetric order blocks. It draws swing structure, sweeps and bubbles, plus order block zones with buy and sell activity and optional breakers. Settings control
A larger all-in-one overlay combining smart money structure with order flow style tools. It draws a lookback volume profile with value area high, value area low and point of control, flags cumulative volume delta divergence, absorption candles and failed break
Builds several moving averages, including EMA and Hull types, and weights them with an adaptive scheme controlled by a lambda value, a decay percentage and a robustness setting of length sets. The combined result classifies trend as long or short using positiv
This indicator draws horizontal lines and labels on the price chart for pre-market, prior-day, current-day, after-hours, prior-week and current-week highs, lows, opens and closes. Each level has its own switch, and a separate set of switches controls which pri
A strategy with BTC, gold and custom presets that enters in the direction of the trend when a strong candle breaks the latest swing high or low. Filters include a higher-timeframe trend check, a volume surge, body and range thresholds, a prior consolidation, a
A gold futures strategy meant for the micro contract on the 30-minute chart. It records the first New York hour range from 9:30 to 10:30, then fades the first breakout between 10:30 and 13:00, taking the opposite direction of the break. ATR-based stop and targ
This trend-following strategy combines two Exponential Moving Averages with the Relative Strength Index to identify long trade setups. It calculates a 50-period fast EMA, a 200-period slow EMA, and a 14-period RSI. A long position is triggered when the fast EM
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.