Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 150)

Open-source Pine Script indicators that draw on your TradingView chart or in their own pane. Copy one and paste it into the Pine Editor.

Pine scripts7,612
Code shown here3,783open licence
Updated in a year5,283
No repaint flag6,673

Indicators: All

Opening Range

by g-moe
3 stars

The Opening Range indicator combines multiple technical analysis tools onto the main price chart. It calculates MACD momentum sequences alongside Stochastic oscillator limits to generate buy and sell triangle shapes. Additionally, it evaluates trend alignment

Indicator v5 TrendOscillators & momentum Repaints
Updated 5 months ago · None stated GitHub repository of Opening Range

Relative Bandwidth Filter

by regalouisei
2 stars

Calculates normalized bandwidth readings across various volatility channel types including Bollinger Bands, Keltner Channels, and Donchian Channels. It compares bandwidth values against a secondary band baseline to evaluate relative volatility expansion or con

Indicator v5 Volatility & bandsMoving averages
Updated 8 months ago · None stated GitHub repository of Relative Bandwidth Filter

Super Mirror Guide

by morindok
1 stars

Projects two vertical guide lines forward from a pivot time the user selects, drawn on the price chart. It builds a Fibonacci number sequence between a minimum and maximum bar count, finds the next number in that progression, and places one line at 0.618 of th

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Super Mirror Guide

MYNA-tracker

by Allen1212
303 stars

This indicator visualizes historical buy and sell transactions executed by ARK Invest exchange-traded funds for the ticker MYNA. Plotted directly on the price chart, it renders green labels below bars for buy orders and red labels above bars for sell execution

Indicator v4
Updated 2 years ago · None stated GitHub repository of MYNA-tracker
99 stars

The Mean Squared Error indicator calculates the mean of squared differences between a source series and its EMA, averaged via a rolling buffer acting as SMA. This error metric plots as a filled red area on a separate pane, while the EMA overlays as a yellow li

Indicator v6 Volatility & bandsMean reversion
Updated 4 weeks ago · Apache-2.0 GitHub repository of Mean Squared Error (MSE)

Test

by be-thomas
65 stars

This indicator plots the closing price of each bar in a separate pane. It stores the close series in a variable and plots that series. There are no user inputs, alerts, or trading signals. Comments in the source do not affect the calculation. It does not defin

Indicator v4
Updated 6 days ago · GPL-3.0 GitHub repository of Test

Opening Range

by g-moe
3 stars

This indicator overlays a Directional Sentiment Line ribbon on the price chart using moving averages of high, low, open, and close prices. It combines higher-timeframe MACD and RSI filters with standard deviation volume heatmap thresholds to assess directional

Indicator v5 TrendOscillators & momentum Repaints
Updated 5 months ago · None stated GitHub repository of Opening Range

Renko Candles Overlay

by regalouisei
2 stars

This indicator calculates and displays a Renko brick overlay directly on the main price chart. It supports multiple brick size calculation methods, including traditional fixed values, percentage-based sizing, and ATR-derived variations (ATR, ATR/2, and ATR/4).

Indicator v5 TrendCandlestick patterns
Updated 8 months ago · None stated GitHub repository of Renko Candles Overlay

Super Mirror v2

by morindok
1 stars

Mirrors price around a baseline between two user-chosen levels and times, drawn on the price chart. The baseline can be one of nine types: golden-ratio cloud, moving average, highest-high and lowest-low range, ATR bands, Bollinger Bands, Ichimoku cloud, RSI, C

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Super Mirror v2

NDAQ-tracker

by Allen1212
303 stars

This overlay indicator marks ARK Invest trade activity on the NDAQ price chart. It places red labels above bars on recorded sell dates, using fixed timestamps and a short sell note. An ETF input is present but only offers ALL, so the script does not switch bet

Indicator v4
Updated 2 years ago · None stated GitHub repository of NDAQ-tracker

This indicator calculates the Mean Squared Logarithmic Error (MSLE) between a selected price source and its exponential moving average over a specified lookback period. It evaluates prediction error by computing the squared difference of natural logarithms, sm

Indicator v6 Moving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Mean Squared Logarithmic Error (MSLE)

ORB Hooplah

by g-moe
3 stars

