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 overlay indicator projects higher-timeframe open, high, and low statistics onto the price chart. It can show one or two selected timeframes, with an optional New York midnight session start, and uses a lookback window to draw average and median levels. Pl
This indicator plots a least-squares moving average on the price chart. It fits a linear regression to the selected source over a chosen lookback and draws that value as a single line. The length setting changes how many bars enter the regression, the offset s
Ruckard Noro TrendRibbon A006 is a trend-following strategy based on Noro's trend ribbon concept using moving averages. It features customizable moving average types, lengths, and price sources to generate entry and exit signals, displayed directly on the pric
This ex-post diagnostic indicator identifies confirmed pivot highs and lows, classifying subsequent price action into four outcome types: Snapback, Grind, Fake/Pullback, or Chop. It evaluates forward performance across an ATR-based risk window, factoring in Wa
An overlay indicator that constructs footprint volume profiles and value areas directly on the price chart using lower-timeframe detailed volume data. It segregates buy and sell volume across automatic or fixed tick-sized price rows, identifying the Point of C
CRT State Engine v7 is an overlay indicator that tracks institutional CRT session states on the price chart. It analyzes market structure, detects buy-side and sell-side liquidity pools, and plots a volume profile with point of control and value area. Optional
Indicatorv5SMC / ICT / price actionSessions & time
This indicator overlays moving average clouds, swing pivots, and trade signals directly on the price chart. It combines a fast and slow moving average cloud with a long-term trend filter moving average. Trade signals are triggered by moving average crossovers
This indicator detects recursive reversal chart patterns directly on the price chart using multi-level zigzag swings. It identifies structures including double taps, triple taps, cup and handle formations, and head and shoulders patterns. Optional secondary co
This indicator plots the Tillson T3 moving average on the price chart. It calculates the line from six cascaded exponential moving averages whose coefficients depend on a volume factor. Users choose the source series, the smoothing period, and the volume facto
Calculates real-time price and technical metrics and displays them in a table on the top right of the chart. It calculates the closing price, opening price, bar gain or loss, 50-period EMA, 14-period RSI, and percentage bar change. The table updates only on th
A test strategy from a reference corpus that checks the highest contract count a strategy has held. At the start of each hour it adds one long unit, up to a pyramiding limit of ten, but stops adding once the all-time maximum held reaches five contracts. Every
This strategy enters a long position when the bar close is above its open. It has no inputs, no exit rules, and no stop loss or take profit. Position size is plotted in a separate pane rather than on the price chart. The script is a minimal parser fixture, so
DEPV2 Veri 1 aggregates OHLCV data from 20 cryptocurrency symbols on the 15-minute timeframe and plots volume plus open high low close values for each symbol on a single chart pane. The first symbol uses the chart's native columns while the remaining symbols a
This indicator projects cycle paths and Fibonacci-scaled moving averages directly on the price chart based on two user-selected reference points in time and price. It computes a base moving average period from the elapsed bars between anchors and derives a sec
A price-chart indicator that draws horizontal Gann price levels derived from a square-number sequence, with optional price labels. Settings control line colour and width, label size, how many levels appear around a reference price, the number of interval divis
Overlay indicator of single-bar detections drawn on the price chart. Groups include relative volume tiers named SAAB, Kratos, Grand Slam and MOAB, regular-at-time volume tiers, an all-time high volume marker, momentum LONG and SHORT tiers, high-volume ranks fr
A strategy on the price chart that scores each setup from 0 to 4 using volume against its average, higher-timeframe EMA trend, bar movement against an ATR noise level and fast versus slow EMA alignment. Long entries are linked to a fast EMA crossing above the
A Pine Script v5 indicator that draws bullish and bearish order block zones on the price chart with volume information inside each zone. Swing length, maximum ATR multiplier, zone count, zone combining and invalidation by close or wick control how zones appear
An indicator that draws a long or short position box on the price chart from an entry point, a take profit level and a stop loss level that the user clicks on the chart. It sizes the trade from an account size, a risk amount given as a percentage or in account
This strategy plots a close VWAP and percentage-offset high and low VWAP bands on the price chart. It enters long when the bar opens above the high band, optionally only on a green candle, and short when the bar opens below the low band, optionally only on a r
This indicator marks historical ARK Invest purchases and sales for the CND ticker on the price chart. It places dated labels below bars for buys and above bars for sells, using green and red label styles. An ETF setting switches between ARKF, ARKW, and a combi
This script demonstrates a custom Pine Script implementation of a fourth-order Infinite Impulse Response filter function based on AmiBroker AFL. It uses this mathematical framework to construct multiple smoothing calculations, including an IIR-calculated Expon
This indicator implements Gardner and McKenzie's damped linear trend forecasting model directly on the price chart. It calculates smoothed level and trend components using exponential smoothing parameters and applies a damping factor to flatten long-term proje
This overlay strategy enters a long position when the relative strength index rises by more than five points, stays below 70, and a 9-period exponential moving average crosses above a 50-period average, provided the bar is on or after 1 January 2020. It closes
This indicator calculates Ehlers directional movement with a Hann window and plots it in a separate pane. It extracts classic plus and minus directional movement from bar highs and lows, smooths their difference with an exponential moving average, then applies
This indicator draws a custom bar series from the chart symbol's open, high, low, and close prices using plotbar. It does not calculate a derived oscillator, generate buy or sell signals, or apply filters. There are no user inputs, so the plotted bars always m
The Pretty Good Oscillator calculates the distance between the selected price source and its simple moving average, normalized by the Average True Range over a specified period. It renders as an oscillator line in a separate pane alongside a zero line and thre
This indicator plots two independent time-based retracement levels on the price chart. Each level records a session opening price, then draws a percentage retracement target during a later session window in America/New_York time. Users can set both session tim
The MA Cross indicator calculates and plots two Simple Moving Averages (SMA) directly on the main price chart. It tracks a short-term moving average and a long-term moving average to help identify trend directions and potential crossover points. When the short
Ruckard Noro TrendRibbon E003 is a trend-following strategy that combines Noro TrendRibbon directional bias with a high and low moving average price corridor. It enters long positions when the trend ribbon is bullish and price drops below the lower corridor th
The RJ-Wave Fibonacci Validator tracks and validates wave structures using Fibonacci retracement and extension levels directly on the price chart. It identifies impulse movements and evaluates pullback candidates using configurable pivot sensitivity and Fibona
This indicator plots a volume-weighted RSI as a histogram in a separate pane. It weights positive and negative price changes by volume, smooths those values, and scales the result between -1 and +1. Histogram bars change color by zone: strong or weak bull abov
CRT State Engine CURSOR is an overlay indicator that implements Candle Range Theory (CRT) models alongside Smart Money Concepts (SMC) frameworks. It tracks session ranges including Asia, London, New York, and CBDR, while identifying Direction of Liquidity (DOL
Indicatorv5SMC / ICT / price actionSessions & time
This strategy plots dual moving average clouds and a long-term trend filter directly on the price chart alongside Heikin Ashi data. It triggers long and short entry signals using moving average alignments and pivot trendline levels, with optional filtering via
This indicator applies the Relative Strength Index to a selected volume series: On Balance Volume, Accumulation/Distribution, Elder’s Force Index, Money Flow Index, or Price Volume Trend. It draws that RSI in a separate pane and smooths it with least squares.
This indicator calculates a session-based time-weighted average price as the simple average of a chosen source series since the last reset. It plots that value as a yellow line on the price chart. The source defaults to the average of open, high, low, and clos
This indicator calculates an Average True Range (ATR) trailing stop level based on market structure swing points and outputs dynamic alert syntax formatted for the AutoView trading automation extension. Users select long or short direction, lookback length, an
This strategy evaluates a multi-timeframe moving average setup by requesting a 6-period exponential moving average computed on a monthly calendar timeframe. It operates directly on the price chart and triggers trade executions when the current bar close crosse
This strategy probes TradingView risk-limit behavior in a separate pane. It cycles timed entries in a chosen direction, then closes and cancels orders on a fixed bar schedule. A mode input activates one of drawdown cash, drawdown percent, intraday cash loss, i
This indicator plots OHLCV data for multiple cryptocurrency symbols on a single chart time axis in a separate pane. It uses request.security to fetch 15-minute open, high, low, close, and volume values for symbols such as BINANCE:BCHUSDT.P, BINANCE:ATOMUSDT.P,
This indicator projects cyclical wave paths and moving averages directly onto the price chart based on two user-defined reference anchor points. It derives a base cycle length from the time difference between the anchors and scales a second period using the 1.
A liquidity indicator on the price chart. It detects pivot highs and lows with an adaptive or manual length and groups pivots that sit within an ATR-based tolerance into pools, shown as zones with a strength bar. Strength decays over time and can be volume-wei
A volume pattern indicator that draws toggleable signals on the price chart, extended with sub-minute and sub-two-minute thresholds that change the high-volume lookback and displacement floor on very short chart intervals. Signals include relative volume patte
A strategy that changes its entry type with volatility and uses a 200 EMA as a direction gate, long above and short below. When ATR is below its average it fades moves beyond the prior range. When ATR is expanding it takes range breakouts that close with a str
This indicator draws a zig-zag of swing highs and lows on the price chart using depth, deviation and backstep settings, and labels each leg with its bar count and optional price. It can mark higher highs and lower lows and shade upswings and downswings. The Re
An indicator on the price chart that draws daily and weekly separator lines and marks the previous day's high and low. Daily separators carry a label with the weekday, date and time, weekly separators are drawn separately, and the previous day levels appear as
A Pine v4 strategy that plots a 21-period exponential moving average of the close in orange on the price chart. It goes long when a green candle opens above the average and short when a red candle opens below it, closing each position when the opposite signal
This overlay indicator marks historical ARK Invest purchases and sales of CRBU on the price chart. When the ETF setting is ALL, it places green buy labels below bars and red sell labels above bars on fixed calendar dates, each tagged X1. The ETF input also off
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.