Pine Library · 1,047 open-source scripts

Free Stock Pine Scripts for TradingView (page 15)

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

16 stars

Implements an adaptive trend-following and range-trading strategy that switches behavior based on ADX regime detection. When ADX exceeds the threshold, it executes Donchian breakouts with fractional pyramiding and Chandelier trailing stops. In low ADX environm

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 41: Sector-Adaptive

ATI Tracker

by Allen1212
303 stars

ATI Tracker visualizes historical buy and sell transactions made by ARK Invest funds directly on stock price charts. It places color-coded labels on transaction dates to display whether ARK ETFs accumulated or distributed shares, including indicators for how m

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

This strategy enters long or short on a Donchian channel break and sizes each unit by risking a percentage of equity against an ATR stop. It adds units as price advances by a fraction of ATR, up to a set maximum. A three-tier time exit uses RSI: fading momentu

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 42: Momentum-Gated Time

AUDC Tracker

by Allen1212
303 stars

This indicator plots visual labels directly on the price chart to display historical stock buy and sell transactions executed by ARK Invest for AUDC. Using hardcoded timestamps and transaction counts, it highlights the specific dates on which ARK funds traded

Indicator v4
Updated 2 years ago · None stated GitHub repository of AUDC Tracker
257 stars

This overlay strategy marks short-term turning points on the price chart and enters SPY option-style trades from them. It plots simple moving averages of highs and lows, draws up and down reversal arrows, and colors bars when a short-term extreme coincides wit

Strategy v5 TrendMoving averages Repaints
Updated 6 weeks ago · None stated GitHub repository of SPY Options Trading - Alert

Quick Flip Scalper

by TradersPost
228 stars

This strategy executes an opening-range liquidity fade based on the first candle of a session. It qualifies the opening range against the daily ATR to confirm manipulation or liquidity spikes. If qualified, it searches for reversal candlestick patterns, such a

Strategy v6 Sessions & timeCandlestick patterns
Updated 3 months ago · None stated GitHub repository of Quick Flip Scalper

Archens Shares

by hasnocool
106 stars

Archens Shares is an intraday breakout strategy designed for session-based trading. It tracks the highest high and lowest low from a 30-minute timeframe during a specified session window, defaulting to 09:45 to 10:15. A long position is entered when the closin

Strategy v5 BreakoutSessions & time
Updated 2 years ago · GPL-3.0 GitHub repository of Archens Shares

This strategy implements a Donchian breakout trend-following system with volatility-adaptive profit targets. It enters long or short on 55-period Donchian channel breakouts, sizes positions by ATR risk, and pyramids up to four units as price advances. Stop los

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 43: Volatility Adaptive
1 stars

A diagnostic indicator that marks, on the detection candle, each building block of a combo chain: fair value gap setups, a matrix pattern and a unified combo, separately for bullish and bearish sides. A chain fires when the current and previous candle each car

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Combo Chain Constituents v1

AVAV Tracker

by Allen1212
303 stars

AVAV Tracker overlays historical buy and sell activity by ARK Invest funds directly onto the price chart for AeroVironment Inc. (AVAV). It places labels above or below daily bars corresponding to recorded execution timestamps, indicating trade direction and fu

Indicator v4
Updated 2 years ago · None stated GitHub repository of AVAV Tracker
46 stars

This overlay indicator marks swing highs and lows with Bill Williams fractals and draws them as offset labels and extended lines on the price chart. Fractal length can be 3, 5, 7, or 9 bars, and an optional filter reduces weaker fractal points. It also plots c

Indicator v5 Support & resistanceSessions & time
Updated 7 weeks ago · None stated GitHub repository of MTF Swing Highs and Lows with Key Levels
4 stars

Visualizes custom trading sessions directly on the main price chart. Highlights active session bars with a light background color, plots intra-session high and low levels, and optionally places labels at session opening and closing bars. Built default for VİOP

Indicator v6 Sessions & timeSupport & resistance
Updated 2 months ago · MIT GitHub repository of Session Highlight [trugurpala]

AYLA-tracker

by Allen1212
303 stars

AYLA-tracker visualizes ARK Invest trade activities for AYLA directly on the price chart. It plots historical execution labels at specific timestamps, indicating dates when ARK Invest bought or sold shares of the stock. The indicator does not compute technical

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

This strategy enters long or short when price breaks a Donchian channel and RSI confirms the same direction. It sizes each unit from a risk percent of equity and can add units after a set ATR advance, up to a unit limit. An initial ATR stop and a trailing stop

Strategy v6 TrendOscillators & momentum
Updated 12 months ago · None stated GitHub repository of Seykota Alt 45: Dual Momentum

AYX-tracker

by Allen1212
303 stars

This overlay indicator marks historical ARK Invest purchases and sales of AYX on the price chart. It places green buy labels below the bar and red sell labels above the bar at fixed calendar dates, each labeled with an X1 count. The only input selects the ETF

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

