Complete AI Training
Sign inGet my AI kit

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

AI agent for traders

Strategy Walk-Forward Retest Agent

A scheduled report of whether the strategy is still working, with any adjustments proven on unseen data

Strategy Walk-Forward Retest Agent: what goes in, what the agent does and what you get

What it does

A systematic strategy is tuned on past data and then runs for months while markets change. Few traders retest on a schedule. This agent runs a walk-forward test on a set schedule. It splits the history into rolling windows, optimizes parameters in each in-sample window, then measures the result in the following out-of-sample window and compares the parameters, returns, drawdown and hit rate across windows. It flags decay, such as falling out-of-sample returns, parameters that keep moving or a worse drawdown than the original. If decay is found, it proposes adjusted settings and tests them on fresh out-of-sample data, rejecting any that only fit the past. The trader approves any change to the live strategy. Edge case: a quiet year produces few trades, so the agent warns the sample is too small to judge.

How it works

Follow the arrows from top to bottom. The orange dashed arrow is the loop: when a check fails, the agent goes back and tries again.

Start and resultWhat it doesA check on its own workWaits for your OKGoes back and retries
Yes, continueYes, continueApprovedNoNo 1 STARTS WHEN Monthly retest date arrives or drawdown triggerfires 2 USES A TOOL Load the strategy, price history and live trades 3 DOES Create rolling in-sample and out-of-sample windows 4 USES A TOOL Optimize parameters in each window and test out ofsample 5 DOES Compare returns, drawdown, hit rate and parameterstability 6 CHECKS THE RESULT Is there enough trade count to judge each window? If not: lengthen the windows and rerun the test. Back tostep 2. 7 CHECKS THE RESULT Is out-of-sample performance at least 60% ofin-sample? If not: propose adjusted settings and test them on afresh out-of-sample period. Back to step 3. 8 DOES Reject settings that only fit the past and keepthose that hold 9 DOES Write the report with charts and the recommendation 10 YOU APPROVE Trader approves any change to the live strategy 11 RESULT Retest report filed
Read the steps as a list
  1. Monthly retest date arrives or drawdown trigger fires
  2. Load the strategy, price history and live trades
  3. Create rolling in-sample and out-of-sample windows
  4. Optimize parameters in each window and test out of sample
  5. Compare returns, drawdown, hit rate and parameter stability
  6. Is there enough trade count to judge each window?If not: lengthen the windows and rerun the test. Back to step 2.
  7. Is out-of-sample performance at least 60% of in-sample?If not: propose adjusted settings and test them on a fresh out-of-sample period. Back to step 3.
  8. Reject settings that only fit the past and keep those that hold
  9. Write the report with charts and the recommendation
  10. Trader approves any change to the live strategyThe agent waits here for your OK.
  11. Retest report filed

How it decides

It judges a strategy as decaying when out-of-sample performance falls well below in-sample results across several windows, and accepts new settings only if they hold on data not used to choose them.

  • Require at least 30 trades per window
  • Flag decay if out-of-sample return is under 60% of in-sample
  • Reject settings that change more than two parameters at once
  • Flag max drawdown over 1.5 times the original

Make it yours

Every agent is a starting point. You choose these settings for your own situation.

  • Retest schedule (default monthly)
  • Window lengths
  • Decay threshold (default 60%)
  • Minimum trades per window

What keeps you in control

It always asks you first

  • Changing live strategy parameters

Hard limits

  • Never changes live settings
  • States how many trades each result rests on
  • Does not promise future returns

It stops when

  • Done: strategy retested and decision recorded
  • Stop: price data is incomplete

Set it up

We guide you through the set-up, step by step

Members get the full set-up guide for this agent. No technical skills needed: you copy, paste and upload.

10 minto set it up in your AI
5 AIsChatGPT, Claude, Copilot, Gemini, Grok
  • One set of instructions to paste into your AI, with the clicks for ChatGPT, Claude, Microsoft 365 Copilot, Gemini and Grok
  • The agent then walks you through connecting your own data, one source at a time
  • A downloadable copy with the flow chart, the rules and the full guide
Get access to this agent

An example run

What happensThe agent tested a trend strategy over 36 months in six windows. Out-of-sample returns were 41% of in-sample, so the check failed. It proposed a longer lookback and tested on the newest three months. The settings gave 72% and lowered drawdown by 18%. A second idea fit the past but gave 20% on new data and was rejected. The trader approved the longer lookback.

More agents for traders