Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 51)

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

Trading Latino

by micayael
1 stars

A separate-pane indicator, short title LVA, that pairs a squeeze momentum histogram with an ADX-style line. Cross markers on the zero line show whether Bollinger Bands are inside Keltner Channels. It adds an optional higher-timeframe status monitor with an adj

Indicator v4 Oscillators & momentumVolatility & bands
Updated 4 years ago · None stated GitHub repository of Trading Latino

This indicator turns Bollinger Bands, Keltner Channels or the average of both into a single normalised line in a separate pane, computed from Heikin Ashi close prices over a 200-bar window by default. The line is coloured lime above a bullish breakout level, r

Indicator v5 Volatility & bandsBreakout
Updated 4 years ago · None stated GitHub repository of Breakout Bollinger Band and Keltner Channel
1 stars

An indicator on the price chart that shades the background green when a possible dip bottom forms. It looks for RSI turning up from a local low while the earlier RSI reading sits below a buy threshold, combined with MACD either flattening its decline or turnin

Indicator v4 Oscillators & momentumMean reversion
Updated 4 years ago · None stated GitHub repository of Binance Buy The Dip

Turtle Trader

by rocketbrainsurgeon
1 stars

The Turtle Trader indicator merges Donchian channels with trend detection to classify market state. It computes upper and lower channel levels from recent highs and lows, along with stop levels, and plots them directly on the price chart. Green bars signal upw

Indicator v4 TrendVolatility & bands
Updated 5 years ago · GPL-3.0 GitHub repository of Turtle Trader

Weinstein MAs

by rosskevin
1 stars

Weinstein MAs plots adaptive simple and volume-weighted moving averages based on Stan Weinstein's Stage Analysis framework. On weekly charts, it calculates 10, 30, and 40-period MAs, whereas on non-weekly intervals it uses 50, 150, and 200-period MAs. Both sim

Indicator v4 TrendMoving averages
Updated 5 years ago · AGPL-3.0 GitHub repository of Weinstein MAs

Kelt-BBand Combo

by digasic
1 stars

An overlay indicator that plots a 20-period Bollinger basis line with bands at one, two and three standard deviations, shaded in graded white fills. It also computes a Keltner channel from a 20-period EMA and EMA of true range, used to define pinch and consoli

Indicator v4 Volatility & bands
Updated 6 years ago · None stated GitHub repository of Kelt-BBand Combo

This indicator combines three technical tools into a single price overlay: dual Exponential Moving Averages (EMA), Parabolic SAR (PSAR), and ATR-derived stop loss levels. It calculates fast and very fast EMAs (defaults 9 and 21) using a custom EMA function, pl

Indicator v4 TrendMoving averages
Updated 6 years ago · GPL-3.0 GitHub repository of EMA-PSAR-ATR Indicators [Numchuck]

The Inverse Distance Weighted Moving Average calculates a moving average where historical prices are weighted according to their pairwise absolute distances across a user-defined lookback window. Plotted directly on the price chart, the indicator tracks trend

Indicator v6 Moving averagesTrend
Updated 12 days ago · GPL-3.0 GitHub repository of Inverse Distance Weighted Moving Average

This indicator calculates momentum setups based on the Relative Strength Index (RSI) and plots in a separate pane. It offers multiple scanning modes such as Continuous Break, Continuous Retracement, Flip Break, Flip Retracement, and both regular and hidden div

Indicator v6 Oscillators & momentumDivergence Repaints
Updated 1 year ago · MPL-2.0 GitHub repository of Momentum Setup - RSI Directional Momentum Indicator

Mojito v3 Strategy

by namuan
318 stars

The Mojito v3 Strategy indicator evaluates volatility term structure by calculating the ratio between front-month and second-month VIX futures contracts. It smooths this ratio using a configurable median filter and compares the result against user-defined uppe

Indicator v5 Volatility & bands
Updated 2 months ago · MIT GitHub repository of Mojito v3 Strategy

4477 Tracker

by Allen1212
303 stars

4477 Tracker overlays historical buy and sell records from ARK Invest directly onto the price chart. The indicator hardcodes exact execution dates and trade instances, displaying green labels for purchases and red labels for sales below or above the price bars

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

