Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 97)

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

SMC Session Context

by skipp-dev
1 stars

This indicator displays session context, market structure shifts, and session scoring in a separate pane using imported pre-generated profile data. It plots a context score column chart colored by bullish, neutral, or bearish thresholds, highlights active kill

Indicator v6 SMC / ICT / price actionSessions & time
Updated 5 days ago · None stated GitHub repository of SMC Session Context

P_err_reassign_undeclared

by GammaExpansion
1 stars

The script is an indicator in Pine Script version 6 that plots a constant value of 5. It assigns the value 5 to a local variable x and then plots x. The indicator draws its plot in a separate pane. There are no input settings, no trading signals, no stop loss,

Indicator v6
Updated 8 days ago · MIT GitHub repository of P_err_reassign_undeclared

DEPV2 DEBUG S10

by YuceSezar89
1 stars

Calculates and coordinates trading signals across up to twenty cryptocurrency instruments using four core analytical dimensions: trend, momentum, volatility, and volume. Users can configure signals to trigger from single dimensions, simultaneous multi-factor c

Indicator v6 TrendOscillators & momentum Repaints
Updated 2 weeks ago · None stated GitHub repository of DEPV2 DEBUG S10

Plots the highest high and lowest low of a lookback window, default 20 bars, plus mirrored levels placed the same distance beyond each extreme, on the price chart. It estimates how much volume traded in the gap between each extreme and its mirror over up to 50

Indicator v6 VolumeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of MTF Symmetrical Gap Volume Colored

True RSI

by vedkanani123
1 stars

A separate-pane oscillator by MisinkoMaster that rebuilds RSI by weighting each bar's gain and loss with Aroon up and down values over the lookback, then scaling to a 0 to 100 line. Trend turns long when the value crosses above a long threshold and short below

Indicator v6 Oscillators & momentumTrend
Updated 2 months ago · None stated GitHub repository of True RSI

GitLemon Con

by GreyssonEnterprises
1 stars

An indicator that looks for W and M reversal patterns in price, OBV and Williams %R, with optional MFI, RSI and directional movement, all sharing one maximum width and offset setting. A Fibonacci retracement zone over a 200-bar lookback can be added as a condi

Indicator v4 DivergenceOscillators & momentum
Updated 3 months ago · MIT GitHub repository of GitLemon Con

Crypto Scanner Climax

by rubbermetal
1 stars

A dashboard indicator in a separate pane that reads many measurements for the chart symbol across several timeframes. Columns cover prices, volume, delta and VWAP, oscillators such as RSI, stochastic, CCI and MFI, a quad rotation stochastic status, trend measu

Indicator v5 Screeners & dashboardsOscillators & momentum
Updated 4 months ago · MPL-2.0 GitHub repository of Crypto Scanner Climax

Gann Pivot HL 2024 V2

by mikeyhu70
1 stars

This indicator marks pivot swing highs and lows on the price chart and lists their dates in separate tables for highs and lows, with an extra table for seasonal dates. Left and right bar counts set pivot detection, and settings control how many swings are kept

Indicator v5 Support & resistance
Updated 6 months ago · None stated GitHub repository of Gann Pivot HL 2024 V2

V5 Combination by YZZ

by webcrack4
1 stars

This indicator combines multiple script features into a single overlay on the main price chart. It calculates a modified MACD line and signal oscillator with configurable modes including traditional, histogram-based, leader, and source-based variations. The os

Indicator v5 TrendOscillators & momentum
Updated 9 months ago · None stated GitHub repository of V5 Combination by YZZ

For In Loop Examples

by ivansoft
1 stars

Teaching script that demonstrates for-in loops in Pine. It counts how many of the open, high, low and close values exceed a 20-bar average of close and plots that count, marks which values of a fixed array are positive with a label on the last confirmed histor

Indicator v6
Updated 1 year ago · None stated GitHub repository of For In Loop Examples
1 stars

An indicator that fits a linear regression line over a chosen number of bars and draws upper and lower deviation channels around it on the price chart. Length, source and the deviation multipliers are adjustable, and lines can be extended left or right. It can

Indicator v5 TrendSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Linear Regression Channel
1 stars

