var bcy_to_usd() {
asset("AUD/USD");
return 0.1;
}
function run() {
set(LOGFILE,PARAMETERS);
NumYears=2;
asset(AssetBox);
sprintf(Script,"AAA%s%s",strmid(Asset,0,3), strmid(Asset,4,3));
var Lb = optimize(10, 10, 20,10);
var rate=bcy_to_usd();
LifeTime=Lb;
if (priceC(0)>priceC(Lb)) enterLong();
}
then the log file (and the .htm) get no extension.
And the original issue/ motivation for FR still hold: only the most recent optimization run gets written to the log file - which is a problem when optimizing many assets from a .BAT file.
Edit: just saw your last suggestion on LogNumber. This is workable, but user-unfriendly..go figure which file belongs to which asset... Why can't the log file name be the same as Script?