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 long-only crypto spot strategy variant that makes a multi-timeframe moving average trend the primary entry trigger, with 300-period averages on one-minute and five-minute charts and a rising-slope requirement. Other trend, volume and structure filters are av
This indicator calculates 20-period and 50-period exponential moving averages (EMAs) to identify trend direction and crossover signals. It plots both EMA lines directly on the chart and displays visual shape markers below or above price bars whenever a bullish
This indicator calculates and plots a stochastic oscillator in a separate pane with exposed fast %K, slow %K, and slow %D lines. It allows users to customize the smoothing method using SMA, EMA, WMA, or HMA instead of forcing standard SMA. Key input settings i
An overlay that draws higher-timeframe candles beside the live chart so the structure of larger candles can be read while trading a lower timeframe. Up to six timeframes can be shown, from 15 minutes to daily, in automatic or manual selection, with a set numbe
A minimal overlay utility that marks one chosen date and time on the chart. When the first bar at or after the selected timestamp appears, it draws a yellow label with price, time and timestamp and sends a JSON alert once per bar close. It has a single input f
A strategy visualizer, with no real orders, that tracks a 200-bar moving average of lows on the 1-hour timeframe. When price touches the average it arms, then marks long or short entries on a wick rejection seen on 5 or 15 minute candles, or a run of three sam
A simple example strategy for the price chart that goes long when a 9-period SMA crosses above a 21-period SMA with RSI above 50, and goes short on the opposite cross with RSI below 50. Each entry sends a JSON alert message that includes a passphrase, price, R
A Pine v6 indicator that plots the Hull Moving Average on the price chart. It is built from weighted moving averages: twice a half-length average minus a full-length average, then smoothed over the square root of the length. This keeps lag low while staying sm
The Ichimoku Cloud indicator plots five lines: Conversion Line, Base Line, Lagging Span, Leading Span A, and Leading Span B, forming a cloud on the price chart. It shows trend and momentum by position relative to the cloud: above green is bullish, below red is
Shows a table on the chart that maps a macro stress reading to a capital split across three sleeves: a core equity ETF, a small-cap ETF and a short-term Treasury ETF. Stress is a rolling z-score of the VIX, a credit spread or a custom ticker, with separate ent
This overlay strategy combines a fast and slow EMA, MACD, and RSI smoothed by an EMA. It opens a long when any one of those three crosses bullish while the other two stay aligned upward, and it opens a short on the matching bearish combination. Trades are limi
A gold-oriented overlay that prints buy and sell signals on closed bars. It combines an EMA trend stack, an RSI band, MACD and stochastic RSI triggers, an optional volume filter and a weighted confidence score that must pass a minimum. Stop loss and two take-p
A test strategy used to check how a converter handles broker emulation. It goes long when a 9-period EMA crosses above a 21-period EMA and short on the opposite cross. Open longs get a stop and a limit set from ATR multiples, while shorts get an ATR-based trai
Fibow is an intraday trading strategy that tracks daily price extremes to calculate directional Fibonacci support and resistance levels. It monitors price action for Pin Bar and Engulfing candlestick patterns reacting at key Fibonacci retracement thresholds. U
Computes support and resistance zones on the chart by clustering 1h moving averages, Bollinger bands, daily pivots, volume profile levels and optionally the previous day high and low. It reads weekly, daily, 4h and 1h trend bias and moves a status through wait
The indicator calculates confirmed pivot highs and lows on up to three user-selectable timeframes using source-timeframe closed bars only. It identifies the nearest resistance above and support below the current price by comparing candidates from each timefram
A price-chart overlay that estimates how fast trading is happening and paints candles when that speed is unusually high. Because TradingView has no tick count, it approximates speed from volume or from the bar body, scaled by the timeframe and a chosen period
The Lunch Range Breakout indicator identifies and plots a midday consolidation range based on configurable exchange-time hours, defaulting to 11:30 through 13:30. Once the window closes, it plots the session high and low levels directly on the price chart. The
This overlay indicator marks opening-range breakouts inside configurable Asian, London, and New York session windows. It searches for a break, retest, and continuation after an optional delay, then shows confirmed-bar signals with estimated entry, stop, and ta
Kernal Cipher 2 is a lower-pane signal panel. It scores trend with fast, slow, and long EMAs, slope, Supertrend, and ADX, then blends WaveTrend, StochRSI, pivot divergence, volume, relative strength versus equity benchmarks, and beta. Green and red diamonds ma
Test fixture for a strategy-description simulator, drawn in a separate pane. It replays a generated rule set on the chart candles between a start and end time, with a ticker mapping check and an optional trace to the Pine logs. The comments state the policy: s
A long-only swing strategy for daily charts of liquid stocks. It requires several consecutive green closes, a close above the 20 EMA, ADX above a minimum and a bullish SuperTrend, within a price band. Entry is a break of the prior high on volume or a pullback
An ATR-based band indicator with a ratcheting SuperTrend line built from RMA of highs and lows. It shows upper and lower bands, an optional outer channel, an optional teal oscillator line, buy and sell signals when direction flips, and two take profit levels a
A Pine v5 indicator that overlays a set of reference levels on the price chart. It plots VWAP, 50 and 200 EMAs, a 24-bar high and low, the latest swing high and swing low, a volume point of control approximated from the highest-volume bar, and ATR-based stop r
An overlay that marks long and short signals by combining a Money Flow Index with k-means derived overbought and oversold levels, and an Andean oscillator crossing its signal line, both within a confirmation window. Optional trend and ATR percentage filters ca
This overlay indicator marks the high and low of four Smart Money Concepts killzones on the price chart. It tracks the Asian range, London open, New York morning, and London close using America/New_York session windows so daylight saving shifts stay aligned. W
An indicator in a separate pane that builds a 0 to 100 gauge of market risk from several other markets rather than the chart symbol: an equity ETF, the VIX, the dollar index, the 10-year yield and a high-yield credit ETF. Their returns or changes are turned in
A Pine v6 indicator that contains no trading logic. The file is a placeholder for a second strategy in the repository, and its own comment says the source code was not available. It declares an overlay indicator and plots nothing, has no inputs, and produces n
This indicator calculates and plots the standard Moving Average Convergence Divergence oscillator in a separate chart pane. It computes a fast exponential moving average and a slow EMA, derives the MACD line from their difference, and calculates a smoothed sig
Bitmoon System projects mirrored price levels and symmetric price bands directly onto the main price chart. It calculates geometric mirror reflections using central and secondary user-selected price pivots and reference timestamps. The indicator identifies his
This indicator template provides a production-grade boilerplate for constructing custom TradingView indicators in Pine Script v6. It features a configurable lookback length and price source input, automatic or custom color theme styling, and an on-screen dashb
A strategy that builds simulated Renko bricks from the ATR of a chosen reference symbol, SPY by default, and trades within a set start and end date. It scales position sizes with a factor, keeps a hold percentage, and can add a TRAMA cloud with a percentage ex
PowerTrend is a price-chart overlay that recreates Webby's Power Trend. It plots a configurable EMA and SMA, counts consecutive days the low stays above the EMA and the EMA stays above the SMA, and starts an uptrend when those counts, a rising SMA, and an up c
This indicator plots a horizontal net delta histogram on the price chart for the current active swing leg, from the last confirmed pivot to the current bar. Delta is approximated using lower-timeframe sub-bars, classifying volume as ask or bid based on close v
Basic Trend View is a simple educational indicator from a Pine Script v6 course that colors chart bars based on price direction. It colors bullish bars green when the close is greater than the open, bearish bars red when the close is less than the open, and ne
A long-style strategy wrapper around the Regime Overlay engine, meant for checking its signals in the Strategy Tester rather than for live use. It enters when the chosen trend driver flips bullish and exits on its own rules, with optional switches to disable t
A separate-pane momentum indicator that measures how far price sits from a selectable moving average and sums that deviation over a for-loop range of lookbacks, from a start to an end value. The result is compared with a long threshold and a short threshold to
A price-chart indicator built on the UT Bot ATR trailing stop idea, with sensitivity and ATR period inputs and a preset chosen from the chart timeframe. It prints buy and sell labels when price crosses the trailing line and offers an optional line, ribbon fill
This indicator plots multiple anchored VWAPs, session ranges, fair value gaps, and multi-instrument monitoring tables directly on the price chart. It signals long or short setups when price breaks the initial fifteen-minute New York opening range, re-enters th
Pine v6 overlay indicator that marks combination signals on the price chart. Groups include PBJ or PB with F2, E3 and cluster patterns, sequential combos, back-to-back day combos, Heavy Weapon with any bullish or bearish signal, GZ1 and high-volume mega combos
A chart overlay with three exponential moving averages of 9, 21 and 50 bars, plus manual marker toggles for long, short, entry, stop hit and target hit on the latest bar. The setup type and a conviction score are typed in by the user and shown in the label. It
A smart money concepts indicator for the price chart that labels internal and swing market structure as break of structure or change of character, with filters and a confluence option. It can draw internal and swing order blocks, strong and weak highs and lows
TN Swarm Modular Executor combines four distinct sub-strategy modules—Momentum (CCI), Mean Reversion (RSI), Breakout (Bollinger Bands), and Volatility (ATR channels)—into a multi-agent consensus engine. It calculates individual member signals and aggregates th
A chart-overlay indicator meant for 4-hour charts that combines several filters: a Heikin-Ashi MACD read from the daily timeframe without future data, an approximate volume profile with value area, a swing-anchored VWAP, a squeeze momentum reading built from B
APM v7 BTC/USD ALL is an indicator that plots three exponential moving averages on the price chart for BTC-USD. It calculates EMA Fast, EMA Mid, and EMA Slow using user-defined lengths. Additional momentum oscillators include RSI, MACD, Stochastic, and CCI. Th
This indicator bundles four switchable modules, each with its own settings. The first is an adaptive moving average that speeds up in clean trends and shows a trending or ranging read. The second draws volatility bands whose width follows the ATR percentile. T
This Pine Script indicator plots daily support and resistance levels for XAUUSD gold at 08:00 SGT on weekdays. It finds resistance by backward searching 5-minute candles until the 07:55 candle close exceeds the 07:50 high, then repeats for support when the clo
Grimmchu is a Pine Script strategy designed to trade within specified session time windows and days of the week. It combines session timing constraints with momentum filters based on a configurable relative strength index. Users can customize the active tradin
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.