Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 149)

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

This indicator enables traders to construct and evaluate a custom multi-asset portfolio directly on the chart. Users can select multiple symbols, assign specific weighting percentages, and designate long or short positions. It calculates cumulative percentage

Indicator v5 Screeners & dashboards
Updated 8 months ago · None stated GitHub repository of Portfolio Laboratory [Kioseff Trading]

VOB v11.11

by nishpa800
1 stars

Detects volume order block zones from six moving average pairs at different sensitivity lengths and draws them on the price chart. It marks ladder patterns across the six tiers, multi-zone coincidences on one candle, tier clusters and all-time-high-volume bars

Indicator v5 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB v11.11

MKTX-tracker

by Allen1212
303 stars

This indicator plots historical ARK Invest purchase and sale records for MKTX directly on the price chart. It renders visual labels below or above price bars at specific timestamps, indicating buy actions and the volume multiplier of involved funds. The input

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

Calculates the Mean Absolute Percentage Deviation (MAPD) between a chosen price source and its exponential moving average over a specified period. It measures relative dispersion by averaging percentage differences using an internal circular buffer algorithm.

Indicator v6 Volatility & bandsMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Mean Absolute %Deviation (MAPD)

Searching in Arrays

by be-thomas
65 stars

This educational script demonstrates how to search for specific elements within array structures in Pine Script. It initializes a floating-point array with predefined numbers and checks for the presence of a user-specified input value on the final chart bar. U

Indicator v4
Updated 6 days ago · GPL-3.0 GitHub repository of Searching in Arrays
3 stars

This indicator plots four simple moving averages of periods 5, 10, 20, and 50 on the price chart. It calculates and sends alert conditions for every pairwise crossover and crossunder between the moving averages, including MA5 cross above MA10, MA10 cross above

Indicator v5 Moving averagesTrend
Updated 5 months ago · None stated GitHub repository of Multi MA Crossover Alerts

Probability Cones

by regalouisei
2 stars

Calculates and projects statistical probability cones forward onto the price chart based on historical sample data over a selectable lookback period. It supports standard deviation, Laplace distribution, and absolute deviation calculation methods. The cone anc

Indicator v5 Volatility & bandsSupport & resistance
Updated 8 months ago · None stated GitHub repository of Probability Cones

VOB v11.11 Tick

by nishpa800
1 stars

Detects volume order block zones from six moving average pairs at different sensitivity lengths and draws them on the price chart. It marks ladder patterns across the six tiers, multi-zone coincidences on one candle, tier clusters and all-time-high-volume bars

Indicator v5 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB v11.11 Tick

MLNX-tracker

by Allen1212
303 stars

This indicator overlays ARK Invest trade marks for MLNX on the price chart. It plots a dated buy label beneath the bar for a recorded purchase, using a green label with a same-day ETF count. The only input selects the ETF view, and the parsed script offers All

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

This indicator calculates the mean absolute percentage error between a chosen price source and an exponential moving average of that same source. It averages absolute percentage differences with a circular buffer over the selected lookback and plots the result

Indicator v6 Moving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Mean Absolute %Error (MAPE)
65 stars

This indicator calculates a 20-period RSI and watches for crosses of the 50 level. It can call alert when RSI crosses above 50 for longs or below 50 for shorts, but only when the matching direction input is enabled. A setting named Allow Repainting, off by def

Indicator v4 Oscillators & momentum
Updated 6 days ago · GPL-3.0 GitHub repository of Selective alert() calls

My Fractals

by g-moe
3 stars

This indicator calculates and plots Bill Williams style swing high and swing low fractals directly on the price chart. It evaluates high and low price relationships across surrounding bars according to a configurable period setting. Reversal points are visuall

Indicator v5 Support & resistanceCandlestick patterns Repaints
Updated 5 months ago · None stated GitHub repository of My Fractals

This indicator provides four selectable analytical datasets directly on the price chart: quartile volume analysis, volume aggregation bars, US range bars, and gap tracking. Depending on the active mode, it plots synthetic candle structures, historical congesti

Indicator v5 VolumeSupport & resistance Repaints
Updated 8 months ago · None stated GitHub repository of Quartile Volume, Volume Aggregation, US Range Bars, Gaps

Spiral{Morindok}

by morindok
1 stars

Spiral{Morindok} draws a geometric spiral on the price chart between a user-selected center point and an edge point. It expands the curve with a growth ratio that defaults to a Fibonacci value, and it lets the user set turn count, start angle, clockwise direct

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Spiral{Morindok}

VOB v11.9

by nishpa800
1 stars

