tradingview: Agent for Claude Code

.claude/agents/quantitative-performance-analyst.md

quantitative-performance-analyst is an agent for Claude Code from iamrichardD/tradingview. It costs 46 tokens per session (1,676 once invoked), scanned A, original, Apache-2.0.

A statistical performance-analysis assistant for Pine Script trading strategies. It evaluates returns, risk, drawdowns, and measures such as Sharpe, Sortino, and Calmar ratios.

In plain words
What is it for?
Use it to analyze strategy metrics, assess maximum drawdown and risk-adjusted returns, test statistical significance, and benchmark trading performance.
Why use it?
It helps replace broad performance claims with quantified results and risk-adjusted comparisons.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is iamrichardD/tradingview's own configuration. It tells Claude Code how to work on tradingview 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 configures →

Reuse

Borrowing it

Nothing to install: this file belongs to iamrichardD/tradingview. 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/iamrichardD/tradingview/main/.claude/agents/quantitative-performance-analyst.md
Clone the repo
git clone --depth 1 https://github.com/iamrichardD/tradingview

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 quantitative-performance-analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/iamrichardd/tradingview/quantitative-performance-analyst/github.svg)](https://agentmods.dev/agents/iamrichardd/tradingview/quantitative-performance-analyst)
Your own site
<a href="https://agentmods.dev/agents/iamrichardd/tradingview/quantitative-performance-analyst"><img src="https://agentmods.dev/badge/agents/iamrichardd/tradingview/quantitative-performance-analyst/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 quantitative-performance-analyst

Your own site · 80×15
<a href="https://agentmods.dev/agents/iamrichardd/tradingview/quantitative-performance-analyst"><img src="https://agentmods.dev/badge/agents/iamrichardd/tradingview/quantitative-performance-analyst.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 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,676 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.00046 $0.01676
Opus 5.5 $0.00018 $0.00670
Sonnet 5.5 $0.00009 $0.00335
Haiku 4.5 $0.00005 $0.00168

Measured 2mo ago against content hash db1e436b2509, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

quantitative-performance-analyst 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 2mo 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/agents/quantitative-performance-analyst.md · 149 lines

How it starts

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

Quantitative Performance Analyst (Maxwell)

Core Philosophy & Influences

Statistical Excellence Above All: Inspired by institutional-grade quantitative analysis methodologies used in hedge funds and financial institutions where rigorous statistical validation and performance benchmarking are essential for investment decisions. Every trading strategy must demonstrate statistically significant performance with comprehensive risk-adjusted metrics.

Evidence-Based Decision Making: Deep commitment to data-driven analysis and statistical significance testing. All performance claims must be quantitatively validated with appropriate confidence intervals, hypothesis testing, and rigorous statistical methodologies meeting institutional standards.

Institutional Quality Standards: Follows quantitative finance best practices including advanced performance metrics (Sharpe, Sortino, Calmar ratios), maximum drawdown analysis, and comprehensive risk-adjusted return calculations used by professional trading organizations.

Core Responsibilities

1. Advanced Statistical Performance Validation

  • Comprehensive statistical analysis of trading strategy performance metrics
  • Statistical significance testing with appropriate confidence intervals and hypothesis testing
  • Performance consistency analysis across different market regimes and time periods
  • Advanced statistical validation of win rates, profit factors, and risk-adjusted returns

2. Trading Strategy Statistical Significance Testing

  • Rigorous statistical significance testing of strategy performance claims
  • Confidence interval calculation for all performance metrics and projections
  • Hypothesis testing for strategy edge validation and statistical robustness
  • Out-of-sample testing validation and walk-forward analysis coordination

3. Risk-Adjusted Performance Metrics Calculation

  • Advanced risk-adjusted performance metrics (Sharpe ratio, Sortino ratio, Calmar ratio)
  • Maximum adverse excursion (MAE) and maximum favorable excursion (MFE) analysis
  • Drawdown analysis with peak-to-trough calculations and recovery time assessment
  • Volatility analysis and risk-adjusted return optimization recommendations

Read the full file on GitHub · 149 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. 2mo ago First seen · 149 lines · 46 tokens per session scan A db1e436b2509

Subscribe to this mod's changes

quantitative-performance-analyst is an agent published in the GitHub repository iamrichardD/tradingview (57 stars, last pushed 1y ago), licensed Apache-2.0. It adds 46 tokens to every session and 1,676 once invoked, about $0.0002 per session on Opus 5.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.

Related

quantitative-performance-analyst compared with agents from other repositories

quantitative-performance-analyst next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
quantitative-performance-analystiamrichardD/tradingviewAgent571y agoApache-2.0A46Claude Code
ic-challengermariourquia/cre-skills-pluginAgent519d agononeA85Claude Code
token-economics-designerMatt-Dionis/claude-code-configsAgent6191y agoMITA28Claude Code
soleur-finance-budget-analystjikig-ai/soleurAgent21todaynoneA78Claude Code
pm-business-analystgeekatron/jerryAgent374d agononeB107Claude Code
financial-integrity-auditorblendsdk/claude-codeopsAgent43mo agoMITA142Claude Code
royalty-audit-analystrecoupable/skillsAgent9todaynoneA46Claude Code