|
"Inconsistent optimize calls" if optimize before set(PARAMETERS)
#448888
02/25/15 07:55
02/25/15 07:55
|
Joined: Sep 2013
Posts: 504 California
GPEngine
OP
User
|
OP
User
Joined: Sep 2013
Posts: 504
California
|
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
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);
}
|
|
|
|