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.
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
A long-only strategy that accumulates a fixed quantity by buying near the lower edge of a smoothed channel. The channel is an EMA of the highest high and lowest low over an adjustable range. A buy fires when price touches the lower line while RSI is rising out
An oscillator that applies the MOST (moving stop) trailing line to an RSI-based moving average. It plots RSI with a smoothed average and the stop line in a separate pane, with fixed 30, 50 and 70 levels. The average type can be SMA, EMA, RMA, WMA, VWMA, Bollin
Draw-On-Liquidity is an overlay indicator that marks liquidity on the price chart. It reads highs and lows from a chosen higher timeframe and draws extended lines with buy-side and sell-side liquidity labels when consecutive values fall within a percentage thr
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
A strategy meant for one-minute charts that buys when price is near a recent pivot low, RSI is below an oversold level, a hammer or bullish engulfing candle appears and price is above an EMA. Sells mirror this near pivot highs with overbought RSI, bearish patt
An overlay indicator that detects swing structure on up to three configurable timeframes and marks break of structure and market structure shift events with lines and labels. Each timeframe has its own swing length, line style, colours and a choice between clo
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
Measures how far price sits from an Arnaud Legoux moving average, shown as a percentage in a separate pane. The average length is scaled by the ratio between a chosen higher timeframe, 60 minutes by default, and the chart timeframe so values stay comparable ac
Calculates take profit and stop loss levels from the Average True Range and shows them on the price chart for long and short setups. Settings are the ATR period and separate multipliers for the stop loss and the take profit. The levels are computed from the la
A plain Average True Range indicator in a separate pane. It plots the ATR of the chart with an adjustable averaging length, 14 by default, and has no signals, levels, alerts or trade rules. The repository description and README present it as a way to size stop
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
Draws Bollinger Bands from up to three user-chosen timeframes at once on the price chart. For each timeframe it can show the basis line and bands at one, two and three standard deviations, with its own period, offset and colours. The average type can be SMA, E
A long-only strategy built on the built-in Supertrend indicator. It enters long when Supertrend flips to an uptrend and closes the position when it flips back to a downtrend, with orders processed on bar close. ATR length and factor are adjustable. Green and r
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
A feature-rich overlay indicator that prints buy and sell signals with a sensitivity setting, a signal tuner and presets such as All Signals or Trend Scalper. It adds a trend cloud, a long-term trend tracer, pullback signals, trend heatmap candle colouring and
Scans recent price swings on the chart for four harmonic patterns, Bat, Butterfly, Crab and Shark, checking Fibonacci ratios within an adjustable tolerance over a lookback window. Detected patterns are drawn with labels, price levels, a completion marker and a
A pivot breakout strategy for the S50 futures on a 30-minute chart. Swing highs and lows are found from left and right bar counts, with stop entries placed beyond them. Each entry has an exit order with a stop one ATR past the pivot and a limit set by a risk t
An overlay that draws a ribbon of moving averages with lengths from 20 to 50 in steps of five, plus optional 100 and 200 length lines. A switch chooses exponential or simple averages, and the price source can be changed. The area between the 100 and 200 lines
An indicator that plots a 200-period simple moving average on the price chart and builds colour-filled bands from multiples of it: half, one and a half, two, two and a half and three times the average. The length is adjustable, and the intended use is the 200-
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
A small test strategy used to exercise a browser automation project rather than to trade. It goes long when a 14-period simple moving average crosses above a 28-period one and short on the opposite cross, with no stop loss or take profit. It also defines sampl
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 strategy goes long when ADX is above a threshold and price crosses above a 20-period simple moving average, and goes short on the opposite cross. Each entry carries an ATR-based stop loss and take profit, set by two multipliers. Orders use all available e
A candlestick pattern detector for the rising and falling three methods setup on a five-candle window. For a bullish final candle it checks that the three candles before it are bearish and sit within the range of the first candle, and for a bearish final candl
A strategy built on two Donchian midlines, one long and one short, plus an ATR readout. It enters long when price has crossed above the long line and the short line has crossed above the long line, in either order, and enters short on the mirror pair of crosse
Auto Trend Line Indicator is a minimal overlay script that looks back over a set number of bars for the most recent swing high and swing low, then draws a green line joining them. Swing length and lookback period are the only settings. A new line is created on
A separate-pane indicator that computes the directional movement system by hand, smoothing true range and plus and minus directional movement over a set length to derive DI values and ADX, and shows them as a histogram. An ADX threshold input sets the level fo
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
This strategy trades long or short on the chart. It takes a long entry when a fast EMA is above a slow EMA, MACD is above its signal line, ADX is above a threshold and price is above VWAP, or when price breaks above a pivot high; shorts mirror this. Each trade
An indicator in a separate pane that plots Commitment of Traders disaggregated report metrics for the chart symbol, such as open interest, producer merchant, swap, managed money and other reportable positions. Settings pick the metric, the direction (long, sho
A price-chart overlay built on a 50-bar simple moving average. A green circle marks the bar where the close crosses above it and a red circle where it crosses below, and a small coloured dot at the top of the pane shows the current state, green after an upward
A multi-feature chart overlay that generates buy and sell signals from a SuperTrend-style calculation with an adjustable sensitivity and a choice between all signals and smart signals. It can add a trend ribbon, trend cloud, chaos trend line, order blocks, a 2
Kotegawa Pump Tracker is an overlay indicator aimed at volatile crypto markets. It combines an adaptive SuperTrend with a clustering step that sorts recent volatility into high, medium and low levels over an analysis window, and it also uses RSI. According to
This indicator bundles several oscillators into one separate pane: an RSI drawn as circles with bands at 20, 45, 50, 55 and 80, a smoothed Stochastic with %K and %D, and a MACD with line, signal and area histogram. Further sections, such as an absolute strengt
A combined overlay that calculates several well-known indicators in one script: an ATR-based stop distance that colors bars yellow when price moves beyond it, ADX with directional indices, RSI with a selectable moving average or Bollinger Bands and optional di
TICK.US Status Box is an overlay indicator that reads the NYSE TICK index (TICK.US) on the chart's timeframe and shows its value in a small box. The box text reads very low, normal, high or very high depending on three adjustable level inputs, and the box colo
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
A strategy template that sets up Bollinger Bands, MACD and an RSI with its own Bollinger band, each with adjustable lengths, and uses a share of equity for sizing. Orders carry a percentage stop loss and take profit, defaulting to 3 and 30. The condition secti
A strategy built on a smart money concepts toolkit that draws internal and external market structure with break of structure and change of character labels, swing order blocks, fair value gaps, previous day and 4-hour highs and lows, and automatic Fibonacci le
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
Shows a table on the price chart with swing trading data such as average daily range percent, relative volume, price volume, shares float, market cap and average dollar volume. Settings choose which rows appear, the table position and size, text colour, alignm
A Pine v6 strategy on the price chart that applies a range filter to smooth price and detect direction, optionally on Heikin Ashi candles, with sampling period and multiplier settings. It also draws pivot-based support and resistance levels. Trades can be limi
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
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.