tradingview-mcp-server: Command for Claude Code

.claude/commands/run-screener.md

run-screener is a command for Claude Code from fiale-plus/tradingview-mcp-server. It costs 13 tokens per session (1,553 once invoked), scanned A, original, MIT.

A guided command for screening stocks with predefined investment strategies and saving the results as a CSV file. A stock screener filters companies using conditions such as value, dividends, growth, or momentum.

In plain words
What is it for?
Use it to choose a preset strategy, run a stock screen, review a summary table, and save the results to CSV.
Why use it?
Comparing many stocks manually is slow and inconsistent. Preset screens provide a repeatable way to narrow the list and keep the results for later analysis.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: names the AskUserQuestion tool.

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/run-screener.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 run-screener

README.md
[![agentmods](https://agentmods.dev/badge/commands/fiale-plus/tradingview-mcp-server/run-screener/github.svg)](https://agentmods.dev/commands/fiale-plus/tradingview-mcp-server/run-screener)
Your own site
<a href="https://agentmods.dev/commands/fiale-plus/tradingview-mcp-server/run-screener"><img src="https://agentmods.dev/badge/commands/fiale-plus/tradingview-mcp-server/run-screener/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 run-screener

Your own site · 80×15
<a href="https://agentmods.dev/commands/fiale-plus/tradingview-mcp-server/run-screener"><img src="https://agentmods.dev/badge/commands/fiale-plus/tradingview-mcp-server/run-screener.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 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,553 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.00013 $0.01553
Opus 5 $0.00006 $0.00776
Sonnet 5 $0.00003 $0.00311
Haiku 4.5 $0.00001 $0.00155

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

Security

Grade A, and why

run-screener 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 9d 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/run-screener.md · 124 lines

How it starts

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

Run Stock Screener

Interactive stock screening using pre-configured investment strategies. Results are displayed as a summary table and saved to CSV for further analysis.

Steps:

  1. List available presets using mcp__tradingview__list_presets

    • Get all available preset strategies
  2. Structured preset selection wizard (ALWAYS show ALL screens):

    CRITICAL: You MUST use AskUserQuestion with TWO separate questions in a SINGLE call to show both screens together.

    Use AskUserQuestion with questions array containing BOTH questions:

    Question 1 - "Select from common strategies:"

    • Header: "Strategy"
    • multiSelect: false
    • Options (7 choices):
      • label: "Quality Stocks", description: "High-quality, low-volatility stocks with strong fundamentals and uptrends (conservative)"
      • label: "Value Stocks", description: "Undervalued stocks with low P/E and P/B ratios"
      • label: "Dividend Stocks", description: "High dividend yield with consistent payout"
      • label: "Momentum Stocks", description: "Strong recent performance and technical momentum"
      • label: "Growth Stocks", description: "High-growth companies with strong revenue and earnings expansion"
      • label: "Dividend Growth", description: "Consistent dividend payers with growing payouts and strong FCF"
      • label: "Deep Value", description: "Contrarian screen: P/E <10, P/B <1.5, positive earnings and FCF"

    Question 2 - "Select from advanced strategies:"

    • Header: "Advanced"
    • multiSelect: false
    • Options (7 choices):
      • label: "Quality Growth", description: "Comprehensive quality + growth screen with technical filters (advanced)"
      • label: "Quality Compounder", description: "Durable compounders: gross margin >40%, ROIC >15%, FCF margin >15% (Munger/Buffett style)"
      • label: "GARP", description: "Growth at Reasonable Price: PEG <2, ROE >15%, revenue growth >10%"
      • label: "Breakout Scanner", description: "Technical breakouts: near 52-week highs, golden cross, above-average volume"
      • label: "Earnings Momentum", description: "Strong EPS growth YoY >20%, revenue growth >10%, above SMA50"
      • label: "Macro Assets", description: "Key macro assets: VIX, DXY, yields, gold, oil, BTC (not a stock screen)"
      • label: "Market Indexes", description: "Global market indexes for market regime analysis (not a stock screen)"

Read the full file on GitHub · 124 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. 9d ago First seen · 124 lines · 13 tokens per session scan A 69d080a4987f

Subscribe to this mod's changes

run-screener is a command published in the GitHub repository fiale-plus/tradingview-mcp-server (50 stars, last pushed 18d ago), licensed MIT. It adds 13 tokens to every session and 1,553 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.