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.
Corpus Correlation Rotation is a cross-asset quantitative strategy that compares the price performance of the chart symbol against a user-selected benchmark asset. It measures five-bar price changes for both symbols, computes a 20-period statistical correlatio
Combines smart money concepts with a multi-timeframe stack on the price chart. A 4-hour EMA bias, 1-hour liquidity sweeps and 15-minute order blocks and fair value gaps feed a confidence score, with a minimum score, signal cooldown and an entry mode setting. O
Identifies rally, base and drop candle sequences and turns them into supply and demand zones on the price chart. It checks four patterns: rally-base-drop, rally-base-rally, drop-base-drop and drop-base-rally. Settings define the averaging length, the size of b
An indicator on the price chart that follows an ATR-based trend line with a factor setting, plus a fast and slow EMA cloud, and prints signals with fixed dollar stop loss and three take profit distances. Signals can be limited to two time sessions in a chosen
The Simple MA Crossover Strategy calculates and plots a 55-period EMA and a 200-period EMA directly on the main price chart. It generates long entry signals when the 55 EMA crosses above the 200 EMA and short entry signals when it crosses below. Positions are
This overlay indicator combines three optional modules on the price chart. Volume weighted bands plot a smoothed trend and ATR-scaled envelopes in cloud or line-only form. The Keltner Hull suite calculates a Hull moving average and Keltner channels from a chos
This strategy trades opening gap continuation on the price chart. It measures the gap between the daily open and the prior daily close, then enters long after a qualifying gap up or short after a qualifying gap down when price stays beyond the open and a trend
RSGAlgo identifies consolidation ranges, support and resistance pivot levels, and price gaps directly on the chart. It calculates range bounds using a percentage threshold over a custom lookback period and highlights consolidation zones with background colorin
A price-chart overlay that draws a static set of options gamma levels for SPX (the S&P 500 index) expiring in about eighty-five days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated 2026-02-03, produced
ES Professional Fade is an intraday mean-reversion strategy designed for fading opening gaps on ES futures. It identifies market opening gaps using defined percentage and ATR thresholds, then places stop orders to fade the move while utilizing market breadth e
This TradingView indicator plots trend channels on the price chart using pivot highs and lows. It identifies liquidity breaks by normalizing volume against moving averages and percentiles. The main settings control pivot length, visibility of the last channel,
A multi-feature indicator on the price chart that prints buy and sell signals in confirmation or contrarian mode with exits, adjustable sensitivity and tuning, and a signal quality score from 1 to 4. Presets for trend, scalping, swing and contrarian styles app
This price-chart indicator simulates dollar-cost averaging between a start date and an end date. It builds a five-bar Hull moving average, smooths it with an exponential average, and colors the line by direction. Inside the window, every bar adds a fixed BTC s
Plots a histogram in a separate pane that compares two sets of Bollinger Bands, a short one of 20 bars and a long one of 50 bars by default. It measures how far apart the lower bands are minus how far apart the upper bands are, scaled by the short middle band.
An indicator that compares the volatility of the current symbol with Bitcoin. It computes the ATR of each as a fraction of its own moving average, then plots their ratio as a single line in a separate pane. A value above one means the chart symbol is moving mo
This basic script demonstrates how to calculate and plot a simple technical indicator in Pine Script. It computes a 14-period Exponential Moving Average (EMA) using the closing price of each bar and renders the line in a separate pane. Designed as an education
This indicator plots the RSI calculated over 20 periods on the price chart. It detects upward crosses of the 50 level for long signals and downward crosses for short signals when enabled by user inputs. Signals appear as plotchar symbols on the chart with a ho
A Pine v4 overlay that builds Bollinger Bands from a simple moving average and a multiple of the standard deviation of the chosen source. Inputs set the length, source, deviation multiplier and plot offset. The title suggests reversal use, but the portion of c
The Harmonic Osc indicator plots a z-score oscillator derived from kinetic and potential energy. Kinetic energy uses ROC of price over roc_p while potential energy ratios close to EMA over ema_p. These combine into total energy with weighting factors then stan
A Gann HiLo activator drawn on the price chart. It averages highs over one period and lows over another, 13 and 21 by default. When the close breaks below the prior low average, the line switches to the high average and turns maroon; when the close breaks abov
A Pine v4 strategy that plots a 12-period exponential moving average of the close in orange on the price chart. It goes long when a green candle opens above the average and short when a red candle opens below it, closing each position when the opposite signal
The Alpha-Decreasing Exponential Moving Average (ADEMA) calculates an exponential moving average where the smoothing factor decreases dynamically relative to the bar index. On early bars, the weight given to new price data is larger, making the calculation rea
This indicator builds Market Profile Time Price Opportunity (TPO) structures across defined session timeframes directly on the main price chart. It visualizes the Point of Control (POC) and Value Area boundaries using dynamic box drawings. An integrated multi-
This indicator plots three moving averages taken from separate timeframes onto the price chart. The user chooses either exponential or simple averages, then sets a timeframe and period for each of the three lines, defaulting to 15-minute, 60-minute, and 240-mi
This indicator overlays historical ARK Invest buy and sell transactions for ADYEN directly onto the main price chart. It reads hardcoded timestamp data to plot green buy labels below bars and red sell labels above bars on specific dates. A user setting allows
This script provides two color helpers: one converts red, green and blue channels into hue, saturation and lightness, and the other builds a Pine color from hue, saturation, lightness and transparency. Integer inputs set those four values within fixed ranges.
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.
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.