tradingview-mcp-server: Command for Claude Code

.claude/commands/sector-rotation.md

sector-rotation is a command for Claude Code from fiale-plus/tradingview-mcp-server. It costs 15 tokens per session (1,356 once invoked), scanned A, original, MIT.

A market-analysis command that compares performance across the 11 GICS sectors, a standard way of grouping companies by business type. It ranks sectors using large-cap U.S. stocks and measures such as weekly, monthly, yearly performance, and RSI.

In plain words
What is it for?
Use it to screen representative stocks, calculate cross-sector performance, and identify areas where market momentum may be rotating.
Why use it?
It avoids comparing sectors manually and helps reveal which parts of the stock market are leading or lagging.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is fiale-plus/tradingview-mcp-server's own configuration. It tells Claude Code how to work on tradingview-mcp-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything tradingview-mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to fiale-plus/tradingview-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/fiale-plus/tradingview-mcp-server/main/.claude/commands/sector-rotation.md
Clone the repo
git clone --depth 1 https://github.com/fiale-plus/tradingview-mcp-server

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sector-rotation

README.md
[![agentmods](https://agentmods.dev/badge/commands/fiale-plus/tradingview-mcp-server/sector-rotation.svg)](https://agentmods.dev/commands/fiale-plus/tradingview-mcp-server/sector-rotation)
Your own site
<a href="https://agentmods.dev/commands/fiale-plus/tradingview-mcp-server/sector-rotation"><img src="https://agentmods.dev/badge/commands/fiale-plus/tradingview-mcp-server/sector-rotation.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,356 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00015 $0.01356
Opus 5 $0.00008 $0.00678
Sonnet 5 $0.00003 $0.00271
Haiku 4.5 $0.00002 $0.00136

Measured 8d ago against content hash 59223112f4e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

sector-rotation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/sector-rotation.md · 74 lines

How it starts

The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Sector Rotation Analysis

Identify which sectors are leading and lagging the market by screening the top large-cap stocks in each of the 11 GICS sectors and comparing their average performance.

Steps:

  1. Screen top stocks for each of the 11 GICS sectors For each sector listed below, call mcp__tradingview__screen_stocks with:

    • markets: ["america"]
    • sort_by: "market_cap_basic", sort_order: "desc"
    • limit: 5
    • columns: ["name", "close", "Perf.W", "Perf.1M", "Perf.3M", "Perf.Y", "RSI", "sector", "market_cap_basic"]

    The 11 sectors and their filter values:

    • Technology: {field: "sector", operator: "equal", value: "Electronic Technology"}, {field: "market_cap_basic", operator: "greater", value: 1000000000}
    • Healthcare: {field: "sector", operator: "equal", value: "Health Technology"}, {field: "market_cap_basic", operator: "greater", value: 1000000000}
    • Financials: {field: "sector", operator: "equal", value: "Finance"}, {field: "industry", operator: "not_equal", value: "Real Estate Investment Trusts"}, {field: "market_cap_basic", operator: "greater", value: 1000000000}
    • Consumer Cyclical: {field: "sector", operator: "equal", value: "Consumer Durables"}, {field: "market_cap_basic", operator: "greater", value: 1000000000}
    • Consumer Defensive: {field: "sector", operator: "equal", value: "Consumer Non-Durables"}, {field: "market_cap_basic", operator: "greater", value: 1000000000}
    • Energy: {field: "sector", operator: "equal", value: "Energy Minerals"}, {field: "market_cap_basic", operator: "greater", value: 1000000000}
    • Industrials: {field: "sector", operator: "equal", value: "Producer Manufacturing"}, {field: "market_cap_basic", operator: "greater", value: 1000000000}
    • Communication Services: {field: "sector", operator: "equal", value: "Technology Services"}, {field: "market_cap_basic", operator: "greater", value: 1000000000}
    • Real Estate: {field: "sector", operator: "equal", value: "Finance"}, {field: "industry", operator: "equal", value: "Real Estate Investment Trusts"}, {field: "market_cap_basic", operator: "greater", value: 1000000000}
    • Materials: {field: "sector", operator: "equal", value: "Non-Energy Minerals"}, {field: "market_cap_basic", operator: "greater", value: 1000000000}
    • Utilities: {field: "sector", operator: "equal", value: "Utilities"}, {field: "market_cap_basic", operator: "greater", value: 1000000000}

Read the full file on GitHub · 74 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 74 lines · 15 tokens per session scan A 59223112f4e8

Subscribe to this mod's changes

sector-rotation is a command published in the GitHub repository fiale-plus/tradingview-mcp-server (50 stars, last pushed 17d ago), licensed MIT. It adds 15 tokens to every session and 1,356 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.