A Pine v4 oscillator in a separate pane. It computes RSI from Wilder-smoothed gains and losses, then averages it with a simple moving average set by a smoothness input. The line turns green when rising for two bars and red otherwise, with reference lines at 30

Indicator v4 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of Smoothness Advanced RSI

Relative Sharpe Ratio

by JohnsonHsiao
1 stars

The Relative Sharpe Ratio indicator calculates risk-adjusted return measures over a user-defined lookback window and plots them in a separate pane. It calculates single-period simple returns, sums them over the period, and divides the sum by the return varianc

Indicator v5 Volatility & bandsOscillators & momentum
Updated 3 years ago · None stated GitHub repository of Relative Sharpe Ratio
947 stars

This indicator requests FactSet earnings data for the current symbol and sums daily actual and estimated earnings-per-share values into yearly totals from 1990 through 2030. It draws those yearly figures as columns in a separate pane, using distinct colors for

Indicator v4 Repaints
Updated 13 days ago · GPL-3.0 GitHub repository of Earnings per Share (EPS, Yearly)

AM-tracker

by Allen1212
303 stars

AM-tracker overlays historical ARK Invest transaction records directly onto the price chart for the corresponding stock. It generates visual label markers at specific calendar timestamps indicating dates where ARK funds executed buy or sell orders, along with

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

Function: Decision Tree

by ricardosantos79
261 stars

Function: Decision Tree is a technical script that demonstrates probabilistic path selection through a decision tree algorithm using a custom pseudo-random number generator. It initializes weighted node arrays and simulates traversal paths down the tree based

Indicator v5 AI / machine learning
Updated 4 years ago · None stated GitHub repository of Function: Decision Tree

Lux Trailing

by dearvn
257 stars

Plots kernel-smoothed price zones on the price chart using a Rational Quadratic kernel from an imported library. It builds an inner and an outer high-low zone from 15-minute highs and lows, plus a smoothed close and a midline, and marks bullish or bearish bars

Indicator v5 Support & resistanceVolatility & bands Repaints
Updated 7 weeks ago · None stated GitHub repository of Lux Trailing

Market Speedometer

by TradersPost
228 stars

Market Speedometer plots a 0-100 market speed reading in a separate pane. It measures movement by bar-to-bar change, true range, or a short average of recent bars, then ranks that movement against ATR and a percentile lookback. An EMA smooths the reading, and

Indicator v6 Volatility & bandsOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Market Speedometer

Machine Learning: Perceptron-based Strategy is a Pine Script overlay indicator intended to implement a simple perceptron machine learning model for signal generation. However, the author deleted the underlying script logic from the source file, leaving only th

Indicator v4 AI / machine learning
Updated 1 year ago · None stated GitHub repository of Machine Learning: Perceptron-based Strategy
106 stars

This indicator plots an adaptive MACD in a separate pane. It builds the MACD from price changes using fast and slow smoothing factors, then scales the recursion with an R-squared term from the correlation of close and bar index over the R2 period. An EMA of th

Indicator v5 Oscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Adaptive MACD [LuxAlgo]

This indicator calculates the Bill Williams Market Facilitation Index as the high-low range divided by volume, or zero when volume is zero. It compares the index and volume with the previous bar and assigns one of four zones: green for both rising, fade for bo

Indicator v6 VolumeOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Bill Williams Market Facilitation Index

syminfo.* Built-ins

by be-thomas
65 stars

This educational script renders an informational table directly on the price chart to display metadata about the current trading symbol. It retrieves and formats various built-in variables, including base currency, quote currency, symbol description, minimum t

Indicator v5 Screeners & dashboards
Updated 7 days ago · GPL-3.0 GitHub repository of syminfo.* Built-ins
55 stars

This indicator draws dynamic support and resistance trendlines on the price chart. It finds pivot highs and pivot lows with a fixed 15-bar lookback on each side, keeps the last two of each, and on the latest bar connects those highs with a red line and those l

Indicator v5 Support & resistanceTrend
Updated 6 months ago · Apache-2.0 GitHub repository of Auto Dynamic Trendlines

ADR levels

by TamaraKGreen
47 stars