Flip Flop

by harryguiacorn
220 stars

Flip Flop is an overlay indicator that analyzes candle data over a customizable lookback period to track structural market extremes. It locates key levels, including the low of the highest bullish candle and the high of the lowest bearish candle within the win

Indicator v5 Support & resistanceVolatility & bands
Updated 1 year ago · None stated GitHub repository of Flip Flop

RS指標

by TaichiS
219 stars

This indicator calculates and displays the relative strength of an asset compared to a benchmark index. It plots the 21-bar percentage return of the current chart symbol alongside the daily return of the TWSE TAIEX index in a separate pane. A zero baseline mar

Indicator v4 Oscillators & momentum
Updated 5 years ago · None stated GitHub repository of RS指標

Test

by agutinbaigo28
147 stars

This utility script serves as a minimal testing tool designed to verify data flow within the backtest kit framework. It reads the current closing price and outputs a constant zero position state, sending both series directly to the TradingView Data Window with

Indicator v5
Updated 6 weeks ago · MIT GitHub repository of Test
114 stars

This indicator applies a k-Nearest Neighbors machine learning algorithm to predict market direction based on historical indicator patterns. It calculates normalized values from selected technical indicators, such as RSI, ROC, CCI, and volume, across short and

Indicator v5 AI / machine learningOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of Machine Learning: kNN-based Strategy

Adaptive Price Channel

by mihakralj
99 stars

This indicator calculates an adaptive price channel by independently smoothing bar highs and lows using exponential moving averages. It plots an upper band from smoothed highs, a lower band from smoothed lows, a yellow midpoint line, and a shaded channel area

Indicator v6 Volatility & bandsTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Adaptive Price Channel
92 stars

Calculates fast and slow Simple Moving Averages to display a visual rainbow ribbon on the price chart. The indicator fills multiple gradient bands between the dual moving averages and adds visual effects like glowing SMA halos, animated palette shifts, and reg

Indicator v6 Moving averagesTrend
Updated 2 months ago · Custom licence GitHub repository of Moon Dev Rainbow Wave 20/40

RSI Div at dVWAP StDev

by cryptorife
75 stars

This indicator marks RSI divergences only when price trades beyond daily VWAP standard-deviation bands. It compares recent RSI extremes with price highs and lows over a lookback window, and it treats a divergence as valid only while RSI stays beyond overbought

Indicator v4 DivergenceOscillators & momentum Repaints
Updated 3 years ago · GPL-3.0 GitHub repository of RSI Div at dVWAP StDev

Barcolor Example

by be-thomas
65 stars

This indicator evaluates candlestick relationships to identify inside bars and outside bars based on recent high and low price action. It draws directly on the price chart by altering the color of qualified bars. Inside bars are colored yellow, bullish outside

Indicator v5 Candlestick patterns
Updated 6 days ago · GPL-3.0 GitHub repository of Barcolor Example

Price of Apple

by PythonForForex
64 stars

This simple educational indicator requests and plots the daily closing price of Apple Inc. (AAPL) in a separate pane on the chart. It demonstrates the use of Pine Script security functions to pull data from an external symbol regardless of the current chart sy

Indicator v5
Updated 4 years ago · None stated GitHub repository of Price of Apple

Day Trading

by iamc1oud
56 stars

This indicator plots global forex trading sessions, opening ranges, and opening channels for Sydney, Tokyo, Frankfurt, London, and New York markets. It calculates and draws daily reference levels based on Average True Range (ATR) multipliers from the day open

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of Day Trading

EMA

by dcaoyuan
55 stars

This indicator calculates and plots three Exponential Moving Averages directly on the main price chart. It includes configurable inputs for fast, slow, and slowest moving averages, defaulting to 9, 21, and 36 periods based on bar close values. Traders can adju

Indicator v6 Moving averagesTrend
Updated 6 months ago · Apache-2.0 GitHub repository of EMA

Range Box

by milocaetano
48 stars

The Range Box indicator identifies the price bounds over a user-defined period and renders a visual rectangular box on the main price chart. It calculates the highest high and lowest low across a specified lookback length and updates a single dynamic box objec

