Pine Library · 1,047 open-source scripts

Free Stock Pine Scripts for TradingView (page 10)

Open-source Pine scripts written for shares: relative strength, earnings and gap tools, screeners and stock strategies.

Pine scripts1,047
Code shown here408open licence
Updated in a year564
No repaint flag963

Stocks: Indicators, Strategies and Libraries

KARPUZLU-RSI

by Kalumur
4 stars

Calculates a custom-period Relative Strength Index alongside an Exponential Moving Average of the RSI in a separate pane. It identifies pivot highs and lows directly on the RSI plot to highlight trendlines and potential divergence patterns. The area between th

Indicator v5 Oscillators & momentumMoving averages
Updated 2 years ago · None stated GitHub repository of KARPUZLU-RSI

DIP FINDER BIST

by gocaman
3 stars

DIP FINDER BIST is a multi-symbol dashboard indicator designed for the BIST stock market. It scans predefined groups of Turkish stocks across user-selected timeframes to identify potential market bottoms and oversold conditions. The script evaluates multiple t

Indicator v5 Screeners & dashboardsOscillators & momentum
Updated yesterday · None stated GitHub repository of DIP FINDER BIST

TQQQ TSI Divergence

by yalili8521
2 stars

This strategy identifies hidden bullish and bearish divergences between price pivots and the True Strength Index (TSI) indicator. It incorporates an Exponential Moving Average (EMA) trend filter and a customizable trading session time window. Long positions en

Strategy v6 Oscillators & momentumDivergence
Updated 8 days ago · None stated GitHub repository of TQQQ TSI Divergence

This indicator plots a multi-asset correlation heatmap in a separate pane to measure statistical relationships between assets. It calculates Pearson correlation coefficients over a user-specified lookback period between a chosen primary symbol and up to twenty

Indicator v6 Screeners & dashboardsSessions & time
Updated 8 months ago · None stated GitHub repository of Correlation HeatMap Sessions Data Science Stats
2 stars

This indicator tracks market volatility regimes by calculating the ratio between the CBOE Volatility Index (VIX) and the 3-Month Volatility Index (VIX3M). Plotted in a separate pane, a line displays the VIX to VIX3M ratio alongside a dashed reference line at 1

Indicator v5 Volatility & bands
Updated 10 months ago · MIT GitHub repository of VIX Curve Regime (Simple)
2 stars

This indicator tracks and displays open portfolio positions in an on-chart table overlay. It monitors up to ten user-defined symbols alongside their respective buy prices, retrieving current market prices and calculating the unrealized percentage change for ea

Indicator v6 Screeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of Portfolio Tracker
1 stars

KLSE Market Regime Dashboard displays a macro market regime overview and sector relative strength metrics in an on-chart table. It retrieves daily data from global macro benchmarks (FBMKLCI, Dow Jones, S&P 500, VIX) and key Malaysian sector leadership proxies

Indicator v5 Screeners & dashboardsTrend
Updated 4 months ago · None stated GitHub repository of KLSE Market Regime Dashboard

Financial YoY

by lumduan
1 stars

A fundamentals indicator that pulls company financial data such as revenue, net income, EBITDA, EPS, debt, cash flow and margin ratios, and shows two chosen items in a table on the chart. It can display quarter-on-quarter, year-on-year and compound growth for

Indicator v5 Screeners & dashboards Repaints
Updated 1 year ago · None stated GitHub repository of Financial YoY
318 stars

This indicator calculates and plots two moving averages, which can be configured as either exponential or simple, along with a shaded fill between them to highlight trend direction. It also derives and plots upper and lower deviation levels using a customizabl

Indicator v5 Moving averagesTrend
Updated 2 months ago · MIT GitHub repository of TVT Short Term (1h)

6301-Tracker

by Allen1212
303 stars

This indicator overlays historical ARK Invest buy and sell activity for ticker 6301 on the price chart. It places green buy labels below bars and red sell labels above bars at fixed calendar dates, with each label showing a one-ETF count. The ETF input switche

Indicator v4
Updated 2 years ago · None stated GitHub repository of 6301-Tracker
16 stars

