# Memecoin Backtest Max (Walk-Forward Parameter Sweep)

> Memecoin Backtest Max (Walk-Forward Parameter Sweep) is a paid API for AI agents from agent-data.centorprat.workers.dev, paid per call via x402, $0.1/call, status unknown (last checked 2026-10-29).

Runs an exhaustive walk-forward backtest sweeping up to 64 take-profit × stop-loss × hold-time combinations on pump.fun memecoin entries, splitting data 70/30 to expose curve-fitted settings.

## Facts

- Endpoint: POST https://agent-data.centorprat.workers.dev/crypto/backtest-max?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/memecoin-backtest-max-walk-forward-parameter-sweep-1c606aa1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0lbbxvBIKurPsk7Xg_DPc

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability memecoin-backtest-max-walk-forward-parameter-sweep-1c606aa1 -d '<json body>'
```

Example prompt: Backtest my memecoin strategy on pump.fun entries from the last 14 days — sweep take-profits of 20%, 40%, and 60%, stop-losses of 10% and 20%, and max hold times of 30 and 60 minutes, entering at the 15-minute mark, and use walk-forward validation so I can see which combos hold up out-of-sample.

## When to prefer this

Choose this endpoint when you need exhaustive parameter optimization with built-in overfitting detection for pump.fun memecoin strategies — specifically when you want walk-forward validation (70/30 split) to confirm settings are robust, not just historically fitted. Prefer it over single-backtest endpoints when evaluating grids of TP/SL/hold combos rather than a fixed strategy.

## Known failure modes

- Sweep exceeds 64-combination limit — request is rejected or truncated
- Invalid entryAt value outside allowed set (5, 15, 30, 60, or 'signal')
- Insufficient historical data for requested day range
- Payment not fulfilled (x402 $0.05 USDC required per call)
- Strategy object malformed or incompatible with sweep parameters
- No qualifying pump.fun entries found in the requested window

## How this service works

Pay-per-call data and tools for AI agents, $0.002-0.01 per call in USDC via x402 (Base, Polygon or Solana), no account or API key; MAX tiers ($0.05-0.25) run deeper jobs. Agent toolkit: web search, search + read top pages, any page as clean markdown with a prompt-injection check, which-x402-API-to-call recommender, seller check. Data: Google Maps places with contacts, YouTube video data and transcripts, job listings (Indeed, LinkedIn, 13 boards), Google Ads Transparency, TikTok comments, Pinterest, Airbnb, Redfin, AliExpress, app stores, live sports, website and SEO checks, Shopify store tech stacks, and onchain token / address risk checks.

## Output

Returns a ranked list of all tested take-profit × stop-loss × hold-time parameter combinations, scored on the in-sample 70% of data and re-validated on the unseen 30% walk-forward window, so the agent can identify settings that are genuinely robust versus merely curve-fitted to historical pump.fun entries.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "days": {
   "type": "number"
  },
  "sweep": {
   "type": "object",
   "description": "{takeProfitPct: [..], stopLossPct: [..], maxHoldMinutes: [..]}"
  },
  "entryAt": {
   "description": "5 | 15 | 30 | 60 or \"signal\""
  },
  "strategy": {
   "type": "object"
  },
  "costPctPerSide": {
   "type": "number"
  },
  "trailingStopPct": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "best": {
   "inSample": {
    "avgReturnPct": -10
   },
   "outOfSample": {
    "avgReturnPct": -9.2
   },
   "stopLossPct": 20,
   "takeProfitPct": 30,
   "maxHoldMinutes": 15
  },
  "holdsUp": false,
  "matches": 937,
  "combinations": 8
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/memecoin-backtest-max-walk-forward-parameter-sweep-1c606aa1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data.centorprat.workers.dev](https://www.zero.xyz/host/agent-data.centorprat.workers.dev/llms.txt)
