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 Pine Script v4 indicator, a fourth variant of the range finder, that locates a price range over a 500-bar period and draws baselines at 0, 0.5 and 1 on the price chart, with Fibonacci-style extension lines projected from it. Lines extend to the right by defa
This indicator plots historical ARK Invest buy and sell labels for Honeywell on the price chart. It uses a fixed list of dated trades and places green buy or red sell labels below or above bars, including a same-day count when more than one ARK ETF trades the
This indicator is a Pine Script v4 test of array access together with a boolean input. On the first bar it fills an integer array with repeated index values from 0 through 50. After bar 50, when the close is above the open, it walks that array and assigns stor
This overlay strategy plots a two-timeframe Ichimoku setup on the price chart, with Tenkan, Kijun, Chikou, and Kumo from a base higher timeframe and an optional highest-timeframe cloud. It allows two entries in the same direction and uses ATR-based trailing st
This indicator calculates Vitali Apirine's Higher Highs and Lower Lows Stochastics (HHLLS). It evaluates conditional stochastic formulas that trigger only on bars establishing higher highs or lower lows, then smooths both values using an Exponential Moving Ave
This indicator draws a single text label on the price chart. It runs only while the current bar is realtime and places the label ten bars before the latest bar, above that bar, with the fixed text Label. It requests ten bars of history for the time series thro
A multi-indicator consensus strategy that computes combined rating signals from various moving averages and technical oscillators, including RSI, Stochastic, MACD, CCI, ADX, and Ichimoku Cloud. Depending on user configuration, trades are triggered by overall c
Trailering F008 is a reversal strategy and execution template designed to send automated trade signals to Zignaly copy-trading platforms. It generates entry conditions using custom moving average envelopes known as Curie closing lines, aiming to optimize posit
This overlay indicator identifies swing high and swing low pivot points using customizable detection lengths. Upon pivot confirmation, it draws visual wick boxes spanning from the bar's extreme price to its candle body open or close, along with optional extend
This strategy builds a New York and London opening range from user-set start and end times and stores the session high and low on the price chart. After the range, it flags a bullish or bearish liquidity grab when price trades beyond the prior range and closes
This indicator overlays a Hull Moving Average and three Exponential Moving Averages on the price chart while monitoring signals from MACD, Stochastic Oscillator, and Time Segmented Volume. It tracks trend direction changes, MACD histogram color shifts from bri
The Ichimoku Oscillator indicator calculates conversion line, base line, leading span, and lagging span using specified periods. It plots these values in a separate pane along with an optional EMA overlay. Main settings allow customization of line lengths, ATR
This strategy places two stop orders at 14:45 when flat: a long stop slightly above the close and a short stop slightly below it. Whichever stop fills first opens the position. At 18:15 it closes any open position. Quantity is fixed at one, with zero commissio
The Morindok Dynamic Gann Spiral Ratio indicator computes time and price angles derived from a dynamic N value based on volatility and a selected price source. It calculates a ratio between these angles and generates buy or sell signals when the ratio approach
A price-chart indicator that classifies the market as up, down or neutral using an adaptive baseline whose smoothing speed follows price efficiency. A weighted score combines price location against ATR zones, baseline slope, momentum and position within the re
Overlay indicator that gathers around thirty signal modules into one study on the price chart. Modules include White Flag momentum, OW overlap and super signals, FC and E3 clusters, a Red Plus marker, RVOL windows, a Fauna X-in-Y pattern, a Mango swing bottom,
A strategy on the price chart that builds a four-point audit score from a higher-timeframe EMA, fast versus slow moving average, volume against its average, and bar movement against ATR. When the score reaches a minimum, it logs a message and moves through enu
A Pine Script v4 indicator, a fifth variant of the range finder, that locates a price range over a 500-bar period and draws baselines at 0, 0.5 and 1 on the price chart, with Fibonacci-style extension lines projected from it. Lines extend to the right by defau
HPQ Tracker visualizes historical buy and sell transactions made by ARK Invest for HP Inc. directly on the price chart. The indicator creates labels on specific timestamps corresponding to trade dates, indicating whether ARK ETFs bought or sold shares and show
This indicator is a small array test rather than a trading tool. It creates an integer array, pushes the values 0, 1, na, and 2, then converts the array to text. It draws that text in a label at the current bar in a separate pane and deletes the previous bar's
This strategy identifies trend-following entries using a triple exponential moving average alignment and ATR-based exits on the main price chart. Long signals trigger when the fast EMA is above the medium EMA and medium is above slow, accompanied by a close ab
This indicator plots the highest value of a chosen source over a rolling lookback. It maintains a monotonic deque and a circular buffer so each bar updates the window maximum. The period input sets the lookback length and the source input selects the series, d
This indicator stores the closing price in a variable named price and replaces that value with the high-low midpoint whenever the midpoint is greater than the close. It then plots the resulting series in a separate pane. The script has no user inputs, so nothi
This script identifies the Three Black Crows bearish reversal candlestick pattern directly on the price chart. It checks for three consecutive long red candles that open within the previous body, close consecutively lower, and feature minimal lower shadows com
Trailering G010 is a Pine Script v5 strategy that draws on the price chart. It uses Curie closing lines from simple moving averages of an ohlc4 source, with separate high and low lengths, to run long-only and short-only logic at the same time, including an opt
Target Radar is a multi-factor forecasting indicator that plots projection bands, forward boxes, and dynamic target zones directly on the main price chart. It calculates a forecast score by combining z-scores for trend, momentum, volume pressure, and volatilit
ORB ON SLVRBL is a strategy that combines Opening Range Breakouts with ICT Silver Bullet concepts, including Fair Value Gaps (FVG) and Market Structure Shifts (MSS). It identifies breakouts based on candle closes or wicks within designated session windows. Tra
This strategy combines MACD histogram crossovers with a dual moving average cloud to generate long and short trading signals directly on the price chart. It evaluates histogram crossings relative to zero while filtering entries using overall MACD positioning a
This indicator builds a custom multi-symbol index and draws it in a separate pane as candles, bars, or a line. A holdings table can list the selected symbols and sort them by symbol name, percent change, last price, or market cap, in ascending or descending or
This Pine Script strategy draws on the price chart with overlay=true. It enters long and short positions using stop orders at the current close price at specific session times of 4:45 and 16:45. It then closes all open positions at 8:15 and 20:15. The strategy
Morindok Footprint Pro v2 is an order flow indicator that calculates market microstructure statistics across seven distinct analysis layers, including delta trend, cumulative volume delta divergence, absorption, imbalance cascades, point of control migration,
A price-chart indicator that estimates trend with a smoothed velocity and a projected vector, then draws an ATR-based trailing line coloured by direction. Up and down signals appear on trend changes. Optional dynamic take-profit markers use momentum and a Z-sc
Overlay indicator that merges forty-six numbered buy and sell triggers into one study on the price chart. The changelog describes combinations of unified combo, Napalm and Charge engines, Heavy Weapon and Floor patterns, UU, UUU and UUUU streaks, an Omega mark
This strategy detects value area rejections on the price chart. It calculates a fair value midpoint using a simple moving average of length 50 and ATR-based bands. Bullish and bearish rejection signals trigger when price crosses the value area boundaries and c
A Pine Script v4 indicator, credited to LuxAlgo, that draws horizontal levels on the price chart at prices where volume pivot highs formed. It finds pivots in volume over a set length, stores the closing price at each, and shows a chosen number of recent level
HUBS-tracker visualizes historical purchase and sale transactions made by ARK Invest funds for HubSpot stock. It draws buy and sell labels directly onto the price chart at specific historical dates based on recorded fund transaction data. Users can filter trad
This indicator initializes a float array with a configurable length of elements. It applies a simple PRNG function to generate values and appends the array contents to a string. The string is displayed in a label placed on the price chart at the bottom. The ma
This Pine Script strategy identifies potential Buy Today, Sell Tomorrow (BTST) opportunities based on price action and volume patterns. It calculates a 20-period simple moving average of volume and checks for three consecutive bullish candles with higher highs
This indicator calculates the Hilbert Transform Dominant Cycle Phase based on John Ehlers' cycle analytics and the TA-Lib algorithm implementation. It processes price through a four-tap weighted smoothing filter, a Hilbert finite impulse response detrender, in
This is a simple Pine Script v4 indicator that overlays elements directly onto the main price chart. It demonstrates basic label creation by placing a label at bar_index plus 100 positioned at the current high price level. No calculations or calculations are p
This indicator identifies and highlights the Three White Soldiers bullish reversal candlestick pattern on the price chart. It checks for three consecutive long-bodied bullish candles where each candle opens within the previous candle's body, closes above the p
Trailering H005 is a trading strategy template designed for automated position management and execution via Zignaly webhooks, originally tested on BTCUSDT on the 1-hour timeframe. It evaluates price excursion across configurable sub-strategy lookback periods t
This indicator calculates relative volume (RVOL) by comparing the current bar volume against historical volume for the exact same minute of the day over a set lookback period. It stores intraday time-slot data to compute a baseline historical average. The resu
This overlay indicator marks an opening-range breakout for a chosen session and combines it with fair value gaps, market structure shifts, order blocks, and optional liquidity sweeps. Buy and sell signals depend on the selected execution type, close or wick br
This strategy calculates a Volume-Weighted Moving Average Convergence Divergence (VWMA MACD) and its histogram average to generate trade signals in a separate pane. It enters long positions when the MACD histogram crosses above its simple moving average and sh
This indicator builds a lower-timeframe view in a separate pane. It reconstructs price as traditional candles or as Heikin-Ashi, Kagi, Point and Figure, Renko, or Line Break, and plots a price-versus-volume graph colored from early to late data. Three selectab
A test strategy from a reference corpus that checks whether the order in which two stop entries are submitted changes which one fills. At 02:45 it submits a long stop 0.2 percent above the close, then a short stop 0.2 percent below. Any open position is closed
This indicator calculates W.D. Gann Square of 9 support and resistance levels based on cardinal (90°, 180°, 270°, 360°) and ordinal (45°, 135°, 225°, 315°) polar angles. It anchors calculations to recent swing pivots, highs, lows, or a user-defined manual pric
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.