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 momentum reversal strategy that uses the WaveTrend oscillator. A long is considered when the fast line crosses above its signal line from below the oversold level, and a short on a cross down from above the overbought level. A custom free energy and fractal
This overlay indicator marks historical ARK Invest activity on the KSPI price chart. When the ETF input is ALL, it places green labels below bars on fixed dates from late 2020 through early 2021, each reading Buy X1. The only setting chooses ALL or ARKF; the v
This overlay strategy plots Bollinger Bands from a simple moving average and standard deviation, plus a separate moving-average line and a background color when that average sits outside the bands. It opens a long when the source crosses above the lower band a
This indicator plots Laguerre RSI in a separate pane. It passes close through four cascaded Laguerre filter stages and forms a ratio of upward stage differences to total stage differences, producing a dimensionless value from 0 to 1. When all stages match, the
This demonstration strategy showcases partial position exit functionality using Pine Script v4. It enters a long position of four units during the first 100 bars whenever no position is currently open. The script manages trade exits using two bracket orders: c
This overlay indicator draws a zigzag of confirmed swing highs and lows on the price chart. It finds pivots with a depth window, then keeps a turn only when price moves beyond the deviation threshold. Lines connect successive reversals, and the last segment ca
This Pine Script v5 library provides functions to generate Zignaly alert messages. It includes utilities for selecting separators and quotes based on alert type (webhook or email), extracting the pair from syminfo, creating common alert messages with exchange,
Plots key price levels directly on the main chart using time-based reference points. It tracks the high, low, and open prices for each Wednesday of the month while automatically adjusting for US Daylight Saving Time shifts. The indicator also identifies daily
This SMC indicator plots market structure features on the price chart. It identifies swing points based on a configurable length and marks internal order blocks, swing order blocks, and fair value gaps. Candles can be colored according to detected trend direct
This indicator performs Monte Carlo simulations to model future price paths or user-defined strategy return series. It generates projected paths using either a Gaussian distribution or bootstrap resampling from historical data or pasted return sets. The script
This overlay strategy combines confirmed pivot break-of-structure with a curved linear-regression and ATR channel. It enters long when price breaks a confirmed pivot high and closes above the slope-adjusted channel midline, and enters short on the symmetric be
Calculates fractal pivot levels and projects support and resistance lines into future bars. It identifies liquidity traps by evaluating volume and price sweeps past recent fractal highs and lows. Combining moving average slope, volume ratio, and historical lev
Draws volume order block zones on the price chart and adds asymmetric signal combinations that compare the dominant block's volume against the opposing pool. This version 10.3 combo is a tick-friendly build. Inputs set sensitivity, thresholds and cooldown. It
TnSovereignAliceV6 evaluates price action using a five-part methodology comprising fractal efficiency, RSI, Bollinger Bands, proxy institutional flow, and MACD histogram momentum. Entries trigger when a user-defined minimum number of consensus conditions align
KTOS-tracker places historical ARK Invest purchase and sale labels on the KTOS price chart. Green buy labels sit below bars and red sell labels sit above them, each marked with an ETF count such as X1. An ETF setting switches the displayed records among ARKQ,
This strategy enters long on an outside bar when the candle is bullish, the Klinger Volume Oscillator is positive, and price is above a Hull moving average. It enters short on an inside bar when the candle is bearish, the oscillator is negative, and price is b
This indicator calculates a Normalized Least Mean Squares (LMS) adaptive FIR filter based on the Widrow-Hoff learning algorithm. It predicts the current bar price using weighted past values and dynamically adjusts its coefficients based on the prediction error
This indicator marks pivot highs and pivot lows on the price chart. A high is a pivot when it is strictly above the highs in a window of bars on both sides; a low uses the same test against lows. Confirmed pivots get a price label above the bar for highs and b
This strategy runs on the main price chart and generates trade signals using moving average crossovers. It opens long positions when the fast simple moving average crosses above the slow simple moving average, and enters short positions on a bearish cross. Exi
This indicator identifies and plots recurring key price levels based on two time-based systems: Wednesday session highs, lows, and opens, along with Midnight (UTC+2) reference levels. It automatically adjusts for Daylight Saving Time and fetches 15-minute time
This indicator identifies market structure and key price levels directly on the price chart. It plots supply and demand zones based on swing highs and swing lows, identifies break of structure levels when zones are breached, and highlights fair value gaps repr
This indicator calculates ten sequential moving averages using either simple or exponential moving averages and renders them as a pseudo-three-dimensional grid in a separate pane. It projects recent price trends through an array of dynamically colored line dra
This strategy plots the Kaufman Adaptive Moving Average on the price chart as an overlay. It generates buy signals on ta.crossover of close above the KAMA and sell signals on ta.crossunder of close below the KAMA. Long entries occur when flat or short, short e
Quantum Spider Web & Operational Path plots a geometric grid on the price chart, anchoring horizontal price levels around the 144-bar midpoint and spacing them using Average True Range scaled by a Fibonacci multiplier. It marks recurring vertical time windows
Detects volume order block zones from six sensitivity tiers and draws zone lines on the price chart. It plots combination lanes only: strict ladder patterns, multi-zone coincidences, and rolling highest-volume or all-time-high-volume events paired with any zon
TnSovereignEntropyCausalityV6 evaluates directional information flow between volume and price using symbolic encoding and an approximated transfer entropy metric. It calculates whether volume precedes price moves across a selectable lookback window while filte
KVSB Tracker overlays historical ARK Invest buy and sell transactions directly on the price chart for the KVSB ticker. It renders green buy labels below price bars and red sell labels above bars at specific historical timestamps corresponding to reported ARK f
This strategy plots multiple exponential moving averages and a linear regression squeeze channel directly on the price chart. It executes 100-unit long and short trades by combining four EMA trend alignments, Bollinger Bands %B extremes, Awesome Oscillator mom
This indicator calculates a linear decay filter over a selected price source and plots the result directly on the price chart. The algorithm tracks local peaks and descends linearly by a fixed step equal to the inverse of the specified period whenever the pric
This indicator plots classic pivot levels on the price chart from the previous completed bar of a higher timeframe. It requests that bar's open, high, low and close, then calculates the pivot as the average of high, low and close, with resistance one and suppo
This strategy trades both long and short on the price chart. It enters long after a five percent or larger drop over the last thirty minutes and short after a matching rise. Two dollar-cost-averaging adds increase size when price moves against the position. A
This indicator plots time-based support and resistance levels on the price chart. It tracks the high, low, and open of monthly Wednesday sessions at 20:30 SAST with automated Daylight Saving Time adjustments, alongside daily midnight opening ranges based on UT
MTF 2TF Cipher is a minimal Pine Script overlay indicator that plots the closing price directly onto the price chart. Despite its title referencing multi-timeframe cipher analysis, the script functions as a basic skeleton or placeholder without multi-timeframe
This indicator detects harmonic chart patterns across four configurable ZigZag lengths directly on the price chart. It identifies patterns including Gartley, Butterfly, Bat, Crab, Deep Crab, Shark, Cypher, 5-0, Three Drives, ABCD variations, and Double Tops an
This strategy is a validation probe that forces a 500-bar history buffer. It calculates a long simple moving average of close, an RSI of close shifted by a configurable offset, and a lagged close. Those first two series are plotted but do not gate trades. It e
This indicator projects an ATR- and Fibonacci-spaced geometric price and time grid directly on the main chart. Operating from a 144-period macro midpoint anchor, it plots horizontal levels and partitions historical price action into discrete matrix cells. Each
Draws volume order block zones on the price chart and adds asymmetric signal combinations that compare the dominant block's volume against the opposing pool. This version 10.4 combo is a tick-friendly build. Inputs set sensitivity, thresholds and cooldown. It
This strategy implements a deterministic ICT and SMC trading system operating on the M1 timeframe. It establishes institutional ranges using CRT on the 60-minute timeframe and confirms directional bias via BOS/CHOCH detection on the 15-minute structure timefra
LC Tracker overlays historical buy and sell transactions executed by ARK Invest funds directly on the price chart for LendingClub. It plots green buy and red sell labels at precise bar timestamps based on recorded trade history, indicating the number of partic
This strategy combines a 7-period RSI with an ADX filter to trade market regimes on the price chart. When the ADX indicates ranging conditions below a set threshold, it triggers entries on RSI overbought or oversold extremes. By default, the entry logic is inv
This indicator computes the linear regression endpoint and slope over a specified rolling lookback period. It manages historical price values internally using a circular array buffer, handling missing data by carrying forward the last valid price. The calculat
This indicator plots the built-in bar_index value as a single series in a separate pane. It does not generate trade signals, entries, exits, or risk management rules. There are no user inputs, so the plotted series cannot be rescaled or filtered from the scrip
This strategy demonstrates how to integrate TradingView signals with the Zignaly Crypto Trading Platform. It calculates a crossover between a 14-period and a 28-period simple moving average to generate trade signals directly on the price chart. Entries trigger
Calculates and plots key price levels based on recurring Wednesday High, Low, and Open price action as well as midnight levels. The indicator draws horizontal support and resistance lines directly on the price chart for technical analysis across up to four his
MTF Candles draws higher-timeframe candles on the price chart as boxes and lines. It can show up to five independent timeframes, each with its own enable switch, timeframe choice, and history length of one to fifty bars. Bullish and bearish bodies, borders, an
Multiple Frequency Volatility Correlation measures the relationship between price standard deviation and volume standard deviation across window lengths ranging from 2 to 512 bars. It plots individual correlation values as colored circles in a separate indicat
This validation strategy tests the simultaneous runtime handling of Kaufman's Adaptive Moving Average (KAMA), intra-bar tick counting, and deep historical buffer retention. It enters trades when the closing price crosses above KAMA, gated by an intra-bar tick
Quantum State Space & Probabilistic Agents projects a horizontal state space grid directly on the price chart. It evaluates momentum from RSI, trend strength from an EMA/ATR ratio, and mean-reversion from standard deviation to compute directional probabilities
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.