8,340 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.
BuyTheDip is a strategy script that identifies upward moving average alignments across multiple timeframes using SMA, EMA, HMA, RMA, VWMA or WMA types. It plots Bollinger Bands on the price chart and enters long positions when alignment scores reach 1 and pric
Square Root Transformation calculates the square root of a selected price or data series in a separate pane. It applies a mathematical square root function to compress scale differences and reduce variance across positive values. The indicator safely handles m
This indicator plots multiple deviation bands around the volume-weighted moving average and standard deviation. Upper bands R-1 to R-6 and lower bands S-1 to S-6 appear at Fibonacci ratios of the deviation from the mid-line on the price chart. The mid-line is
This strategy demonstrates position sizing with leverage and margin in Pine Script using a Stochastic Oscillator indicator. It plots the %K and %D lines in a separate pane with upper and lower threshold levels. Long entries trigger when %K crosses above %D bel
This indicator plots historical buy and sell transactions executed by ARK Invest exchange-traded funds for the SPFR stock directly on the price chart. It draws green labels below price bars for buy actions and red labels above bars for sell actions, indicating
This strategy plots an Ichimoku cloud on the price chart and opens long or short trades from a selectable crossover. Signal choices cover Tenkan and Kijun, price against those lines or the cloud, and cloud color, with optional confirmation that price is beyond
This indicator plots Squeeze Momentum in a separate pane. It compares Bollinger Bands with a Keltner Channel to mark a squeeze when the bands sit inside the channel. Momentum is a linear regression of price relative to a Donchian midline and an SMA, shown as a
Bankai + DTEK is an overlay indicator that combines Qualitative Quantitative Estimation (QQE) logic, trend coloring based on SuperTrend and CCI ATR, up to four customizable EMA clouds, and simplified TD Sequential signals. It plots multiple moving average clou
This strategy plots in a separate pane and tests a selected oscillator with one of six entry logics: moving average, moving-average crossover, zero cross, extremes, mean reversion, or take profit. Users scale and time-adjust one of three oscillators and can li
SPLK Tracker is a price chart overlay indicator that plots historical buy and sell transactions made by ARK Invest ETFs for Splunk Inc. (SPLK). The script places labels above or below price bars using historical timestamps corresponding to reported fund trades
This strategy evaluates multiple MACD entry techniques on the price chart. It calculates standard or SMA-based MACD line, signal line, and histogram values, offering selectable trigger models including continuation crosses, reversal crosses, histogram zero cro
The Standard Deviation (STDDEV) indicator calculates the standard deviation of the input source series over a user-defined period. It employs a circular buffer for O(1) streaming computation, ensuring efficient memory usage. The indicator plots the standard de
Bankai DXY is a multi-component trend and signal overlay script that combines EMA clouds, moving average slope filters, Aroon filters, QQE signals, Supertrend, CCI-ATR trend rules, and simplified TD Sequential counts. It overlays dynamic EMA clouds on the main
The PMax Explorer strategy calculates the Profit Maximizer indicator by applying an ATR trailing stop band to various moving average types including EMA, VAR, ZLEMA, and TSF. It plots the selected moving average and PMax line directly on the price chart to tri
SPNS-tracker is an overlay indicator that marks ARK Invest purchases of SPNS on the price chart. It places green below-bar labels on two January 2020 dates, each showing a buy with a count of one. A single ETF input exists but only offers ALL, so it does not s
The CDC Action Zone V.3 Test strategy calculates fast and slow exponential moving averages to generate trend-following buy and sell signals. It plots EMA lines, custom bar colors, buy and sell labels, and a visual ribbon directly on the main price chart. The s
Calculates a linear regression trend line and standard deviation bands based on the residuals over a user-defined lookback window. The script plots the central linear regression line along with upper and lower channel boundaries directly on the price chart, fi
Bankai ES Trend combines multiple trend and momentum tools into an overlay indicator on the price chart. It calculates moving average slope filters, Aroon trend conditions, QQE momentum signals, Supertrend levels, and multi-period EMA clouds. It plots trend ba
This strategy draws a moving-average channel on the price chart and places stop entries when the source crosses the upper or lower band. Long and short orders can be cancelled if price returns through the average or reaches the stored breakout price. Optional
SPR-Tracker visualizes historical buys and sells made by ARK Invest funds for the specified ticker directly on the main price chart. It plots text labels indicating buy or sell actions along with the number of participating ARK ETFs on specific transaction dat
Crypto Price Scalper is a long-only trading strategy designed for cryptocurrency charts. It combines a custom price-range oscillator, calculated from the highest high and lowest low over a user-defined candle period, with the Vortex Indicator. A long trade ope
This indicator calculates the standard error of a linear regression of the chosen source over a user-defined lookback and plots that value as a yellow line in a separate pane. It fits slope and intercept on a circular buffer, then takes the square root of the
This strategy combines two sets of Bollinger Bands with a Laguerre RSI oscillator plotted on the price chart. It generates buy and sell signals when price touches the upper or lower bands or zones. The strategy allows enabling or disabling entries and includes
Grid Like Strategy calculates a dynamic baseline overlay that steps up or down whenever price moves beyond a defined point threshold. It enters long positions when the baseline moves upward and short positions when it moves downward, automatically placing take
This indicator plots ARK Invest trade labels on the SRNG stock price chart. It marks historical buy and sell dates with green or red labels and X1 or X2 multipliers that count how many ARK ETFs participated on each day. The script draws static vertical labels
This strategy plots a mapped EMA-and-standard-deviation difference in a separate pane and trades moving-average crossovers filtered by that line. After the 50-period EMA crosses the 200-period SMA, it waits for price to stay on the crossover side and for the m
The Stochastic Fast (STOCHF) indicator calculates the fast stochastic oscillator, consisting of the raw fast %K line and the smoothed fast %D signal line. %K measures the relative position of the current close within the high-low range calculated over the spec
Buy Low Sell High Composite is a pane oscillator that normalizes RSI, a short-versus-long EMA difference, the MACD histogram, and the Money Flow Index onto a shared scale, then sums them into one composite. It plots that composite as a colored area, the MACD s
The Grover Llorens Activator strategy calculates a custom volatility trailing stop line based on Average True Range and price movement. It generates buy signals when price crosses above the activator line and short signals when price crosses below. Positions a
This indicator plots historical ARK Invest buy and sell events for the SRPT stock on the price chart. It places green buy labels below bars and red sell labels above bars at fixed calendar dates, with text that marks the trade direction and an ETF count such a
This strategy trades moving-average crossovers on the price chart. It buys when a fast exponential moving average crosses above a slow one in an uptrend, and sells on the opposite cross in a downtrend. An optional source average and a longer trend filter, each
This indicator plots a Stochastic MACD in a separate pane. It measures the rolling high and low over a lookback, applies fast and slow exponential moving averages to the close, and normalizes each average against that range. The difference, scaled by 100, is t
The CM Williams Vix Fix indicator calculates Larry Williams' synthetic VIX formula in a separate pane to identify market panic and potential price bottoms. It measures the percentage distance between the highest close over a lookback period and the current bar
This strategy executes long trades on cryptocurrency charts using initial entry signals derived from MACD, Stochastic RSI, or ATR channel logic. When an active position drops below a designated percentage threshold, the strategy automatically adds to the trade
Plots historical buy and sell transactions executed by ARK Invest funds on Stratasys (SSYS) directly on the price chart. It marks specific execution dates using timestamped green labels for purchases below the bar and red labels for sales above the bar, displa
This strategy overlays a Cipher B style WaveTrend study on the price chart and is titled for Ethereum buy alerts aimed at 3Commas. It calculates a WaveTrend channel and a short moving average, and can mark buy, sell, gold, and divergence dots. Settings change
This indicator calculates the Stochastic Momentum Index in a separate pane. It finds the highest high and lowest low over a lookback, measures the source relative to the range midpoint, and double-smooths that result into a %K line and a further-smoothed %D si
The Commodity Channel Index Custom indicator plots a customizable oscillator in a separate pane on the price chart. It calculates the CCI using a selected source such as HLC3 and a moving average method including SMA EMA or others. Main settings allow adjustin
This script executes a pivot reversal strategy while displaying a comprehensive monthly and yearly returns table on the chart. It calculates pivot high and low levels using user-defined left and right bar parameters, placing stop orders to enter long or short
This indicator overlays the SSYSM price chart and draws one red downward label reading Sell above the bar at 12 November 2020. It does not calculate oscillators, moving averages, or risk levels, and it exposes no inputs. The snippet only records that single hi
Ezieh Str.v2 is a momentum and volatility strategy combining Bollinger Bands with two distinct RSI periods to identify trading opportunities. It opens long positions when a fast RSI crosses above an oversold threshold while price crosses over the lower Bolling
This indicator calculates the Stochastic Oscillator and plots it in a separate pane. Percent K is the close position within the highest high and lowest low over the K length, scaled from 0 to 100. Percent D is a simple moving average of percent K over the D sm
Custom Time Highlighter is an intraday overlay indicator that shades the chart background during a user-specified range of hours. Users configure the start and end hours to visually separate trading windows or session periods. It applies an orange background c
STMN-tracker overlays historical institutional trading data directly onto the price chart for STMN stock, displaying buy and sell transactions executed by ARK Invest. The indicator places visual labels on specific trade dates to highlight historical buying or
Fibs Limit Only is an automated limit order strategy designed for crypto futures trading. It calculates pivot highs and lows over a user-defined length to establish Fibonacci retracement and extension levels. Traders select a specific Fibonacci tier to place l
This indicator calculates the Stochastic RSI oscillator, which applies the Stochastic formula to a Relative Strength Index series to measure momentum. It computes an RSI value, tracks its rolling high-low range, and calculates smoothed %K and %D lines using cu
This indicator tracks Tom DeMark Sequential setup counts by comparing the current close against the close four bars prior across up to six configurable timeframes. It signals potential trend exhaustion or reversal points when counts reach specified milestones,
STNE Tracker displays historical buy and sell transactions made by ARK Invest funds for StoneCo Ltd (STNE) directly on the price chart. The indicator creates chart labels on specific trade dates, marking purchases with green labels below bars and sales with re
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.