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 compares floating-point arithmetic on the price chart and shows the results in a one-cell table at the top right on the last bar. It tests whether selected literal sums and price differences compare equal or greater, and on one fixed timestamp i
ADX+ is an enhanced Average Directional Index (ADX) indicator that measures trend strength in a separate pane. It calculates directional movement and true range to produce the standard ADX line, with optional smoothing via a moving average (EMA or SMA). The li
DeltaFlow Volume Profile builds a price-bin volume profile over a user-set lookback and draws it on the price chart to the right of the last bar. It splits each bin into bullish and bearish volume by comparing close with open, then scales bar length to the bin
The Stocks - Inside Day Strategy identifies inside day candlestick patterns on the main price chart. It enters a long position when a bar's high is below the previous high and its low is above the previous low. The strategy exits positions when a short-period
This indicator detects unusual spikes in trading volume to identify potential institutional activity. It calculates a simple moving average of volume over a specified length and flags bars where volume exceeds this average multiplied by a user-defined threshol
This indicator draws Parabolic SAR setup and trigger signals directly on the price chart. Using an external trend-following routine, it evaluates directional conditions and flags transitional market phases. Yellow triangle shapes plot above or below bars to in
This indicator combines six trading tools into a single chart overlay to optimize indicator limits. It calculates Bollinger Bands, projects weekend price boundaries, plots market structure elements like order blocks, breaker blocks, and MSB lines, marks New Yo
Calculates an accumulated benchmark metric by repeatedly executing a user-defined function within a loop on every bar. On each iteration, the script updates a persistent variable using modified closing price values, summing the output to plot in a separate pan
This script serves as a syntax testing and grammar reference tool for Pine Script development in Visual Studio Code. It demonstrates broad language syntax including compiler annotations, user-defined types, exported enums, and variable declarations. The script
This overlay indicator marks buy and sell signals on the price chart from RSI, stochastic, and optional Awesome Oscillator filters. It compares recent price and RSI pivots for regular divergences and, when enabled, hidden divergences, then combines those check
This indicator implements John F. Ehlers' Adaptive Relative Strength Index in a separate chart pane. It filters price data using a high-pass filter and a SuperSmoother filter, then applies Pearson correlation across multiple lags to extract the dominant cycle
RSI Technique - V identifies rapid reversal pivot points based on the Relative Strength Index. It monitors an RSI oscillator, configurable via the lookback setting, looking for sharp V-shaped spikes around extreme zones. A bullish signal appears when the indic
This overlay indicator marks hourly and last-hour macro windows, automatic fair value gaps, and AM/PM session fair value gaps on the price chart. It can color macro candles, draw bracket guides and labels, and add dividers, timestamps, and day labels. Optional
Indicatorv6SMC / ICT / price actionSessions & time
This indicator detects bullish and bearish harami candlestick patterns on the price chart. A bullish harami requires a down candle followed by an up candle whose body sits inside the prior body; a bearish harami reverses that relationship. When perfect harami
This strategy fades Bollinger Band extremes using the close. It enters short when price crosses above the upper band and the 14-period RSI is above 70, and enters long when price crosses below the lower band and RSI is below 30. It closes half of an open short
This indicator scans a pasted list of symbols, up to the first forty, and shows long and short momentum setups in a configurable table in a separate pane. It compares RSI with an SMA of RSI using Break Flip or Break Continuous scanning. Optional filters cover
This indicator plots four exponential moving averages of the close, with fixed lengths of 5, 15, 30, and 60, directly on the price chart. It marks a bullish alignment when the three faster averages are all above the 60-period average, and a bearish alignment w
The ORB Pro indicator calculates and plots Opening Range Breakout levels, stop-loss and take-profit zones, signal labels, and an status dashboard on the price chart. Built on academic research, it evaluates trades using an opening-candle direction filter, open
This indicator plots key reference levels directly on the price chart, focusing on Smart Money Concepts (SMC) and intraday trading benchmarks. It identifies and displays previous session ranges, previous opens, and daily and weekly reference points, including
This overlay indicator visualizes Smart Money Concepts on the price chart. It marks buy-side and sell-side liquidity from selectable 1-minute, 5-minute, 15-minute, and 1-hour swings, then recolors levels after they are swept. It also plots market structure shi
This trend-following strategy implements classic Turtle Trading rules based on Ed Seykota's breakout principles. It uses 55-period Donchian Channels for trade entries and 10-period channels for exits, combined with ATR-based volatility sizing. Risk per unit is
This indicator calculates trend direction and market zones using exponential moving average crossovers combined with a secondary baseline. It identifies various bull and bear conditions based on the relative position of price and the fast and slow averages, co
This indicator overlays Bollinger Bands and smoothed HAMA candles directly on the main price chart. It calculates standard Bollinger Bands using a simple moving average and standard deviation, alongside custom smoothed open, high, low, and close values. A cent
This indicator plots a smoothed order-flow pressure series in a separate pane. It builds a weighted blend of volume delta, close location within the bar range, and body size relative to ATR, then applies a z-score, winsorizing, and an EMA. Relative volume, reg
Equity Intraday Analyst is a comprehensive intraday overlay indicator for US equities and ETFs. It evaluates multi-EMA ribbons, session-anchored VWAP bands, OBV trends, momentum oscillators, TTM Squeeze, and optional market breadth indicators like NYSE TICK an
HLevel is a Pine Script v5 utility library designed to manage horizontal price levels for cryptocurrency charts. It defines custom types for pivots and levels, along with methods to initialize, add, track, and expire price levels based on pivot high and pivot
PMA Strategy Idea evaluates trend alignment using three exponential moving averages calculated on the typical price. It enters long when all three EMAs are concurrently rising over one bar, closing the position as soon as any EMA stops rising. Conversely, shor
This indicator plots an exponential moving average of the closing price on the price chart. A single length input, defaulting to 14, sets the EMA period. There are no signals, entries, exits, stops, or position sizing. The plotted series is drawn as a blue lin
This script identifies and visualizes bullish and bearish order blocks on the price chart. It detects low-volatility consolidation ranges followed by breakout moves accompanied by high trading volume. Users can select between Simple, Relative, or Weighted volu
This strategy overlays the price chart to trade DAX futures during European market hours. It calculates exponential and simple moving averages, RSI, MACD, Bollinger Bands, ATR, and realized volatility to simulate VIX levels. Trades execute when session time fi
BitLa Microtendencias B008 is a Pine Script v5 strategy drawn on the price chart. It enters long when a 10-period EMA crosses over a 120-period EMA and enters short on the opposite cross. Optional percentage stop loss is on by default, while take profit, trail
The Fullscope Index is a momentum oscillator that computes values from RMI, RSI or CCI as its core base strategy. It offers linear or logarithmic scalar gradation along with adjustable ratio and maximum scalar settings to control the output scale. The indicato
This strategy plots on the price chart and looks for three-candle fair value gaps and inverse gaps on Bitcoin. It enters long when a wide enough bullish gap appears in an uptrend with RSI above 30 and volume above its average, and short on the opposite bearish
This indicator tracks swing highs and lows to detect market structure closures, specifically monitoring C2 and C3 candle closure progressions based on the TTrades Next Candle Model. It draws active, swept, and closed-through swing lines directly on the price c
This educational indicator demonstrates the Pine Script execution model by tracking execution counts across chart bars. It calculates bar-by-bar price data including open, high, low, close, and volume, alongside basic moving averages and an oscillator. The scr
This indicator plots a Market Profile on the price chart using time-price opportunity letters or symbols. It marks the point of control, a configurable value area, and the initial balance, and it can highlight a volume-profile point of control and session VWAP
Market Trend is an overlay indicator that identifies market direction and key price levels. It calculates a Relative Strength Index with Bollinger Bands to construct a 20-step color gradient reflecting momentum shifts. The script incorporates exponential movin
This strategy replays an externally generated trade log directly onto the price chart. It executes orders using hardcoded strategy order and close calls keyed to specific Unix millisecond timestamps on the 2-hour bar closes. Each order specifies fixed sizing a
This strategy estimates the Moon's age from the chart date and marks full-moon and new-moon transitions with circles on the price chart. It optionally fills the background navy or gray on those bars. It opens a long after a new-moon signal and a short after a
This indicator plots a smoothed Z-score of cumulative volume delta in a separate pane, showing whether buying or selling pressure is dominant and when the reading enters extreme zones. It marks spot accumulation, climax or exhaustion, and pivot-based price-vol
Calculates upper and lower Donchian Channel bands over a customizable lookback length and plots them on the main price chart. At a specified exchange hour, the strategy places a long buy stop order at the upper Donchian Channel level. Unfilled pending orders a
Quant is a Pine Script utility library providing custom functions for quantitative analysis. It includes an exported function to calculate the percentage change between consecutive values of any float series. Additionally, it offers a function to calculate mar
Bte Acc is a chart indicator form of the PineCoders Backtesting and Trading Engine. It seeks an entry trigger from a main or alternate entry method, then checks trade direction, filters, date range, ATR readiness, and remaining capital before filling on the ne
Calculates and plots a multi-component indicator in a separate pane, integrating Relative Strength Index (RSI), Average Directional Index (ADX), Directional Movement Index (DMI), and price Bollinger Bands. It detects institutional movement conditions by testin
This indicator estimates crypto liquidation levels by tracking Open Interest changes from Binance USDT perpetual contracts. It calculates Open Interest delta spikes relative to a simple moving average and projects estimated liquidation price levels across mult
This indicator tracks macro market cycle phases by evaluating moving average interactions and a modified Mayer Multiple threshold. It monitors crossovers between a double 350-period simple moving average and a 111-period SMA for cycle-out conditions, alongside
This indicator calculates and plots two exponential moving averages of closing prices directly on the price chart. It detects crossovers between the shorter and longer periods and generates an alert condition whenever the two moving averages intersect. Users c
The Adaptive Cycle Detector estimates the dominant market cycle from WaveTrend oscillator zero-crossing frequency and applies smoothing to recommend adaptive indicator lengths. Fast markets with frequent crossings receive shorter lengths while slow swing marke
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.