Skip to content
Skills Library
Finance & accounting · Analysis

backtester

/backtester

Backtest trading strategies written as simple rules on one or many symbols in any market - next-bar-open execution with no look-ahead, commissions and slippage, ATR/percent/rule-based stops, R or percent targets, trailing stops, time exits, risk-based position sizing, max concurrent positions with ranking, benchmark comparison, in-sample vs out-of-sample split and a self-contained HTML report. Use when the user asks "does this strategy work", "backtest X", "test a moving-average crossover", "what if I bought when RSI was below 30", or wants to validate an idea before trading it.

Licence
MIT
Last repository change
08.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
30
Scripts
22
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 08.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 22 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/_vendor/tradekit/__init__.py, scripts/_vendor/tradekit/analysis.py, scripts/_vendor/tradekit/backtest.py, scripts/_vendor/tradekit/brokers/__init__.py, scripts/_vendor/tradekit/brokers/base.py, scripts/_vendor/tradekit/brokers/kite.py, scripts/_vendor/tradekit/brokers/paper.py, scripts/_vendor/tradekit/cli.py, scripts/_vendor/tradekit/config.py, scripts/_vendor/tradekit/data.py, scripts/_v

What it does and when to use it

Backtest trading strategies written as simple rules on one or many symbols in any market - next-bar-open execution with no look-ahead, commissions and slippage, ATR/percent/rule-based stops, R or percent targets, trailing stops, time exits, risk-based position sizing, max concurrent positions with ranking, benchmark comparison, in-sample vs out-of-sample split and a self-contained HTML report. Use when the user asks "does this strategy work", "backtest X", "test a moving-average crossover", "what if I bought when RSI was below 30", or wants to validate an idea before trading it.

Triggers from the description

does this strategy workbacktest Xtest a moving-average crossoverwhat if I bought when RSI was below 30
Original author description

Backtest trading strategies written as simple rules on one or many symbols in any market - next-bar-open execution with no look-ahead, commissions and slippage, ATR/percent/rule-based stops, R or percent targets, trailing stops, time exits, risk-based position sizing, max concurrent positions with ranking, benchmark comparison, in-sample vs out-of-sample split and a self-contained HTML report. Use when the user asks "does this strategy work", "backtest X", "test a moving-average crossover", "what if I bought when RSI was below 30", or wants to validate an idea before trading it.

How it works

  1. Workflow
  2. Presenting results
Original SKILL.md headings · 34 lines, 230 words
SKILL.md preview
---
name: backtester
description: Backtest trading strategies written as simple rules on one or many symbols in any market - next-bar-open execution with no look-ahead, commissions and slippage, ATR/percent/rule-based stops, R or percent targets, trailing stops, time exits, risk-based position sizing, max concurrent positions with ranking, benchmark comparison, in-sample vs out-of-sample split and a self-contained HTML report. Use when the user asks "does this strategy work", "backtest X", "test a moving-average crossover", "what if I bought when RSI was below 30", or wants to validate an idea before trading it.
license: MIT
metadata:
  author: reddygopalkrishna
  version: "0.1.0"
  pack: tradingkit-skills
---

# Backtester

Test the idea on history before risking money. Honest defaults: costs on, no look-ahead, caveats printed.

```bash
python3 scripts/backtest.py --spec assets/strategies/rsi2-pullback.json --universe AAPL,MSFT,NVDA,AMZN,GOOGL \
    --oos-start 2021-01-01 --report rsi2.html
python3 scripts/backtest.py SPY --entry "cross_above(sma(50), sma(200))" --exit "cross_below(sma(50), sma(200))" \
    --stop none --start 2005-01-01 --report golden_cross.html
python3 scripts/backtest.py --spec my.json --universe list.txt --set n=20 --set mult=3
python3 scripts/backtest.py --spec my.json --csv-dir ./data --universe A,B,C --trades-csv trades.csv --json
```

Example strategies: `assets/strategies/*.json` (RSI-2 pullback, Donchian breakout, golden cross,
VCP-style breakout, Bollinger mean reversion, Supertrend trend-follow).

## Workflow

1. Write the idea as rules - see [strategy-spec.md](references/strategy-spec.md) and the rule language
   in `../stock-screener/references/rule-language.md`. Validate rules with `screen.py --check`.