This strategy implements a Donchian breakout trend-following system with sector-adaptive profit targets and ATR-based volatility sizing. It enters positions on Donchian channel breakouts, pyramiding additional units at ATR increments up to a configurable maxim

Strategy v6 BreakoutTrend
Updated 12 months ago · None stated GitHub repository of Seykota Alt 46: Sector Adaptive

BA-tracker

by Allen1212
303 stars

BA-tracker is an overlay indicator that marks historical ARK Invest purchases and sales of Boeing on the price chart. Green labels appear below bars on buy dates and red labels appear above bars on sell dates, with text showing the side and how many ARK ETFs t

Indicator v4
Updated 2 years ago · None stated GitHub repository of BA-tracker
7 stars

The indicator calculates total volume for the IMOEX Russian index by summing volumes of 30+ constituent stocks fetched via request.security. Dollar volume is normalized by multiplying close prices with volumes. The script detects index mode and plots the resul

Indicator v6 Volume
Updated 3 months ago · None stated GitHub repository of Dollar Normalized Volume & IMOEX

This indicator creates a heatmap table in a separate pane showing cointegration strength between a user-defined list of symbols. It calculates aligned returns from sum and difference spreads for each symbol pair, then derives a cointegration proxy as the resid

Indicator v6 Mean reversionScreeners & dashboards Repaints

Open-Prep Daily Panel

by skipp-dev
1 stars

This indicator renders a top-right table dashboard with a baked-in snapshot of the last open-prep run. It lists up to ten watchlist symbols, their playbook labels, directional bias, composite scores, tier tags, gap percentages, and relative volume. A freshness

Indicator v6 Screeners & dashboardsSMC / ICT / price action
Updated 3 days ago · None stated GitHub repository of Open-Prep Daily Panel

Fable Bear HTF v1

by nishpa800
1 stars

The first release of a bearish-side detection indicator for higher timeframe charts. It draws numbered signals on the price chart from relative volume tiers, displacement using a nine standard deviation default multiplier, a VWMA with ATR Supertrend latch, poc

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Fable Bear HTF v1

BABA-tracker

by Allen1212
303 stars

This indicator plots historical buy and sell transactions executed by ARK Invest funds for Alibaba stock directly on the price chart. It renders green upward labels below price bars for purchases and red downward labels above price bars for sales, displaying t

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

This strategy trades an asymmetric long and short trend system on the price chart. Longs use shorter Donchian entry and exit lengths, tighter ATR stops, more pyramid units, and a higher risk percent per unit than shorts. Each unit is sized from equity and stop

Strategy v6 TrendVolatility & bands
Updated 12 months ago · None stated GitHub repository of Seykota Alt 4: Asymmetric L/S

Fable Bear HTF v1.2

by nishpa800
1 stars

A bearish-side detection indicator for higher timeframe charts that marks numbered signals on the price chart. It combines relative volume tiers, displacement based on a standard deviation multiplier, a VWMA with ATR Supertrend latch, pocket pivots and fair va

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Fable Bear HTF v1.2

BATM-tracker

by Allen1212
303 stars

This indicator tracks historical ARK Invest transactions for BATM on the main price chart. It visualizes past buy and sell activity by plotting color-coded labels directly above or below corresponding price bars using specific calendar timestamps. The primary

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

This strategy trades Donchian breakouts measured on weekly bars while orders execute on the chart timeframe. It allows long and short entries when price breaks the prior weekly channel and exits against the shorter weekly channel. Position size risks a set per

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 4: Weekly Donchian

Fable Bear HTF v1.3

by nishpa800
1 stars

A bearish-side detection indicator for higher timeframe charts that draws numbered signals on the price chart. It uses relative volume tiers, a standard deviation displacement test, a VWMA with ATR Supertrend latch, pocket pivots and fair value gap engines. A

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Fable Bear HTF v1.3

BDT-tracker

by Allen1212
303 stars

This indicator plots historical ARK Invest purchase and sale transactions directly on the price chart using chart labels. It visualizes historical buy and sell records for the underlying stock, marking trade dates and fund activity. The input setting allows th

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

This trend-following strategy executes long and short trades based on Donchian channel breakouts directly on the price chart. It enters positions when price breaks a multi-bar high or low and exits on opposing Donchian channel band crosses. Risk management inc

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 5: Accelerated Pyramid

Fable Bear HTF v1.4

by nishpa800
1 stars

A bearish-side detection indicator for higher timeframe charts that places numbered signals on the price chart. Its engines cover relative volume tiers, displacement by a standard deviation multiplier, a VWMA with ATR Supertrend latch, pocket pivots, fair valu

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Fable Bear HTF v1.4

BEKE Tracker

by Allen1212
303 stars