This strategy enters long or short when a chart-timeframe Donchian breakout agrees with a higher-timeframe confirmation, using breakout, moving average, or both. It exits on a shorter Donchian channel and can flatten on a time rule. Position size risks a set p

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 17: Dual TF Confluence

SPY 0DTE Scalper - 5m

by chris-c-thomas
14 stars

This overlay indicator scores up to ten equal-weight conditions on the five-minute chart and marks a signal when the total meets a configurable threshold. It plots a 9/15/21 EMA ribbon with optional cloud fill, session-anchored VWAP and standard-deviation band

Indicator v6 ScalpingMoving averages
Updated 6 months ago · MIT GitHub repository of SPY 0DTE Scalper - 5m

TD Sequential

by davro
10 stars

This indicator overlays Tom DeMark's TD Sequential methodology on the main price chart. It tracks consecutive price comparisons where current closes are higher or lower than the close four bars ago, incrementing setup counts from one to nine. Upon completing a

Indicator v4 TrendOscillators & momentum
Updated 5 years ago · None stated GitHub repository of TD Sequential

LunarTick ORB

by lunarticktrading
7 stars

This indicator calculates and plots Opening Range Breakout (ORB) levels directly on the price chart. It defines the high, low, and midpoint of an opening range based on a configurable duration and session time, with an optional Anchored VWAP (AVWAP) and extens

Indicator v6 Sessions & timeBreakout Repaints
Updated 2 weeks ago · None stated GitHub repository of LunarTick ORB
6 stars

Capital41 Fusion Core Strategy is an overlay trading strategy that combines an exponential moving average trend filter, RSI, Williams %R, and volume/ATR expansion into a composite momentum oscillator. It executes long trades when the smoothed oscillator crosse

Strategy v6 TrendOscillators & momentum
Updated 8 weeks ago · MIT GitHub repository of Capital41 Fusion Core Strategy
4 stars

The Keltner Channel Strategy is a breakout system plotted directly on the main price chart. It calculates upper and lower channel bands around an exponential or simple moving average using ATR, True Range, or bar range multiplied by a specified factor. A long

Strategy v5 TrendVolatility & bands
Updated 5 months ago · None stated GitHub repository of Keltner Channel Strategy

M+AT+BOLL+T3

by Kalumur
4 stars

This multi-indicator toolkit and scanner overlays Tillson T3 Moving Averages, MavilimW weighted moving average combinations, Bollinger Bands, and AlphaTrend calculations directly on the price chart. It includes color-coded trend direction signals and alerts wh

Indicator v5 Moving averagesTrend
Updated 2 years ago · None stated GitHub repository of M+AT+BOLL+T3

Dipmix

by gocaman
3 stars

Dipmix is a separate-pane momentum and scanning indicator designed to identify market bottoms and oversold conditions. It calculates a WaveTrend oscillator using EMA-smoothed price channels, alongside an integrated Awesome Oscillator and Accelerator Oscillator

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated yesterday · None stated GitHub repository of Dipmix

Zebra Week

by etnt
2 stars

Zebra Week paints alternating background stripes on the price chart so consecutive time periods are easier to see. On a daily chart it shades even weeks; on a 15-minute chart it shades every other trading day using the week number and weekday. A single toggle

Indicator v6 Sessions & time
Updated 1 year ago · MPL-2.0 GitHub repository of Zebra Week

STT SR TMA Plan

by majohnst
1 stars

This strategy executes trades based on Triangular Moving Average (TMA) crossings, support and resistance structures, and breakout logic. It evaluates multiple confluence conditions including daily pivots, anchored VWAP, and multi-day moving averages alongside

Strategy v6 Moving averagesTrend
Updated 4 months ago · None stated GitHub repository of STT SR TMA Plan

KLSE Quality Overlay

by kevinesk
1 stars

The 8_KLSE_Quality_Overlay is a Pine Script v5 indicator that overlays quality grades on the price chart for KLSE stocks. It combines user inputs from KC Chong 8-Criteria, Cold Eye 8-Criteria, Tong Kooi Ong tiers, and Tradeview MONEY equation to assign grades

Indicator v5 Screeners & dashboardsSupport & resistance
Updated 4 months ago · None stated GitHub repository of KLSE Quality Overlay
1 stars

