Bring an optimisation run in MetaTrader's tester into the trial ledger — every pass counted — and see whether its best pass is better than the best of that many passes would be by chance.
Why
An optimisation in MetaTrader's tester tries hundreds or thousands of input combinations and sorts them by a result. The best pass at the top of that list is exactly what the statistics against chance warn about: the best of many tries. Importing the table counts every pass and judges the best one honestly.
01Doing it
- In MetaTrader's tester, run the optimisation, then export its results: Export to XML, or copy the table with its header row.
- In Bentrix's Strategies panel, choose Import optimisation results…, give the expert's name, and choose the file. A CSV or tab-separated table works too.
Bentrix reads each pass's number, its Result or Profit, its Sharpe Ratio, its Trades, and the expert's inputs. Then:
- every pass is written to the trial ledger as a trial of that expert's name, its inputs as its figures and its result after it: 812 passes of MyCrossEA written to the trial ledger · 812 trials. From then on they count in every N for that name, alongside every later import and every run of a strategy of that name;
- the best pass, the one with the highest Sharpe ratio, is judged over the ledger's N for that name, for example Best pass 344: Sharpe 1.45 · PSR 0.91 · deflated 0.38 · haircut 0.72.
02What the table cannot give, said
An optimisation table holds each pass's totals, not its daily returns. So:
- the sample is the pass's trades, with a normal distribution's skew and kurtosis in place of the ones a return series would have shown, and the answer says so;
- the probability of backtest overfitting is not computed, and the answer says so: it needs each pass's returns over time, which the table does not hold.
For those, run the strategy in Bentrix as a batch, where every cell's days are its own.
03From a program
optimisation_import with the expert's name and the table's text. See the SDK guide on testing honestly.