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.
FRK OHLC Statistics is an overlay indicator that draws key Open, High, Low, and Wick level lines on the price chart from up to five customizable timeframes. It allows traders to monitor historical reference points across intraday, daily, weekly, and monthly pe
ATR Retracement EMA Signals identifies momentum setups by detecting large candle expansions relative to Average True Range, followed by brief price retracements and moving average crossovers. When price experiences a strong bar move, retracing within a configu
This indicator simulates a dollar-cost averaging investment strategy over time on any chart timeframe. It calculates recurring monthly asset purchases based on a fixed investment amount, a starting timestamp, and a selected target day of the month. In a separa
This strategy combines Exponential Moving Averages, the Relative Strength Index, and Average True Range with optional multi-timeframe confirmation to generate trade signals. Long trades trigger on fast EMA bullish crossovers when RSI is low, while short trades
This indicator combines a neural network signal grading engine with moving average and trading session filters directly on the price chart. It plots buy and sell signal labels based on momentum, volatility, and trend conditions evaluated across selectable cand
LeBeau is a trend-following overlay indicator based on Charles Le Beau's Chandelier Exit strategy. It calculates trailing stop-loss levels using the Average True Range (ATR) applied to standard price data or smoothed Heikin Ashi bars. When the price crosses ab
This indicator calculates the average high-to-low range of a user-selected number of prior candles on a chosen timeframe. It plots bullish and bearish target lines from the current candle range on the price chart and can extend those lines by a set number of b
This indicator generates reversal signals based on simple candlestick comparisons over a user-defined lookback period. A bullish signal triggers when both the current and historical candles close higher while the current low is lower than the past low, and vic
This Pine Script strategy is designed for cryptocurrency trading on TradingView. It combines moving averages, RSI, MACD, Bollinger Bands, Stochastic oscillator and volume analysis to generate buy and sell signals. Higher time frame trend confirmation and marke
TAIndicators is a Pine Script library providing helper functions for technical analysis calculations. It features flexible moving average functions supporting SMA, EMA, SMMA, WMA, and VWMA options, along with secondary smoothing methods and Bollinger Band calc
This Pine Script v6 indicator calculates and plots three simple moving averages directly on the main price chart. It displays a 20-period short-term SMA, a 50-period medium-term SMA, and a 200-period long-term SMA using distinct line colors. The script offers
Dynamic Anchored VWAP calculates a volume-weighted average price starting from a selected dynamic or manual anchor point, such as the chart start, daily start, weekly start, monthly start, or a specific timestamp. It calculates and plots the anchored VWAP alon
The Adaptive SuperTrend Strategy is a custom trading strategy that calculates an adaptive SuperTrend value using volatility-adjusted factors. It determines high or low volatility by comparing ATR to its 100-period SMA and adjusts the SuperTrend factor accordin
This indicator combines four technical tools into a unified scoring system directly on the price chart. It evaluates an exponential moving average trend crossover, relative strength index levels, MACD line positioning against its signal line, and Bollinger Ban
This Pine Script indicator identifies potential trade entries for the USDJPY pair exclusively on 5-minute and 15-minute charts. It plots three Exponential Moving Averages: 9-period fast, 20-period slow, and 200-period trend filter. Signals trigger on EMA 9 cro
Lab-Doi-03 is a price-chart strategy that compares a 12-period and a 26-period exponential moving average requested from the daily timeframe. While the chart time is inside the start and end dates and the fast average is above the slow average, it records an i
This adaptive strategy combines multiple classic technical indicators into a unified framework to generate trading signals on the price chart. It evaluates conditions across Moving Average crossovers, Donchian channel breakouts, MACD, RSI, Bollinger Bands, Par
This indicator visualizes Wyckoff Volume Spread Analysis principles directly on the price chart. It calculates volume moving averages, bar spread, and close location values to categorize individual candlestick behavior relative to average trading activity. Whe
This Pine Script strategy provides a basic moving average crossover trading template. It calculates and plots a fast simple moving average and a slow simple moving average directly on the price chart. The strategy enters a long position when the fast average c
Micha 150 is a trend-following overlay indicator that calculates a 150-period daily Simple Moving Average (SMA) along with its three-point backward difference derivative slope. It identifies entry and exit conditions using customizable percentage buffer zones
This strategy trades S50 TFEX USDTHB contracts on the price chart. It detects swing highs and swing lows with pivot points to generate long entries on swing highs and short entries on swing lows. The ATR indicator calculates dynamic stop-loss distances while t
This strategy detects whether Ethereum outperforms Bitcoin relative to the overall market using MTPI signals. It combines outputs from DEMA Adaptive Fractal Range, DEMA Supertrend, Schaff Trend Cycle, RMI Trend Sniper, and FDI-Adaptive Supertrend indicators. L
This strategy plots several exponential moving averages and an optional VWAP on the price chart. It defines a long setup when the short EMA crosses above the long EMA, price is above the short EMA, and, if enabled, above VWAP. A short setup uses the opposite c
This indicator plots a 14-period Relative Strength Index alongside two smoothed Stochastic oscillators in a separate pane. It displays momentum across fast and medium periods relative to a dashed 50 midline. Background coloring signals alignment: green indicat
This indicator calculates the MACD line, signal line, and color-coded histogram in a separate pane below the chart. It includes a specialized divergence detection algorithm that splits a lookback period into recent and older segments to compare price extremes
This indicator highlights key trading sessions directly on the price chart to help identify periods of high volatility. It visualizes Asian, Frankfurt, London, and New York killzones using configurable background boxes, high and low boundary lines, and pip-ran
This indicator calculates estimated long and short liquidation prices from a manually entered base price and five leverage settings. A maintenance-margin factor shifts each level, and a nonlinear option changes the leverage used for inverse-style contracts. It
This indicator calculates a trade value for each bar by multiplying volume by the average of open, high, low, and close. It plots that series on the price chart with a fully transparent line so the chart stays visually clear while the value remains readable in
TechnicalRating is a Pine Script library that calculates composite technical rating scores ranging from -1 to +1. It aggregates market conditions across 26 technical indicators, including moving averages, RSI, Stochastic, MACD, Ichimoku, and DMI, into overall,
This indicator combines Fibonacci Golden Zone retracements, VWAP-based divergence detection, and RSI optimized with Kernel Density Estimation (KDE). It identifies high and low swing points to overlay key Fibonacci retracement levels directly on the main price
This indicator plots Bollinger Bands volatility bands calculated from the input source price. The middle band uses an EMA of the source over the specified length, with bands formed by adding and subtracting the standard deviation multiplied by the mult. It als
This indicator identifies short-term momentum opportunities by combining exponential moving averages, volume expansion, and candle body structure filters. It calculates 9-period and 21-period EMAs to define trend direction, verifies above-average trading volum
Daily Range Volatility calculates the percentage range of each bar relative to its midpoint price. It plots this amplitude as silver columns in a separate pane alongside three simple moving averages: a 30-period baseline, a fast 3-period average, and a smoothe
This indicator plots an EMA and RSI on the price chart. It signals overbought and oversold conditions through red and green triangular markers when the RSI crosses 75. A background highlight marks the active trading session between user-defined start and end t
This strategy executes long entries during a user-defined backtest time window. It calculates a 1-period Exponential Moving Average (EMA) and enters long trades automatically within the specified dates. Positions exit when the calculated EMA exceeds the positi
This indicator calculates custom Bollinger Bands using one of four selectable moving averages, defaulting to VIDYA. It plots the upper band, lower band, and basis line directly on the price chart, with a filled background between the outer bands. Buy and sell
This indicator identifies basic bullish and bearish engulfing candlestick patterns directly on the main price chart. A bullish engulfing signal triggers when a green candle opens at or below the prior bearish candle's close and closes at or above its open. A b
This minimal Pine Script indicator plots the closing price directly onto the price chart. Developed as part of the GenieV1 automated scalping project, it serves as a lightweight template or baseline script initialized with expanded allowances for boxes, labels
The MACD #2 strategy plots two exponential moving averages with lengths 12 and 26 on the price chart. Buy signals trigger on the fast EMA crossing above the slow EMA when ATR(14) exceeds its prior value, entering a long position with one unit. The position clo
This strategy generates long signals on the price chart using EMA conditions and RSI levels. It enters long positions when the buy condition, based on EMA alignment checks over specified back bars, is satisfied. Exits occur at a stop loss calculated from the e
This indicator calculates and plots the Directional Movement Index (DMI), including the Average Directional Index (ADX), Positive Directional Indicator (+DI), Negative Directional Indicator (-DI), and raw Directional Index (DX). It measures directional price m
This indicator plots standard Bollinger Bands consisting of an upper band, lower band, and a simple moving average directly on the price chart. It calculates the Relative Strength Index to identify overbought conditions. A bearish signal displays as a red down
Chart Viewer overlays user-supplied price data on the chart. It reads a Candle array and plots each bar's open, high, low and close with plotcandle, coloring green when close is above open, gray when they match, and red otherwise. A second Order array draws gr
This strategy plots two moving averages on the price chart and uses their relationship to bias long or short trades. Entries can be limited to one direction or allowed to reverse. Stops sit beyond a swing high or low by an ATR multiple, and a reward-to-risk li
LWTI-pro is a custom momentum oscillator plotted in a separate pane. It computes a normalized line from the difference between current and per-bar-close prices divided by ATR then scaled to center at 50. Optional smoothing applies SMA EMA WMA or RMA to the lin
ARI wrong gap finder is an overlay indicator that searches recent bars for bearish and bullish price gaps. It compares an older low or high range with the current bar and marks a gap only when the percentage difference exceeds the minimum allowed. A qualifying
TrendGlow is a price-chart indicator that recolors candles according to a bullish, bearish, or sideways trend. It imports a BullBear library and can combine Stochastic RSI, MACD, and SMA checks on a user-selected timeframe through request.security. Users toggl
This indicator plots buy and sell markers on the price chart using RSI and Bollinger Bands. A buy triangle appears when RSI is at or below the oversold level and the close is at or below the lower band. A sell triangle appears when RSI is at or above the overb
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.