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 validation strategy tests TradingView order execution behavior and position sizing during stop-entry position flips when pyramiding is set to 2. It opens long entries at specific times of day (0:15 and 6:15), sets opposite stop orders paired with exit com
This overlay indicator builds a geometric grid of parallel price levels from powers of a small phi-style ratio. The grid expansion input widens or tightens that spacing. On historical and confirmed bars it counts touches, bullish and bearish closes, volume, an
An overlay always-in flip indicator where a buy closes a short and enters long, and a sell does the reverse. It uses a zero-lag EMA trail sized by ATR, smoothed price, an ADX regime read with trending and sideways thresholds, RSI and Stochastic RSI checks, and
Detects opening drive moves on the price chart by combining displacement, swing structure and return-to-level checks into named bull and bear signals. Inputs set sensitivity, swing length, the displacement deviation length and multiplier, and return percentage
This strategy evaluates multi-factor breakout confluence using a customized scoring system on the price chart. It checks Minervini-style Volatility Contraction Pattern trend templates, TTM squeeze volatility compression, volume dry-up with OBV accumulation, mo
INTU-tracker visualizes historical trade records from ARK Invest for Intuit (INTU) directly on the price chart. It creates buy and sell labels at specific timestamps based on historical trading data from ARK's actively managed ETFs. Users can filter display la
This strategy overlays the price chart and compares seven RSI readings, each calculated on its own timeframe from one minute through one day. The user chooses a long or short bot. Entries depend on every RSI meeting a threshold, while a percentage take profit
This overlay indicator plots Jurik Adaptive Envelope Bands around price. It calculates a Jurik moving average as the middle line and builds upper and lower bands from that filter’s adaptive envelope. A ten-bar window tracks local deviation from the bands, and
This Pine Script indicator extracts and plots the hour integer from a fixed UNIX timestamp using a specified timezone offset. Created as a minimal documentation example for Pine Script v4 time functions, it calculates the hour value corresponding to GMT+1 for
This indicator plots a Volatility Stop on the price chart. It trails a stop from the running high or low of the source, offset by the average true range times a multiplier, and flips the trail when the source crosses the stop. An uptrend colors the stop one wa
Trailering S002 is a long-only automated strategy template built for Zignaly webhook execution. It evaluates historical price stats and maximum excursion to trigger long trades, dynamically adjusting capital allocation based on active signal conditions. The sc
This indicator identifies Smart Money Concepts (SMC) structure directly on the price chart. It detects and plots internal and swing market structures, including Break of Structure (BOS) and Change of Character (CHoCH). The script highlights order blocks, stron
This indicator calculates the Money Flow Index (MFI) and detects regular and hidden divergences between price action and the MFI oscillator in a separate pane. It identifies high and low pivot points using a configurable lookback length and evaluates trade con
This indicator applies a k-Nearest Neighbors machine learning algorithm to calculate price predictions and direction on the main chart. It analyzes sequences of historical price data points to locate similar patterns and averages nearest neighbor matches. User
A test strategy from a reference corpus that re-issues a pending stop entry every bar. When the 8-period EMA is above the 21-period EMA it places a buy stop at the previous bar high and cancels the sell stop, and otherwise it places a sell stop at the previous
This overlay indicator anchors to the close of a user-chosen time and draws one hundred horizontal lines, fifty above and fifty below that price. Spacing uses the golden ratio scaled by a step multiplier. After the anchor, it counts how often each line is touc
An overlay indicator that uses a wide SuperTrend-style trail with a zero-lag bias to print always-in buy and sell flips while ignoring small moves. Settings set the trail factor, price smoothing, minimum bars between flips, a break buffer and a minimum adverse
Overlay indicator for detecting extreme opening-drive anomalies, drawing swing-based zones and many combined markers. Version three adds a conditional gate requiring a relative volume, Grand Slam, unified combo, all-time high volume, HCT or large displacement
This strategy draws on the price chart and filters directional signals with four optional checks. It compares a fast exponential moving average with a slower one, requires volume above its average when the volume audit is on, and aligns close with a higher-tim
IPOB-tracker is an overlay indicator that visualizes historical stock purchase and sale transactions made by ARK Invest funds. It plots chart labels directly on the price chart at specific historical timestamps, marking buy actions with green upward labels bel
This strategy calculates an Adaptive Hull Moving Average (HMA+) that dynamically adjusts its period based on market volatility measured by fast and slow ATR indicators. It uses slope angle calculations to categorize market conditions into trending, consolidati
The Jurik Composite Fractal Behavior indicator computes a weighted average of efficient trend lengths as a composite fractal behavior value, also known as the trend duration index. It processes a user-specified source series using a max lookback length and cal
This indicator colors the background of its pane with a nested ternary that shows Pine line wrapping. It paints red when the bar open is above the close, lime when the high is above the previous bar high, and blue when the low is below the previous bar low. An
Volty Expan Close Strategy is a volatility expansion breakout strategy that enters long or short positions when price exceeds the closing price by a specified ATR multiple. It calculates an ATR-based volatility threshold using a simple moving average of true r
This automated trading strategy operates in a separate pane and is designed to integrate with Zignaly copy-trading and profit-sharing webhooks. It focuses on long positions, adjusting position size based on the number of triggered sub-strategy consensus condit
This Smart Money Concepts indicator highlights market structure and institutional levels on the main price chart. It detects internal and swing structure breaks (BOS) and character changes (CHoCH), along with strong or weak high and low points. The script iden
The MFI Divergences Lower v2 indicator calculates the Money Flow Index (MFI) and plots it in a separate pane along with overbought, oversold, and middle threshold lines. It identifies regular and hidden bullish or bearish divergences by comparing price swing p
This indicator assists with trade planning and position risk management by projecting trade parameters directly onto the price chart. It draws an interactive entry box defined by time and price boundaries, up to five take-profit levels with percentage allocati
A test strategy from a reference corpus that checks order flipping with stop entries set so far from price that they always fill at the next bar open. At 08:00 it places a short stop entry and at 14:00 a long one, closing the opposite position each time, so ea
The Parallel Price Universe Oscillator calculates detrended price movements relative to two derived moving averages weighted by fast and slow Fibonacci ratios. It extracts smoothed angular slopes using arctangent functions, aggregates them into a unified momen
An overlay indicator that prints buy and sell flips from an adaptive SuperTrend-style trail whose factor widens in chop and tightens in strong trends, based on ADX. A flip needs enough bars since the last one, a break buffer and a minimum adverse move, plus a
Detects opening drive moves on the price chart by combining displacement, swing structure and return-to-level checks into named bull and bear signals. Inputs set sensitivity, swing length, the displacement deviation length and multiplier, and return percentage
TnSovereign Fakeout Filter V6 is a trend-following strategy designed to reduce false breakouts by evaluating entries against a four-layer scoring system. It checks fast and slow EMA crossovers alongside volume surges, higher-timeframe trend alignment, and ATR
This indicator overlays historical ARK Invest transaction records for ITRN directly onto the price chart. It plots visual labels at precise bar timestamps to denote historical buy or sell actions, along with transaction counts across relevant ARK ETFs. Users c
Inspired by Linda Raschke's strategy for T-note futures, this script identifies extended trends where price remains on one side of a 5-period SMA for more than eight consecutive bars. It enters long on the first pullback below the SMA following an eight-bar bu
DMX plots the Jurik Directional Movement Index in a separate pane. The indicator computes a smoothed version of the directional movement index using Jurik smoothing applied to the ADX components derived from true range, up and down directional moves. It applie
This strategy plots on the price chart and compares a 14-period simple moving average of close with a 28-period simple moving average. It opens a long when the faster average crosses above the slower average and opens a short when the faster average crosses be
This indicator plots a volume oscillator in a separate pane. It calculates exponential moving averages of volume over short and long lengths, then expresses their difference as a percentage of the longer average. A horizontal zero line marks when the short ave
Trailering U002 is an automated strategy designed to connect TradingView signals directly to the Zignaly copy-trading platform. It executes long positions guided by historical statistical advice and price excursion calculations, adjusting position sizing accor
The indicator plots Smart Money Concepts market structure directly on the price chart. It detects real-time internal and swing structure breakouts, including Break of Structure and Change of Character, along with strong and weak high or low levels. It identifi
MicroQuant Momentum is a momentum oscillator indicator that calculates the True Strength Index fast and slow components. It plots the TSI Fast, TSI Slow, and their difference histogram in a separate pane. Buy and sell signals trigger on crossovers of the fast
This overlay indicator enables manual identification and analysis of harmonic patterns on the price chart using interactive point selection. Users select five anchor points (X, A, B, C, and D) directly on the chart via interactive input prompts. The script eva
A test strategy from a reference corpus that repeats an order-flipping check with processing of orders at bar close switched on. At 08:00 it places a short stop entry and at 14:00 a long one, with stops set so far away that they fill at the next open, and clos
Parallel Universe Price Forecast is an indicator that detrends price using moving averages to extract slopes and angles from two universes weighted by fast and slow factors. It normalizes the combined angle into a symmetrical oscillator and projects the price
An overlay indicator that prints always-in buy and sell flips from a volume-weighted, pre-smoothed ATR trail that widens when ADX signals chop. An auto mode scales the multiplier, bar spacing, travel distance and higher timeframe to the chart timeframe. Flips
Detects opening drive moves on the price chart by combining displacement, swing structure and return-to-level checks into named bull and bear signals. Inputs set sensitivity, swing length, the displacement deviation length and multiplier, and return percentage
This overlay strategy enters when a fair-value gap is larger than a minimum ATR multiple, volume exceeds 1.5 times its 20-bar average, and path efficiency over 20 bars clears a threshold. Longs also require price below a lookback high, and shorts require price
This indicator plots historical ARK Invest purchase and sale dates for JD as labels on the price chart. Green labels below bars mark buys and red labels above bars mark sells, with a count of how many ARK ETFs traded the stock that day. The ETF setting filters
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.