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.
The Golden Strategy is a Pine Script v6 strategy that overlays EMA and SMA on the price chart to detect crossovers for trend direction. It adds MACD for momentum confirmation and RSI to identify overbought and oversold conditions. Volume average filters out lo
Brahmāstra plots a fixed 10-period exponential moving average on the price chart and marks candles that sit entirely beyond it. A red candle whose low is above the average gets a cross, and a later green candle that opens below and closes above that candle's h
Cipher A is a trend-following overlay indicator that plots a multi-line moving average ribbon alongside long-term moving averages, VWAP, and higher-timeframe weekly and monthly key levels directly on the price chart. It incorporates underlying WaveTrend, RSI,
This strategy combines volume surge detection, Fibonacci retracements, moving averages, and ATR volatility for trade execution. Long positions trigger when price exceeds the 0.618 Fibonacci level, price stays above a 200-period SMA, a fast EMA crosses above a
This indicator plots entry signals and moving average lines for three Fibonacci-period strategies directly on the price chart: Momentum Breakout, Mean Reversion, and Fibonacci Retracement. Each strategy uses combinations of Fibonacci-length moving averages (su
The Pivot Points indicator plots horizontal lines on the price chart to mark bullish and bearish pivot points. It identifies shifts from bullish to bearish or vice versa by scanning the last 100 candles by default. Buy lines appear in blue and sell lines in re
This indicator plots a fast and a slow simple moving average on the price chart and marks a buy when the fast average crosses above the slow average and a sell when it crosses below. It creates alert conditions that send structured JSON messages with the signa
The 200DMA Entry strategy plots the 200-day simple moving average on the price chart. It generates long signals when the close crosses above the 200 MA on the prior bar. Positions are sized at 1 percent of account equity. The strategy exits at a 2.5 times take
This indicator plots a MACD-style oscillator in a separate pane. It subtracts a slow moving average from a fast moving average of the chosen source, then smooths that difference into a signal line. SMA or EMA can be selected for both the oscillator and the sig
This strategy template overlays a demonstration system of Parabolic SAR, regression channels, and Supertrend on the price chart while packaging TV-Hub webhook commands. It generates buy, sell, and close alert messages for selected crypto exchanges. Inputs set
This indicator plots ATR-based stop bands on the price chart. It smooths true range with a selectable moving average, multiplies it by a factor, and adds that distance to the high and subtracts it from the low. The upper plot is labeled as a short stop and the
Calculates a Wilder's moving average on volume to categorize activity into six distinct levels ranging from Ultra High to Very Low based on user-defined ratio thresholds. It plots volume as color-coded histogram columns in a separate pane to help identify volu
SG Market Cipher B is an oscillator indicator plotted in a separate pane that combines WaveTrend and RSI calculations to identify momentum and potential trend reversals. It generates visual signal dots (buy, sell, gold, and divergence dots) based on overbought
This indicator detects and highlights Doji candlestick patterns directly on the price chart. It checks whether the absolute difference between the candle's open and close prices falls below a user-defined threshold relative to the closing price. The script dif
This strategy opens a long base order and preplaces up to seven limit safety orders below entry, increasing size by a volume scale as price falls. It recalculates an average entry and closes the whole position when price reaches a take-profit percentage above
This overlay indicator draws price-action order blocks on the chart and marks internal buy and sell activity inside them. It constructs blocks from a chosen length or the full candle body, then treats them as mitigated by close, wick, or average. Users control
This trend-following strategy calculates asymmetric Bollinger Bands and overlays them on the price chart alongside a central moving average. It enters long positions when the price crosses above the upper band, provided an optional benchmark trend filter (chec
Advanced Option Price Estimator applies the Black-Scholes model to estimate call and put option prices directly on the main price chart. It uses standard normal distribution functions and Newton-Raphson iterations to calculate implied volatility across calcula
This strategy plots Bollinger bands and a simple moving average on the price chart. It opens a short when price crosses above the upper band while below the average, and a long when price crosses below the lower band while above the average. Entries are allowe
This overlay indicator draws MarketSmith-style price bars and several moving averages on the chart. Bar color follows the current close versus the open, or versus the previous close when that option is enabled. Four daily averages and four weekly averages can
TriexDev - Liquidation Rekt Levels calculates and plots estimated liquidation price thresholds directly on the price chart overlay. It projects liquidation boundaries for long and short positions based on common leverage multipliers, including 3x, 5x, 10x, 25x
TradeEase is a Smart Money Concepts indicator that maps market structure and key liquidity zones directly on the main price chart. It identifies internal and swing market structure changes, including Break of Structure (BOS) and Change of Character (CHoCH), as
This Pine Script strategy plots a G-Channel and a 200-period Exponential Moving Average (EMA) directly on the price chart. It triggers buy signals when price crosses the lower G-Channel line while trading below the EMA line. Long positions are managed using Av
This strategy tracks directional shifts in a 9-period Exponential Moving Average (EMA) to identify trend reversals based on the Larry Williams 9.1 setup. It plots the 9 EMA on the main chart and generates a long signal when the EMA turns upward after declining
This strategy plots a fast and a slow exponential moving average on the price chart. It enters long when the fast average crosses above the slow average and short when it crosses below. Each entry sets a percentage take profit and stop loss from the close of t
Breaker Blocks with Signals [LuxAlgo] detects smart money market structure break patterns and draws breaker block zones directly on the main price chart. It identifies bullish and bearish breaker blocks, swing highs and lows, and optional premium/discount arra
3 RSI DWM plots a chart-timeframe RSI and up to three additional RSI series requested from user-selected timeframes, defaulting to weekly, monthly, and 60 minutes. Each series has its own length and source, and boolean inputs show or hide the extra series. It
This indicator plots Bitcoin market capitalization from the Quandl BCHAIN/MKTCP series in a separate pane. It draws the series as an area whose color shifts with the capitalization level. An optional six-period simple moving average can be shown as a line over
This indicator plots rolling correlations between the chart symbol’s close and six crypto series in a separate pane. It requests 15-minute closes for an altcoin perpetual, Ethereum, Ripple, Litecoin, Cardano, and Tezos, then calculates each correlation over a
This strategy combines Relative Strength Index momentum signals with standard deviation dynamic thresholds to identify trade entries. Long orders execute when RSI drops below 37 while price stays above the lower dynamic boundary. Short orders trigger when RSI
This indicator plots a multi-symbol dashboard on the price chart to monitor up to five custom ticker symbols across three timeframes. It calculates the Relative Strength Index (RSI), Stochastic RSI %K, and %D values alongside the current price. Traders can mod
This indicator plots Linear Regression lines with deviation bands on the price chart to identify support and resistance levels. It filters signals using configurable EMA lines and optional Supertrend filter. A session filter restricts calculations to specified
This strategy calculates 50-period and 200-period exponential moving averages alongside a standard Moving Average Convergence Divergence (MACD) oscillator. It plots the moving averages and the MACD histogram directly on the price chart. The strategy opens a lo
Strategy combining EMA and SMA trend alignment with pin bar candle patterns and moving average piercing. It triggers trades in the direction of the moving average fan when a pin bar forms, managing positions using an ATR-based stop loss, pip-based profit targe
This strategy detects volume-based trading signals on Bitcoin perpetual futures. It calculates volume spikes on green and red candles along with ATR for volatility filtering. Long entries trigger on red candles with high volume and specific spike conditions wh
This indicator detects and visualizes core Smart Money Concepts directly on the price chart. It plots bullish and bearish order blocks, fair value gaps, rejection blocks, break of structure levels, pivots, and liquidity pools using boxes and markers. A dedicat
This indicator plots relative strength lines for major currencies and optional metals and oil in a separate pane. It builds each series from a chosen source, either raw price or RSI or stochastics, then applies a selected moving-average smoother. Resolution ca
This indicator plots a multi-timeframe exponential moving average on the price chart. It requests the same EMA length from a signal timeframe and a resistance timeframe, then colors the signal line green when it is above the resistance line and red when it is
Carmelita Adelina Leandro by Professor Theta is an intraday signal script designed for futures charts. It calculates VWAP and a 9-period Exponential Moving Average to identify trend reversal triggers. Long and short entry signals are evaluated based on open pr
This strategy combines Bollinger Bands and Bollinger Band Width to trigger breakout trades during periods of low volatility. It opens long positions when price crosses above the upper band while band width is below its 100-period moving average, and opens shor
Combines Ichimoku Cloud, SuperTrend, Bollinger Bands, and three moving averages into a single overlay indicator. It plots trend direction, volatility bands, and key averages directly on the price chart. The indicator features a Bollinger Band pinch detector th
MomGulfing is a momentum strategy that identifies trade setups using multi-bar engulfing candlestick patterns paired with volume confirmation. It triggers long or short entries when price breaks key candle bounds across one to three bars while volume expands.
Icarus is an overlay indicator that projects momentum and level indicators directly onto the price chart. It calculates higher-timeframe equivalents for moving averages, computes Supertrend, and constructs price-equivalent RSI upper and lower bands based on La
This indicator plots Camarilla pivot levels (H1 to H6 and L1 to L6) alongside the Central Pivot Range (CPR) directly on the price chart. It fetches higher timeframe market data for daily, weekly, monthly, and yearly timeframes, including previous session highs
BB RSI Strategy combines Bollinger Bands, RSI, and multiple simple moving averages directly on the main price chart. It enters long positions when price drops below the lower Bollinger Band while RSI is below a set limit, and enters short positions when price
Calculates price direction for the current asset alongside 60-minute directional changes for BCH and LTC using multi-symbol requests. Combines these conditions with a 24-bar percentage price change threshold to produce bullish or bearish consensus signals. Set
BBI is a price-chart indicator that builds two upper Bollinger bands from the close: a 100-bar band with a 1.25 standard-deviation multiplier and a 300-bar band with a 0.75 multiplier. It plots a small red BBI label above the bar when those bands cross and the
This indicator detects pivot highs and lows, evaluates how often levels are respected by price, and uses an internal logistic regression model to estimate the probability that a level will hold. Qualifying support and resistance lines are projected onto the pr
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.