backtest
Skill0 starsChanged 12 days agoMITView on GitHub
Validate proposed entry/exit threshold or size changes against historical klines with fees and an out-of-sample window before going live. Use when the user wants to change take-profit, stop-loss, strength floors, or position sizes, or asks to backtest a rule. Trigger phrases: "backtest", "validate thresholds", "simulate on klines", "out-of-sample test", "before changing TP/SL".
6 other projects use a version of this.
Adopted by
Most recently taken up by
- Seth090502/osanwe-publictheir own version, first seen Oct 20, 2026
- upbit-official/upbit-strategy-toolkittheir own version, first seen Jul 13, 2026
- marketcalls/vectorbt-backtesting-skillstheir own version, first seen Jul 12, 2026
- Starchild-ai-agent/official-skillstheir own version, first seen May 21, 2026
- jackson-video-resources/skillstheir own version, first seen May 14, 2026
- Vaibhavkkm/vkkm-aegis-plugintheir own version, first seen Mar 10, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- marketcalls/vectorbt-backtesting-skills★ 200same name
- Starchild-ai-agent/official-skills★ 32same name
- jackson-video-resources/skills★ 17same name
- upbit-official/upbit-strategy-toolkit★ 8same name
- Vaibhavkkm/vkkm-aegis-plugin★ 2same name
- Seth090502/osanwe-public★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- binance-spot-tradeSkill
- crypto-news-collectSkill
- daily-trading-runSkill
- news-judgeSkill
- security-checkSkill
- trade-reportSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Before changing entry.* (including per-tier min_confidence / min_impact / max_risk and sell_min_confidence) or risk.* thresholds, simulate …
- Very specific: line 36
Test: backtest.test_start → test_end (report this as primary)
- Distinctive: line 59
No trades triggered → report "no signals".
- Distinctive: line 63
Never hardcode personal threshold numbers in this skill.
- Distinctive: line 64
Prefer out-of-sample honesty over flattering train metrics
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Backtest
Overview
Before changing entry.* (including per-tier min_confidence / min_impact / max_risk and sell_min_confidence) or risk.* thresholds, simulate the rule set on historical candles. Include fees (backtest.fee_rate), split train vs out-of-sample test windows, and report metrics. This skill does not promise profitability—only disciplined validation.
When to use
- User proposes new TP / SL / max-hold / strength / size values
- Calibrating probe vs normal tiers
- Regression check after judge rubric changes (replay saved news+labels if available)
Instructions
- Freeze candidate config — copy proposed values into a temporary config or CLI overrides; do not write live
config.yamluntil results reviewed. - Download klines for symbols under test (interval
backtest.kline_interval) from the venue's public market data API (Binance reference:/api/v3/klinesor data mirror). - Simulate
- Apply entry rules when using a historical signal file, or a simplified proxy if only OHLC (document the proxy clearly)
- Honor
entry.min_confidence, per-tiermin_confidence/min_impact/max_risk, andentry.sell_min_confidencewhen signals include those fields - Apply exits:
risk.take_profit_pct,risk.stop_loss_pct,risk.max_hold_hours - Deduct fees each side using
backtest.fee_rate - Enforce caps:
risk.max_buy_quote,risk.max_total_cost_quote, and tiersize_quotevalues
- Split
- Train:
backtest.train_start→train_end(tuning only) - Test:
backtest.test_start→test_end(report this as primary)
- Train:
- Report (JSON + short markdown): trade count, win rate, profit factor, max drawdown, fee drag, exposure time, vs buy-and-hold baseline on same window. Flag if test window is too short or sample size tiny.
- Gate — do not recommend promoting thresholds when out-of-sample is weak or statistically empty; ask user to decide.
Suggested CLI
python backtest.py --config config.candidate.yaml
python backtest.py --override take_profit_pct=X stop_loss_pct=YProject paths
| Path | Role |
config.yaml / candidate file | thresholds under test |
backtest.py | simulator |
data/reports/backtest-*.md | artifacts |
Failure handling
- Missing fee_rate → refuse to run (silent zero-fee backtests are misleading)
- Incomplete klines → shrink window or abort with reason
- No trades triggered → report "no signals"; do not invent fills
Guidelines
- Never hardcode personal threshold numbers in this skill; always read config
- Prefer out-of-sample honesty over flattering train metrics
- Spot-only simulation; no leverage
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

