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.
Apex Protocol v3.3 is a Smart Money Concepts trading indicator that plots order blocks, fair value gaps, BOS and MSS markers, auto Fibonacci levels, area of interest zones and external internal structures on the price chart. It supports multiple killzone sessi
This indicator plots 50, 100 and 150 period exponential moving averages on the price chart and measures each average slope in degrees. It places a long label when the averages stack upward, all slopes exceed the angle limit, and price closes back above the sho
This trend-following strategy calculates the Supertrend indicator using average bar prices and Average True Range (ATR). It plots a color-coded trend line directly on the price chart along with buy and sell shapes. The strategy enters a long position when the
This indicator plots entry signals directly on the price chart by combining Directional Movement Index (DMI) and Moving Average Convergence Divergence (MACD) indicators. It offers two distinct signal logic modes that trigger when DMI and MACD confirm each othe
VitAlgo is an overlay technical indicator suite that provides signal generation and visual trend tracking tools directly on the main price chart. It integrates multiple analysis modules, including customizable Sensitivity-based signal modes, Smart Trail, Rever
This indicator plots horizontal lines, boxes and text labels on the price chart to mark key trading sessions. It displays daily session ranges, Silver Bullet, LN, NY, PM, London, Prev AM, Lunch and PM sessions using New York timezone calculations. The script c
This indicator calculates LazyBear's WaveTrend oscillator to identify overbought and oversold market conditions. It computes an exponential moving average channel on typical price (HLC3) to generate the primary oscillator line and a 4-period simple moving aver
Deviation Trend Profile overlays moving average-based deviation bands on the price chart and plots a price distribution profile for the active trend. It calculates standard deviation levels using ATR and simple moving averages, identifying trend changes via sl
The MAMA indicator calculates the MESA Adaptive Moving Average and Filtered Adaptive Moving Average using Ehlers' MESA algorithm. It plots both lines in yellow directly on the price chart as a smoothed trend indicator. Main settings include the source series a
The SVIX Bollinger Bands Strategy V2 uses Heikin-Ashi price calculations to plot customized Bollinger Bands and Keltner Channels directly on the price chart. It triggers a long entry when the Heikin-Ashi close crosses above the lower Bollinger Band. The strate
This overlay indicator marks hammer and shooting star candles on the price chart. It places a Fibonacci level inside each candle and treats a hammer as a body sitting above the upper level and a shooting star as a body sitting below the lower level. Optional f
This indicator identifies bullish Change of Character (CHoCH) structure shifts directly on the price chart using pivot swing points. It tracks swing highs and lows governed by configurable left and right lengths and maximum swing age. The script highlights CHo
A strategy that builds a score from minus three to plus three using RSI against 50, price against an EMA, and price against the Bollinger mid line. It enters long when the score reaches two or more and short when it reaches minus two or lower. Positions close
P_fmt_number_literals is a test indicator that evaluates number literal syntax and formatting in Pine Script v6, including scientific notation, standard decimals, integers, and hexadecimal color definitions. It calculates a combination of variable assignments
An overlay indicator for opening range breakouts on Nasdaq futures. The range can start automatically at the session open or use a custom window, with an adjustable length in minutes. A breakout by close or wick produces a signal with a stop based on ATR, the
Calculates and visualizes multi-symbol signals across four distinct metric categories: trend, momentum, volatility, and volume. It tracks up to 20 cryptocurrency pairs simultaneously, supporting signal combination modes like single-method execution, simultaneo
Draws a moving price level that bounces between the highest high and lowest low of a rolling window, 50 bars by default, with the range midline and a mirrored close line on the price chart. Buy and sell labels appear when price crosses the mirrored line or the
A Bollinger Band breakout strategy with Spanish-language settings. It goes long when price closes above the upper band and short when it closes below the lower band, limited to a configurable date range and a cooldown of bars between trades. Three take-profit
A bearish-side detection indicator for higher timeframe charts that draws numbered signals on the price chart. It uses relative volume tiers, a standard deviation displacement test, a VWMA with ATR Supertrend latch, pocket pivots and fair value gap engines. A
A machine learning strategy using k-nearest neighbours with a Lorentzian distance. Four normalised features, RSI, price rate of change, CCI and volume rate of change, are stored in a rolling matrix with a label for whether the next close was higher. Each bar i
A Pine Script v5 indicator in a separate pane, the fourth revision of a Hurst spectral oscillator. It filters the hl2 price with bandpass filters for cycles from 1 day to 18 years and plots the cycle waves, with an optional composite line. Each cycle has its o
This indicator plots horizontal support and resistance levels on the price chart based on pivot highs and lows. The levels update as new pivots form using user-defined left and right bar settings. It signals potential breaks when the close crosses the level ac
Plots the Price Volume Trend in a separate pane: a running total of volume weighted by the percentage change in close. Rising values show volume accompanying upward closes, falling values the reverse. It has no inputs and no signals. The script raises an error
A separate-pane indicator that builds On Balance Volume and subtracts its 20-period EMA to form an oscillator, drawn as a coloured line and area around a zero line. It detects regular bullish and bearish divergence between price pivots and the oscillator, labe
A Pine v4 strategy that redraws candles in a separate pane and plots VWAP with one percent bands. It goes long on a green non-doji candle and short on a red one, unless the move runs against the opposite position and the close sits inside the band. Inputs set
This indicator plots Price Volume Trend in a separate pane and compares it with an optional smoothed signal. The signal is an SMA or EMA of the PVT series, with a default length of 21 and a selectable price source. When filling is on, the ribbon between the tw
This strategy plots multi-timeframe Bollinger Bands on the price chart and trades mean reversion around them. It enters long when the close is below the higher-timeframe lower band and, if enabled, short when the close is above the upper band. An optional high
This indicator plots historical ARK Invest purchase and sale transactions directly on the price chart using chart labels. It visualizes historical buy and sell records for the underlying stock, marking trade dates and fund activity. The input setting allows th
This Pine Script v5 library exports named SI scientific prefix factors as constant functions. Each function returns a power of ten, from Yotta through Yocto, covering large prefixes such as Giga and Mega and small prefixes such as Milli, Micro, and Nano. It ca
This overlay indicator looks for regular price divergences against a set of oscillators, using pivot highs and lows. It compares those pivots with RSI, MACD and its histogram, stochastic, CCI, momentum, OBV, a directional oscillator, volume-weighted MACD, Chai
Session Filter Template highlights major global trading sessions including Asia, London, New York, and a user-defined custom session directly on the price chart. It visualizes active sessions using background color fills, tracks high and low price levels for e
This indicator computes a composite oscillator by min-max normalizing and averaging several technical factors, including the Relative Strength Index, Commodity Channel Index, Center of Gravity, and a sigmoid-transformed price slope. It also evaluates the compo
This strategy executes breakout trades based on historical high and low entry bands and manages risk using adaptive ATR trailing stop-loss levels. It enters long positions when the close breaks above the lookback band and short positions when it breaks below.
Calculates the Pearson correlation coefficient between price data and a linear time index over a customizable lookback period. It measures linear trend strength and direction, outputting values bounded between -1.0 and +1.0. The script uses an optimized increm
Bands is a Pine Script v4 overlay indicator from a TradingView arrays example. It stores a base level equal to the lowest average OHLC of the prior 50 bars, taken 10 bars back, in a one-element array. A function multiplies that stored value by one and then by
The Inertia oscillator measures trend deviation by calculating the distance between the current price and a linear regression line endpoint. It computes a linear regression fit across the specified lookback period and subtracts the projected line value from th
This indicator plots the New York 5-minute and 15-minute Opening Ranges (ORB) directly on the main price chart. It projects opening range boxes along with midlines and median extensions to identify intraday key levels. Additionally, it can draw custom lower ti
This indicator identifies and labels bearish engulfing candlestick patterns directly on the price chart. It checks for a small bullish candle followed by a large bearish candle that engulfs the previous body. Pattern detection can be filtered using moving aver
This trend-following strategy executes long and short trades based on Donchian channel breakouts directly on the price chart. It enters positions when price breaks a multi-bar high or low and exits on opposing Donchian channel band crosses. Risk management inc
This strategy trades long and short on the price chart using a multi-timeframe TradingLatino setup. It requires EMA 10 to cross or sit above or below EMA 55 on the one-hour, four-hour, and daily charts, together with a positive ADX slope, a directional monitor
This indicator plots an anchored MIDAS support and resistance curve from launch-anchored volume-weighted price on the price chart. It adds two configurable volume-weighted standard-deviation, ATR, or hybrid bands and a topfinder or bottomfinder accelerated exh
This price-chart overlay compares market effort with price result and does not generate buy or sell signals. Effort combines current volume divided by a moving average of volume with true range divided by ATR. Result uses absolute net progress over a lookback
Apex Protocol - The SMC Engine is a comprehensive Smart Money Concepts indicator that overlays key market structure levels directly on the main price chart. It calculates internal and external market structures (BOS and MSS), Order Blocks, Fair Value Gaps (FVG
This strategy evaluates bullish trend strength by calculating three Exponential Moving Averages (50, 100, and 150 periods) alongside their average slope angles in degrees. It plots the EMAs on the price chart and triggers long entries when the moving averages
This strategy trades momentum breakouts based on the alignment of three exponential moving averages. It enters a long position when all three EMAs align in ascending order and enters short when they align in descending order. Positions are managed with ATR-bas
This indicator calculates dual trend filters by combining a custom SuperTrend with a Commodity Channel Index ATR trailing stop. The SuperTrend component utilizes customizable moving average types, including Hull, Exponential, and Simple Moving Averages. When p
Xpert Algo is a multi-feature technical indicator that plots trend-following and contrarian trade signals on the price chart. It calculates adaptive entry signals, trend clouds, reversal dots, and market structure swing points. The indicator features dynamic t
Order-Block Detector identifies bullish and bearish order blocks based on candle direction changes and draws them on the price chart. It also detects fair value gaps (FVGs) and generates signals for potential entries when these levels are respected. The script
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.