The ORB Hooplah indicator calculates the opening range high and low for a user-selected session such as 0930-1000 in New York time. It plots the OR band on the price chart, fills the area between high and low, and colors candles accordingly based on whether th

Indicator v5 BreakoutSessions & time
Updated 5 months ago · None stated GitHub repository of ORB Hooplah

Risk Management Chart

by regalouisei
2 stars

Risk Management Chart simulates theoretical equity curves using a Monte Carlo approach based on user-defined risk parameters. It models multiple potential account trajectories across a specified number of consecutive trades using starting equity, win probabili

Indicator v5
Updated 8 months ago · None stated GitHub repository of Risk Management Chart

Super Mirror v3

by morindok
1 stars

Mirrors price around a selectable baseline between two points of time and price that the user picks on the chart. This version adds two reflection ratios, a source and timeframe selection read through security calls, and a Fibo Wave baseline with a symmetry ce

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Super Mirror v3

NET-tracker

by Allen1212
303 stars

This indicator overlays historical ARK Invest trade markers for NET on the price chart. It places green buy labels below bars and red sell labels above bars on fixed calendar dates, using the label text to mark the trade direction and a same-day ETF count such

Indicator v4
Updated 2 years ago · None stated GitHub repository of NET-tracker

Median

by mihakralj
99 stars

Calculates the rolling statistical median of a chosen price or indicator series over a specified lookback period. For each bar, the script gathers valid data points across the window into an array, sorts them, and determines the midpoint value, averaging the t

Indicator v6 Moving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Median

Using var

by be-thomas
65 stars

This indicator demonstrates a persistent array declared with var. It creates an empty float array once, then appends the closing price on every bar so the array grows with the chart history. On the last bar it draws a large label that reports the current array

Indicator v4
Updated 6 days ago · GPL-3.0 GitHub repository of Using var

RSI Bar Chart v2

by regalouisei
2 stars

This indicator plots multiple RSI oscillators calculated from various price sources and timeframes in a separate pane. It renders the RSIs as customizable lines with different colors, widths, and styles. Colored bars highlight overbought and oversold zones bas

Indicator v5 Oscillators & momentum Repaints
Updated 8 months ago · None stated GitHub repository of RSI Bar Chart v2

The Super Mirror indicator plots spiral symmetry patterns on the price chart using user-specified start and end points along with reflection ratios. It calculates mirrored price levels and spiral growth factors for upward and downward movements based on input

Indicator v5 Support & resistanceSMC / ICT / price action

NFLX-tracker

by Allen1212
303 stars

NFLX-tracker plots historical ARK Invest buy and sell labels on the Netflix price chart. Green labels mark purchases below bars and red labels mark sales above bars, with a multiplier showing how many ARK ETFs traded the stock on the same day. An ETF input swi

Indicator v4
Updated 2 years ago · None stated GitHub repository of NFLX-tracker

Median Absolute Error

by mihakralj
99 stars

This indicator calculates the median absolute error between an actual series and a predicted series over a rolling window. On each bar it takes the absolute difference of the two sources, then applies a median of that length. It plots the result as a line in a

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Median Absolute Error

V4 Essential Alerts 11

by be-thomas
65 stars

This script calculates a 14-period Relative Strength Index (RSI) based on closing prices and plots the oscillator in a separate indicator pane. It tracks when the RSI crosses above the 50 level to detect a potential bullish shift. The indicator configures a bu

Indicator v4 Oscillators & momentum
Updated 6 days ago · GPL-3.0 GitHub repository of V4 Essential Alerts 11

RSI direction bias - JD

by regalouisei
2 stars

This indicator calculates an RSI and holds a directional bias until the oscillator crosses the opposite threshold. A regular RSI uses the selected source and length, while the future-smoothed option uses a projected Heikin Ashi open. Bias turns long above the

Indicator v5 Oscillators & momentum Repaints
Updated 8 months ago · None stated GitHub repository of RSI direction bias - JD

NICE-tracker

by Allen1212
303 stars

This indicator visualizes historical ARK Invest transactions for NICE directly on the price chart. It places text labels at specific historical timestamps indicating ARK buying or selling activity, along with the count of participating funds. The input setting

Indicator v4
Updated 2 years ago · None stated GitHub repository of NICE-tracker
99 stars