Indicator v5 Support & resistance
Updated 3 days ago · MIT GitHub repository of Range Box

IB / ORB Live Stats

by TamaraKGreen
47 stars

This overlay indicator marks the New York initial balance and a configurable opening range on the price chart and reports live range statistics in two tables. It builds an IB box for a default 09:30–10:30 ET window, an ORB box from 09:30 for a set number of mi

Indicator v6 Sessions & timeBreakout
Updated 8 weeks ago · None stated GitHub repository of IB / ORB Live Stats
47 stars

This indicator calculates and plots an Andrews' Pitchfork channel directly on the price chart using geometric projections. It computes a central median line along with parallel upper and lower channel boundaries based on three historical anchor points specifie

Indicator v6 Support & resistanceTrend
Updated 8 months ago · MIT GitHub repository of Andrews' Pitchfork (AP)

Calculates normalized moving average trend strength, historical volatility, and volatility-adjusted position sizing in a separate pane. It computes the percentage distance between fast and slow EMAs relative to price, evaluates standard deviation of daily retu

Indicator v5 Moving averagesVolatility & bands
Updated 1 year ago · None stated GitHub repository of Risk-Based Position Size Calculator

Hyperfork Matrix

by blueprintresearch-dev
42 stars

This indicator draws an Andrews pitchfork on the price chart from three pivots chosen automatically or by time. It supports Original, Schiff, and Modified Schiff constructions, optional extra parallel levels, and forward or backward action and reaction lines.

Indicator v6 Support & resistanceTrend
Updated 2 weeks ago · None stated GitHub repository of Hyperfork Matrix

LoD Intraday Entry

by ChartsLector
41 stars

This overlay indicator marks the current day's low and a suggested entry zone a fraction of daily ATR below that low. It compares daily volume with a volume moving average, plots daily SMA and EMA distance, and draws an optional ATR-width price cloud. Labels c

Indicator v6 Support & resistanceVolatility & bands
Updated 4 days ago · None stated GitHub repository of LoD Intraday Entry

Advance Decline Ratio

by TWODS-CAPITAL
37 stars

This indicator calculates and plots the ratio of advancing stocks to declining stocks on the New York Stock Exchange. It requests close prices from the USI:ADVN.NY and USI:DECL.NY ticker symbols using the security function and divides advances by declines. The

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Advance Decline Ratio

MACD

by thanhnguyennguyen
33 stars

This indicator calculates and plots the Moving Average Convergence Divergence (MACD) line, signal line, and a four-color histogram in a separate chart pane. It computes the difference between fast and slow moving averages to determine momentum shifts. Users ca

Indicator v4 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of MACD
29 stars

Zen Bar Range Projections calculates the Average Bar Range (ABR) over a user-defined lookback period and projects 0.5x and 1x measured move levels above and below the prior bar close. Users can choose between the current chart timeframe or a higher timeframe m

Indicator v6 Volatility & bandsSupport & resistance
Updated 2 weeks ago · MIT GitHub repository of Zen Bar Range Projections

WaveTrend 3D

by nersent
29 stars

WaveTrend 3D is a redesigned oscillator that implements the classic WaveTrend algorithm with kernel-based regression for trend reversal confirmation and multi-timeframe support. It calculates a smoothed oscillator line and displays a symmetrical three-dimensio

Indicator v5 Oscillators & momentumDivergence
Updated 11 months ago · Custom licence GitHub repository of WaveTrend 3D

This indicator defines a user type named point with float fields for x and y, then attaches a method that returns the Euclidean distance from the origin. It constructs one point at coordinates 3 and 4 and plots that method result in a separate pane under the t

Indicator v6
Updated 2 months ago · AGPL-3.0 GitHub repository of Feature Matrix - method on user type

Daily Pivot Points

by tistaharahap
25 stars

Daily Pivot Points calculates standard daily pivot levels along with four resistance levels, four support levels, and intermediate mid-pivot levels using the previous day's high, low, and close values. The indicator draws horizontal line objects directly on th

Indicator v4 Support & resistance Repaints
Updated 6 years ago · None stated GitHub repository of Daily Pivot Points
24 stars

