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.
Seykota Alt 22 is a trend-following strategy combining 55-bar Donchian channel breakouts for entries with a Parabolic SAR trailing stop for exits. Position sizing and initial stop-loss levels are determined using Average True Range (ATR). The strategy supports
This strategy detects momentum divergences based on shifts between color states of the Squeeze Momentum indicator. It enters long positions when lower price lows form alongside higher oscillator values, and enters short positions on higher price highs with low
This indicator overlays buy and sell signals on the price chart by combining multi-period Stochastic oscillators with a Traders Dynamic Index (TDI). It computes three Stochastic oscillators across different lengths and checks if all lengths concurrently reach
This indicator identifies and plots price compression zones directly on the price chart using multi-module scoring. It measures ATR compression, ADX chop levels, boundary touches, volume dry-up, and historical pivot levels to identify consolidation areas and s
This indicator applies Singular Spectrum Analysis (SSA) to decompose price data into distinct structural components, including the underlying trend, long-term periodic cycles, short-term periodic cycles, and high-frequency noise. Using a configurable window le
The TSI Strategy - Eterna MCP calculates the True Strength Index using double-smoothed momentum and an exponential moving average signal line. It opens long positions on bullish signal line crossovers occurring below zero or in oversold territory, and short po
|AG| Project is a Pine Script v4 indicator that draws four mini charts in a separate pane. It requests open, high, low, and close for user-selected symbols, rescales those values with a stochastic calculation, and plots an exponential moving average of each sc
This strategy combines moving averages, ATR volatility bands and ADX trend strength on the price chart. It calculates ADX from price data and adjusts the ATR multiplier dynamically based on whether ADX is rising or falling. Long and short entries are controlle
This indicator plots a fast and a slow exponential moving average on the price chart and fills the space between them as an EMA cloud. The fill is green when the fast average is at or above the slow average and red when it is below. Arrows mark bullish crossov
This indicator builds a channel from a Hull moving average of the source and an ATR scaled by a band multiplier, then normalizes price inside that channel into a 0 to 100 oscillator. It smooths the result with a weighted moving average and plots the line in a
This indicator calculates and plots multi-timeframe Bollinger Bands directly on the price chart. Users can select from various moving average types for the basis line, such as SMA, EMA, WMA, HMA, RMA, VWMA, or ALMA, alongside customizable basis length, standar
This indicator constructs detailed intraday volume profiles directly on the price chart using 1-minute lower timeframe data. It tracks daily price sessions based on UTC boundaries and splits each day's range into user-defined price steps. By aggregating lower
The RSI Trend Strategy combines a short-period Relative Strength Index with 30-period and 100-period Simple Moving Averages to identify trading opportunities on the main price chart. Long positions trigger when a 5-period RSI drops below 30 while price sits ab
This indicator plots previous-day high, low, and midpoint on the price chart, with optional previous-week and previous-month highs and lows. It fills the high-low ranges, places right-edge labels, and shows a status badge for distance to the daily extremes and
This indicator implements an ICT Silver Bullet trading framework directly on the price chart. It detects and visualizes Fair Value Gaps (FVG), Market Structure Shifts (MSS), Order Blocks, Breaker Blocks, Breaks of Structure (BOS), and Equal Highs/Lows across d
This diagnostic indicator computes a native footprint volume profile alongside broadening macro wall projections directly on the price chart. It aggregates 1-minute footprint data over user-specified start and end timestamps, calculates value area levels, and
This indicator estimates a kernel density of the selected source over a chosen bar window and plots the price where that density peaks, the mode. Weights can emphasize recent bars by sequence and inferred volume. The user chooses the kernel, window anchor, sou
Cerebr Bloop is a momentum oscillator calculated by applying Heikin-Ashi candle logic to a zero-centered Relative Strength Index (RSI). Displayed in a separate pane, it visualizes smoothed RSI momentum candles alongside customizable overbought and oversold thr
This strategy tests a short-only trend-following system based on 50-period and 200-period exponential moving averages. It enters short when the fast EMA is below the slow EMA, the close crosses below the fast EMA within a defined lookback period, and a bearish
This strategy overlays the price chart and switches among RSI-2 mean reversion, SuperTrend, MACD crossover, triple EMA, Bollinger Bands, or a combined multi-indicator mode. It enters from the selected signals and exits with percentage take-profit and stop-loss
This indicator calculates the Relative Strength Index alongside a smoothing moving average and multiple length tiers based on a fixed timeframe. It draws in a separate pane below the price chart, plotting tiered RSI levels and an optional multi-length average.
This strategy builds the opening range high and low during the first configurable minutes of the New York regular session, then enters on a close break of that range. A long triggers when price crosses above the range high while flat; a short triggers on a cro
This indicator calculates the Relative Strength Index from a chosen source and length and plots it in a separate pane. It draws overbought, oversold, and midline levels, optionally shades the background when RSI is outside those levels, and marks crosses into
This strategy plots Bollinger Bands on the price chart and trades when a candle-zone price sits beyond a band. It enters long when a point a set percentage up from the low is below the lower band. Short entries are optional and off by default; otherwise it clo
USTA combines multiple trend-following mechanisms on the price chart, primarily integrating SuperTrend and AlphaTrend overlay components. It calculates ATR-based volatility trailing lines to determine overall market direction, displaying visual buy and sell si
Snagprofit WMA MA is a multi-timeframe trend indicator overlaid on the price chart. It calculates a weighted moving average across 1-minute, 5-minute, 15-minute, and 1-hour timeframes alongside a simple moving average on the active chart. Momentum shapes signa
P-Dipmix Kripto is a multi-indicator oscillator and screener designed to detect dip opportunities in cryptocurrency markets. It calculates WaveTrend oscillator lines, Bollinger Bands, the Awesome Oscillator, and the Accelerator Oscillator to evaluate oversold
This indicator plots five exponential moving averages of lengths 3, 13, 34, 55 and 144 on the price chart. Fast lines are red and orange, slower lines are blue and purple, and a black 144-period average acts as a trend filter. It draws buy and sell labels when
Canca's Sweeps n Raids is a price-chart indicator that marks bullish and bearish liquidity sweeps of prior swing highs and lows. It scans historical bars for swing levels that price has swept, using either a wick-only or regular close condition, then draws a l
TradingView Debug Example is an overlay indicator that calculates RSI, a simple moving average, and MACD, then marks buy and sell shapes on the price chart. A buy appears when RSI is below 30 and price is above the SMA; a sell appears when RSI is above 70 and
This indicator identifies and plots market structure and smart money concept elements directly on the price chart. It detects swing structure, internal structure, liquidity sweeps, and strong or weak highs and lows. It also visualizes order blocks with buying
The BTMM Stop Hunt Detection indicator identifies liquidity sweeps, stop hunts, and market maker manipulation zones directly on the main price chart. It tracks key liquidity levels, Optimal Trade Entry (OTE) zones, and premium or discount areas based on swing
This indicator computes and plots the Slow Stochastic momentum oscillator in a separate chart pane. It calculates the raw stochastic percentage based on price location within the highest high and lowest low range over a user-defined period, smoothing the resul
This indicator calculates the price-to-earnings (P/E) and price-to-earnings growth (PEG) ratios for a target stock and for QQQ. It fetches earnings per share basic one year growth and PEG ratio data using financial API calls, then derives P/E as close divided
This indicator calculates and plots the relative strength of major forex currencies and optional commodities in a separate pane. It fetches price data across configurable broker feeds to calculate relative performance over a selected resolution or lookback per
This indicator calculates the rate of change of a chosen source over a set number of bars and plots it as columns in a separate pane, colored green above zero and red below. A horizontal zero line marks the sign change. Optional markers appear on the price cha
This indicator identifies volatility compression and momentum direction in a separate pane. It calculates Bollinger Bands against three tiers of Keltner Channels to detect low, medium, and high squeeze states, displaying them as color-coded dots along the zero
This indicator plots Fibonacci retracement zones from recent swing highs and lows on the price chart. It detects bullish and bearish market structure from a configurable pivot period and draws Break of Structure lines. A swing tracker updates Fibonacci levels
This trading strategy combines Stochastic, RSI, ATR, and multiple Exponential Moving Averages (20, 50, and 200) alongside Fibonacci zones to generate trading signals for gold (XAUUSD). It supports flexible execution modes including scalp and confirm entries, c
This Pine Script v4 strategy draws in a separate pane. It calculates a WaveTrend oscillator from typical price, plots the fast and slow lines, their difference, and crossover markers against two overbought and two overold levels. It also builds Bollinger and K
This indicator displays company fundamentals in a separate pane. It plots one selected series, such as EPS, revenue, margins, cash flow, assets, equity, or ratios, across a chosen number of fiscal quarters or years. Four optional tables cover profitability and
This indicator calculates the Chaikin Accumulation/Distribution Oscillator in a separate pane. It builds a cumulative accumulation/distribution line from the money-flow multiplier of high, low, close and volume, then subtracts a long exponential moving average
This indicator tracks directional market movement directly on the price chart using adaptive curved bands. It measures volatility via a smoothed high-low bar range, setting an initial boundary when trend flips occur. As the trend persists across bars, the scri
PivotPointsDailyTraditional is a Pine Script library that provides calculation functions for standard daily pivot points. It imports daily high, low, and close values to compute the main pivot point along with multiple resistance and support levels. The librar
My Super Fancy Script is an introductory Pine Script indicator that plots the daily closing price on the main price chart alongside a visual text label on the most recent bar. Designed as a basic tutorial example, it demonstrates how to configure indicator ove
This indicator overlays higher-timeframe candles and traditional pivot levels on the price chart. It draws open-close or high-low ranges with optional wicks, thickness, filled negative candles, and bar coloring. History can show only new candles, all candles,
This indicator builds a volume profile over a chosen number of recent bars and draws it on the price chart. It splits each bar's range into price bins, assigns a share of volume to the bins the bar overlaps, and separates that volume into buy and sell using th
This strategy detects pivot highs and lows on the chart to form range levels. It tracks recent pivot points and calculates a price range around their average adjusted by the difference percentage. Horizontal lines are drawn at potential break levels. The strat
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.