Skip to content
Fourohtwo

Find robust strategy params, not lucky ones

grok-backtest-api.fly.dev/optimize

Find robust strategy params, not lucky ones: tests up to 50 combos on the same survivorship-bias-free backtester, ranks by worst-half (H1/H2) return with neighbourhood smoothing, flags overfitting, and recommends the most stable parameters rather than the best-fit ones.

BaseUnchecked
POSThttps://grok-backtest-api.fly.dev/optimize

UptimeNot checked yet

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://grok-backtest-api.fly.dev/optimize", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"end":"2026-10-25","fee":0.009,"grid":{"atr_mult":[1.5,2,3],"lookback":[10,20,30],"risk_per_trade":[0.03,0.05]},"initial_capital":150,"slippage":0.002,"start":"2026-04-25","strategy":{"params":{"gate":"btc_ma50"},"type":"breakout"},"universe":{"mode":"point_in_time","top_n":30}}),
});
console.log(await res.json());

Example input

{
  "end": "2026-10-25",
  "fee": 0.009,
  "grid": {
    "atr_mult": [
      1.5,
      2,
      3
    ],
    "lookback": [
      10,
      20,
      30
    ],
    "risk_per_trade": [
      0.03,
      0.05
    ]
  },
  "initial_capital": 150,
  "slippage": 0.002,
  "start": "2026-04-25",
  "strategy": {
    "params": {
      "gate": "btc_ma50"
    },
    "type": "breakout"
  },
  "universe": {
    "mode": "point_in_time",
    "top_n": 30
  }
}