This overlay indicator maps Smart Money Concepts on the price chart. It labels internal and swing breaks of structure and changes of character, marks bullish and bearish order blocks, equal highs and lows, fair value gaps, and premium, equilibrium, and discoun

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 12 days ago · Custom licence GitHub repository of Smart Money Concepts [LuxAlgo] test C

Benso RSI

by benso87
24 stars

This indicator calculates a Relative Strength Index using Wilder or Cutler calculation methods, accompanied by an optional smoothing moving average and a signal line. Plotted in a separate pane, it features defined bull and bear control and critical threshold

Indicator v5 Oscillators & momentumDivergence
Updated 4 years ago · MPL-2.0 GitHub repository of Benso RSI
23 stars

Point-Clip Unified Indicator plots breakout and directional labels on the price chart. It scores volume spikes against a volume average, range or opening-range breaks, optional VWAP or session-anchored VWAP, fast and slow EMA trend, and a higher-timeframe EMA

Indicator v6 BreakoutVolume Repaints
Updated 4 weeks ago · Custom licence GitHub repository of Point-Clip Unified Indicator

This indicator computes a modified version of John F. Ehlers' Even Better Sinewave oscillator in a separate pane. It filters price data using a high-pass filter, smooths the output with a weighted FIR filter, and normalizes the amplitude using a three-bar powe

Indicator v5 Oscillators & momentum
Updated 1 year ago · None stated GitHub repository of John F. Ehlers - Even Better Sinewave Modified

Bandz Session Ranges + ORG + Opening Prices plots trading session ranges, killzones, opening RTH gaps, standard deviation projections, and key opening prices directly on the price chart. It calculates gap ranges based on prior regular trading hours close sourc

Indicator v6 Sessions & timeSupport & resistance
Updated 2 weeks ago · MPL-2.0 GitHub repository of Bandz Session Ranges + ORG + Opening Prices

New Script

by shibisuriya
18 stars

This indicator checks whether intraday bars fall within a specified time range and places a text label displaying the hour and minute above each qualifying candle on the main price chart. Users can configure the start hour, start minute, end hour, and end minu

Indicator v4 Sessions & time
Updated 4 years ago · None stated GitHub repository of New Script

HalfTrend + EMA

by msongkiet
16 stars

This indicator combines the HalfTrend trend-following algorithm with five exponential moving averages overlayed directly on the price chart. HalfTrend determines directional bias by evaluating local high and low price extrema over a selectable amplitude alongs

Indicator v5 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of HalfTrend + EMA

Alighten Pattern E

by alighten-dev
14 stars

Alighten Pattern E plots a zigzag through stored swing pivots on the price chart and scans recent pivot pairs for Pattern E long and short signals. When enabled, it marks those signals and draws OG rays from the related pivots. Users can limit the bar window,

Indicator v6 Support & resistance
Updated 2 weeks ago · None stated GitHub repository of Alighten Pattern E

Market Monitor 5m

by chris-c-thomas
14 stars

Market Monitor 5m is an intraday context overlay designed for 5-minute chart analysis. It calculates directional bias using exponential moving averages, VWAP, TTM Squeeze volatility state, NYSE TICK market breadth, and ATR volatility regimes. The script plots

Indicator v6 Screeners & dashboardsSupport & resistance Repaints
Updated 6 months ago · MIT GitHub repository of Market Monitor 5m

Bte Strat

by f-cksociety
11 stars

Bte Strat provides a backtesting and trading engine framework implemented as an indicator on the price chart. It evaluates trade signals using selectable entry rules, technical filters like volume and moving averages, and dynamic exit strategies. The script pl

Indicator v5 TrendOscillators & momentum
Updated 4 years ago · MPL-2.0 GitHub repository of Bte Strat
10 stars

This indicator calculates custom Traders Dynamic Index (TDI) conditions on the price chart using a 30-period Relative Strength Index (RSI), volatility bands, and fast/slow RSI moving averages. It plots green buy labels below bars and red sell labels above bars

Indicator v4 Oscillators & momentumVolatility & bands
Updated 5 years ago · None stated GitHub repository of My TDI B/S BTC 1D

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