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 strategy detects pivot highs and lows on the chart to form range levels. It tracks recent pivot points and calculates a price range around their average adjusted by the difference percentage. Horizontal lines are drawn at potential break levels. The strat
A heavy strategy and chart overlay that combines an ATR-based trend core, three lookback layers, volume profile consolidation zones, harmonic, classical and candlestick pattern engines, and forecast cones with a feedback learning rate and Bayesian lookback. Op
A table overlay on the price chart, short title Fundamentals, that shows company financial data pulled with TradingView's financial data requests. It lists diluted earnings per share, total revenue and operating margin for recent quarters or years, with quarte
Martingale Lab is an educational indicator that tests position sizing models, including flat stake, martingale, and anti-martingale, on simulated trade results from an EMA crossover strategy. It logs trade returns in R-multiples using ATR-based stop losses and
SMC HTF Confluence calculates multi-timeframe market structure and setup scores using confirmed higher-timeframe data. It evaluates exponential moving averages for trend alignment, RSI for divergences, ATR for volatility regimes, and Bollinger Band Squeezes re
This validation strategy monitors price crosses against a dynamic level derived from a 20-period simple moving average drawn as a line object. It enters a long position when the closing price crosses over the line level and exits when price crosses under it. A
This indicator plots the sum of several time variables using Pine Script v6. It defines multiple timestamp values with different formats and timezones, then applies functions including dayofweek, hour, minute, second, year, month, dayofmonth, weekofyear, timef
This strategy opens a long position when the chart time is exactly 08:30 UTC and closes that long when the time is exactly 08:00 UTC. It draws on the price chart and uses no user inputs. The main behavior is a clock-based daily cycle rather than an indicator s
A strategy for 5-minute charts that turns a triggered retest of a broken 15-minute delta level into orders. Entry needs a new trigger, a flat position, a cooldown module allowing the trade and, by default, agreement with the 4-hour bias. The stop sits at the z
This indicator ranks five user-selected symbols in a separate pane. On a chosen signal timeframe it computes a 12-bar log return, an ATR percentage, a directional state, and a score equal to direction times return divided by ATR. An RSI reading above 40 gates
A long-only strategy that uses an EMA ribbon built from the 144-period EMA of highs and lows as the trend filter, with an optional rising-slope requirement and a set of Fibonacci-length EMAs for alignment. After a shallow pullback into the ribbon it stores the
An overlay indicator that records the high and low of a configurable opening range, starting at a set market open hour and minute, and projects the average, sub-levels and second and third support and resistance lines from it. It also plots 9 and 21 EMAs with
This indicator calculates multi-bar fractals alongside a central moving average and two reference-anchored mirror moving averages directly on the price chart. It provides options to run lengths in automatic, manual, or dynamic fractal-distance modes, with symm
An oscillator in a separate pane, adapted from an earlier oscillator under an open license. It smooths price with a selectable method such as DEMA, adds a signal line and marks crosses with dots. Overbought and oversold zones default to 80 and 20. Optional lay
Plots volume order block zones on the price chart with three tiers of asymmetric buy and sell volume signals and a signal cooldown. High-volume proximity markers fire when the rolling highest-volume candle and a tier signal occur within a set number of bars of
TeleNexus Sovereign Calendar Swing V6 is a time-driven trading strategy that executes trades based strictly on day-of-week seasonality. It opens a long or short position on a user-defined entry weekday when flat and closes open positions on a designated exit w
A strategy version of the paint bar setup. It detects candles whose low is above the high from two bars earlier, or the mirror case, and trades only inside up to three user-set sessions on weekdays. Inputs set the take profit multiplier, stop offset in bars, a
A separate-pane version of a three-part flow dashboard. A smart-money catalyst score tracks candles with unusually large body-weighted volume and keeps a decaying memory of them. A retail validation index divides average volume by the entropy of recent up and
This indicator draws Busby-style pivot levels on the price chart for XSP, using a selectable MES or ES futures symbol. It stores New York premarket highs, lows, and closes on the chart and on a 15-minute MES series, then builds an opening-range box after the r
A separate-pane indicator that measures how flat an exponential moving average is. It takes the absolute one-bar change of the EMA and divides it by the ATR, then plots that ratio as a histogram. Bars are teal when the ratio is below a flat threshold and orang
RS vs KLCI 63d measures the relative strength of a stock compared to a benchmark index over a customizable lookback period, defaulting to 63 trading days against the FTSE Malaysia KLCI. It calculates the difference between the stock's percentage return and the
Quad Rotation 9 3 is the fast pane of a four-stochastic setup with periods 9, 14, 40 and 60. It plots the 9/3 stochastic K and D lines in a separate pane with oversold and overbought zones, K/D cross triangles inside extreme zones, and a convergence band weigh
Corpus Array Stats Helpers is an experimental Pine Script strategy designed to test array manipulation and moving average functions. During the first 50 bars, the script collects close prices into an array to perform statistical calculations like sum, average,
Scores smart money confluence across a four-layer timeframe stack on the price chart. A 4-hour EMA bias and premium or discount zone set direction, 1-hour structure confirms it, 15-minute order blocks and liquidity sweeps define the entry zone, and a chart-tim
A strategy that looks for spring and upthrust patterns inside a consolidation range. A spring is a high-volume bar that dips below the recent range low, closes back above it and closes up. An upthrust is the mirrored move above the range high. A range counts a
This compact indicator labels Elliott Wave counts on the price chart. It runs a zig-zag at several depths, chooses the depth that gives the best fit, and applies Elliott Wave rules, with a strict mode that forces an A-B-C count when the rules break. A correcti
An indicator on the price chart that marks the highest high and lowest low among the bars currently visible on screen. On the last bar it scans up to 5,000 bars back within the visible time range, then draws a dashed red line and label at the high and a dashed
A strategy that reads an external oscillator, called the thermometer, through a source input and trades a chosen signal symbol, SPX by default, according to high and low temperature thresholds of 75 and 25. Buy and sell modes include buying high and selling lo
This strategy combines exponential moving averages, a Stochastic oscillator, and Squeeze Momentum calculations to identify long trade entries on the price chart. It enters long positions when the Stochastic K line crosses above D in oversold territory while pr
This indicator combines Volume Weighted Bands, a Keltner Hull Suite, High Volume Nodes, and Supply and Demand Zones directly on the main price chart. It calculates a smoothed volume-weighted trend line surrounded by ATR-based bands to define market bias and hi
The Double EMA Crossover strategy plots a fast 9-period EMA and slow 21-period EMA on the price chart with a 200-period trend EMA filter. It generates long signals on golden crosses when price exceeds the trend EMA and MACD is bullish, and short signals on dea
A Pine v5 script that detects unusually large candles on the price chart. A mega bar is one whose high-to-low range exceeds a multiple of its recent average range, optionally with volume above a multiple of average volume. Bullish bars get a green triangle and
A price-chart overlay that draws a static set of options gamma levels for SPX (the S&P 500 index) expiring in thirty days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated 2026-02-03, produced offline fro
A simple overlay indicator that marks rejection blocks from three-candle price structure. A bullish block is a down candle whose low is lower than the candles on both sides, and a bearish block is an up candle whose high is higher than both neighbours. Each bl
This strategy captures the first bar of each new day as an opening range and plots those high and low levels on the price chart. It enters one long position if price trades above the range high, or one short if price trades below the range low, then blocks fur
This indicator identifies market trends and projects dynamic price targets directly on the price chart. It calculates high and low bands using simple moving averages offset by a smoothed Average True Range buffer. Bullish and bearish trend signals trigger when
A chart-overlay indicator that extends a LuxAlgo-style smart money concepts framework with trend and momentum filters. It marks internal and swing break of structure and change of character, order blocks, equal highs and lows, fair value gaps, premium and disc
An indicator on the price chart that draws a ribbon of fifteen EMAs of the high, from 9 to 51 bars, coloured by whether the close is above each one when the energy option is on. A Supertrend variant based on a Keltner-style channel range, scaled by a sensitivi
An experimental strategy that buys a fixed BTC size once a day at 00:45 exchange time within a start and end date window, building a dollar-cost-averaged long. When price is below the average cost, it adds a short hedge sized to match the open long. A selector
An indicator in a separate pane that works on the average of open and close and an anchored volume weighted average price. The VWAP and optional standard deviation bands are drawn on the price chart, with a settable multiplier and anchor period, daily by defau
This indicator calculates the MACD histogram from the fast and slow exponential moving averages. It plots the MACD line, signal line, and a histogram divergence column on a separate pane. The histogram divergence uses green columns for positive changes and red
This educational script demonstrates how to evaluate bar states in Pine Script v5. It retrieves the status of the current price bar using the built-in barstate.isconfirmed variable to check if a bar has officially closed. When the bar state is confirmed, it pl
This script calculates a custom oscillator using the Commodity Channel Index of a Relative Strength Index. It identifies key technical events including overbought or oversold exits and large momentum moves over four bars. Users can filter signals by direction,
A Pine v4 indicator that plots volume multiplied by VWAP as columns, coloured by where the bar midpoint sits against Bollinger Bands on price. Blue columns mean the midpoint is between the middle and upper band, red between the middle and lower band, and a pal
The Fisher Standardize Index indicator calculates a standardized price between the lowest and highest values over a user-specified period, then applies the Fisher transformation formula to produce an oscillator value. It plots the resulting fisher_trans in a s
A smoothed moving average drawn on the price chart, a renamed copy of the SAMA script. Prices are clamped inside a narrow standard deviation channel around a short weighted average, then passed through two weighted moving averages, one with an adjustable lengt
A Pine v4 strategy that plots a 28-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
The Adaptive RSI Moving Average (ARSIMA) is an overlay indicator that dynamically adjusts its smoothing factor based on the Relative Strength Index (RSI). When the RSI moves toward extreme overbought or oversold conditions, the smoothing factor increases to ma
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.