This indicator plots average daily range levels on the price chart, together with optional standard-deviation and Fibonacci levels scaled from that range. Users set the lookback in days, a scale factor, and the visibility, color, and line style of the ADR line

Indicator v5 Support & resistanceVolatility & bands
Updated 8 weeks ago · None stated GitHub repository of ADR levels

This indicator calculates the Ehlers Trendflex oscillator and plots it in a separate pane. It applies a two-pole SuperSmoother low-pass filter to the chosen source, sums the cumulative slope over the lookback with a running buffer, and divides that slope by an

Indicator v6 Oscillators & momentumTrend
Updated 8 months ago · MIT GitHub repository of Ehlers Trendflex Indicator (TRENDFLEX)

Chop Zone

by TWODS-CAPITAL
37 stars

The Chop Zone indicator calculates and visually represents the trend direction and angle of a 34-period Exponential Moving Average (EMA). By measuring normalized EMA slope changes relative to the highest high and lowest low of the recent 30 bars, it maps the a

Indicator v5 TrendVolatility & bands
Updated 3 years ago · MIT GitHub repository of Chop Zone
9 stars

Fibonacci Retracement Quality evaluates how accurately price pullbacks align with key Fibonacci levels (0.236, 0.382, 0.5, 0.618, and 0.786) following confirmed swing moves. It filters out noise using ATR and calculates a score from 0 to 100 based on proximity

Indicator v6 Support & resistance
Updated 4 days ago · MIT GitHub repository of Fibonacci Retracement Quality
7 stars

ACCVOL 1j (SMA5 + SMA10) - AD/B is a price chart overlay indicator designed to identify volume accumulation and bullish swing trading setups. It evaluates current bar price gains, volume expansion, and volume relative to a moving average against historical pri

Indicator v6 VolumeMoving averages
Updated 3 months ago · None stated GitHub repository of ACCVOL 1j (SMA5 + SMA10) - AD/B

RSI 3

by suyons
7 stars

This indicator calculates three Relative Strength Index (RSI) oscillators with distinct length settings, defaulting to 14, 28, and 56 periods. It renders the three RSI curves stacked vertically in a separate pane using numerical offsets to prevent line overlap

Indicator v5 Oscillators & momentum
Updated 4 months ago · None stated GitHub repository of RSI 3

3-Candle Time Pattern

by alboogycOdR
6 stars

This indicator detects three-candle time patterns on the price chart, tracking range, manipulation, and distribution phases based on Smart Money Concepts. It establishes high and low boundaries from the opening candle and identifies boundary rejections during

Indicator v5 SMC / ICT / price actionCandlestick patterns
Updated 7 months ago · None stated GitHub repository of 3-Candle Time Pattern

MACD Breakout

by jerryinyang
5 stars

MACD Breakout builds a higher-timeframe MACD from preset fast and slow lengths using SMA or EMA, and marks support and resistance zones from histogram sensitivity. Optional filters require zero-line agreement, higher-timeframe direction, and linear-regression

Indicator v4 Oscillators & momentumMoving averages
Updated 2 years ago · None stated GitHub repository of MACD Breakout

Ichimoku [trugurpala]

by trugurpala
4 stars

This indicator plots the standard Ichimoku Kinko Hyo components directly on the price chart. It calculates the Tenkan-sen conversion line, Kijun-sen base line, Chikou Span lagging line, and Senkou Span A and B leading lines. The area between Senkou Span A and

Indicator v6 TrendSupport & resistance
Updated 2 months ago · MIT GitHub repository of Ichimoku [trugurpala]

MACD + ATR13

by jash-git
3 stars

This indicator plots a customized Moving Average Convergence Divergence oscillator combined with an Average True Range line in a separate pane. It calculates fast and slow exponential moving averages alongside a simple moving average signal line, highlighting

Indicator v5 Oscillators & momentumVolatility & bands
Updated 5 weeks ago · None stated GitHub repository of MACD + ATR13
3 stars

This indicator plots horizontal lines representing previous highs, lows, and closes from daily, weekly, monthly, quarterly, and yearly periods on the price chart. These levels serve as potential support and resistance for confluence analysis. Users can toggle