Visualizes historical buy and sell transactions by ARK Invest ETFs for KE Holdings Inc. (BEKE) directly on the price chart. The indicator plots colored labels at specific historical timestamps indicating when ARK funds purchased or sold shares, along with a mu

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

This strategy enters long or short when price closes beyond a Donchian channel and can require a slow moving average, called the tide, to agree with the direction. It sizes each unit from ATR risk, sets an initial ATR stop, and adds units after further ATR mov

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 5: Close-Confirmed + Tide
2 stars

The Dynamic Equity Allocation Model is an indicator that calculates and plots dynamic allocation percentages between equity and cash in a separate pane. It weighs five factors including market regime detection, risk metrics, valuation, sentiment, and macro con

Indicator v6 Screeners & dashboardsVolatility & bands
Updated 8 months ago · None stated GitHub repository of Dynamic Equity Allocation Model

Fable Bear LTF v1

by nishpa800
1 stars

The first release of a bearish-side detection indicator for lower timeframe charts. It draws numbered signals on the price chart from relative volume tiers, a standard deviation displacement test, a VWMA with ATR Supertrend latch, pocket pivots and fair value

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Fable Bear LTF v1

BEZQ Tracker

by Allen1212
303 stars

BEZQ Tracker visualizes historical buy and sell transactions made by ARK Invest for the BEZQ ticker directly on the price chart. It plots labels at specific historical dates to mark purchase and sale events recorded from ARK Invest data. Users can filter the d

Indicator v4
Updated 2 years ago · None stated GitHub repository of BEZQ Tracker
1 stars

This Pine Script v6 library exports constant reference data and profiles for Smart Money Concepts (SMC) decision-support systems. It provides over 190 static export fields covering universe tickers, market regime status, macro bias, news heat maps, volatility

Library v6
Updated 3 days ago · None stated GitHub repository of SMC Micro Profiles Generated

Fable Bear LTF v1.1

by nishpa800
1 stars

A bearish-side detection indicator for lower timeframe charts that draws numbered signals on the price chart. It uses relative volume tiers, standard deviation displacement with a nine multiplier default, a VWMA with ATR Supertrend latch, pocket pivots and fai

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Fable Bear LTF v1.1

BFLY-tracker

by Allen1212
303 stars

This indicator plots historical buy and sell transactions executed by ARK Invest funds for Butterfly Network (BFLY) directly on the price chart. It renders green labels below bars for buy actions and red labels above bars for sell actions, noting how many ARK

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

Fable Bear LTF v1.3

by nishpa800
1 stars

A bearish-side detection indicator for lower timeframe charts that places numbered signals on the price chart. It draws on relative volume tiers, a standard deviation displacement test with a default multiplier of five, a VWMA with ATR Supertrend latch, pocket

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Fable Bear LTF v1.3

BIDU-tracker

by Allen1212
303 stars

The BIDU-tracker indicator overlays historical ARK Invest purchases and sales of Baidu on the price chart as dated labels. Green labels mark buys below bars and red labels mark sells above bars. An ETF input selects ARKK, ARKQ, ARKW, or ALL so the plotted reco

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

Fable Bear LTF v1.4

by nishpa800
1 stars

A bearish-side detection indicator for lower timeframe charts that marks numbered signals on the price chart. Its engines include relative volume tiers, displacement with a default multiplier of five standard deviations, a VWMA with ATR Supertrend latch, pocke

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Fable Bear LTF v1.4

BILL-tracker

by Allen1212
303 stars

This overlay indicator marks historical ARK Invest purchases and sales of BILL on the price chart. It places green buy labels below bars and red sell labels above bars at hardcoded dates, with each label showing a buy or sell and an X count of ARK ETFs trading

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

Seykota Alt 9: Time Exit Primary executes a Donchian breakout trend-following strategy that prioritizes time-based exits over price-based trailing stops. It enters long or short on 55-bar Donchian channel breakouts, sizing positions by ATR-based risk and pyram

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 9: Time Exit Primary

This indicator plots a directional volume and money flow profile directly on the price chart over a configurable lookback period. It displays total flow reference bars alongside directional delta bars to highlight buyer versus seller dominance at each price ti

Indicator v6 VolumeSupport & resistance
Updated 2 days ago · MIT GitHub repository of Money Flow Delta Profile [WavesUnchained]

Fable Bull HTF v1

by nishpa800
1 stars

The first release of a bullish-side detection indicator for higher timeframe charts. It marks numbered signals on the price chart from relative volume tiers, a standard deviation displacement test, a VWMA with ATR Supertrend latch, pocket pivots and fair value

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Fable Bull HTF v1

BLCM-tracker

by Allen1212
303 stars

This indicator visualizes historical ARK Invest transactions for Bellicum Pharmaceuticals (BLCM) directly on the price chart. It plots labeled markers above or below price bars based on fixed historical trade timestamps, displaying whether ARK bought or sold s

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