Pine Library · 1,047 open-source scripts

Free Stock Pine Scripts for TradingView (page 14)

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

947 stars

Dividends per Share (DPS, Yearly) calculates and displays annual dividend payment totals retrieved from FactSet fundamental data feeds. It accumulates historical dividend payouts and estimates on a yearly basis, plotting them as styled columns in a separate in

Indicator v4 Repaints
Updated 11 days ago · GPL-3.0 GitHub repository of Dividends per Share (DPS, Yearly)

ALTR Tracker

by Allen1212
303 stars

This indicator overlays historical ARK Invest transaction records directly onto the ALTR price chart. It plots green and red labels at precise historical timestamps corresponding to past buy and sell transactions executed by ARK funds, displaying transaction c

Indicator v4 Screeners & dashboards
Updated 2 years ago · None stated GitHub repository of ALTR Tracker

This strategy trades Donchian channel breakouts with ATR-based risk. It allows long and short entries, sizes the first unit from a risk percent, and adds up to four fractional units as price moves in favor. An initial ATR stop moves to breakeven after a set pr

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 31: Fractional + BE Lock

Alpy Vix

by avatar-lavventura
2 stars

Alpy Vix is a strategy that calculates and plots the Williams Vix Fix indicator adapted for BIST stocks in a separate pane. It generates entry signals when the Vix Fix crosses upper bands or percentile ranges and meets filtered criteria based on price action s

Strategy v4 Volatility & bandsOscillators & momentum Repaints
Updated 7 months ago · None stated GitHub repository of Alpy Vix
1 stars

A strategy that builds on the JAT+BSM family: an AlphaTrend style core with MACD, three consolidation layers with volume profile, candlestick and macro pattern drawings, and a kinematic and Bayesian forecast with a feedback learning rate. Inputs include a stra

Strategy v5 TrendOscillators & momentum
Updated yesterday · None stated GitHub repository of JAT+BSM Pro v15 Unified
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 11 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
16 stars

This strategy enters long or short on Donchian channel breakouts and can add units when price moves in the trade direction and RSI confirms momentum. It sizes each unit from a risk percent of equity and exits with an ATR initial stop, a chandelier trail that t

Strategy v6 TrendOscillators & momentum
Updated 12 months ago · None stated GitHub repository of Seykota Alt 32: Momentum + Time

AMD-tracker

by Allen1212
303 stars

This indicator plots historical buy and sell transactions executed by ARK Invest funds directly onto the price chart for Advanced Micro Devices. It creates visual labels at specific historical timestamps, marking buys below bars in green and sells above bars i

Indicator v4
Updated 2 years ago · None stated GitHub repository of AMD-tracker
16 stars

A Donchian channel trend-following strategy featuring progressive breakeven stop-loss levels based on ATR (N). It enters on a 55-period Donchian breakout with an initial risk set at 2.0 N. As profit reaches key ATR milestones, the stop advances through progres

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 33: Progressive BE
3 stars

Calculates a composite market internals oscillator by averaging the 50-period Relative Strength Index (RSI) across four major U.S. index ETFs: SPY, DIA, QQQ, and IWM. It plots this composite oscillator against a 50 midline in a separate pane, dynamically color

Indicator v5 Oscillators & momentumScreeners & dashboards Repaints
Updated 5 months ago · None stated GitHub repository of CSW Internals Pro

This indicator estimates a risk score and suggested position size from capital, a user win rate, a profit ratio, and historical price range. It tracks each year's high and low, converts that range into a drawdown percentage, and plots a weighted average of the

Indicator v6 Volatility & bands
Updated 8 months ago · None stated GitHub repository of Nasan Risk Score & Postion Size Estimator

AME-tracker

by Allen1212
303 stars

This indicator plots historical buy and sell transactions executed by ARK Invest for AME directly on the price chart using timestamped labels. It displays transaction actions and trade counts for specific historical dates. The ETF input setting lets users sele

Indicator v4
Updated 2 years ago · None stated GitHub repository of AME-tracker
16 stars

This strategy trades Donchian channel breakouts and can go long or short. It sizes the first unit from a percent of equity and an ATR stop, then adds smaller fractional units only when RSI confirms momentum. It exits with an ATR initial stop, a chandelier trai

Strategy v6 TrendOscillators & momentum
Updated 12 months ago · None stated GitHub repository of Seykota Alt 34: Fract + Momentum
9 stars

FlowBias calculates a composite market momentum metric using Chaikin Money Flow, volume delta, Stochastic, and the Ultimate Oscillator. Plotted in a separate pane, it identifies trend pullbacks and market exhaustion reversals through visual signals and labels.

Indicator v6 TrendOscillators & momentum
Updated 2 days ago · MIT GitHub repository of FlowBias [WavesUnchained]