This strategy looks for mean-reversion entries when RSI crosses back through the oversold or overbought levels, or recovers from more extreme RSI readings. Optional divergence confirmation can require a price and RSI mismatch before entry. It opens one long or

Strategy v5 Mean reversionOscillators & momentum
Updated 7 months ago · None stated GitHub repository of RSI Extremes - Mean Reversion

VIX Term Structure

by namuan
318 stars

This indicator plots the implied volatility term structure for US equities in a separate pane. It requests close data for four Cboe volatility indexes: VIX9D (9-day), VIX (30-day), VIX3M (3-month), and VIX6M (6-month) on the current timeframe. For each index,

Indicator v5 Volatility & bandsMoving averages
Updated 2 months ago · MIT GitHub repository of VIX Term Structure

6618-Tracker

by Allen1212
303 stars

6618-tracker overlays historical buy and sell transactions executed by ARK Invest funds directly onto the price chart using hardcoded labels. It visualizes daily buy and sell actions, displaying share volume, portfolio percentage weight, and trade counts for s

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

Moon Dev GEX Sweep & CVD

by moondevonyt
92 stars

The indicator detects liquidity sweeps across key price levels and calculates a cumulative volume delta proxy. It uses pivot high and low lookbacks to identify swing points, marking sweeps when price breaks beyond a level and quickly closes back inside. Featur

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 2 months ago · Custom licence GitHub repository of Moon Dev GEX Sweep & CVD

Relative Strength Table

by ChartsLector
41 stars

This indicator builds a table of relative strength for up to six user-chosen symbols against a benchmark, defaulting to SPY. It measures strength over four lookback periods, can average the visible periods, and can add relative volume as current volume divided

Indicator v6 Screeners & dashboardsVolume
Updated 3 days ago · None stated GitHub repository of Relative Strength Table
18 stars

Upstox Brokerage Calculator is an Indian equity brokerage and transaction fee calculation utility tool for TradingView. It uses customizable input parameters for position quantity, purchase price, and sale price to calculate estimated brokerage fees, regulator

Indicator v4 Screeners & dashboards
Updated 4 years ago · None stated GitHub repository of Upstox Brokerage Calculator
16 stars

This price-chart strategy trades Donchian channel breakouts in the style of a Seykota trend system. It enters long or short when price touches the entry channel, using the bar high or low when intrabar mode is on, and can add units after further moves of a set

Strategy v6 TrendBreakout Repaints
Updated 12 months ago · None stated GitHub repository of Seykota Alt 19: Intrabar Execution

Trend Compass 15m

by chris-c-thomas
14 stars

Trend Compass 15m is an intraday trend analysis overlay designed for 15-minute charts. It calculates a triple exponential moving average ribbon, higher-timeframe reference EMAs from 1H, 4H, and Daily periods, RSI and MACD divergences, On-Balance Volume trends,

Indicator v6 TrendMoving averages Repaints
Updated 6 months ago · MIT GitHub repository of Trend Compass 15m

QPulse

by JasonTeixeira
9 stars

QPulse is a multi-factor indicator that draws in a separate pane to evaluate market momentum, volume flow, and volatility dynamics. It calculates volume delta, a cumulative delta proxy, advanced adaptive ATR, and a hybrid volume-weighted RSI with overbought an

Indicator v6 Oscillators & momentumVolatility & bands
Updated 13 days ago · Custom licence GitHub repository of QPulse
7 stars

This indicator compares the price movement of the current chart symbol against up to forty user-specified tickers across a configurable correlation window. It identifies the highest-correlated asset and projects its scaled or rotated price path directly onto t

Indicator v6 Screeners & dashboards
Updated 3 months ago · None stated GitHub repository of Match Finder [theUltimator5]
6 stars

Capital41 Fusion Oscillator v3 measures multi-condition market confluence in a separate pane with a smoothed composite score ranging from 0 to 100. It evaluates four criteria: EMA trend direction, RSI oversold or overbought turns, Williams %R thresholds, and A

Indicator v6 Oscillators & momentumTrend
Updated 8 weeks ago · MIT GitHub repository of Capital41 Fusion Oscillator v3

EMA 14 Haf-Aylık

by gocaman
3 stars

This indicator overlays multi-timeframe exponential moving averages and channel zones directly on the price chart. It calculates a weekly 14-period EMA, monthly 9-period and 14-period EMAs, along with a configurable 233-period high-low EMA channel with a shade