The Median Absolute Percentage Error (MdAPE) indicator calculates and plots the rolling median of percentage forecast errors between an actual price series and a predicted series over a user-defined window. For each bar, it computes the absolute percentage err

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Median Absolute Percentage Error

V4 Essential Arrays 16

by be-thomas
65 stars

Demonstrates array creation and string joining functions in Pine Script v4. It creates string, float, and integer arrays with initial values, pushes additional elements, and converts array contents into formatted, delimited text strings using array.join(). The

Indicator v4
Updated 6 days ago · GPL-3.0 GitHub repository of V4 Essential Arrays 16
2 stars

This indicator analyzes and visualizes the statistical price impact following specific Relative Strength Index (RSI) trigger conditions. When the RSI crosses over or under a defined threshold level, the script measures post-trigger price movements across a spe

Indicator v5 Oscillators & momentumVolatility & bands
Updated 8 months ago · None stated GitHub repository of RSI Impact Heat Map [Trendoscope]

NIO-tracker

by Allen1212
303 stars

NIO-tracker is an overlay indicator that marks historical ARK Invest purchases and sales of NIO on the price chart. It places green labels below bars for buys and red labels above bars for sells, using fixed calendar dates rather than live calculations. An ETF

Indicator v4
Updated 2 years ago · None stated GitHub repository of NIO-tracker

MEDPRICE: Median Price

by mihakralj
99 stars

This indicator calculates the median price of each bar as the average of the high and the low, matching the TA-Lib MEDPRICE definition and the built-in HL2 source. It plots that single series on the price chart as an orange line of width two. There are no user

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of MEDPRICE: Median Price

V4 Essential Colors 00

by be-thomas
65 stars

This indicator demonstrates different syntax methods for setting color transparency in Pine Script v4. It calculates and plots five simple moving averages with lengths of 10, 30, 50, 70, and 90 periods directly on the main price chart. Each moving average line

Indicator v4 Moving averages
Updated 6 days ago · GPL-3.0 GitHub repository of V4 Essential Colors 00

RSI Past

by regalouisei
2 stars

RSI Past is an indicator that plots the bar difference between the last overbought and oversold readings of a custom RSI. It calculates the distance in bars from the most recent time the RSI crossed above the overbought threshold to the last time it dropped be

Indicator v5 Oscillators & momentum
Updated 8 months ago · None stated GitHub repository of RSI Past

NIU-tracker

by Allen1212
303 stars

NIU Tracker overlays historical ARK Invest buy and sell transactions for Niu Technologies directly on the price chart. It plots markers indicating share volume changes and the number of participating ARK funds on specific trading dates. Traders can filter tran

Indicator v4
Updated 2 years ago · None stated GitHub repository of NIU-tracker
99 stars

This indicator plots the rolling midpoint of the close as an overlay on the price chart. For each bar it takes the highest and lowest close over a user-set period and draws their average, matching the TA-Lib midpoint definition of the center of that range. The

Indicator v6 Support & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of MIDPOINT: Rolling Midpoint

V4 Essential Colors 08

by be-thomas
65 stars

This script plots the bar high, median price, and low in a separate pane using varying levels of transparency and line widths. It demonstrates the use of the color.new function in Pine Script to create visual depth and glow styling across price points. The scr

Indicator v4
Updated 6 days ago · GPL-3.0 GitHub repository of V4 Essential Colors 08

Volume Dots

by regalouisei
2 stars

This indicator highlights high volume and open interest (OI) extremities directly on the price chart. It identifies potential support and resistance zones, naked levels, and liquidation ranges using visual dots, lines, and boxes. An optional on-screen table di

Indicator v5 VolumeSupport & resistance
Updated 8 months ago · None stated GitHub repository of Volume Dots

NNDM-tracker

by Allen1212
303 stars

This indicator visualizes historical ARK Invest trade activity for Nano Dimension (NNDM) directly on the price chart. It plots green buy labels below bars and red sell labels above bars using hardcoded timestamped trade records, showing transaction counts or f

Indicator v4
Updated 2 years ago · None stated GitHub repository of NNDM-tracker
99 stars

The Midpoint Price over Period indicator calculates the center of the highest high and lowest low price range over a user-defined lookback period. It averages the maximum high and minimum low values across the chosen window, providing a TA-Lib compatible basel

