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 indicator plots three EMAs with customizable lengths, narrow and wide Bollinger Bands, ALMA with adjustable offset and sigma, and multiple Fibonacci retracement levels on the price chart. It generates buy and sell signals on EMA5 crossing EMA13. Main sett
This strategy calculates a target position size based on exponentially weighted moving average volatility forecasts. It plots the current position size, target position size, and a configurable trade buffer region in a separate indicator pane. When the current
This indicator combines three Exponential Moving Averages (EMAs), imbalance gap detection, and a volume profile on the main price chart. It plots customizable short, medium, and long-term EMAs while highlighting Fair Value Gaps (FVG) and Opening Gaps (OG). Add
This strategy combines two Supertrend indicators with a MACD histogram filter to identify trend-following entries on the price chart. Long entries trigger when both Supertrend lines are bullish and the MACD histogram is positive. Short entries execute when bot
Auto Trendline automatically identifies fractal pivot points on the price chart and connects them to draw trendlines. It scans for higher highs, lower highs, higher lows, and lower lows over a customizable fractal period. Users can configure colors and visibil
This indicator calculates upper and lower Bollinger Bands using a Simple Moving Average and standard deviation. It plots both bands with a colored background fill between them, alongside the closing price in a separate indicator pane. Users can customize the c
Calculates the Center of Gravity oscillator to identify momentum and potential turning points. It plots the oscillator alongside an Arnaud Legoux Moving Average trigger line, a Least Squares Moving Average, historical high and low bounds, and optional Fibonacc
This indicator plots standard pivot points on the price chart using prior high, low, and close. It supports Traditional, Fibonacci, Woodie, Classic, Demark, and Camarilla calculations and can show daily, weekly, and monthly levels together. Users choose how ma
The FTX Premium Indicator calculates and plots the relative price spread between cryptocurrency futures and spot contracts in a separate pane. It compares perpetual or dated contracts against spot markets and can normalize the difference into an annualized per
The script is a price chart overlay indicator. It calculates a five period weighted moving average of close prices. Long signals trigger on crossovers from below the EMA combined with upward price action and trend continuation. Short signals trigger on crossov
This indicator plots a Heikin Ashi style oscillator built from RSI values in a separate pane. It calculates candles from a chosen source and RSI length, with optional smoothing of the candle open. Users can also show a separate RSI line, an RSI histogram, a st
This indicator plots an exponential moving average on the price chart and colors it green when the close is above the average and red when it is below. It marks a long triangle when price flips from below the average to above it, and a short triangle on the op
This strategy plots three exponential moving averages on the price chart and trades their alignment. It enters long when the fast EMA crosses above the mid EMA while price is above the slow EMA, and closes that long on the opposite cross with price below the s
This strategy plots an Awesome Oscillator-style histogram in a separate pane. It subtracts a longer simple moving average of the bar midpoint from a shorter one and colors bars by whether the value is rising or falling. It opens a fixed-size long position when
This indicator combines Stochastic RSI, Relative Strength Index (RSI), and Average Directional Index (ADX) into a single separate oscillator pane. It calculates momentum indicators alongside trend strength values to assess overall market conditions. The Stocha
SupRes[tytyd] is an overlay indicator that calculates and plots dynamic short-term and long-term support and resistance levels directly on the price chart. Using configurable lookback periods, it tracks recent price highs and lows to draw support and resistanc
This strategy combines Ichimoku Cloud calculations with an RSI filter to generate trading signals directly on the price chart. It offers options for displaying either standard offset lines or non-offset non-repainting cloud components. Users can configure para
This indicator plots two exponential moving averages of a chosen price source on the price chart. A green upward triangle marks when the fast average crosses above the slow average, and a red downward triangle marks the opposite cross. Both events are also exp
AT+T3 is a TradingView Pine Script indicator that overlays the T3 moving average (with Fibonacci variant) and AlphaTrend on price charts for BIST stocks. T3 uses Tim Tillson's smoothing formula with adjustable length and volume factor to produce trend lines th
This indicator plots an opening-range high, low, and midpoint on the price chart. The levels build during a user-defined opening window and remain visible through the regular session before resetting the next day. A breakout marker appears after a chosen numbe
This strategy executes long positions based on Bollinger Band midline interactions and candlestick price action. It confirms an entry when the bar's low touches or breaches the 20-period moving average midline while fulfilling one of four candlestick criteria,
This strategy plots entry signals, stop loss, take profit levels, and an information panel directly on the price chart. It combines a relative strength index mean reversion model with ATR percentile thresholds to filter trades based on volatility conditions. T
Zigzag Impulse Stats calculates statistical metrics across dynamic zigzag segments overlayed on the price chart. It measures segment ratio, depth, heterogeneity, uniformity, trendline deviation, candle deviations, and envelope area. An optional Impulse Mode hi
ATR Pip Control is a volatility indicator that plots adaptive upper and lower bands based on ATR calculations. It draws signal triangles, labels, and bar colors on the price chart for breakout direction. Local end support and resistance lines appear on both si
This indicator plots a Chandelier Exit trailing stop on the price chart. It subtracts a multiple of ATR from the highest high or highest close for the long stop and adds the same distance to the lowest low or lowest close for the short stop. The active stop ra
Drawing Scaffold calculates the highest high and lowest low over a customizable lookback period. It plots these boundaries on the main price chart and dynamically renders extended support and resistance lines, a price label, and an optional visual range box on
The PCA Risk Indicator aggregates multiple technical momentum and trend indicators—including WaveTrend, Heikin Ashi Count, and Aroon—into a consolidated Principal Component Analysis (PCA) metric. It evaluates underlying market risk by standardizing individual
This indicator calculates Williams' Variable Accumulation/Distribution (WVAD) pressure alongside a signal line in a separate pane. It incorporates optional filters such as higher-timeframe confirmation, an ADX strength filter, and various adaptive smoothing ch
This strategy plots EMAs 21, 52, and 144 alongside the MACD indicator on the BTC price chart. It identifies bullish or bearish line segments using MACD crossovers above and below zero, with delay confirmations and below-zero-axis breakout filters. Entries occu
This overlay indicator marks smart-money structure on the price chart. It stores recent confirmed swing highs and lows and labels the structure bullish, bearish, or ranging from higher highs and lows or lower highs and lows. It marks a bullish or bearish order
This indicator identifies market impulses, consolidation zones, and potential stop levels directly on the price chart. It evaluates price movement using dual ATR ratios, tight-range consolidation filters, stochastic momentum, and candle body-to-wick proportion
This indicator plots three exponential moving averages directly on the price chart using default lengths of 34, 89, and 200. Alongside the moving averages, it renders on-chart watermark tables displaying a custom title, subtitle, ticker symbol, timeframe, and
This indicator calculates a multi-timeframe trend and momentum score across five customizable timeframes for up to three symbols using an EMA and RSI dual-vote system. It displays an on-chart dashboard table summarizing individual timeframe states, weighted ag
This indicator calculates the classic Moving Average Convergence Divergence (MACD) oscillator, signal line, and momentum histogram in a separate pane. Users can configure the source, fast length, slow length, and signal length, as well as toggle between EMA an
This indicator is a teaching example of common Pine Script mistakes and corrected patterns. It calculates a rate of change with a zero-price guard, a simple moving average with an early-bar index check, and sample array operations. Inputs set the calculation l
Donchian Channel Breakout is a Pine Script v5 strategy drawn on the price chart. It enters long when close crosses above the previous upper Donchian band and short when close crosses below the previous lower band, reversing with the opposite signal. An ATR tra
ETH Momentum Breakout is a momentum-based strategy overlay for crypto trading. It identifies volatility compression by checking when Bollinger Bands fall within Keltner Channels for a minimum number of bars. It triggers breakout orders when price breaks out be
The Judas Indicator strategy calculates a multi-factor composite score combining Volume Profile High Volume Nodes, Cumulative Volume Delta (CVD), pivot proximity, volume absorption, order imbalance, and higher-timeframe trend EMAs. It triggers trade entries wh
This strategy calculates the standard Moving Average Convergence Divergence oscillator and generates trade entries based on signal line crossovers. It opens long positions on bullish crossovers and short positions on bearish crossunders. An optional exponentia
JINADA Up is an all-in-one chart overlay indicator that combines support and resistance zones, multiple moving averages, candlestick body and wick ratio analysis, and dynamic stop levels. It identifies support and resistance levels across user-defined lookback
The indicator estimates US and EU macro cycle conditions in a separate pane. It loads inflation, policy rates, yield spreads, credit spreads, and unemployment, then builds a neutral rate from user real r-star plus inflation expectations. A fixed logistic formu
Coco plots several selectable moving averages in a separate pane and can show the percentage dispersion between them. Fast and slow averages default to a 3-period SMA and a 21-period WMA, with optional third and fourth averages. Supported types include SMA, WM
Hedge Short Setup Finder identifies potential short entry opportunities by combining multiple technical confluence conditions. It scans for momentum exhaustion using price surge percentage over a lookback period, overbought RSI with rollover confirmation, Boll
The indicator draws Elliott Wave analysis on the price chart for cryptocurrency. It locates pivot highs and lows using a user-set length, counts waves one through five automatically, and allows a manual wave override. Optional Fibonacci retracement and extensi
This indicator tracks and visualizes session ranges based on the Beat The Market Maker (BTMM) trading methodology directly on the price chart. It defines and draws session boxes for Asian accumulation, London manipulation, and New York distribution phases. It
This strategy combines Price Position Percentage thresholds with an RSI oscillator, Simple Moving Average, and a volatility filter to identify breakout setups on Bitcoin. It evaluates momentum and trend alignment to trigger positions when RSI crosses entry thr
This strategy plots an ATR trailing trend line on the price chart, built from each close and a risk-scaled average true range. A close crossing that line marks a buy or sell location. Optional drawing includes a colored trend line, a fill between price and the
This indicator identifies and plots Fair Value Gaps (FVG) and Market Structure Breaks (MSB) directly on the price chart. Fair Value Gaps are drawn using colored boxes that can be extended across bars and filtered with an automatic volatility threshold or set t
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.