Indicator v5 Moving averagesTrend Repaints
Updated yesterday · None stated GitHub repository of EMA 14 Haf-Aylık

Data Panel

by etnt
2 stars

Data Panel calculates and displays fundamental financial metrics and closing range percentages directly on the price chart in an organized table. It requests financial metrics such as basic earnings per share, total revenue, net income, and total equity across

Indicator v5 Screeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of Data Panel
1 stars

This strategy executes trades based on Triangular Moving Average (TMA) crossings, Support and Resistance filters (such as Daily Pivots, Anchored VWAP, and 5-day moving averages), and volume or percentage gain criteria. Exits are driven by specific session time

Strategy v6 TrendMoving averages
Updated 4 months ago · None stated GitHub repository of STT SR TMA Scale ExitOnly Plan

Strategy Template

by mrdungx2603
1 stars

This is a Pine Script v6 strategy template that sets up a trading strategy drawing on the price chart. It includes inputs for data source, fast and slow length parameters, take profit and stop loss percentages, and a time-based trading session filter. The stra

Strategy v6 Moving averagesTrend
Updated 4 months ago · None stated GitHub repository of Strategy Template

KLSE Trend Template

by kevinesk
1 stars

This indicator evaluates Mark Minervini's Trend Template criteria directly on the price chart. It checks eight technical conditions based on 21, 50, 150, and 200-period exponential moving averages, alongside 52-week (260-bar) highs and lows. The script plots t

Indicator v5 TrendMoving averages
Updated 4 months ago · None stated GitHub repository of KLSE Trend Template

A Pine v4 indicator in a separate pane that computes a rolling Sharpe-style ratio over a 200-bar window and compares it with a benchmark symbol, SPY by default. An optional reference interest rate series can be subtracted, a Hull moving average smooths the out

Indicator v4 Volatility & bands
Updated 3 years ago · None stated GitHub repository of Tykhe Rolling Sharpe Ratio Mansfield
575 stars

This overlay indicator scans a pasted list of symbols for ICT liquidity sweep patterns using prior swing sweeps. The screening method looks back one, two, or three swings and can list long and short signals in a results table with adjustable rows, position, an

Indicator v5 SMC / ICT / price actionScreeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Liquidity Sweep Pattern Scanner

8473-Tracker

by Allen1212
303 stars

8473-Tracker visualizes historical buying and selling transactions executed by ARK Invest funds for specific stock holdings. It plots green buy labels below price bars and red sell labels above price bars on specific historical trade dates. An input setting al

Indicator v4
Updated 2 years ago · None stated GitHub repository of 8473-Tracker
219 stars

This educational script draws a vertical line on the price chart at 9:30 AM New York time to mark the standard US equity market open. It uses the line.new function to plot a thick, semi-transparent gray vertical line extending from above the bar high to below

Indicator v4 Sessions & time
Updated 5 years ago · None stated GitHub repository of 教學-畫垂直線2-使用line

Moon Dev GEX Walls & Trap

by moondevonyt
92 stars

This indicator estimates gamma exposure levels and intraday context for index instruments like SPY and ES. It calculates VWAP with standard deviation bands as a gamma flip proxy, highlighting market regimes through background colors. It plots prior day high, l

Indicator v5 Support & resistanceSessions & time
Updated 2 months ago · Custom licence GitHub repository of Moon Dev GEX Walls & Trap

1-Month RS

by ChartsLector
41 stars

This indicator calculates the relative strength of the current asset compared to a benchmark symbol such as SPY. It stores the price ratio across a configurable lookback window, ranks the current ratio as a percentile from 0 to 100, and plots the result as a c

Indicator v5 Oscillators & momentumTrend
Updated 3 days ago · None stated GitHub repository of 1-Month RS

Trend Compass 1H

by chris-c-thomas
14 stars

Trend Compass 1H provides strategic trend assessment and higher-timeframe context for 1-hour price charts. It plots an exponential moving average ribbon along with key structural reference levels from higher timeframes, including 4-hour, daily, and weekly EMAs

Indicator v6 TrendMoving averages
Updated 6 months ago · MIT GitHub repository of Trend Compass 1H

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