backtesting

backtesting is a skill for Claude Code from nimadorostkar/Claude-Skills-collection. It costs 90 tokens per session (1,691 once invoked), scanned A, original, MIT.

A method for testing a trading strategy against historical market data. It checks whether the apparent results survive realistic costs, data timing, and tests on periods the strategy was not fitted to.

In plain words
What is it for?
Use it before risking capital, to validate or review a strategy, investigate live underperformance, and measure results with commissions, spreads, slippage, and other costs.
Why use it?
It helps expose backtests that look successful only because they include information from the future, omit failed instruments, or ignore trading costs. It separates a repeatable advantage from a coincidence in past data.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the finance plugin — 12 skills shipped together

Good fit Use it before risking capital, to validate or review a strategy, investigate live underperformance, and measure results with commissions, spreads, slippage, and other costs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nimadorostkar/claude-skills-collection/backtesting
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add nimadorostkar/Claude-Skills-collection --skill backtesting
Clone the repo
git clone --depth 1 https://github.com/nimadorostkar/Claude-Skills-collection

Made for: Claude Code.

Or install finance, the plugin that ships this one along with the rest of its 12 skills.

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 backtesting

README.md
[![agentmods](https://agentmods.dev/badge/skills/nimadorostkar/claude-skills-collection/backtesting/github.svg)](https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/backtesting)
Your own site
<a href="https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/backtesting"><img src="https://agentmods.dev/badge/skills/nimadorostkar/claude-skills-collection/backtesting/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 backtesting

Your own site · 80×15
<a href="https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/backtesting"><img src="https://agentmods.dev/badge/skills/nimadorostkar/claude-skills-collection/backtesting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,691 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00090 $0.01691
Opus 5.5 $0.00036 $0.00676
Sonnet 5.5 $0.00018 $0.00338
Haiku 4.5 $0.00009 $0.00169

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

Security

Grade A, and why

backtesting 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 1mo 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.

skills/finance/backtesting/SKILL.md · 142 lines

How it starts

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

Backtesting

Purpose

Test a strategy honestly. The default outcome of a backtest is a beautiful equity curve that describes the past and predicts nothing — and every bias in the process pushes in that direction.

When to Use

  • Testing a strategy before risking capital.
  • Validating that an apparent edge is real.
  • Diagnosing why a live strategy underperforms its backtest.
  • Reviewing someone else's backtest.

Capabilities

  • Bias elimination: survivorship, look-ahead, selection.
  • Realistic cost modeling: commissions, spread, slippage, borrow.
  • Walk-forward and out-of-sample validation.
  • Statistical significance and multiple-testing correction.
  • Robustness testing.

Inputs

  • The strategy rules, stated precisely enough to be executed mechanically.
  • Point-in-time historical data, including delisted instruments.
  • Realistic assumptions about execution.

Outputs

  • Performance metrics with costs included.
  • Out-of-sample results, reported honestly.
  • A judgment on whether the edge is real, with the evidence.

Workflow

  1. Eliminate the biases before you run anything — Survivorship (delisted names must be in the universe), look-ahead (data must be used only when it was available), and selection (the strategy must be specified before it is tested).
  2. Model the costs honestly — Commission, the bid-ask spread, slippage that scales with size and inversely with liquidity, and borrow costs on shorts. Most published edges are smaller than realistic costs.
  3. Split the data before you look at it — In-sample for development, out-of-sample for validation, and a final hold-out you touch exactly once.
  4. Walk forward — Re-fit on a rolling window and test on the period immediately after. A single in-sample fit tells you nothing about a strategy that will be run forward in time.
  5. Correct for multiple testing — If you tested forty variants, the best one looks good by chance. A p-value that has not been adjusted for the number of things you tried is not a p-value.
  6. Stress it — Perturb the parameters. A strategy that only works with a 14-day lookback and fails with 13 or 15 is fitted to noise.

Read the full file on GitHub · 142 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. 1mo ago Changed · +49 tokens per session 339b8011ff93
  2. 2mo ago First seen · 142 lines · 41 tokens per session scan A e7b934e81798

Subscribe to this mod's changes

backtesting is a skill published in the GitHub repository nimadorostkar/Claude-Skills-collection (41 stars, last pushed today), licensed MIT. It adds 90 tokens to every session and 1,691 once invoked, about $0.0004 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-09-03.

Related

backtesting compared with skills from other repositories

backtesting next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
backtestingnimadorostkar/Claude-Skills-collectionSkill41todayMITA90Claude Code
fiscalisteromainsimon/paperasseSkill2.6k17d agoMITA306Claude Code
comptableromainsimon/paperasseSkill2.6k17d agoMITA248Claude Code
controleur-fiscalromainsimon/paperasseSkill2.6k17d agoMITA136Claude Code
syndicromainsimon/paperasseSkill2.6k17d agoMITA204Claude Code
agent-spending-mandatemohitagw15856/pm-claude-skillsSkill1.6ktodayMITA113Claude Code
commissaire-aux-comptesromainsimon/paperasseSkill2.6k17d agoMITA123Claude Code