TradingBacktesting

Trading API Backtest

Runs a reproducible historical backtest from a start date, end date, and strategy concept, with documented assumptions and downloadable artifacts

PPredictive Labs·Trading

Library skill — the default version is maintained in GitHub; edits you make live in your own clone.

Use this skillDownload .zip
How does this work?
  • ChatGPT opens a new chat with the skill loaded. If it's too long for a link, it's copied to your clipboard — just paste.
  • Claude works the same way. To install it permanently, download the .zip and upload it under Claude → Settings → Capabilities → Skills (Pro/Team/Enterprise).
  • Copy prompt copies the skill so you can paste it into any assistant, including Grok.

Trading API Backtest

Runs one specific, reproducible historical backtest from a date range and a strategy concept, making every assumption visible and producing auditable artifacts.

For research and education only. This is a hypothetical historical simulation, not investment advice; backtested results do not guarantee future performance, and you execute any real trades yourself through your own broker.

When to use

What to provide

How to work through it

  1. Gather the required inputs, then infer and confirm the rest: sizing, execution assumptions, and benchmark.
  2. Translate the idea into precise rules — data field, trigger, bounds, indicator variants and parameters, warmup, sizing, order type, and fill model — and confirm before running.
  3. Resolve run considerations: fill timing, dividends and splits, fees, slippage, market hours, calendar handling, and look-ahead/survivorship/overfitting risks.
  4. Keep signal timing separate from fill timing (e.g. signal on a bar's close, fill on the next open) and document the chosen fill model.
  5. Simulate over the range, then record per-trade fills, an equity curve, and a benchmark equity curve.
  6. Compute metrics: total and annualized return, max drawdown, Sharpe, win rate, profit factor, and fees paid; note if no trades occurred and why.
  7. Save reproducible artifacts (assumptions notes, strategy spec, config, per-trade rows, equity, metrics) so the run can be repeated.

Presenting results