Options Max Pain Calculator [BackQuant] estimates options max pain theory levels, pin risk zones, and market maker gamma exposure directly on the price chart. It models strike prices, put/call volume ratios, implied volatility, and dealer hedging parameters to

Indicator v6 Support & resistance
Updated 8 months ago · None stated GitHub repository of Options Max Pain Calculator [BackQuant]
1 stars

A strategy that switches logic by volatility regime, measured as the percentile rank of ATR as a percent of price over 200 bars. In low volatility it buys RSI below 30 and sells above 70. In the middle regime it follows a 20 and 50 EMA crossover, with longs al

Strategy v6 Volatility & bandsMean reversion
Updated 2 months ago · None stated GitHub repository of TN Adaptive Vol Regime

AMZN-tracker

by Allen1212
303 stars

AMZN Tracker visualizes historical buy and sell transactions made by ARK Invest funds on Amazon stock (AMZN) directly on the price chart. The indicator plots green labels below price bars for buy trades and red labels above for sell trades, displaying the coun

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

This strategy overlays the price chart and looks for VWAP pullbacks. It goes long when a short SMA crosses above VWAP after RSI has been oversold within ten bars, and short on the opposite cross after RSI has been overbought. Optional Minervini-style moving-av

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Advanced VWAP-Momentum Pullback Trend Qualifier

Anish TB Foster Fix

by nishpa800
1 stars

Overlay indicator for stock-style charts that flags pocket pivot candles: a large percentage body whose volume beats the highest opposite-colour volume over a lookback. It also tests trend stages using 50, 150 and 200 period EMAs plus distance from the 52-week

Indicator v5 TrendVolume
Updated 2 months ago · None stated GitHub repository of Anish TB Foster Fix

ANSS Tracker

by Allen1212
303 stars

Plots historical buy and sell trades executed by ARK Invest for ANSS stock directly on the price chart. It uses fixed historical timestamps to generate labels indicating buy or sell events along with the count of participating ARK funds on specific dates. User

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

Midnight VWAP

by TradersPost
228 stars

The Midnight VWAP indicator calculates and overlays two distinct Volume Weighted Average Price (VWAP) lines on the price chart based on customizable session timeframes. It tracks an overnight or pre-market session alongside regular trading hours, resetting cal

Indicator v6 Moving averagesSessions & time
Updated 3 months ago · None stated GitHub repository of Midnight VWAP
16 stars

This trend-following strategy initiates long or short trades on Donchian channel breakouts. Position sizing is calculated from an Average True Range (ATR) volatility model. The script scales into winning trades up to a user-defined unit limit only when RSI con

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 36: BE + Momentum
2 stars

This indicator tracks macroeconomic and financial conditions to estimate recession risk across multiple market dimensions. It requests external data for the S&P 500 moving average growth rate, US 10-year minus 3-month yield curve inversion, M2 money supply tre

Indicator v6 Screeners & dashboardsMoving averages
Updated 8 months ago · None stated GitHub repository of Recession Warning Traffic Light

B2B PUP Combined 4.32

by nishpa800
1 stars

An earlier version of a combined detection indicator that unifies pocket pivot, displacement, VWMA with ATR Supertrend, relative volume, fair value gap and TNT zone engines into numbered signals drawn on the price chart. This release fixes the charge ladder so

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of B2B PUP Combined 4.32

AONE-tracker

by Allen1212
303 stars

AONE-tracker visualizes historical ARK Invest purchase and sale transactions directly on the price chart for the stock. It plots color-coded labels on specific historical trade dates, indicating whether ARK funds bought or sold shares along with the count of p

Indicator v4
Updated 2 years ago · None stated GitHub repository of AONE-tracker
16 stars

This trend-following strategy executes Donchian channel breakout entries combined with Ed Seykota-inspired risk management. It opens long or short positions when price breaks 55-bar highs or lows, provided optional volume and market regime filters align. Posit

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 37: BE + Time

API Tracker

by Allen1212
303 stars

API Tracker visualizes historical buy and sell activity by ARK Invest funds directly on the main price chart. It plots date-specific chart labels indicating transaction dates, trade direction, and the count of participating funds for a specific equity. Users c

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

Cumulative Volume Index

by TWODS-CAPITAL
37 stars

This indicator calculates the Cumulative Volume Index (CVI) by measuring market breadth across major US exchanges. It requests advancing volume and declining volume data for a chosen exchange, computes their net difference, and tracks the cumulative sum over t

Indicator v5 Volume
Updated 3 years ago · MIT GitHub repository of Cumulative Volume Index
16 stars

This trend-following strategy identifies breakout entries using Donchian channels and plots signals directly on the price chart. It executes long and short trades, adding fractional units when relative strength index values confirm momentum. Exits rely on aver

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 38: Triple Combo
1 stars