2. Use 10+ years (`--period 10y` default, or `--start`) and several symbols, not one hand-picked chart.
3. Always set `--oos-start` (e.g. the last 30% of the period) and compare in- vs out-of-sample.
4. Generate `--report` and send the HTML to the user.
5. Feed the trade R-multiples to **monte-carlo-sim** to see realistic drawdown ranges.
6. Try 2-3 nearby parameter values with `--set`. If results collapse when a parameter moves slightly,
   the edge is not robust - say so.

## Presenting results

Lead with: return vs benchmark, max drawdown vs benchmark, number of trades, avg R, and the
out-of-sample verdict. Always include the printed caveats. Never describe backtest returns as
expected future returns, and never recommend live trading on fewer than ~100 trades of evidence.
Files in this package (30)
  • SKILL.md 2 KB
  • assets/strategies/bollinger-reversion.json 1 KB
  • assets/strategies/donchian-breakout.json 1 KB
  • assets/strategies/golden-cross.json 1 KB
  • assets/strategies/rsi2-pullback.json 1 KB
  • assets/strategies/supertrend-follow.json 1 KB
  • assets/strategies/vcp-breakout.json 1 KB
  • references/strategy-spec.md 3 KB
  • scripts/backtest.py 12 KB
  • scripts/_vendor/tradekit/__init__.py 1 KB
  • scripts/_vendor/tradekit/analysis.py 10 KB
  • scripts/_vendor/tradekit/backtest.py 18 KB
  • scripts/_vendor/tradekit/cli.py 2 KB
  • scripts/_vendor/tradekit/config.py 5 KB
  • scripts/_vendor/tradekit/data.py 15 KB
  • scripts/_vendor/tradekit/expr.py 19 KB
  • scripts/_vendor/tradekit/frame.py 9 KB
  • scripts/_vendor/tradekit/gate.py 8 KB
  • scripts/_vendor/tradekit/http.py 4 KB
  • scripts/_vendor/tradekit/indicators.py 13 KB
  • scripts/_vendor/tradekit/journal.py 11 KB
  • scripts/_vendor/tradekit/metrics.py 6 KB
  • scripts/_vendor/tradekit/montecarlo.py 8 KB
  • scripts/_vendor/tradekit/patterns.py 13 KB
  • scripts/_vendor/tradekit/report.py 8 KB
  • scripts/_vendor/tradekit/risk.py 5 KB
  • scripts/_vendor/tradekit/brokers/__init__.py 1 KB
  • scripts/_vendor/tradekit/brokers/base.py 3 KB
  • scripts/_vendor/tradekit/brokers/kite.py 15 KB
  • scripts/_vendor/tradekit/brokers/paper.py 13 KB

Versions

The database has no other skills named backtester.

Database snapshot: 13.11.2026 · package version e3bc7715aad5 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 3 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100backtest-runner
    Backtest a rule-based stock strategy on Indian (NSE) or US stocks with real trading costs, then stress it - out-of-sample split, parameter sweep, market-regime filter, Monte Carlo on the trade sequence, and a buy-and-hold benchmark. Use when the user asks whether a strategy…
  • 100strategy-idea-pipeline
    Turn a trading idea or market observation into a precise, testable rule, backtest it without writing code (a JSON rule file run by the backtest engine), stress it out of sample and across nearby settings, judge it with the backtest reviewer, and keep a record of each idea and…
  • 100crypto-backtest
    Strategy Backtester for crypto. Tests a simple entry rule (breakout, EMA cross, RSI) with an ATR stop and an R-multiple target on past candles, fees included, and reports the number of trades, win rate, expectancy in R, profit factor, max drawdown, longest losing streak and…
  • 100backtesting-trading-strategies
    Test backtest crypto trading strategies against historical data with performance metrics. Use when validating trading strategies with historical data. Trigger with phrases like "backtest strategy", "test trading signals", or "validate approach".
  • 90trading-strategy-backtester
    When the user wants to backtest a quantitative trading strategy based on specific signals, this skill implements strategy logic, executes simulated trades, calculates performance metrics, and generates comprehensive reports. It handles position sizing, transaction costs, holding…
  • 100trading-strategy-backtester
    Use when backtesting trading strategies, implementing walk-forward validation, detecting overfitting, modelling transaction costs, or evaluating statistical significance of strategy results using vectorbt, backtrader, or Freqtrade

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.