Detects volume order block zones from six pairs of moving averages at different sensitivity lengths and draws them on the price chart. It marks combined events such as strict ladder patterns across the six tiers, multi-zone coincidences on one candle, tier clu

Indicator v5 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB v11.9

MLTM-tracker

by Allen1212
303 stars

MLTM-tracker marks recorded ARK Invest activity for the MLTM listing on the price chart. It places timestamped labels above bars for stored sell dates, showing the word Sell and a count such as X1. The only setting is an ETF input whose sole option is ALL, so

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

This indicator calculates the mean absolute error between a selected price source and an exponential moving average of that same source. Absolute differences are averaged with a circular buffer over the chosen period, and the period is limited between 1 and 40

Indicator v6 Moving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Mean Absolute Error (MAE)
65 stars

This Pine Script indicator shades the chart background with varying transparency based on the day of the week. It evaluates the current bar's day of the week from Monday through Friday, applying a navy color with a distinct transparency percentage for each wee

Indicator v4 Sessions & time
Updated 6 days ago · GPL-3.0 GitHub repository of Shading the Chart's Background
3 stars

My Historical Volatility plots annualized historical volatility in a separate pane. It measures the standard deviation of logarithmic close-to-close returns over a user-set length, scales that value by 100, and annualizes it with a factor that uses 365 days an

Indicator v5 Volatility & bands
Updated 5 months ago · None stated GitHub repository of My Historical Volatility

RedK Momentum Bars

by regalouisei
2 stars

Calculates and plots momentum bars in a separate pane using three moving averages: a fast MA, a slow MA with a delay setting, and a trend filter MA. Loosely inspired by the Elder Impulse system, it measures momentum relative to a zero filter line. Users can cu

Indicator v5 Oscillators & momentumMoving averages
Updated 8 months ago · None stated GitHub repository of RedK Momentum Bars

This indicator calculates a staircase trailing trend line based on recent highest highs and lowest lows over a customizable lookback period. It plots a step-line directly on the price chart, changing color between green for uptrends and red for downtrends. It

Indicator v5 TrendSupport & resistance Repaints

VOB v11.9 Tick

by nishpa800
1 stars

Detects volume order block zones from six pairs of moving averages at different sensitivity lengths and draws them on the price chart. It marks combined events such as strict ladder patterns across the six tiers, multi-zone coincidences on one candle, tier clu

Indicator v5 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB v11.9 Tick

MNDY-tracker

by Allen1212
303 stars

This indicator plots historical ARK Invest buy and sell labels for MNDY on the price chart. Green labels sit below bars for buys and red labels sit above bars for sells, each marked X1 for the number of ETFs trading that day. An ETF setting switches between al

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

This indicator plots Mean Absolute Scaled Error between a selected price source and an exponential moving average of that source. Absolute differences are divided by a scale equal to the mean absolute bar-to-bar change of the source, computed once from the fir

Indicator v6 Moving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Mean Absolute Scaled Error (MASE)
65 stars

Calculates pivot high points based on user-defined left and right leg lengths and displays up to a specified number of recent pivot high labels on the main chart pane. It utilizes an array queue to track active label IDs, automatically deleting older labels wh

Indicator v4 Support & resistance
Updated 6 days ago · GPL-3.0 GitHub repository of Show Last n High Pivots
3 stars

This indicator calculates a scaled Chande Momentum Oscillator based on the hlc3 price source and displays it in a separate pane. It computes positive and negative price changes over a user-defined length, scales the resulting percentage with a multiplier, and

Indicator v5 Oscillators & momentum
Updated 5 months ago · None stated GitHub repository of My Matrix Momentum
2 stars

This indicator tracks custom multi-asset portfolio performance directly on the price chart using a clean dashboard table. It fetches live prices and dividend data for configured asset positions, calculating individual position values, total cost basis, and unr

Indicator v5 Screeners & dashboards
Updated 8 months ago · None stated GitHub repository of RedK Portfolio Tracker Table Version

Super Mirror

by morindok
1 stars

Super Mirror indicator plots multiple symmetric and reflected price lines directly on the price chart. It computes a moving average whose length varies based on the time interval between start and end times, then creates mirrored versions at two user-defined p

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

Mrna-tracker

by Allen1212
303 stars

This indicator visualizes historical purchase and sale transactions made by ARK Invest on the price chart. It plots buy and sell labels corresponding to specific dates when shares were acquired or disposed of by specific exchange-traded funds. The main input s

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

Simple label

by be-thomas
65 stars

This indicator places a label on the price chart for every bar. Each label sits at the bar index and the bar high, and its text is the chart symbol ticker. The study overlays the price rather than using a separate pane. It does not calculate an oscillator, mov

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

