Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 154)

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

99 stars

This indicator plots the Pretty Good Oscillator in a separate pane. It subtracts a simple moving average of the selected source from the source and divides the difference by an exponential average of true range. A period input sets both the moving-average leng

Indicator v6 Oscillators & momentumVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Pretty Good Oscillator (PGO)

This price-chart indicator finds swing highs and lows with a user-set pivot length and classifies them as higher high, lower high, higher low, or lower low. It tracks a trend state and the latest swing signal from those pivots. The same swing comparison is run

Indicator v5 Candlestick patternsSupport & resistance
Updated 5 months ago · None stated GitHub repository of Price Action Candles with Pivot Trendlines

This indicator calculates moving averages with periods derived from a user-selected date range multiplied by Fibonacci ratios (1.0, 1.618, and 0.618). On the chart's final bar, it renders these moving average paths directly on the price chart using polylines.

Indicator v5 Moving averagesSupport & resistance

PTON-tracker

by Allen1212
303 stars

PTON-tracker is an overlay indicator that marks historical ARK Invest purchases and sales of Peloton on the price chart. It places green buy labels below bars and red sell labels above bars on hardcoded dates, each noting how many ARK ETFs traded that day. An

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

Price Channel (PC)

by mihakralj
99 stars

This indicator plots a price channel on the price chart. It finds the highest high and lowest low over a chosen lookback, then draws the upper band, the lower band, and a middle line at their midpoint, with a translucent fill between the outer bands. The lengt

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

This indicator identifies pivot highs and pivot lows on the price chart using specified lookback and lookahead bar lengths. When a pivot low is detected, it plots a green triangle below the corresponding bar. When a pivot high is detected, a red triangle is pl

Indicator v5 Support & resistance
Updated 5 months ago · None stated GitHub repository of Price Action Candles with Pivot Trendlines
2 stars

Live Economic Calendar by toodegrees overlays scheduled macroeconomic news events directly onto the price chart and displays an on-screen summary table. It retrieves economic release data across major global currencies, allowing traders to filter events by imp

Indicator v5 Sessions & timeScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Live Economic Calendar by toodegrees

This overlay indicator plots a chosen upper price, lower price, and their midpoint on the chart. Between two selected times it counts bars and sums high-to-low height for all candles and for rising and falling candles separately, and it stores the window high

Indicator v5 Support & resistance

PYPL-tracker

by Allen1212
303 stars

This indicator plots historical ARK Invest buy and sell events for PayPal on the price chart. Green labels sit below bars for purchases and red labels sit above bars for sales, each marked with a same-day ETF count such as X1 or X2. An ETF input switches among

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

This indicator plots the Price Momentum Oscillator in a separate pane. It measures one-bar rate of change of the chosen source, then applies two custom exponential smoothings: the first EMA of the percentage ROC is scaled by ten, and a second EMA produces the

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Price Momentum Oscillator (PMO)

This indicator draws supply and demand zones and break-of-structure markers on the price chart. It detects swing highs and lows over a user-set length, then labels them as higher high, lower high, higher low, or lower low when price-action labels are enabled.

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of Price Action Candles with Zig Zag

Logging in Pine Script

by regalouisei
2 stars

