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.
This indicator calculates an advanced Fisher Transform oscillator in a separate pane, using customizable smoothing algorithms, a signal line, and defined overbought and oversold thresholds. It incorporates a slower trend context line, detects market stall or a
Adaptive Structure Trend Engine plots a multi-layer trend view on the price chart. It uses FRAMA for structure and slope, KAMA for regime efficiency, and JMA for smoother momentum confirmation, then checks an EMA hierarchy of 21, 50, 100, 150 and 200. Base sig
This indicator calculates and plots Relative Strength Index (RSI) values across four distinct user-defined timeframes within a separate pane. Each higher-timeframe RSI line is rendered with unique colors and line thicknesses, displayed alongside customizable u
This indicator maps multi-timeframe candle range patterns based on specific time-of-day sessions. It converts user-specified SAST starting hours into UTC to identify initial 4-hour range candles, plotting their high, low, and median levels across the chart. Th
This strategy evaluates breakout and trend-continuation signals using a higher-timeframe MACD and Stochastic RSI filter. It calculates MACD fast and slow exponential moving averages alongside Stochastic RSI overbought and oversold thresholds to identify histog
This strategy combines Kijun-Sen baseline logic, the SSL Channel indicator, and the Waddah Attar Explosion (WAE) oscillator into an integrated entry framework plotted directly on the main price chart. It triggers long entries when price is above the Kijun-Sen
This strategy combines nine technical indicators including RSI, SuperTrend, MACD, Triple EMA, Bollinger Bands, Ichimoku, HMA, Swing Failure Pattern, and Z-Score. Each indicator votes on long or short direction, with a Dynamic mode that weights votes based on m
This indicator calculates the Moving Average Convergence Divergence (MACD) line, signal line, and histogram in a separate pane. It uses configurable fast, slow, and signal lengths to compute standard momentum values. The histogram is dynamically shaded with di
This indicator plots a standard MACD oscillator in a separate pane. It calculates a 12-period EMA minus a 26-period EMA, smooths that difference with a 9-period EMA signal line, and draws both series plus a zero line. A green upward triangle marks a MACD cross
Calculates a composite market internals oscillator by averaging the 50-period Relative Strength Index (RSI) across four major U.S. index ETFs: SPY, DIA, QQQ, and IWM. It plots this composite oscillator against a 50 midline in a separate pane, dynamically color
This indicator combines a WaveTrend-style oscillator with Squeeze Momentum and Supertrend tracking in a separate pane. It calculates channel moving averages to generate oscillator lines, plotting customizable overbought and oversold levels alongside crossover
EzSMC is an overlay indicator designed for Smart Money Concepts analysis. It identifies and plots bullish and bearish order blocks directly on the price chart, with optional multi-timeframe order block capabilities. Traders can categorize order blocks into int
This indicator finds swing highs and swing lows and draws them as horizontal lines on the price chart. Bearish-colored lines mark swing highs and bullish-colored lines mark swing lows, and each line stops extending once price breaks that level. Sweep mode flag
This Pine Script strategy for XAUUSD combines Exponential Moving Averages (20, 50, and 200), Stochastic, RSI, and ATR indicators to generate trading signals. It identifies potential buy and sell opportunities using trend alignment, M15 overbought or oversold c
This strategy plots a Williams Vix Fix histogram in a separate pane and combines it with a WaveTrend oversold check and a rolling volume-weighted average price. It marks percentage bands above and below that VWAP for short and long conditions and can highlight
This indicator estimates a risk score and suggested position size from capital, a user win rate, a profit ratio, and historical price range. It tracks each year's high and low, converts that range into a drawdown percentage, and plots a weighted average of the
Fractal Adaptive Moving Average (FRAMA) calculates an adaptive moving average line by determining the optimal smoothing factor alpha via fractal dimension analysis of price data. It applies the period parameter to the selected source and plots the resulting li
This strategy combines Bollinger Bands and the Stochastic Oscillator to identify oversold and overbought mean-reversion setups. It enters long when the close falls below the lower Bollinger Band with Stochastic %K under 20. It enters short when the close breac
This indicator identifies indecision doji candles and highlights potential market reversals directly on the price chart. It calculates the candle body percentage relative to total range and compares the upper and lower wick proportions. When a valid doji coinc
A strategy that merges two signal engines: a JAT+BSM engine and a POI scalp engine built on pattern and composite scoring. Either or both can be enabled, and signals combine as either-fires, both-must-agree, or one engine only. Risk uses either an ATR based st
Signal Forge is a multi-filtered trend-following indicator displayed on the main price chart. It calculates an ATR trailing stop line alongside a long-term EMA baseline to identify market direction. Raw signal flips are filtered through ADX chop detection, a v
SMC Setup Check is a diagnostic utility indicator designed to verify chart-link bindings between the chart and the SMC Long-Dip Suite. It inspects external source inputs including schema version, state code, armed status, quality score, trigger, and invalidati
This strategy detects momentum turns by subtracting consecutive values of an input source. It defines src as a user-configurable source defaulting to hl2, the average of high and low prices. Momentum is calculated as the current src minus src one bar ago, and
This indicator requests the quarterly total revenue figure for the chart symbol through request.financial and plots that series in a separate pane. It uses the symbol ticker and the TOTAL_REVENUE field on a fiscal-quarter timeframe. There are no user inputs, n
An overlay indicator that marks confirmed swing pivots and builds ATR-width structure zones around them. It adds CUSUM change-point markers, relative volume, lower-timeframe delta pressure, compression and trend-efficiency readings, then labels how each zone t
DEPV2 Debug S12 is a multi-symbol research indicator designed to analyze market signals across up to 20 configurable cryptocurrency pairs. It evaluates conditions using four distinct categories: trend, momentum, volatility, and volume. Users can configure sing
An overlay version of the WaveTrend oscillator that hides the oscillator lines by default and instead prints buy and sell labels on the price chart. Labels show time, price, volume, previous volume and percentage changes. Channel and average lengths adjust aut
This indicator overlays liquidity heatmaps, footprint bars, and imbalance detections on the price chart. It calculates liquidity zones using sweep percentages and wick weights, displays volume candle deltas, and detects order imbalances based on volume ratios.
A separate-pane oscillator that combines a Z-score of price with a Z-score of volatility into one score, then applies bands from a band length with separate positive and negative multipliers. A signal type setting chooses how it is read, and optional signs mar
Draws volume order block zones with asymmetric signals on the price chart, then adds a proximity layer that checks how close those signals sit to high-volume, displacement and tier conditions. Version 1.1 is a tick-friendly build. It is an indicator only.
Tn Adaptive Risk Regime v6 is a strategy that switches between mean reversion and breakout modes based on volatility regime. It compares ATR to its SMA over a lookback to classify high or low volatility. Low volatility triggers mean reversion by fading range e
A Pine v4 indicator that measures candle body size, shadow lengths and doji conditions on the price chart, then looks for a Heikin-Ashi style reversal bar following a doji. Matching bars are recoloured, and triangle markers with text labels and alert condition
This strategy generates trend-following trade signals by combining the Supertrend indicator with the Directional Movement Index (DMI). It enters long when the closing price crosses above the Supertrend line while +DI exceeds -DI and the ADX value is above 18.
This indicator applies the Goertzel algorithm to price in a separate pane, measuring one frequency component set by a period length and a measurement block length. A training percentage and shift settings align the fitted wave with recent data, and the wave ex
This strategy trades breakouts using VAMA Bands on the price chart. It supports long and short entries with filters from VAMA, MACD, DI, ADX, OBV and optional entry limits. Positions exit on opposite trend, force close periods or flip signals. Main settings ad
Range Scalper is a price-chart overlay indicator. Archived notes describe an ATR-based dynamic range threshold meant to adapt range detection to volatility, plus breakout shape markers. The file is labeled simplified for the archive and shows no parsed inputs.
This combination indicator plots a Volume Profile or Market Profile histogram directly on the main price chart alongside MACD calculations. It measures volume or time distribution across custom price rows, highlighting key market structure levels such as the P
A strategy that places stop entry orders around price gaps and recent candles. It buys on a stop above the previous high after an upward gap, sells on a stop below the previous low after a downward gap, and adds same-direction entries when the open position's
An indicator that looks for regular or hidden divergences between price pivots and up to eleven oscillators and volume tools, including MACD, RSI, Stochastic, CCI, momentum, OBV, Chaikin Money Flow and MFI. It draws divergence lines and labels on the price cha
A Pine v4 indicator in a separate pane that shows a rolling Sharpe-style ratio of the chart's price series, with a long window of 200 bars and a short window of 52 by default. An optional reference interest rate symbol can be subtracted, a Hull moving average
This indicator calculates a normalized volatility oscillator plotted in a separate pane. It measures the distance between the closing price and a simple moving average, standardized by a scaled standard deviation band. The script plots the resulting ratio alon
A Pine v4 strategy that goes long when the MACD and the 14-period RSI are both rising while RSI is at or below an entry level. It can add to a long when RSI drops further below the previous entry, up to a maximum number of adds, and it can reopen longs. Longs
This script plots multiple shapes using the plotshape function in Pine Script v4. It defines fixed y offsets at intervals of 20 and renders flags, squares, diamonds, triangles up, and circles in sizes from tiny to huge. All shapes appear at absolute locations
This mean-reversion strategy combines multi-timeframe exponential moving averages, Bollinger Bands, and the Relative Strength Index. It generates long and optional short trade signals when price interacts with the Bollinger Bands alongside RSI threshold confir
This indicator plots historical buy and sell transactions executed by ARK Invest for AME directly on the price chart using timestamped labels. It displays transaction actions and trade counts for specific historical dates. The ETF input setting lets users sele
FunctionBestFitFrequency is a Pine Script v5 library that smooths a float array with a rolling average and searches a frequency range for the moving-average length whose residual signs are closest to evenly split. The array function can omit early values short
This indicator plots smoothed adaptive moving averages on the price chart using T3, AMA, or Kaufman methods. It accepts various sources including standard and Heikin-Ashi versions. Main settings select the calculation type, input source, period length, and smo
This indicator plots market structure on the price chart by identifying swing highs and lows. It connects these points with lines to visualize trend direction and detect Break of Structure (BOS) when price breaks a prior swing in the current trend. Change of C
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.