KauplemineBacktesting

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·Kauplemine

Kogu oskus — vaikeversiooni hoitakse GitHubis; sinu muudatused jäävad sinu enda klooni.

Kasuta seda oskustLaadi alla .zip
Kuidas see töötab?
  • ChatGPT avab uue vestluse, kuhu oskus on laaditud. Kui see on lingi jaoks liiga pikk, kopeeritakse see lõikelauale — lihtsalt kleebi.
  • Claude töötab samamoodi. Püsivaks paigaldamiseks laadi alla .zip ja lae see üles: Claude → Settings → Capabilities → Skills (Pro/Team/Enterprise).
  • Kopeeri prompt kopeerib oskuse, et saaksid selle kleepida mis tahes assistenti, sh 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