Indicator v5 Support & resistanceScreeners & dashboards
Updated 5 months ago · None stated GitHub repository of CSW Institutional Levels

GainzAlgo V2 [Alpha]

by IAMATOMIC001
3 stars

This indicator detects buy and sell signals on the price chart by combining engulfing candlestick patterns, body-to-range stability ratios, RSI boundaries, and price momentum over ten bars. Confirmed signals trigger visual buy and sell labels directly on candl

Indicator v5 Candlestick patternsOscillators & momentum
Updated 1 year ago · None stated GitHub repository of GainzAlgo V2 [Alpha]

This indicator calculates a multi-period momentum oscillator plotted alongside an Average True Range baseline. It measures momentum across five configurable lookback lengths, weighting each value proportionally by its length so longer horizons exert greater in

Indicator v5 Oscillators & momentumVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Weighted Multi-Resolution Momentum with Volatility

EzAlgo

by TamTH-Dev
2 stars

EzAlgo is a multi-purpose trading overlay that combines several technical analysis tools into one system. It calculates Ichimoku Cloud components, dynamic support and resistance zones, reversal bands, trend ribbons, and custom buy or sell signals adjusted by s

Indicator v5 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of EzAlgo

This indicator plots several linear regression channels on the price chart. Each channel can be hidden or drawn as a channel, bands, or both, and its lookback is anchored to price, volume, oscillator extremes, calendar periods, sessions, or corporate events. P

Indicator v6 TrendVolatility & bands
Updated 8 months ago · None stated GitHub repository of Multi-Anchored Linear Regression Channels [TANHEF]

Exponential Weighted MA Volatility

by mushroom-men-Trading
2 stars

This indicator calculates exponentially weighted moving average volatility from log returns of a chosen price source and plots the result in a separate pane. Squared returns are smoothed with an RMA-style weighting, bias-corrected, then converted to volatility

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Exponential Weighted MA Volatility

2.Draw - 11.Labels

by Web3Degenerate
2 stars

This overlay indicator draws a single price label on the chart at the current bar's index and low. The label lists the bar's close, open, high, and low. Its color is green when the close is above the open and red otherwise, then switches to purple when the low

Indicator v5
Updated 2 years ago · None stated GitHub repository of 2.Draw - 11.Labels
1 stars

An indicator that builds a feature matrix from price z-score, RSI, ATR ratio and momentum over a lookback window, weights the four features, smooths them with a covariance based decomposition, and classifies a regime. It then draws a forecast line a chosen num

Indicator v5 AI / machine learningVolatility & bands
Updated 3 days ago · None stated GitHub repository of JINXAI Tensor Forecast

Signal Forge

by jayadevrana
1 stars

Signal Forge is a trend-following overlay indicator that combines an ATR trailing stop with a customizable Exponential Moving Average trend filter. It plots dynamic trailing stop lines and colors bars based on whether price action aligns with the EMA baseline.

Indicator v6 TrendVolatility & bands
Updated 5 days ago · MPL-2.0 GitHub repository of Signal Forge

SMC Session Context

by skipp-dev
1 stars

SMC Session Context is an indicator that tracks trading sessions across Tokyo, London, and New York time zones. Operating in a separate pane, it monitors session highs and lows, previous session extremes, cumulative volume, and initial opening ranges. It ident

Indicator v6 Sessions & timeSMC / ICT / price action
Updated 5 days ago · None stated GitHub repository of SMC Session Context

P_err_recursion

by GammaExpansion
1 stars

This Pine Script v6 indicator defines a recursive factorial function and plots the computed output of factorial five in an indicator pane. The script implements a basic mathematical recursion pattern where a function calls itself until reaching a base conditio

Indicator v6
Updated 8 days ago · MIT GitHub repository of P_err_recursion

DEPV2 DEBUG S11

by YuceSezar89
1 stars

This indicator processes signals across multiple cryptocurrency symbols including BTCUSDT, ETHUSDT, SOLUSDT, and additional Binance pairs. It evaluates trend, momentum, volatility, and volume methods to generate trading signals. Four signal modes are available

Indicator v6 TrendOscillators & momentum Repaints
Updated 2 weeks ago · None stated GitHub repository of DEPV2 DEBUG S11

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