For quants›Testing honestly

Find out a strategy does not work before money does.

Every trial counted in a ledger nothing can erase. The best result judged against the best that luck alone would give. Settings chosen on one stretch and tested on the next. One run reshuffled, thinned and filled worse. Your broker's real slippage. Another engine's trades beside Bentrix's. And Bentrix's own engine proving itself on your data.

16
engine checks
1,000
draws a robustness test
0
trials ever forgotten
Testing honestlyillustration
The best of forty trials, against the best that forty trials of no skill would show by luck.

Validation

What it does, part by part.

Statistics against chance Plus

The best of many is not the same as good

Every run, batch cell and walk-forward window is written to a trial ledger before its result exists, and no door removes a line. A batch's best cell is then judged over every trial ever counted: its deflated Sharpe ratio, the probability of backtest overfitting, the minimum backtest length and the haircut. Hansen's and Romano–Wolf's tests judge a family of candidates at once.

  • A hash chain that shows a missing line
  • Your own searches recorded as families
  • Conventions labelled, never rules
In the Docs
A chained ledger of trials showing a missing line, and searches counted as families.

Robustness Plus

One run, a thousand ways it could have gone

The same trades in another order, a tenth of them missing, every fill made worse, and as many random entries held as long: each answered as its 5th, 50th and 95th percentile, from one fixed seed. And on which kind of day — quiet, middle or busy — the money was made.

  • Reshuffled drawdown
  • Random-entry percentile
  • Van Tharp's SQN and expectancy
In the Docs
Reshuffled equity curves around the run.

Your own fills Plus

Your broker fills you worse than a backtest

Bentrix reads your real account's deals off MetaTrader, re-prices each on the recording of that account's own history, and measures the shortfall per market and the delay from order to fill. Then it makes a laboratory workbench that fills like your broker, and you run the strategy again.

  • Median, mean, 90th percentile and worst
  • Fixed or random slippage, with your latency
  • Prices and moments only, no money figure
In the Docs
Real fills against the quote.

Another engine, and the engine itself Plus

Do two engines make the same trades?

Compare a run's trades with MetaTrader's tester or another backtester, line by line, hashed, and see the first trade where they part. Import a MetaTrader optimisation and its best pass is judged over every pass. And sixteen checks prove Bentrix's own fills, costs, clock and determinism on your own recording.

  • The same trades, to the cent
  • Every optimisation pass counted
  • Sixteen checks: pass, fail, measured, not run
In the Docs
Sixteen checks lighting up.

In code

A batch, judged against chance

Run a grid of a saved strategy, wait for every cell, and read the best cell against chance — in each of the nine languages.

state = client.workspace.get_state(depth="benches")
bench = state["selected"]
made = client.strategy.batch("rsi pullback", bench, {"studies.rsi.settings.period": [10, 14, 20], "exits.stop.atr.times": [1.0, 1.5, 2.0]})
batch = made["uri"]
b = client.strategy.batch_get(batch)
for _ in range(1200):
    b = client.strategy.batch_get(batch)
    if b["record"] is not None:
        break
    time.sleep(0.5)
print("deflated Sharpe:", b["statistics"]["dsr"])
print("overfitting:", b["statistics"]["pbo"])
print("trials:", b["statistics"]["trials"]["in_ledger"])

How it works

Four steps, in order.

  1. CountEvery trial, in a ledger nothing erases.
  2. Choose and test apartA batch, then a walk-forward.
  3. Shake itReshuffle, thin, fill worse, random entries.
  4. Check the groundYour own fills, another engine, the battery.

Packages

Learn on Free. Trade on Plus. Build on Pro.

What each package holds of this page. While the beta lasts, Plus and Pro are free to take: you choose your package on your account page, with no payment.

On this pageFreePlusPro
The validation layer—✓✓
Cells in a batch—100∞

∞ is no limit. What exceeds a package is locked, never deleted.Every package side by side

Good to know

What to expect, plainly.

No verdict of profit

A strategy that passes every test can still lose. These tests find out cheaply that it probably will not work.

Nothing ranked

The laboratory is a laboratory: no score, no rank, nothing published.

Bentrix's own arithmetic

Every figure is computed from your runs' own trades, each with its definition; where a figure assumes something, it says so.

Bentrix is in beta. Plus and Pro are free to take.

One download for Windows. Choose your package on your account page, with no payment, while the beta lasts; a feature of Plus or Pro carries its badge in the application, so nothing changes by surprise.