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.
This strategy executes trades on futures contracts by combining custom smoothed price bars with a multi-timeframe stochastic oscillator and Ichimoku elements. It calculates percentage-based stop-loss and take-profit targets for long and short positions. It ove
This indicator plots reference levels for previous daily high and low prices directly on the price chart. It requests daily timeframe data using the security function and plots the offset values as continuous lines, displaying resistance in red and support in
EMA Crossover Strategy plots a fast and a slow exponential moving average on the price chart. It treats a confirmed fast-over-slow cross as a long condition and a confirmed cross under as a short condition. Position size is a percentage of equity. Optional per
Five-in-one Strategy combines five analytical tools into a single price chart overlay: the Dual Thrust Trading Algorithm (DTTA), Semafore, HalfTrend, Nick Rypock Trailing Reverse, and Tweezer or Kangaroo Tail candlestick patterns. It generates trade signals us
This strategy overlays several classic studies on the price chart. It calculates a MACD-style oscillator from fast and slow moving averages with a signal line, a 200-period exponential moving average, and Williams Alligator smoothed averages for the jaw, teeth
This indicator calculates Bill Williams' Awesome Oscillator in a separate pane. It forms the bar midpoint from high and low, then subtracts a slow simple moving average of that midpoint from a faster one. Default periods are 5 and 34. The histogram is green wh
This indicator calculates and plots a 5-period simple moving average and a 20-period simple moving average directly on the price chart. It visualizes the channel between the two moving averages by filling the background space with dynamic colors. When the 5-pe
9 to Futere is an overlay indicator that projects the closing price forward onto future bars while identifying potential trading setups relative to past price action. It plots a forward-offset line based on a customizable candle count set to nine bars by defau
This indicator calculates a Supertrend line combined with a 200-period exponential moving average for trend filtering. It plots the Supertrend lines and background fills directly on the price chart, generating buy and sell signal labels when the trend directio
This indicator calculates John Ehlers' Detrended Synthetic Price using a dual exponential moving average (EMA) approach. It derives a fast quarter-cycle EMA and a slow half-cycle EMA from a specified dominant cycle period, applying exact warm-up normalization
The TTM Squeeze Divergence indicator plots a classic TTM Squeeze momentum oscillator in a separate pane alongside Bollinger Bands and Keltner Channels squeeze status dots on the zero line. It detects regular and hidden bullish and bearish divergences between p
This indicator calculates and plots the Bollinger Bands %B oscillator in a separate pane below the price chart. It measures the relative position of the price compared to standard Bollinger Bands, normalizing values where zero represents the lower band and one
This indicator counts bars from the start of each trading day and resets the count when the daily session changes. It plots the running count in the data window and, when enabled, draws that number below the bar every N bars. A second interval switches the lab
This strategy plots a Supertrend and a double exponential moving average on the price chart. Supertrend direction flips mark buy and sell signals, with optional labels and trend highlighting. The DEMA uses a selectable timeframe and source and is requested wit
This strategy enters long or short Donchian breakouts and sizes each unit from a percentage of equity and ATR. It sets an initial ATR stop, trails with a chandelier stop, and tightens that trail after a chosen number of bars. Optional profit targets close one
Divergenced I002 is a trading strategy that identifies entry points using Squeeze Momentum Indicator divergences across price and momentum structure. Long positions trigger on bullish momentum divergences, while short positions trigger on bearish divergences.
This indicator detects compressed corrective coils inside a higher-timeframe trend and signals when they resolve into clean directional breaks. It plots compression bands, fractal boxes, efficiency scores, and a light dashboard on the price chart. Signals clas
Volatility Contraction Score is a separate-pane indicator that scores how tightly price and volume are contracting. It compares short and long true-range averages and close standard deviations, then folds in a five-bar volume ratio against a longer volume aver
This strategy tracks the Williams %R oscillator to trade mean-reversion bounces from overbought and oversold extremes. It opens long or short positions when a reversal signal occurs alongside confirming price direction, while generating JSON-formatted alert pa
Stochastic with STC X combines three momentum oscillators into a single separate indicator pane: a standard Stochastic Oscillator, the Schaff Trend Cycle (STC), and an adapted WaveTrend oscillator. It plots smoothed %K and %D lines with visual circle markers f
Heikin Ashi Dots calculates trend momentum using Heikin-Ashi candle values retrieved across a customizable timeframe. It evaluates the relationship between the open and close of the current and prior Heikin-Ashi bars, plotting a horizontal series of colored ci
This indicator calculates and plots a smoothed Theil-Sen robust linear regression line directly on the price chart alongside statistical deviation bands. It uses Gaussian kernel weighting to blend between median and mean calculations for slopes and residuals.
Fibonacci Bollinger Bands overlays standard Bollinger Bands along with multiple internal and external Fibonacci ratio levels on the price chart. It calculates a center basis line using a simple, exponential, or weighted moving average, and computes upper and l
This indicator plots a session volume-weighted average price on the price chart and resets the cumulative price-volume totals when a new session begins. It uses typical price and volume, and can draw optional standard-deviation bands around the VWAP. A corner
Wick Rejection S/R Strategy identifies key support and resistance zones based on candlestick wick rejections and liquidity sweeps directly on the price chart. It calculates potential reversal and breakout retest zones using configurable wick thresholds, level
This indicator builds a frozen volume profile over a fixed, half-open timestamp range and draws it on the price chart. It aggregates one-minute source bars into output rows sized by a chosen tick count, marks a configurable value-area percentage, and can plot
Quick Scan for Cycles is a technical indicator designed to analyze cyclic behavior in financial asset prices. Operating in a separate indicator pane, it uses a customizable data source and bar lookback length to process price data and scan for recurring cycle
This indicator identifies Smart Money Concept (SMC) market structure elements, specifically Order Blocks (OB) and Fair Value Gaps (FVG), across current or higher timeframes. It highlights dynamic order blocks and imbalance zones directly on the price chart usi
This short-only strategy enters when price is below a daily 50-period EMA, crosses under a four-hour 50-period EMA, and closes below the previous bar low. Position size is 20 percent of equity. Exits use a limit and stop based on percentage distances by defaul
This indicator presents a separate-pane dashboard that looks up stored figures for a chosen crypto pair and a named strategy. It does not calculate RSI, MACD, bands, or other indicators from live prices. Inputs select the pair and strategy and toggle metric an
This strategy draws up to three exponential moving averages, default lengths 34, 89 and 610, across as many as seven user-chosen timeframes in a separate pane. Each series uses a gradient by timeframe, and optional smoothing or variable line width changes how
This strategy trades Ethereum with a fast and slow exponential moving average crossover filtered by a 200-period EMA. It enters long when the fast EMA crosses above the slow EMA and price is above the 200 EMA. Shorts stay off by default and open only when that
Tracks the high and low of a user-defined intraday session and enters breakout trades when the bar closes outside this range. It can enter during the session or wait until the session ends. Long trades enter on a close above the session high, while short trade
SPY Trending is an indicator designed for SPY that evaluates trend alignment across multiple timeframes using Exponential Moving Averages (5, 10, and 20 EMAs). It fetches data across lower and higher timeframes to evaluate buy and sell conditions, displaying t
Calculates a True Strength Index (TSI) oscillator modified with a linear regression line and standard deviation bands. It plots the regression line in a separate pane along with static reference levels at zero, 0.8, and -0.8, coloring the line based on slope d
This indicator plots five Fibonacci-based exponential moving averages on the main price chart, using lengths of 3, 13, 34, 55, and 144. It tracks Guppy Multiple Moving Average and Granville concepts to analyze trend direction and alignment. The script tests wh
This indicator combines three momentum and trend analysis tools into a separate pane: a multi-timeframe Commodity Channel Index (CCI), a multi-timeframe Stochastic Oscillator, and a dual-EMA smoothed Heikin-Ashi trend bias displayed as colored dots. Users can
This Pine Script indicator draws fractal levels on the price chart. It computes up and down fractals by evaluating high and low values across multiple bars using custom array functions. The code defines weighted array sums and slices to identify fractal indice
Skew Weighted Average Price (SWAP) calculates a skew-weighted average price for nuanced analysis of price dynamics and potential trading opportunities. The script determines skew by comparing smoothed positive and negative true ranges derived from price direct
This indicator calculates and plots the Stochastic Oscillator (%K and %D lines) in a separate pane. It identifies overbought and oversold market conditions with configurable threshold levels and background zone gradients. When enabled, it plots entry markers o
This indicator overlays price action assistance tools on the main price chart. It calculates and plots up to three exponential moving averages with user-defined lengths, colors, and independent multi-timeframe resolution settings. In addition to moving average
Liquidity Location Detector is a TradingView Pine Script indicator that plots fast and slow EMA lines on the price chart along with crossover signals. It detects and draws liquidity zones as colored boxes representing support and resistance levels based on nor
This strategy identifies buy and sell entry points for XAUUSD using a combination of exponential moving averages, RSI, Stochastic oscillators, ATR, and Fibonacci zones. It supports multi-mode execution featuring confirmation and scalp entries triggered by over
Alpy Kazan is a multi-timeframe momentum strategy combining a WaveTrend oscillator with dual-length RSI divergence calculations. It evaluates custom timeframes to plot overbought and oversold bands, WaveTrend crossovers, and RSI differentials in a separate pan
The Half Causal Estimator calculates a smoothed statistical baseline for metrics such as volume, true range, or price change. It uses time-of-day data hashing combined with non-parametric kernel filtering, supporting Gaussian, Epanechnikov, Triangular, and Sin
This indicator calculates close-to-close volatility from logarithmic returns of consecutive closing prices. It computes the standard deviation of those returns over a chosen length, annualizes the result with the square root of 252, and optionally smooths it w
This strategy plots support and resistance from the highest high and lowest low over a lookback window, and can overlay Bollinger Bands on the price chart. It calculates RSI or MFI, optionally from Heikin Ashi prices, and exposes WaveTrend, Laguerre smoothing
This library supplies utility functions for handling signal values in Pine Script. The quantize function selects one of four results depending on whether the input value is positive, negative, zero or NaN. The negMult function multiplies the value by a given m
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.