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 21: Breakeven Lock is a trend-following breakout strategy based on Donchian channels and ATR position sizing. It enters positions on Donchian channel breakouts and scales in up to multiple units as price moves in favor. The system moves stop losses
Strategy identifying market entries based on Squeeze Momentum Indicator divergence patterns and exiting via Curie Closing Lines moving averages. It evaluates color transitions in the squeeze momentum histogram against price movements to detect divergence condi
This indicator aggregates spot trading volume for Bitcoin across multiple cryptocurrency exchanges using security calls. It plots total spot volume or exchange volume differences in a separate pane to display market-wide activity. Users can filter the volume d
TPCharts Market Structure indicator marks key swing points and patterns on the price chart. It identifies equal highs and lows using two-bar patterns, minor highs and lows with three-bar patterns, and major highs and lows with five-bar patterns. Plot shapes in
This strategy plots an ATR Chandelier trailing stop on the price chart and tracks a directional trend state. It marks confirmed flips, weak body-rejected flips, and wick traps, and colors bars as price nears warning or danger zones around the flip trigger. Ada
This indicator analyzes market structure and identifies key swing highs, swing lows, and consolidation ranges across multiple timeframes. It automatically adapts swing lengths and consolidation thresholds according to chosen profiles for scalping, intraday, or
This strategy plots a Stochastic RSI oscillator in a separate pane. It computes RSI of close, then a stochastic of that RSI, and smooths the result into K and D lines. It enters long when K crosses above D below the oversold level and short when K crosses belo
4th Dimension Currency Strength is a multi-currency indicator that calculates and displays relative currency strength across major Forex pairs and Gold. It uses security calls to fetch multi-symbol prices from selected brokers like OANDA or FOREXCOM, comparing
MA+ATR+ADX+PP Strategy combines configurable moving averages with an ADX-modulated ATR volatility band to generate trading signals directly on the price chart. It allows traders to select between eight moving average types, including SMA, EMA, Hull, and Tilson
This indicator evaluates trend strength by calculating the Average Directional Index (ADX) and plotting colored dots at a fixed horizontal level in a separate pane. The color of each dot dynamically indicates whether the trend is weak, medium, or strong based
This indicator overlays a dynamic moving average on the price chart by adjusting a baseline mean with a pulse acceleration factor. It measures rate of change differences between price and the moving average, scaling the displacement by volatility via standard
This strategy identifies Wyckoff consolidation ranges directly on the price chart to trade potential spring and upthrust events. It calculates highest highs and lowest lows over a customizable lookback period, filtering setups by average volume spikes and ATR
Watermark is a chart overlay that prints custom title and subtitle text, the symbol with its timeframe, and the current date and time in a chosen timezone. It maps hourly periods to readable labels and appends chart type names such as Renko, Kagi, or Point and
This indicator combines the Relative Strength Index (RSI) and Money Flow Index (MFI) into a single hybrid oscillator in a separate pane. Users can adjust the relative weighting of price momentum and volume flow to create a custom hybrid value bounded between 0
This long-only strategy identifies pullback opportunities within a broader trend. It enters a long position when the closing price trades above a long-term exponential moving average while falling below a short-term exponential moving average. Once in a trade,
Capital41 Order Block Detector v2 identifies institutional supply and demand zones on the price chart. It defines bullish order blocks as the last bearish candle prior to a strong upward impulse move and bearish order blocks as the last bullish candle before a
This indicator draws Wednesday high, low, and open lines and daily midnight high and low lines on the price chart. It captures the first Wednesdays of each month around 20:30 SAST, shifting the clock for US daylight saving time, and plots the high and low of t
This indicator plots broadening-wall range boxes and an approximate fixed-range volume profile directly on the price chart using macro swing logic. It detects macro pivot structures to identify broadening walls and reconstructs historical volume distribution a
This indicator performs spectral analysis on price data using a Weighted Discrete Fourier Transform (WDFT). It processes price inputs through customizable windowing functions, such as an Extended Beta kernel, to extract dominant market frequencies. Depending o
Cerebr is a multi-timeframe trend-following strategy that combines Hull Moving Average (HMA), SuperTrend, and MACD indicators to generate trading signals. Users can individually toggle each component and adjust parameters such as the higher timeframe HMA perio
This strategy plots a short and a long exponential moving average on the price chart and opens long trades only. A long entry needs a recent close cross above the short average, a bullish candle still above it, and the short average above the long average. It
This price-chart indicator is described as producing buy and sell signals with strength levels from 1 to 4. It calculates RSI, MACD, SuperTrend, and fast, medium, and slow EMAs. Labels, background color, and an information table can be shown or hidden, and a m
This indicator calculates the Relative Strength Index and a smoothed moving average across a selectable fixed timeframe, plotting the values in a separate pane. Users can customize the timeframe, RSI length, calculation source, moving average smoothing type, a
This indicator calculates eight Exponential Moving Averages with Fibonacci lengths ranging from 8 to 233. It plots all eight EMAs on the price chart and dynamically colors them green during bullish alignment (when the fastest EMAs are stacked sequentially abov
MyLabUtils is an open-source utility library for Pine Script v5 that provides reusable functions for custom indicator and strategy development. It includes an example calculation for a normalized Relative Strength Index, which scales standard values relative t
This strategy plots three exponential moving averages (fast 10, slow 20, trend 100) on the price chart. It generates long entries when the fast EMA crosses above the slow EMA in the last 10 bars and satisfies additional trend EMA conditions on close and low. S
UMURLU-5-8-13-X overlays three exponential moving averages (5, 8, and 13 EMAs) alongside dual Bollinger Bands with narrow and wide standard deviation multipliers directly on the price chart. It generates visual signal labels on the chart when the 5-period EMA
The SnagProfit Trending 1H indicator calculates EMA crossovers using periods 5, 10 and 20 on the close price to identify bullish and bearish trend conditions. It draws a table panel on the chart that labels long trend status as OK CALL or NO CALL. The indicato
This indicator evaluates multiple technical trading strategies and strategy combinations across various timeframes to identify the top-performing setup for Turkish stocks and other assets. Depending on whether the active chart is intraday or higher timeframe,
This indicator plots five exponential moving averages of Fibonacci lengths on the price chart: 3 and 13 as fast lines, 34 and 55 as slow lines, and 144 as a filter. They are drawn in red, orange, blue, purple, and black. The visible code also counts how many o
This indicator estimates buying and selling volume from each bar's range and candle body, then plots both in a separate pane. It splits the bar's volume using the upper wick, lower wick, and body size, assigning more of the volume to the close direction. Buy v
This indicator is a debugging example that overlays a scaled close-to-SMA ratio on the price chart. It divides close by a simple moving average, takes the natural log, and multiplies by 100. A triangle appears below the bar when that scaled value exceeds the t
This indicator plots a composite momentum oscillator in a separate pane, featuring a hyper wave calculation and an integrated smart money flow oscillator. It detects both bullish and bearish divergences using an adjustable sensitivity threshold. Additional vis
Identifies continuation trade setups based on Beat the Market Maker (BTMM) second-leg patterns directly on the price chart. It defines trading session phases across Asian, London, and New York sessions, filters impulse legs using fast and slow exponential movi
Indicatorv5SMC / ICT / price actionSessions & time
This Pine Script v5 indicator detects spinning top candlestick patterns by comparing the real body size to user-defined min and max thresholds as percentages of the candle's range. It signals bullish spinning tops with a white arrow below the bar and bearish o
This strategy is written for NVIDIA stock and overlays the price chart. It opens a long when price crosses above an exponential moving average, the rate of change is positive, and the average true range exceeds the previous daily ATR. It closes that long when
The Currency Strength Chart calculates and plots relative currency strength values for major forex currencies in a separate pane. Calculations can be based on raw price action, RSI, CCI, or Stochastic oscillators, smoothed with various moving average types. Us
Calculates and plots Naked Point of Control levels directly on the price chart using order flow footprint data. It identifies the price row with the highest traded volume either per individual candle or aggregated across an entire session. Levels extend horizo
Sniper is a custom oscillator indicator that derives Bullish and Bearish lines from close and open prices using a smoothing factor based on trend length. These lines feed into a signal line calculated as EMA over the signal length. The indicator plots Bullish
This Pine Script library exports multiple technical analysis functions for use in TradingView indicators and strategies. It includes helper functions for moving averages such as dema, ema2, t3, tema, and rma2, oscillators like macd2, stochFull, stochRsi, and p
This strategy overlays XAUUSD and combines stochastic, RSI, and three EMAs with an ATR-based risk model. Confirm entries can require an M15 overbought or oversold trigger plus a rejection wick, and they stay near Fibonacci or EMA zones without chasing far from
This strategy combines a WaveTrend oscillator with a dual-period RSI differential to generate trend-following entries in a separate indicator pane. It calculates fast and slow RSI values, alongside WaveTrend channel lines and overbought or oversold thresholds.
EMD Trend calculates trend direction by combining moving averages with an exponential moving deviation filter. Rendered as an overlay on the main price chart, it generates visual long and short trend signals and offers optional bar coloring. It includes an on-
This indicator calculates the Bollinger Band Width Percentile (BBWP) by evaluating the current Bollinger Band width against historical values over a designated lookback window. It plots the resulting percentile curve in a separate pane with a percentage scale.
This strategy enters trades based on consecutive candle directions relative to a chosen moving average filter. It triggers a long entry when both the current and previous candles close bullish above the moving average, and a short entry when both candles close
Quick Stats displays key trading metrics directly on the price chart overlay. It calculates Mark Minervini's Trend Template rules by scoring moving average alignments (50, 150, and 200 SMAs), 200 SMA slope, and 52-week high/low proximities. Additionally, it co
MomentumSignals is a Pine Script utility library designed to detect changes in momentum across technical series such as moving averages and oscillator histograms. It offers helper functions that quantize directional changes, detect reversal signals, and comput
This indicator calculates an Exponential Moving Average (EMA) and plots it directly on the main price chart. It dynamically changes the color of the EMA line based on the relationship between the current closing price and the moving average value. The line tur
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.