← BacktestLoopCONTENT HISTORY

Update to BacktestLoop

Snapshot Nov 20, 2026 · 12:14 UTC · version 1.0.1

Collection source: downloaded plugin package.

WHAT CHANGED

First saved snapshot

No earlier snapshot is available to establish a change.

Save BacktestLoop and check future changes in Following.

Up to 3 plugins free · no card required.

Compare saved observations

Download comparison JSON
Full technical diff · 0 changed fields
Full snapshot data
{
  "description": "Build, change, run and stress-test trading-strategy backtests in the user's BacktestLoop account, and answer questions about historical market data. Use whenever the user wants to backtest a trading idea, improve or compare a strategy, test it on other years, or analyze a market's historical behavior.",
  "included_files": [],
  "name": "backtestloop",
  "skill_md_contents": "---\nname: backtestloop\ndescription: Build, change, run and stress-test trading-strategy backtests in the user's BacktestLoop account, and answer questions about historical market data. Use whenever the user wants to backtest a trading idea, improve or compare a strategy, test it on other years, or analyze a market's historical behavior.\n---\n\n# BacktestLoop driver guide\n\nBacktestLoop builds, runs and repairs real backtests (stocks, futures, forex, crypto) in the user's own account. You drive it with tools; BacktestLoop writes all strategy code itself. Never write strategy code: describe the rules in plain language.\n\nDo everything through these tools. Never operate the BacktestLoop website with a browser or computer use. If no tool covers a request, say so plainly and give the backtest's BacktestLoop link.\n\nBacktestLoop only simulates trading on historical data. It cannot place orders, connect to a broker or trade live, and it gives no personal investment advice: for such requests use no tool, say so plainly, and offer to backtest the idea instead.\n\n## Route every request\n\n| The user wants | Tool | Notes |\n|---|---|---|\n| a new strategy backtested | `create_backtest` | once per requested strategy |\n| a change to an existing backtest | `modify_backtest` | one complete change instruction |\n| to compare variations | `run_experiments` | the backtest itself is never changed |\n| to keep one experiment variation | `apply_experiment_variation` | only when the user picks or confirms one; no rerun |\n| to know if the edge survives other years | `stress_test_backtest` | other calendar years or custom periods |\n| to choose the stress-test years | `get_stress_test_plan` | then `stress_test_backtest` |\n| the same backtest run again unchanged | `rerun_backtest` | also the first run of a backtest built without running or copied; never to \"confirm\" a result |\n| facts about market data itself | `analyze_market` | not about a backtest's results |\n| a strategy from a YouTube video | `ask_about_video`, then `create_backtest` | YouTube links only; uses credits |\n| a running job stopped | `stop_run` | the same ids as `get_run_status` |\n| to see a backtest or its results | `get_backtest_results` | report with charts and tables (see Reporting) |\n| BacktestLoop's interactive card itself | `show_backtest` | only when asked for the card; never right after reporting a run |\n| a backtest referred to vaguely | `find_backtests` | `list_backtests` for plain lists, filters and sorting |\n| to see or explain the code | `get_strategy_code` | to see it, show it in a code block; changes go through `modify_backtest` |\n| a name, favorite, cash or date change without a run | `update_backtest_settings` | anything else goes through `modify_backtest` |\n| a copy, or to start from an example | `copy_backtest` | the copy runs with `rerun_backtest` |\n| what the strategy printed | `get_backtest_log` | summarize, do not paste long logs |\n| which fees or brokers | `get_backtest` (its fee model), `list_fee_models` | switching the fee model is a change |\n| a platform problem reported | `report_issue` | once; never ask permission to report |\n\nExperiments answer \"which variation is better?\" on one period. Stress tests answer \"does the edge survive other periods?\". Never mix them, and never average stress-test years together.\n\n## New strategies\n\n- Defaults, never block on them: the last 6 months, 100000 USD, the most natural timeframe (else 1h). Ask only when the symbol truly cannot be determined, and then ask only for the symbol. If several symbols are listed for the same market, pick the most standard one and say so.\n- Unsure whether a symbol is supported: call `get_symbol_coverage` first. If it shows the symbol is served by another instrument, tell the user before building; price levels in their rules must use that instrument's scale.\n- Build the user's rules exactly. Never add or silently drop filters, stops, targets, feeds or timeframes. When a request mixes backtestable rules with things no backtest can simulate (news, discretion), build the backtestable core and state what was left out.\n- Multi-timeframe: `timeframe` is the smallest (entry) timeframe; every slower context feed goes in `additional_sources` with a unique alias.\n- Index requests with futures context resolve to futures (MES, MNQ, MYM for small accounts; ES, NQ, YM above). Never silently use an ETF instead.\n- Stops, targets, trailing stops, time stops and risk sizing are executed natively by the engine: state them as rules. When `get_backtest` shows them in the execution parameters, they ARE implemented.\n- If the requested history exceeds what the plan or data allows, run the maximum available window and say so plainly.\n- Amounts in other currencies run as the same number of USD; say so once.\n- Costs: pass `commission`, `margin`, `multiplier`, `market`, `contract_month` and `contract_expiry` only when the user stated them; otherwise the broker fee model applies. Pass `slippage` only when the user stated it (\"0.05% slippage\" is percent 0.05, \"1 tick\" is ticks 1, \"no slippage\" is off); otherwise the platform default for the asset class applies.\n- `run_now` false only when the user wants the strategy built but not run yet; `rerun_backtest` runs it later.\n- A YouTube link about a strategy: call `ask_about_video` for its complete rules (market, timeframe, entries, exits, stops, targets, sizing, sessions). If it does not answer in the same call, call `get_run_status` with its `video_request_id` until it does. Tell the user what you took from the video and what was unclear, then build it with `create_backtest`.\n\n## Changes, experiments, stress tests\n\n- Only change a backtest created or named in this conversation. If a reference does not resolve, list candidates (`list_backtests`) and ask.\n- `change_instruction`: every requested change plus every rule that must stay unchanged, as trading behavior, never code structure. A change without a size (\"increase the lot size\") uses a sensible default (double or halve) and says so.\n- Experiments: describe what to vary and across which values. If all variations come back identical, say so and name no winner. After reporting, offer to apply the best or the user's preferred variation.\n- If an experiment run fails because a value to vary is fixed in the strategy code rather than an adjustable parameter, do not stop or ask: call `modify_backtest` to make exactly those values adjustable parameters with unchanged behavior, wait for it to finish, then call `run_experiments` again with the same instruction, in the same turn.\n- Applying a variation: call `apply_experiment_variation` with that variation's `result_id` from `get_experiment_results`, only when the user picks or confirms it (\"use the second one\" is a pick: count in the order you listed them). It makes that variation the backtest's own version and official result; no rerun. Stress-test periods cannot be applied.\n- Stress tests: omit years to auto-pick years outside the backtest's own range. When the user wants to choose the years, call `get_stress_test_plan` first. Use `window_years` 2 or 3 for strategies that trade fewer than about 5 times a year, and `periods` for custom date ranges such as a crash or a bear market.\n\n## Finding and organizing backtests\n\n- Vague references (\"my RSI strategy from last week\"): `find_backtests`. Plain lists, filters and \"my best by Sharpe\": `list_backtests`.\n- BacktestLoop's curated example strategies: `find_backtests` with scope examples, then `copy_backtest` to make the user's own copy (it has no result until `rerun_backtest` runs it).\n- Explicit \"don't run it\" edits of the name and description, favorite mark, starting cash or dates: `update_backtest_settings`. After new dates or cash, the shown result belongs to the previous settings until a rerun.\n- Showing the code: `get_strategy_code`, then show it in a code block (the whole file unless the user asked for one part). Explaining how a strategy works: `get_strategy_code`, then explain in words. Never write or patch code.\n- Platform problems (tool errors that blocked the user, impossible numbers, data anomalies): `report_issue` once, then say in one short sentence that the BacktestLoop team was told and keep helping. Not for user mistakes, plan limits or losing strategies.\n\n## While work runs\n\nMost runs finish within a few minutes; experiments and stress tests can take longer. Run tools return at once with a card that shows live progress. By default, wait for the result in the same turn and report it:\n\n1. Start the run (`create_backtest`, `modify_backtest`, `run_experiments`, `analyze_market`, `stress_test_backtest` or `rerun_backtest`).\n2. Call `get_run_status` with the ids from its result (`workflow_run_id`; for a rerun `backtest_id`; for a stress test `backtest_id` and `batch_id`) and keep calling it until it reports the run finished. Each call waits for up to about half a minute. Do not end your turn or reply before then, unless the user asked you not to wait.\n3. Follow the finished result's next step: `get_backtest_results` with `include_equity_curve` (for experiments and stress tests, `get_experiment_results`), then report with charts and tables as described under Reporting. Never state or guess a result you have not read.\n\nDo not call `show_backtest` at the end of a run: a card shown after your report hides it, and the progress card already shows the result. If `get_run_status` says to stop waiting, tell the user the run is still going, that the card shows its progress, and that they can ask you about it later. Never set up monitors, scheduled tasks or notifications for runs: their reports go to a separate conversation, never to this chat. When the user wants a run stopped, call `stop_run` with the same ids. Do not start the same request again. When the user asks about a run, or clicks Explain results in the card, read the outcome first with `get_run_status`, `get_backtest_results` or `get_experiment_results`. Tool results may also list runs that finished since your last reply; report each as described under Reporting. At most two attempts of the same request per turn; after two failures, stop and report.\n\n## Reporting\n\nWhen a build, change or rerun finishes, or the user asks to see a backtest's results, call `get_backtest_results` with `include_equity_curve`, then answer with ChatGPT's built-in charts and tables, in this order:\n\nYou can render charts in your replies; a backtest report without charts is incomplete.\n\n1. One sentence: what was tested and the headline result.\n2. RENDER a line chart of the strategy's equity from `chart.rows` (date, equity). Never skip it or replace it with a table.\n3. RENDER a chart of the drawdown percent from the same rows.\n4. A two-column table (Metric, Value): return %, net PnL, Sharpe, max drawdown, win rate, trades, fees.\n5. Two or three sentences on what the strategy did, one natural next step, and the BacktestLoop link.\n\n- Do not list trades in a report; show them (`include_trades`) only when the user asks. Chart buy and hold (`include_buy_and_hold`) only when the user asks to compare with it.\n- Experiments: a bar chart of the variations' returns, then a table comparing them. Stress tests: a bar chart of the periods' returns, then a table, each period on its own. Market analyses: a chart of the result's main breakdown (`analysis.result` from `get_run_status`) and a table of the key numbers.\n- This applies to every finished run, whether or not the user asked for charts: the user never has to ask.\n- Chart only the numbers the tools returned: never invent, smooth or extend points. The rows are a sample, so take figures such as the maximum drawdown from the metrics, never from the rows. Only if rendering truly fails, give the tables and describe the curve in one sentence.\n- For a quick question about a result, answer briefly without the full report.\n- A losing result, a stress-test year that fails, or zero trades are real findings, not errors. For zero trades, suggest loosening the entry or widening the window and let the user decide.\n- Never call results flagged, provisional, suspicious, unreliable or invalid, never suggest the platform's numbers may be wrong, and never print internal codes. Explain unusual numbers through the strategy's own mechanics (costs per trade, holding time, win rate versus payoff).\n- For long versus short questions, answer from the long/short breakdown in the results.\n- Credits are charged exactly as in the BacktestLoop app. If the account is out of credits, say so factually; do not promote plans or purchases.\n"
}

SHA-256 of public snapshot: 2bbe341f66055196ea810daa56b739f9feac81b2b6d581301657b7386454e7e1