Train the following script with the History dir included with the 1.26 installation and the following AssetsFix.dta line.
EUR/USD 1.29401 0.00023 -0.1000 0.0400 0.0001 0.07729 5.000 1000.0

Observed:
When the it moves on to TESTNOW, the script crashes with Error 040: Inconsistent optimize calls! Bar 620: 1 - bar 621: 2
Code:
function run() {
  BarPeriod = 60;
  StartDate = 20130101;
  LookBack = 500;
  asset("EUR/USD");
  var thresh = optimize(10, 5, 10) * 0.1;
  set(PARAMETERS);
  set(TESTNOW);
  Stop = optimize(4, 2, 8) * ATR(100);
}