tradingview-mcp-server: Command for Claude Code

.claude/commands/market-regime.md

market-regime is a command for Claude Code from fiale-plus/tradingview-mcp-server. It costs 14 tokens per session (468 once invoked), scanned A, original, MIT.

A command that compares three major stock-market indexes with their all-time highs and labels current conditions as normal, caution, or warning.

In plain words
What is it for?
Use it to review the Nasdaq Composite, OMX Stockholm 30, and Nikkei 225, including their prices, one-year performance, and RSI, a momentum indicator.
Why use it?
It turns several market figures into one quick view of how far indexes have fallen from their records. This helps with broad risk checks before reviewing investments.

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/market-regime.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 market-regime

README.md
[![agentmods](https://agentmods.dev/badge/commands/fiale-plus/tradingview-mcp-server/market-regime/github.svg)](https://agentmods.dev/commands/fiale-plus/tradingview-mcp-server/market-regime)
Your own site
<a href="https://agentmods.dev/commands/fiale-plus/tradingview-mcp-server/market-regime"><img src="https://agentmods.dev/badge/commands/fiale-plus/tradingview-mcp-server/market-regime/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for market-regime

Your own site · 80×15
<a href="https://agentmods.dev/commands/fiale-plus/tradingview-mcp-server/market-regime"><img src="https://agentmods.dev/badge/commands/fiale-plus/tradingview-mcp-server/market-regime.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 468 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.00014 $0.00468
Opus 5 $0.00007 $0.00234
Sonnet 5 $0.00003 $0.00094
Haiku 4.5 $0.00001 $0.00047

Measured 10d ago against content hash 17de11c1da0c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

market-regime 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 10d 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/market-regime.md · 47 lines

What it actually says

Market Regime Analysis

Fetch current levels for major global indexes and calculate drawdowns from all-time highs to assess overall market regime.

Indexes to analyze:

  • Nasdaq Composite (TVC:IXIC) - US tech-heavy market
  • OMX Stockholm 30 (OMXSTO:OMXS30) - Swedish large-cap
  • Nikkei 225 (TVC:NI225) - Japanese large-cap

Steps:

  1. Use mcp__tradingview__lookup_symbols to fetch:

    • symbols: ["TVC:IXIC", "OMXSTO:OMXS30", "TVC:NI225"]
    • columns: ["name", "close", "all_time_high", "price_52_week_high", "change", "Perf.Y", "RSI"]
  2. For each index, calculate:

    • Drawdown from ATH = ((close - all_time_high) / all_time_high) * 100
    • Round to 2 decimal places
  3. Assign regime status based on drawdown:

    • 🟢 GREEN (Normal): 0% to -5% from ATH
    • 🟡 AMBER (Caution): -5% to -10% from ATH
    • 🔴 RED (Warning): < -10% from ATH
  4. Display results as a formatted markdown table with:

    • Index name
    • Current price
    • All-time high
    • Drawdown % from ATH
    • Status indicator (🟢/🟡/🔴)
    • 1Y Performance
    • RSI
  5. Provide summary:

    • Count indexes by status (green/amber/red)
    • Overall market regime assessment
    • Note that ATH data may lag by 1-2 days

Important:

  • If all_time_high < close, the index is making NEW all-time highs (show as 🟢 with +X.XX% above ATH)
  • Use price_52_week_high as reference if ATH seems stale
  • Express drawdown as negative percentage when below ATH
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. 10d ago First seen · 47 lines · 14 tokens per session scan A 17de11c1da0c

Subscribe to this mod's changes

market-regime is a command published in the GitHub repository fiale-plus/tradingview-mcp-server (50 stars, last pushed 19d ago), licensed MIT. It adds 14 tokens to every session and 468 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.