backtest-interpretation

backtest-interpretation is a skill for Claude Code from Sundeepg98/kite-mcp-server. It costs 103 tokens per session (1,427 once invoked), scanned A, original, from a forked repository, MIT.

A guide for interpreting historical trading backtests, which simulate a strategy on past market prices. It covers four built-in strategies for Indian stocks and explains measures such as Sharpe, maximum drawdown, win rate, and average trade.

In plain words
What is it for?
Understanding SMA crossover, RSI reversal, breakout, and mean-reversion results on NSE or BSE data.
Why use it?
It helps prevent misleading conclusions caused by overfitting, look-ahead bias, or survivorship bias when reading test results.

Skill for Claude Code

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

Part of the kite plugin — 8 skills, 3 MCP servers shipped together

Good fit Understanding SMA crossover, RSI reversal, breakout, and mean-reversion results on NSE or BSE data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sundeepg98/kite-mcp-server/backtest-interpretation
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 Sundeepg98/kite-mcp-server --skill backtest-interpretation
Clone the repo
git clone --depth 1 https://github.com/Sundeepg98/kite-mcp-server

Made for: Claude Code.

Or install kite, the plugin that ships this one along with the rest of its 8 skills, 3 MCP servers.

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 backtest-interpretation

README.md
[![agentmods](https://agentmods.dev/badge/skills/sundeepg98/kite-mcp-server/backtest-interpretation/github.svg)](https://agentmods.dev/skills/sundeepg98/kite-mcp-server/backtest-interpretation)
Your own site
<a href="https://agentmods.dev/skills/sundeepg98/kite-mcp-server/backtest-interpretation"><img src="https://agentmods.dev/badge/skills/sundeepg98/kite-mcp-server/backtest-interpretation/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 backtest-interpretation

Your own site · 80×15
<a href="https://agentmods.dev/skills/sundeepg98/kite-mcp-server/backtest-interpretation"><img src="https://agentmods.dev/badge/skills/sundeepg98/kite-mcp-server/backtest-interpretation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,427 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 fork From a forked repository.
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.00103 $0.01427
Opus 5 $0.00051 $0.00714
Sonnet 5 $0.00021 $0.00285
Haiku 4.5 $0.00010 $0.00143

Measured 8d ago against content hash 76d6cdb48b66, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

backtest-interpretation 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 8d 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/backtest-interpretation/SKILL.md · 119 lines

How it starts

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

Backtest Interpretation

The server's historical_price_analyzer can run four pre-built strategies over any NSE/BSE instrument with intraday or daily candles. This skill helps the user read the output without falling into the classic backtesting traps (over-fitting, survivorship, look-ahead).

1. What the tool supports

Four built-in strategies (the server's code is the source of truth):

Strategy Entry Exit Notes
SMA crossover Fast SMA crosses above slow SMA Fast crosses below slow Trend-following; chops in sideways markets
RSI reversal RSI below 30 (oversold) → BUY; above 70 (overbought) → SELL Fixed holding period or RSI mean-reverts Range-bound setups; breaks in trending markets
Breakout Price closes above N-day high Stop-loss or target hit Captures momentum; whipsaws at false breakouts
Mean reversion Price deviates >k standard deviations from mean Reverts to mean Works in range-bound; breaks in regime shift

2. Run the backtest

  1. Get the user's strategy choice + parameters (periods, thresholds).
  2. Call historical_price_analyzer with:
    • exchange, tradingsymbol
    • strategy (one of the four above)
    • from_date, to_date
    • interval (minute, day, etc.)
    • Strategy-specific parameters (e.g., SMA fast period, RSI period)
  3. It returns trade-by-trade output plus summary stats.

3. Read the output like a skeptic

## Backtest: <strategy> on <symbol>, <from> to <to>

### Summary stats
- Total trades: <n>
- Win rate: <pct>%
- Avg P&L per trade: <amt> (<pct>%)
- Avg hold: <days>
- Sharpe ratio: <value>
- Max drawdown: <pct>%
- Final equity curve: <start> → <end> (<pct>%)

### Context needed to interpret
- Benchmark: what did buy-and-hold NIFTY 50 do over the same window? If the strategy made 15%
  and NIFTY made 20%, the strategy UNDERPERFORMED even if the number looks good.
- Time window bias: a bull-market window flatters trend-following; a choppy window flatters
  mean reversion.
- Number of trades: <10 trades means the Sharpe is unreliable (small sample).
- Costs: does the backtest include brokerage, STT, slippage? If not, real-world returns are
  lower. Typical cost drag for a delivery trade: 0.1-0.3% round-trip.

### Red flags to surface
- Sharpe >3 on daily bars is suspicious; double-check for look-ahead bias
- Max drawdown <5% on a multi-year test: could be a lucky window, not a robust strategy
- Win rate >70%: check that the avg loss isn't much bigger than avg win (classic tail risk)
- All trades in one direction: strategy hasn't been stress-tested in opposite regime

Read the full file on GitHub · 119 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. 8d ago First seen · 119 lines · 103 tokens per session scan A 76d6cdb48b66

Subscribe to this mod's changes

backtest-interpretation is a skill published in the GitHub repository Sundeepg98/kite-mcp-server (0 stars, last pushed 2mo ago), licensed MIT. It adds 103 tokens to every session and 1,427 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. It comes from a forked repository.