r/algotradingcrypto • • 8d ago

We built a free backtester for Pine Script strategies that an AI agent can tune, and it checks the result on data it never saw

Post image

If your crypto strategies live in Pine Script, TradingView's tester only runs them on the bars your chart has loaded, and tuning inputs means changing one value at a time.

PineStorm runs the same .pine file on the full Binance history, spot and perpetual futures:

  • 2.5M one-minute candles in about a second, so a parameter sweep takes minutes
  • A CLI that Claude Code or Codex can drive: it tunes on one period, then runs the winner once on a period it never saw
  • Monte Carlo on the drawdown and a significance test of the entries in every report

Example of why the unseen period matters: a SOL strategy with an 88% win rate dropped to 72% on the period it wasn't tuned on, the profit factor fell from 5.2 to 1.7 and the drawdown went from 33% to 60%.

Free, and you can try it in the browser without signing up: https://pinestorm.dev

Disclosure: I'm one of the people who built it. Feedback welcome, especially on what you'd want from the tuning step.

6 Upvotes

2 comments sorted by

1

u/Firm_Celebration_204 3d ago

Hm. How are you making sure the agent isnt overfitting?

1

u/NickKofo 3d ago

The prompt we give the agent sets the rules: tune on one period only, prefer settings that sit on a plateau rather than one lucky value, and run the winner once on a period it never saw, with no tweaking after. The tools back that up: the first unseen result is kept, and the significance test and Monte Carlo flag entries that don't beat chance or a lucky drawdown.

It can still overfit, especially with many runs on one asset. These checks make it visible, they don't make it impossible.
I dont think there is any other tool out there that provides this kind of tools for free. Not to mention full candle history for free :)