tradingview-mcp-server: Command for Claude Code

.claude/commands/investment-thesis.md

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

A command that creates a structured investment thesis for one stock using current market data. An investment thesis explains the reasons to buy, the reasons not to buy, and what to watch.

In plain words
What is it for?
Use it for bull and bear cases, valuation and financial metrics, technical analysis, and a checklist for monitoring a stock.
Why use it?
It gathers many company and price measures into one consistent document, reducing the need to collect and organize them manually.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

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/investment-thesis.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 investment-thesis

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/fiale-plus/tradingview-mcp-server/investment-thesis"><img src="https://agentmods.dev/badge/commands/fiale-plus/tradingview-mcp-server/investment-thesis.svg" alt="Reviewed on agentmods" width="80" 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,928 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.01928
Opus 5 $0.00008 $0.00964
Sonnet 5 $0.00003 $0.00386
Haiku 4.5 $0.00002 $0.00193

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

Security

Grade A, and why

investment-thesis 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/investment-thesis.md · 126 lines

How it starts

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

Investment Thesis Generator

Generate a complete, data-driven investment thesis for a single stock — bull case, bear case, key metrics table, technical setup, and monitoring checklist.

Steps:

  1. Parse symbol from $ARGUMENTS

    • Accept formats like AAPL, NASDAQ:AAPL, NYSE:JPM
    • If no exchange prefix, try NASDAQ: then NYSE:
    • Use the first successfully resolved symbol
  2. Fetch data using mcp__tradingview__lookup_symbols

    • symbols: [normalized symbol]
    • columns:
      • name, close, market_cap_basic, sector, industry, exchange
      • return_on_equity, price_earnings_ttm, price_book_fq, price_sales_current
      • enterprise_value_current, enterprise_value_ebitda_ttm
      • gross_margin_ttm, net_margin_ttm, free_cash_flow_ttm, free_cash_flow_margin_ttm
      • total_revenue_yoy_growth_ttm, earnings_per_share_diluted_yoy_growth_ttm
      • debt_to_equity, current_ratio, beta_1_year
      • dividends_yield_current, dividend_payout_ratio_ttm
      • RSI, SMA50, SMA200, Perf.Y, Perf.YTD, all_time_high, price_52_week_high
  3. Generate the investment thesis document using the real data fetched above:


Investment Thesis: [Company Name] ([SYMBOL])

Data as of [today's date]. Not financial advice.

The Business

  • Sector: [sector] | Industry: [industry]
  • Market Cap: [formatted market cap] | Exchange: [exchange]
  • [Write 2-3 sentences describing what this company does — use your knowledge of the company]

Why This Stock

Bull Case

Generate 3 bull case points based on the actual data. Use these signal rules:

  1. If ROE > 15% AND (gross_margin > 30% OR net_margin > 15%): "Strong unit economics with [ROE]% ROE and [gross_margin]% gross margins, indicating durable competitive advantage"
  2. If total_revenue_yoy_growth_ttm > 10%: "Revenue growing at [X]% YoY, significantly above GDP growth"
  3. If price_earnings_ttm < 20 OR price_book_fq < 2 OR price_sales_current < 2: "Trading at an attractive valuation: P/E of [X], P/B of [X]"
  4. If free_cash_flow_margin_ttm > 15%: "High FCF margin of [X]% provides financial flexibility for buybacks, dividends, or acquisitions"
  5. If Perf.Y > 20% AND RSI < 70: "Strong 1Y momentum ([X]%) without being technically overbought (RSI [X])" Fall back to the 3 strongest signals from the data if specific thresholds are not met.

Read the full file on GitHub · 126 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. 10d ago First seen · 126 lines · 15 tokens per session scan A 5b92c3875951

Subscribe to this mod's changes

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