A large detection indicator that merges many volume and price-pattern engines into numbered signals drawn as shapes on the price chart. Components include pocket pivot detection, displacement measured in standard deviations, a VWMA with ATR Supertrend, relativ

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of B2B PUP Combined 5.4 Tick-Friendly

APTV-tracker

by Allen1212
303 stars

APTV-tracker plots historical ARK Invest buy and sell transactions directly on the price chart for Aptiv PLC. The script uses hardcoded labels anchored to specific historical timestamps to mark execution dates, showing transaction directions and ETF counts. An

Indicator v4
Updated 2 years ago · None stated GitHub repository of APTV-tracker
16 stars

This strategy plots on the price chart and trades Donchian breakouts in long or short directions. It sizes each unit from a risk percentage of price and an ATR-based initial stop, then adds units at a fixed ATR step up to a maximum. An ATR trail can exit, and

Strategy v6 TrendVolatility & bands
Updated 12 months ago · None stated GitHub repository of Seykota Alt 39: Adaptive Targets

AQB-tracker

by Allen1212
303 stars

Visualizes historical ARK Invest transactions for AquaBounty Technologies (AQB) directly on the price chart. The indicator creates green buy labels below bars and red sell labels above bars at hardcoded timestamps corresponding to reported ARK trading activity

Indicator v4
Updated 2 years ago · None stated GitHub repository of AQB-tracker
3 stars

This indicator calculates and plots the NYSE Cumulative Tick Index as colored candles in a separate pane, with green indicating upward tick trends and red downward trends. Overbought and oversold zones are marked using smoothed averages of high and low tick va

Indicator v5 Oscillators & momentumVolatility & bands
Updated 5 months ago · None stated GitHub repository of CSW Tick Internals

ARCT-tracker

by Allen1212
303 stars

This overlay indicator marks historical ARK Invest buy and sell activity for the stock ARCT on the price chart. It places dated labels above or below bars, colored red for sells and green for buys, with a same-day ETF count such as X1. An ETF setting switches

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

Snag - SPY

by dearvn
257 stars

Snag - SPY is an overlay indicator that tracks market trends using three Weighted Moving Averages (WMA 13, WMA 48, and WMA 200). It plots the three WMAs directly on the main price chart and calculates crossovers between price and the moving averages, as well a

Indicator v5 TrendMoving averages
Updated 6 weeks ago · None stated GitHub repository of Snag - SPY
46 stars

Initial Balance Statistical Mapping plots the high, low, and midpoint of a defined initial balance session, such as the first hour of trading, directly on the main price chart. It projects statistical extension levels using fixed percentile multipliers (25th,

Indicator v5 Support & resistanceSessions & time
Updated 7 weeks ago · None stated GitHub repository of Initial Balance Statistical Mapping
16 stars

This trend-following strategy generates long and short breakout signals using volatility channels plotted around a simple moving average. It calculates ATR bands for entries and trailing exits, calculating position sizing based on account equity and ATR risk p

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 3: ATR Channel

ARNC-tracker

by Allen1212
303 stars

ARNC-tracker plots historical ARK Invest buy and sell events for ARNC as text labels on the price chart. With the ETF input set to ALL, it places dated labels such as a red sell marker above the bar. The setting chooses which ARK ETF records appear, and this f

Indicator v4
Updated 2 years ago · None stated GitHub repository of ARNC-tracker
16 stars

This strategy trades Donchian channel breakouts on the price chart and can take both long and short positions. It sizes the first unit from a risk percentage of price and ATR, then adds smaller units when price advances by an ATR step and RSI is above or below

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 40: ULTIMATE
4 stars

This strategy enters long when RSI is above a minimum threshold and price is above a trend EMA, and short when RSI is below a maximum threshold and price is below that EMA. It opens a trade only while flat. Exits place an ATR multiple as the stop and a larger

Strategy v6 Oscillators & momentumMoving averages
Updated 2 months ago · MIT GitHub repository of RSI + ATR Strategy [trugurpala]

BFI Reversal

by skipp-dev
1 stars

BFI Reversal is a price-chart indicator that marks reversal and continuation setups from pivot structure, clustered zones, and scored flow. It offers balanced or aggressive early-reversal modes and a continuation-breakout mode, with asset profiles for auto, st

Indicator v6 Support & resistanceVolume
Updated 3 days ago · None stated GitHub repository of BFI Reversal

ATAI-tracker

by Allen1212
303 stars

This indicator overlays historical ARK Invest buy and sell trade records for ATAI directly onto the price chart. It plots visual labels on specific timestamps indicating when ARK ETFs purchased or sold shares, along with multiplier counts showing transaction f

Indicator v4
Updated 2 years ago · None stated GitHub repository of ATAI-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