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.
The Bollinger %B Candles Strategy evaluates price volatility and momentum by calculating Bollinger Bands %B oscillator values in a separate pane. It incorporates customizable moving average filters, ATR multipliers, and optional higher-timeframe yearly high or
This indicator plots Fibonacci pivot levels on the price chart. It takes the previous completed bar's high, low, and close from a daily, weekly, or monthly timeframe and sets the pivot as their average. Resistance and support sit at 38.2 percent, 61.8 percent,
Price Action Candles highlights consecutive range-containing bars on the price chart. It marks a bar when its high is at or above the prior high and its low is at or below the prior low, so the current range contains the previous bar. It paints the background
This indicator implements Hosoda's Ichimoku Theories directly on the price chart, combining standard Ichimoku Kinko Hyo components (Tenkan-sen, Kijun-sen, Kumo cloud, and Chikou span) with Time Theory and Wave Theory analysis. It detects swing highs and lows,
This strategy builds a 3x3 covariance matrix from three collinear price series (close, close*2, close*3) and evaluates its eigenvalues to detect rank deficiency via NaN propagation. It generates long entries and exits using a 9/21 EMA crossover on the price ch
This overlay indicator draws a pair of geometric spirals on the price chart between two user-chosen times. Inside that window it sums the ranges of rising and falling candles and uses those sums, together with the window's price span and a golden-ratio spiral
PRNT Tracker plots historical trade activity of ARK Invest directly onto the price chart. It hardcodes transaction records to display green labels below price bars for buy transactions and red labels above price bars for sell transactions, along with counts in
This strategy plots a 20-period simple moving average of the close and Bollinger bands from one through five standard deviations. It draws the basis and each upper and lower band on the price chart, then fills the zones between successive bands in different co
This indicator calculates and plots Woodie's pivot points using a weighted closing price formula across daily, weekly, or monthly periods. It computes the central pivot point along with three resistance levels (R1, R2, R3) and three support levels (S1, S2, S3)
This lightweight indicator calculates a 9-period Exponential Moving Average (EMA) and a 20-period EMA, plotting both directly on the price chart overlay. It also plots a third line in orange that displays the mathematical sum of the two EMAs as a simple trend
Indicators Overlay plots up to ten technical indicators directly on the main price chart using line drawings, avoiding the need for separate sub-panes. It calculates common technical metrics such as RSI, CCI, OBV, Stochastic, MFI, ATR, CMO, CMF, Stochastic RSI
This Pine Script strategy implements a custom long-only EMA crossover on the price chart. It defines a UDT struct Cfg with a threshold method that accepts default parameter values. The strategy computes RSI and ATR indicators then uses three call styles to the
This Pine Script indicator calculates two pairs of parallel universes derived from moving averages of the source price using Fibonacci ratios of the golden ratio. It plots Universe A and Universe B lines along with their inverse counterparts, plus fill bands b
This indicator overlays historical ARK Invest transaction records for Personalis Inc (PSNL) directly onto the price chart. It plots labels on specific historical timestamps where ARK funds initiated buy or sell transactions, displaying trade details such as tr
This strategy enters long positions during a specified trading session when multiple technical indicators align. It executes a buy order when the low drops below the lower Bollinger Band while RSI and ADX exceed configurable threshold values, price closes abov
This indicator calculates J. Welles Wilder's Plus Directional Indicator (+DI) to measure upward price momentum. It computes Positive Directional Movement (+DM) and True Range (TR), smoothing them using a compensated Running Moving Average (RMA) technique for a
This indicator is an overlay stub. It plots the close on the price chart and does not calculate Cipher B, RSI, money flow, or buy and sell alerts. Comments describe a planned confluence of price versus Cipher momentum dots, a ten-candle money flow trend, an RS
This indicator provides an interactive framework for validating Elliott Wave motive wave structures directly on the price chart. Users select six anchor points corresponding to wave origins and terminals (points 0 through 5) using interactive chart inputs. The
This strategy serves as a Pine Script v6 validation probe testing User-Defined Type (UDT) methods as conditional triggers for strategy entries. It calculates 9-period and 21-period Exponential Moving Averages to detect crossover and crossunder signals. Custom
This indicator aggregates price action into constant-volume candles based on a configurable cumulative volume threshold. It renders these volume bars directly on the price chart using boxes and wick lines, updating dynamically during live formation. A Zero-Lag
PSTG-tracker plots historical ARK Invest purchase and sale records for Pure Storage on the price chart. The script uses hardcoded timestamp locations to display green buy and red sell labels directly on specific historical bars. An input selector allows filter
Bollinger Band Breakout is a positional strategy combining Bollinger Bands with the Relative Strength Index (RSI). It opens long positions when price crosses above the upper Bollinger Band while 14-period RSI is between 60 and 70. Short entries trigger when pr
This indicator calculates Wilder's plus directional movement and plots the smoothed value in a separate pane. On each bar it compares the upward and downward price moves, keeps only a positive up move that exceeds the down move, then applies a compensated RMA
This indicator plots a linear regression line based on closing prices using a 10-period window. The regression calculates a straight line that best fits the price data points over the specified length. It draws the resulting trend line in a separate pane for v
Intersection Value Functions calculates the exact price level where two series intersect during a crossover or crossunder. It uses linear interpolation based on line slopes between consecutive bars to pinpoint the exact crossover value. The indicator plots two
This Pine Script v6 strategy is a validation probe for nested method calls on a user-defined type. Each bar it feeds close, a simple moving average, and standard deviation through a method chain that returns a z-score. It enters long only when that z-score is
This indicator analyzes volume distribution relative to a moving average over a specified rolling window. It categorizes each bar's volume according to whether price closes above or below the selected moving average, calculating percentage shares and ratios of
PSTI-tracker overlays historical ARK Invest buy and sell transaction records directly on the price chart for PSTI stock. It places green buy labels below bars and red sell labels above bars at specific historical timestamps when ARK funds transacted. Input set
This strategy combines Volume Weighted Moving Average (VWMA) Bollinger Bands with 200-period and 50-period Exponential Moving Averages (EMAs). It identifies long trade opportunities when the 50 EMA is above the 200 EMA and price falls to or below the lower Fib
This indicator plots the Poisson cumulative distribution function of a price series in a separate pane. It min-max normalizes the selected source over a lookback window, scales that value into a Poisson rate lambda, and returns the probability that a Poisson c
This overlay indicator combines price-action swing structure with a MACD comparison and a dual moving-average filter. It finds pivot highs and lows, labels higher highs, lower highs, higher lows and lower lows, and builds a trend bias from those swings. It rep
The Langlands-Operadic Möbius Vortex (LOMV) is a multi-layered indicator that combines mathematical concepts such as Möbius L-functions, Galois field metrics, operadic compositions, and Order Flow Polarity (OFPI). It synthesizes these factors into a composite
This strategy uses two exponential moving averages (fast period 5, slow period 13) to detect trend changes via crossover signals on the price chart. It enters long on fast EMA crossing above slow EMA and short on the reverse crossover. The script includes expl
Zero-Lag Fractal KdV Smoothing is an indicator that applies fractal dimension-based smoothing to price data using a KdV-like wave equation. It computes a weighted average between the current close price and the prior filtered value, where the weights depend on
PTC-tracker is an overlay indicator that marks historical ARK Invest purchase dates for PTC on the price chart. It places green below-bar labels at fixed timestamps, each reading as a buy with a count of one. The only input selects an ETF filter and currently
This strategy plots RSI in a separate pane and combines it with Bollinger Bands calculated on the selected source. It opens a long when RSI is below 30 and price is below the lower band, then closes that long when RSI rises above 70. Percentage take-profit and
This indicator plots a rolling polynomial regression fitted to a chosen price source over a lookback window. It builds the normal equations, solves them with Gauss-Jordan elimination and partial pivoting, and returns the polynomial value at the current bar. Pe
This overlay strategy combines swing price structure with MACD structure and two higher-timeframe exponential moving averages. It finds pivot highs and lows over ten bars, labels higher highs, lower highs, higher lows and lower lows, and builds matching states
Calculates and projects key liquidity levels directly on the main price chart based on volume pivot highs. When a volume peak is detected, the indicator captures the closing price from that period and plots horizontal lines across the chart. It also features o
This trend-following strategy calculates a primary filter using an EMA, SMA, or a blended average of both with scaled lengths, plotting it alongside a confirmation EMA on the price chart. Long positions are triggered when the primary filter crosses above the c
This indicator calculates a zero-lag moving average using weighted moving averages. It applies a specific formula to create a smoothed wave line with minimal lag. The wave length input adjusts the calculation, defaulting to 14. The script derives intermediate
This indicator marks recorded ARK Invest purchases of PTNR on the price chart. It draws green labels below the bars at fixed calendar dates, anchored by bar time, with text that shows a buy and a count of one. One input chooses the ETF view, and the only liste
This strategy plots Bollinger Bands on the price chart using the middle band as a simple moving average and standard deviation bands. It signals long entries when the close price crosses below the middle band combined with Aroon up trending above 90 and within
This indicator plots the Pretty Good Oscillator in a separate pane. It subtracts a simple moving average of the selected source from the source and divides the difference by an exponential average of true range. A period input sets both the moving-average leng
This price-chart indicator finds swing highs and lows with a user-set pivot length and classifies them as higher high, lower high, higher low, or lower low. It tracks a trend state and the latest swing signal from those pivots. The same swing comparison is run
This indicator maps and visualizes volume distribution across visible bullish and bearish price levels directly on the chart. It calculates cumulative volume profiles for upward and downward candles within the visible chart window, plotting volume depth areas
PineForge - Pendulum SAR Rotation calculates Parabolic SAR and Exponential Moving Average (EMA) values to identify trend-filtered long entries. The strategy enters a long position when price crosses above the Parabolic SAR while remaining above the trend EMA.
This indicator calculates moving averages with periods derived from a user-selected date range multiplied by Fibonacci ratios (1.0, 1.618, and 0.618). On the chart's final bar, it renders these moving average paths directly on the price chart using polylines.
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.