[Sector-Aware] Herd-Hunter Scanner For ThinkOrSwim

Adeodatus

Active member
Plus
Market leaders in any targeted sector are this scanner function. Most retail traders have no idea how to gather and sort through all the different stocks to find the most active one(s) with early volume accumulation, rotation energy and capital deployment cycles.
2026-03-23_595kindPosStatt_01.png

Save one scanner for 15 minute, and one for 1 hr.

Code:
# =========================
# CARBON STATION SCAN ELITE
# AdeodatusTravalLink Series 4/2026
# =========================

# ---------- SECTOR DOMINANCE ----------
def xle = close("XLE");
def spy = close("SPY");

def sectorRS = xle / spy;
def sectorHot = sectorRS > Average(sectorRS, 20);

# ---------- INTERNAL ROTATION ----------
def stockRS = close / xle;
def leader = stockRS > Average(stockRS, 20);

# ---------- ACCUMULATION (SMART MONEY PROXY) ----------
def upVol = if close > close[1] then volume else 0;
def downVol = if close < close[1] then volume else 0;

def accDist = Sum(upVol - downVol, 20);
def accumulation = accDist > 0;

# ---------- ZANGER-STYLE VOLUME EXPANSION ----------
def volAvg = Average(volume, 30);
def zvr = volume / volAvg;
def volumeIgnition = zvr > 1.5;

# ---------- RANGE EXPANSION ----------
def tr = TrueRange(high, close, low);
def trAvg = Average(tr, 14);
def expansion = tr > trAvg * 1.2;

# ---------- EARLY TREND (NOT EXTENDED) ----------
def trend = close > Average(close, 20);
def notExtended = close < Average(close, 50) * 1.12;

# ---------- MOMENTUM WINDOW ----------
def rsi = RSI(14);
def momentum = rsi > 50 and rsi < 70;

# ---------- LIQUIDITY ----------
def priceOK = close > 10;

# ---------- IGNITION SCORE ----------
def score =
    (if sectorHot then 1 else 0) +
    (if leader then 1 else 0) +
    (if accumulation then 1 else 0) +
    (if volumeIgnition then 1 else 0) +
    (if expansion then 1 else 0) +
    (if trend then 1 else 0);

# ---------- FINAL SCAN ----------
plot scan =
    score >= 4 and
    momentum and
    notExtended and
    priceOK;
 
Last edited by a moderator:

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Market leaders in any targeted sector are this scanner function. Most retail traders have no idea how to gather and sort through all the different stocks to find the most active one(s) with early volume accumulation, rotation energy and capital deployment cycles.
View attachment 27287
Save one scanner for 15 minute, and one for 1 hr.

Code:
# =========================
# CARBON STATION SCAN ELITE
# AdeodatusTravalLink Series 4/2026
# =========================

# ---------- SECTOR DOMINANCE ----------
def xle = close("XLE");
def spy = close("SPY");

def sectorRS = xle / spy;
def sectorHot = sectorRS > Average(sectorRS, 20);

# ---------- INTERNAL ROTATION ----------
def stockRS = close / xle;
def leader = stockRS > Average(stockRS, 20);

# ---------- ACCUMULATION (SMART MONEY PROXY) ----------
def upVol = if close > close[1] then volume else 0;
def downVol = if close < close[1] then volume else 0;

def accDist = Sum(upVol - downVol, 20);
def accumulation = accDist > 0;

# ---------- ZANGER-STYLE VOLUME EXPANSION ----------
def volAvg = Average(volume, 30);
def zvr = volume / volAvg;
def volumeIgnition = zvr > 1.5;

# ---------- RANGE EXPANSION ----------
def tr = TrueRange(high, close, low);
def trAvg = Average(tr, 14);
def expansion = tr > trAvg * 1.2;

# ---------- EARLY TREND (NOT EXTENDED) ----------
def trend = close > Average(close, 20);
def notExtended = close < Average(close, 50) * 1.12;

# ---------- MOMENTUM WINDOW ----------
def rsi = RSI(14);
def momentum = rsi > 50 and rsi < 70;

# ---------- LIQUIDITY ----------
def priceOK = close > 10;

# ---------- IGNITION SCORE ----------
def score =
    (if sectorHot then 1 else 0) +
    (if leader then 1 else 0) +
    (if accumulation then 1 else 0) +
    (if volumeIgnition then 1 else 0) +
    (if expansion then 1 else 0) +
    (if trend then 1 else 0);

# ---------- FINAL SCAN ----------
plot scan =
    score >= 4 and
    momentum and
    notExtended and
    priceOK;
wrong image
 

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
658 Online
Create Post

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top