This indicator plots pivot high and low lines on the price chart based on user-defined bars on each side of the pivot. It automatically logs messages for new pivots, higher highs, lower lows, and price crosses with color-coded text (gray for messages, orange f

Indicator v5 Support & resistanceScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Logging in Pine Script

This indicator analyzes capital rotation and volume flow across 20 major cryptocurrency pairs. It compares volume changes and relative flow momentum across selected symbols to identify where market capital is migrating. The script overlays findings directly on

Indicator v5 VolumeScreeners & dashboards

QSI Tracker

by Allen1212
303 stars

QSI Tracker visualizes historical buy and sell transactions made by ARK Invest funds directly on the price chart. The script plots customized visual labels on specific historical dates to indicate trading activity and quantify multi-ETF involvement. Users can

Indicator v4
Updated 2 years ago · None stated GitHub repository of QSI Tracker
99 stars

Price Relative Strength (RS) compares base asset prices to a compare symbol like SPY to measure relative performance. It calculates raw ratio and smoothed ratio with EMA-like smoothing over a configurable period. Optional normalization scales values to 100 and

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Price Relative Strength (RS)
3 stars

Price-Action Candles classifies swing structure from pivot highs and lows and colors chart candles bullish, bearish, or neutral. It marks higher highs, lower highs, higher lows, and lower lows, with a label mode that either offsets labels by the pivot length o

Indicator v5 TrendCandlestick patterns Repaints
Updated 5 months ago · None stated GitHub repository of Price-Action Candles
2 stars

This indicator tracks the most recent historical daily high higher than the current day's high and the most recent daily low lower than the current day's low. It scans back up to 5000 bars using daily security calls to identify these price levels, the elapsed

Indicator v5 Support & resistanceScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Lowest / Highest From Widget

RADA-tracker

by Allen1212
303 stars

This overlay indicator marks historical ARK Invest purchases of RADA on the price chart with dated labels. When the ETF input is set to ALL, it places green below-bar labels on specific calendar days using bar time, showing a buy and a count such as X1. The on

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

Pseudo-Huber Loss

by mihakralj
99 stars

This indicator computes the rolling mean of the Pseudo-Huber Loss, a smooth approximation of absolute error between the actual close prices and predicted open prices. The loss function transitions between quadratic and linear behavior controlled by the delta p

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Pseudo-Huber Loss
3 stars

Price-Action Candles (Lower) is a separate-pane indicator that classifies swing structure from pivot highs and lows. It marks higher highs, lower highs, higher lows, and lower lows, then assigns a bullish, bearish, or neutral trend from those swings and the cl

Indicator v5 TrendSupport & resistance Repaints
Updated 5 months ago · None stated GitHub repository of Price-Action Candles (Lower)
2 stars

This indicator visualizes intrabar market activity by requesting lower timeframe open, close, and volume data. It constructs a visual heatmap directly on the price chart using colored box objects, where gradient shading represents volume intensity across intra

Indicator v5 VolumeSupport & resistance
Updated 8 months ago · None stated GitHub repository of LTF Activity Heatmap [LuxAlgo]

RAVN-tracker

by Allen1212
303 stars

RAVN-tracker visualizes historical buy and sell transactions executed by ARK Invest funds for RAVN stock directly on the price chart. Using hardcoded trade timestamps, it plots green buy labels below bars and red sell labels above bars to highlight historical

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

This indicator calculates the Psychological Line as the percentage of up-bars over a lookback window. It counts bars where the selected source is higher than the previous bar and divides that count by the period, scaled to 0–100. A circular buffer keeps a runn

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Psychological Line (PSL)

Prior Day Levels

by g-moe
3 stars

Prior Day Levels plots horizontal reference lines for the previous day's high, low, close, and midpoint, plus the previous week's high, low, close, and midpoint. Each level can be shown or hidden, and its color, line style, and width can be set independently.

Indicator v5 Support & resistance
Updated 5 months ago · None stated GitHub repository of Prior Day Levels

RDHL Tracker

by Allen1212
303 stars

RDHL Tracker plots historical buy and sell transactions executed by ARK Invest for Redhill Biopharma directly on the price chart. The script creates color-coded labels at specific historical trade timestamps, marking buy actions in green below the price bar an

Indicator v4
Updated 2 years ago · None stated GitHub repository of RDHL Tracker

Ehlers Precision Trend Analysis extracts trend direction using a dual high-pass filter bandpass approach. It calculates two 2-pole Butterworth high-pass filters on close prices using configurable long and short periods, subtracting the shorter filter from the

Indicator v6 TrendOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of PTA - Ehlers Precision Trend Analysis
3 stars

Pro In Out Divergence is a lower-pane oscillator indicator that combines normalized stochastic layers, triple exponential moving averages (TEMA), and DMI/ADX state calculations. It tracks momentum shifts and inflow or outflow states relative to zero lines and

Indicator v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of Pro In Out Divergence

RDWR Tracker

by Allen1212
303 stars

RDWR Tracker visualizes historical buy and sell transactions made by ARK Invest for Radware (RDWR) directly on the price chart. It plots colored labels on specific trade dates displaying whether ARK bought or sold shares along with the number of participating

Indicator v4
Updated 2 years ago · None stated GitHub repository of RDWR Tracker

Qstick Indicator

by mihakralj
99 stars

This indicator calculates the Qstick value as a simple or exponential moving average of the difference between a chosen close source and open source. It plots that oscillator in a separate pane as a yellow line, draws a dashed zero line, and shades the backgro

Indicator v6 Oscillators & momentumCandlestick patterns
Updated 4 weeks ago · Apache-2.0 GitHub repository of Qstick Indicator

Psych Levels

by g-moe
3 stars

This TradingView indicator overlays horizontal zones on the price chart to highlight psychological rounding levels. It analyzes the close price's decimal length and mintick to compute baseline values for singles, tens, hundreds, and thousands zones. These leve

Indicator v5 Support & resistance
Updated 5 months ago · None stated GitHub repository of Psych Levels

MA Sabres [LuxAlgo]

by regalouisei
2 stars

MA Sabres identifies trend reversals by monitoring direction changes in a selectable moving average after a user-defined trend duration. The indicator supports various moving average types including SMA, EMA, HullMA, VWMA, DEMA, and TEMA. When a moving average

Indicator v5 TrendMoving averages
Updated 8 months ago · None stated GitHub repository of MA Sabres [LuxAlgo]

RHHBY-tracker

by Allen1212
303 stars

This indicator plots historical buy and sell transactions executed by ARK Invest funds directly on the price chart for RHHBY. It renders visual chart labels below or above bars at specified historical timestamps, detailing the trade direction and the count of

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

Quantile (QUANTILE)

by mihakralj
99 stars

This indicator calculates and plots a specified statistical quantile of a price series over a rolling lookback window using linear interpolation. It draws directly on the price chart as an overlay line. Users can adjust the input source, the lookback period, a

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Quantile (QUANTILE)

RKLB-tracker

by Allen1212
303 stars

This overlay indicator marks historical ARK Invest buy and sell activity for Rocket Lab on the price chart. Green labels sit below the bar on purchase dates and red labels sit above the bar on sale dates, with a count of how many selected ETFs traded that day.

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

Quantile Loss (Pinball Loss) calculates the pinball loss between an actual series and a predicted series on each bar, then averages those losses with a simple moving average. It plots that rolling mean as a yellow line in a separate pane, with a dotted zero re

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Quantile Loss (Pinball Loss)
3 stars

Psychological Levels is a chart overlay indicator that draws horizontal quarter, half, and whole round-number levels. It marks buy and sell signals when volume crosses user thresholds near those levels, with an optional moving-average filter, a delay between s

Indicator v5 Support & resistanceVolume
Updated 5 months ago · None stated GitHub repository of Psychological Levels

RKUNY-tracker

by Allen1212
303 stars

This overlay indicator marks historical ARK Invest purchases and sales of RKUNY on the price chart. It places green buy labels below bars and red sell labels above bars on specific dates, each labeled with an X1 count of funds trading that day. The ETF input o

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

This indicator plots Quantitative Qualitative Estimation in a separate pane. It computes Wilder RSI from the chosen source, smooths it with an exponential moving average, and derives a dynamic average range from a double EMA of absolute RSI changes. A trailing

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Quantitative Qualitative Estimation (QQE)
2 stars

Market Manipulation Index plots a composite oscillator from 0 to 1 in a separate pane. It averages a sine-wave fit error, a two-lag linear prediction residual, and a high-versus-low frequency variance ratio, each limited by price variance. An ATR-scaled window

Indicator v5 Volatility & bands
Updated 8 months ago · None stated GitHub repository of Market Manipulation Index (MMI)

ROK-Tracker

by Allen1212
303 stars

ROK-Tracker visualizes historical buy and sell transactions made by ARK Invest funds for Rockwell Automation (ROK). The script plots green and red labels directly on the price chart corresponding to specific trade timestamps, indicating buy or sell actions alo

Indicator v4
Updated 2 years ago · None stated GitHub repository of ROK-Tracker
99 stars

This indicator calculates the fractional Rate of Change (ROCP) between the current price and the price N periods ago. Unlike standard percentage-based momentum oscillators, it expresses the price difference as a decimal fraction. The indicator draws in a separ

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Rate of Change Fractional (ROCP)
3 stars

Psychological Levels calculates and overlays key rounded price thresholds on the main chart, distinguishing between whole, half, and quarter price levels. It identifies potential trade setups filtered by defined session time windows, prior-day range conditions

Indicator v5 Support & resistanceSessions & time
Updated 5 months ago · None stated GitHub repository of Psychological Levels

RSW-tracker

by Allen1212
303 stars

RSW-tracker is an overlay indicator that marks ARK Invest activity for the RSW ticker on the price chart. The shown script creates a red downward label dated 17 January 2020 with the text Sell X1 when the ETF input is ALL. That input is the only setting and of

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

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