Indicator v6 Support & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of MIDPRICE: Midpoint Price over Period

Vertical line

by be-thomas
65 stars

This indicator plots a vertical line on the price chart at the most recent bar. It checks whether the current bar is the latest bar on the chart and renders a tall histogram bar using an extreme numeric value to span the chart height. Because the indicator use

Indicator v4
Updated 6 days ago · GPL-3.0 GitHub repository of Vertical line

Period VWAP

by g-moe
3 stars

Period VWAP calculates a rolling volume-weighted average price over a chosen number of bars. It multiplies the typical price by volume, sums both that product and volume across the period, and divides them to plot one line on the price chart. The period input

Indicator v5 Volume
Updated 5 months ago · None stated GitHub repository of Period VWAP
1 stars

This indicator plots the original simple moving average, a symmetric moving average calculated from the highest and lowest moving averages over the window length, and a dynamic midline. It generates buy signals when the deviation from the symmetric moving aver

Indicator v5 Moving averagesTrend
Updated 7 weeks ago · None stated GitHub repository of Symmetric MA Reversal Signals

NRIX-tracker

by Allen1212
303 stars

This indicator plots historical ARK Invest transaction records directly on the price chart for NRIX. It displays green Buy labels below bars and red Sell labels above bars based on hardcoded transaction dates and ETF execution counts. The primary input setting

Indicator v4
Updated 2 years ago · None stated GitHub repository of NRIX-tracker
99 stars

This overlay indicator plots a channel of the highest high and the lowest low over a rolling lookback. It updates both extremes with a monotonic deque so each bar is handled in amortized constant time, then draws the upper and lower lines on the price chart an

Indicator v6 Support & resistanceVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Min-Max Channel (MMCHANNEL)

Visible OHLC

by be-thomas
65 stars

Visible OHLC is a Pine Script version 4 indicator drawn on the price chart. It stores the close series and plots that value only. There are no inputs, conditions, or extra calculations. Open, high, and low are not plotted, even though the title mentions OHLC.

Indicator v4
Updated 6 days ago · GPL-3.0 GitHub repository of Visible OHLC

Pivot Trendlines

by g-moe
3 stars

Pivot Trendlines marks confirmed pivot highs and pivot lows on the price chart and tracks small pivot highs and lows from consecutive red or green candles. It plots the count of green bars since the last pivot low and red bars since the last pivot high, and it

Indicator v5 Support & resistanceTrend
Updated 5 months ago · None stated GitHub repository of Pivot Trendlines

More Pine Script Categories

Browse the whole Pine Library

Third-party code. ForexR lists open-source Pine scripts from GitHub; it did not write, test or endorse them, and their summaries are generated automatically from each script's code and README. Indicators describe the past, and a strategy's backtest can look better than live trading. Check a script on a demo account before you rely on it. CFDs and leveraged forex are complex instruments with a high risk of losing money rapidly.

Learn to Use Pine Scripts

Free, plain-English guides: add a script to TradingView, read what it does, test it and avoid the common traps.

  1. 1Using this librarySearch, filters, licences and what the badges mean.
  2. 2Add a script to TradingViewCopy, paste into the Pine Editor, save and add to chart.
  3. 3Indicators, strategies and librariesWhat each type does and how to tell them apart.
  4. 4Spot a script that repaintsWhy some signals change after the bar closes.
  5. 5Backtest a strategyStrategy Tester settings that keep results honest.
  6. 6Send alerts to MT4 or MT5From a TradingView alert to an order in MetaTrader.
  7. 7What Pine Script isThe language, what it can and cannot do, and where to start.
  8. 8Write your first indicatorA complete script, line by line, in the Pine Editor.
  9. 9Read a script before you trust itA routine for checking inputs, logic and red flags.
  10. 10Edit a script safelyChange colours and lengths, add a filter or an alert.
  11. 11Pine Script alertsalertcondition(), alert(), placeholders and webhooks.
  12. 12Build a crossover strategyAn EMA cross strategy with an ATR stop, ready to test.

Trade Your Charts With a Regulated Broker

Compare regulated brokers on platforms, spreads, minimum deposit and leverage.

Compare brokers