My QQE

by g-moe
3 stars

Calculates dual Quantitative Qualitative Estimation (QQE) oscillators paired with Bollinger Bands in a separate pane. It computes smoothed Relative Strength Index (RSI) values and tracks dynamic volatility bands based on Wilder-smoothed ATR of the RSI. A set o

Indicator v5 Oscillators & momentumVolatility & bands
Updated 5 months ago · None stated GitHub repository of My QQE
2 stars

This indicator estimates how much of each bar's volume is demand versus supply by weighting volume with the candle body and wick geometry. It double-smooths those shares with weighted moving averages and plots net volume as a colored area in a separate pane. S

Indicator v5 Volume
Updated 8 months ago · None stated GitHub repository of RedK Supply/Demand Volume Viewer

MSFT-tracker

by Allen1212
303 stars

This indicator visualizes historical purchases and sales made by ARK Invest in Microsoft directly on the price chart. It plots green buy labels below bars and red sell labels above bars at hardcoded transaction timestamps. The main setting filters trades by sp

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

Mean Deviation

by mihakralj
99 stars

This indicator calculates the mean absolute deviation of a chosen source from its mean over a lookback period. A circular buffer keeps a running sum, then averages the absolute distance of each stored value from that mean. It plots the result as a line in a se

Indicator v6 Volatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Mean Deviation

Single Conditions

by be-thomas
65 stars

This educational indicator calculates a 20-period Relative Strength Index (RSI) to demonstrate various visual debugging techniques in Pine Script. When the RSI falls below the 30 threshold, it illustrates six different signal visualization methods: dynamically

Indicator v4 Oscillators & momentum
Updated 6 days ago · GPL-3.0 GitHub repository of Single Conditions
2 stars

Calculates buying and selling pressure by evaluating high and low movements relative to a two-bar price range. Bull and bear pressures are averaged using weighted moving averages with optional pre-smoothing, and net pressure is derived through an additional sm

Indicator v5 Oscillators & momentumTrend
Updated 8 months ago · None stated GitHub repository of RedK Trader Pressure Index (TPX)
1 stars

Takes two user-chosen anchor points of time and price, adds an optional sloped angle scaled per bar, and computes a simple moving average whose length equals the number of bars between the anchors. It detrends the sloped levels and the average, builds mirrored

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

MTRX-tracker

by Allen1212
303 stars

MTRX-tracker visualizes historical ARK Invest trade activity for Matrix Service Co on the price chart. The script generates chart labels at specific historical timestamps indicating when ARK funds purchased or sold shares, along with transaction counts across

Indicator v4 Screeners & dashboards
Updated 2 years ago · None stated GitHub repository of MTRX-tracker

Mean Error (ME)

by mihakralj
99 stars

This indicator calculates the mean error between a selected price source and an exponential moving average of that source. It subtracts the EMA from the source, then averages those errors over a user-defined lookback with a circular buffer that behaves like a

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

This overlay indicator plots automatic Midas-style anchored VWAPs on the price chart. It finds the bars of the highest high and lowest low inside a user-set length, then builds volume-weighted averages of high or low and of the HLC3 midpoint back to those bars

Indicator v5 VolumeTrend
Updated 5 months ago · None stated GitHub repository of Nubia - Auto Midas Anchored VWAP [xdecow]

RedK Volume-Accelerated Directional Energy Ratio (VADER) measures directional momentum accelerated by volume activity. It calculates price change relative to the average bar range, limits the ratio, and scales it using relative, raw, or static volume weighting

Indicator v5 VolumeOscillators & momentum
Updated 8 months ago · None stated GitHub repository of RedK Volume-Accelerated Directional Energy Ratio
1 stars

Super Mirror By BITMOON618 is an overlay indicator on the TradingView price chart. It calculates mirrored price levels based on user-defined price1 and price2, and a moving average of close. The indicator monitors price movements within a specified time range

Indicator v5 Support & resistanceSessions & time
Updated 7 weeks ago · None stated GitHub repository of Super Mirror By BITMOON618

MTTR-tracker

by Allen1212
303 stars

Plots historical buy and sell transactions executed by ARK Invest (specifically ARKQ) for Matterport Inc (MTTR) directly on the price chart. It places green upward labels below bars on buy dates and red downward labels above bars on sell dates, noting the tran

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

The Mean Relative Absolute Error indicator measures forecast accuracy by comparing an actual price series against a predicted price series. For each bar, it divides the absolute difference between actual and predicted values by the absolute actual value, then

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

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