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.
The Litt Volume ++ indicator measures relative volume by comparing raw volume against a 100-period exponential moving average baseline. It calculates a relative volume ratio and smooths it with a 20-period EMA to identify volume intensity levels. Rendered in a
This indicator automatically detects and visualizes regular and inverse Head and Shoulders patterns on the main price chart. It identifies potential pattern structures by scanning pivot high and pivot low points according to user-defined left and right bar set
This strategy is a validation probe that places stop orders only when the bar minute is zero. When flat, it enters long at 02:00 with a buy stop one tick above the bar high, and enters short at 14:00 with a sell stop one tick below the bar low. It closes a lon
Mirror Oscillator Pro is a separate-pane oscillator that reflects price around confirmed pivot highs and lows and a selectable baseline. It maps the mirrored value into a dynamic 0 to 100 range, smooths it with an exponential moving average, and plots that lin
A SuperTrend-style indicator on the price chart that can tune its ATR length and multiplier automatically from a profile of the instrument over a lookback window. It adds multi-timeframe confluence with selectable strictness and an optional machine-learning si
Draws a Keltner Channel and ATR supertrend on the price chart and marks candles where gated combinations of pullback, displacement and volume detectors fire together. Inputs set the base moving average, channel length, ATR multiplier and displacement threshold
Tn Sovereign VIOP Session v6 is an intraday session-filtered trend-following strategy. It generates buy and sell signals based on fast and slow Exponential Moving Average (EMA) crossovers strictly within specified session hours. Trade risk is managed using ATR
A Pine Script v4 indicator that plots the point of control, value area high and value area low for daily, weekly and monthly periods on the price chart. It shows both the developing and the previous period, with optional shaded areas, target lines and text lab
GWRE-tracker is an overlay indicator that marks recorded ARK Invest purchases and sales of Guidewire Software on the price chart. With the ETF setting on ALL, it places fixed dated labels above or below bars that read Buy or Sell and show an X1 count of funds
This utility indicator demonstrates array sorting functionality in Pine Script version 4 by managing a ten-element array of recent price values. It continuously updates the array with the latest close, copies and sorts the collection based on a user-defined bo
S2 is a cryptocurrency rebalancing strategy originally designed for trading pairs like XTZ-EUR. It enters trades during buy and sell opportunity windows determined by rebalancing logic using external portfolio libraries. The strategy transacts a fixed base cry
This indicator computes the cumulative distribution function of a gamma distribution for a price series and plots the result in a separate pane. It first min-max normalizes the source over a lookback window, then scales that value by the rate parameter and eva
This indicator serves as a minimal documentation example that demonstrates label drawings in Pine Script v4. It creates a new visual label at the bar index and high price of each bar directly on the main price chart. The script does not calculate technical ind
This overlay indicator detects a black spinning top on the price chart. It treats a candle as a match when the body is bearish, both the upper and lower shadows are at least 34 percent of the full range, and the body is not small enough to count as a doji. On
Calculates and plots a smoothed variation of the Squeeze Momentum indicator in a separate pane. It identifies market compression and expansion states by comparing Bollinger Bands with Keltner Channels, while tracking momentum via linear regression. Settings al
This indicator calculates a custom ZigZag engine directly on the price chart to identify market structure and classic chart patterns. It automatically detects ABC corrections, symmetrical and sloped triangles, Wolfe waves, and Sperandeo 1-2-3 reversal patterns
The MACD RSI EMA Aggressive indicator generates momentum and trend-following signals on the price chart. It combines a MACD crossover or crossunder with an RSI threshold filter, price location relative to an Exponential Moving Average, volume expansion above a
NY SMC Suite Pro is a price-chart indicator that marks New York killzone sessions and smart-money structure. It shades the 714 AM, NY Open, and afternoon windows, and it plots order blocks and fair value gaps on a selectable analysis timeframe. Presets switch
Indicatorv5SMC / ICT / price actionSessions & time
Lower Forecast is an oscillator indicator drawn in a separate pane based on the Market Forecast framework. It calculates three momentum curves—Intermediate, Nearterm, and Momentum—using fast stochastic formula variations across short and medium lookback window
Heat Map Seasons plots a linear regression of typical price and colors each price bar by how far close sits from that line. It normalizes the gap with standard deviation, clamps extreme values, and maps them from aqua through yellow to red using a heat-sensiti
A test strategy from a reference corpus that updates a pending buy stop over four consecutive bars. During the first 45 minutes of the 02:00 hour it submits a buy stop one tick above the bar high with the same order id each bar until it fills, and closes any l
The Mirror Oscillator Pro indicator computes a custom oscillator by mapping RSI values to the range between detected pivot highs and lows on the selected timeframe. It offers multiple baseline choices including HH/LL extremes, ATR bands, Bollinger Bands, Ichim
A higher-timeframe trend ladder drawn on the price chart. For the 30 minute, 1 hour and 4 hour timeframes it compares a fast simple moving average with a slow exponential one. Optional filters require a rising or falling slope, cascading agreement between the
Marks a candle when a very high volume reading and a large displacement happen on the same bar. Volume tiers compare the bar against lookbacks of 1000, 2000, 3000 and 4000 bars, and displacement compares the candle range to a standard deviation multiple with a
This strategy estimates intrabar volume delta using bar ranges and volume, smoothing it with a moving average to detect divergence against price action. Trades are taken when bullish or bearish divergences align with a long-term EMA trend filter. Position exit
A Pine Script v4 indicator that draws daily and weekly levels on the price chart, built from a volume-profile style calculation. It works out the point of control and value area (default share 68.3 percent for the first timeframe, 86.6 percent for the second)
The HDB Tracker indicator visualizes historical buy and sell transactions made by ARK Invest funds in HDB stock. It plots colored labels directly on the price chart at specific trade dates, displaying the operation type and the count of participating ARK funds
This script demonstrates matrix operations in Pine Script v4 using one-dimensional arrays before native matrix types were introduced. It provides custom functions to initialize pseudo-matrices, perform matrix multiplication, and compute matrix transpositions.
This seasonal calendar strategy automates trades based on traditional monthly cycles. It enters a long position during the month of September and closes the active position when May arrives. The strategy operates without user inputs and visualizes performance
Gann High-Low Activator plots a trend line on the price chart from simple moving averages of highs and lows. Close above the high average sets a bullish trend and the line follows the low average; close below the low average sets a bearish trend and the line f
This indicator tracks and plots the cumulative highest and lowest closing prices recorded across the entire chart history. Using custom recursive functions, it continuously compares the current bar close against historical state variables to maintain running e
Spinning Top White is a price-chart indicator that marks a bullish spinning top. It treats a candle as a match when both shadows are at least 34 percent of the range, the body is not a doji, and the close is above the open. On a match it draws an STW label bel
This strategy enters trades on the price chart using price excursion logic and historical statistical advice to identify market opportunities. Depending on the number of trigger conditions met, it scales capital allocation per position. Exits are managed throu
This overlay indicator generates buy and sell signal labels on the price chart by combining MACD crossovers with an RSI threshold filter, a 21-period EMA trend filter, and a volume multiplier condition. When a valid signal triggers, it calculates and plots sug
The NY SMC Suite Pro v2.1 is a TradingView indicator that plots Order Blocks and Fair Value Gaps directly on the price chart to visualize Smart Money Concepts. It also displays customizable trading sessions including 714AM, NY Open, and 714PM with adjustable t
Lower Labels is a cross-asset market structure indicator that plots candles and swing structure labels for a selected secondary symbol in a separate pane. It calculates pivot highs and pivot lows to classify market structure patterns including higher highs, hi
This indicator detects higher highs and lower lows on the price chart by counting a user-specified number of breaches in the chosen source value. When the count reaches the threshold, it plots a horizontal line and a label at the new level. It also draws suppo
This strategy enters long positions at specific time windows on the price chart. It places entries using a stop price set to high plus one tick and closes positions at predefined times during the trading day. The script supports pyramiding up to one position a
Mirror Oscillator Pro is a custom momentum indicator displayed in a separate pane. It projects mirrored price calculations using recent pivot highs, pivot lows, and a selectable baseline anchor such as Golden Cloud, ATR, Bollinger Bands, or Ichimoku. An RSI ca
A gold-oriented price-chart indicator that looks for liquidity sweeps followed by a rejection wick. Swept levels can come from macro pivots, the previous higher-timeframe bar, or session highs and lows for Asia, London and New York. Each signal draws a stop be
Marks a candle when a very high volume reading and a large displacement happen on the same bar. Volume tiers compare the bar against lookbacks of 1000, 2000, 3000 and 4000 bars, and displacement compares the candle range to a standard deviation multiple with a
This strategy pairs the Vortex Indicator with an exponential moving average trend filter to execute trend-following trades. It initiates a long entry when VI+ crosses above VI- while price trades above the 200 EMA, and a short entry when VI- crosses above VI+
This indicator draws Future Line of Demarcation lines on the price chart: the price source is shifted forward by half a cycle for up to three cycle periods, with automatic or manual periods and bar multipliers based on the chart timeframe. Projected forward an
This indicator marks historical ARK Invest purchases and sales of HEI on the price chart. It places green buy labels below bars and red sell labels above bars at fixed calendar dates, with text such as Buy X1 or Sell X1 for the number of ETFs trading that day.
This indicator draws a zigzag overlay on the price chart. It offers four reversal methods: a manual percent move from parameters X and Y, a percent of ATR, a running maximum true range, or confirmed high and low pivots. The function tracks extremes since the l
This price-chart strategy marks a base when enough recent bar bottoms cluster within a set deviation of the current bottom, then ignores new bases that sit too close to existing ones. A buy is considered when price falls a chosen percentage below a base inside
This indicator plots a Gaussian filter of a chosen price source on the price chart. It builds a normalized Gaussian kernel whose width follows the sigma setting, then convolves that kernel with recent bars to produce a smoothed value. Sigma controls how wide t
This Pine Script v4 educational indicator demonstrates dynamic label creation directly on the price chart. On every bar, the script instantiates a chart label and evaluates whether the bar closed higher than or equal to its open. For bullish bars, it renders a
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.