I have a simple code:
function run()
{
set(LOGFILE);
set(PARAMETERS);
BarPeriod = 60;
LookBack = 200;
asset("EUR/USD");
vars Prices = series(price());
var ShortPeriod = optimize(25,20,35,5);
var LongPeriod = optimize(100,90,110,5);
vars SMAShort = series(SMA(Prices,ShortPeriod));
vars SMALong = series(SMA(Prices,LongPeriod));
if (crossOver(SMAShort,SMALong)) enterLong();
if (crossUnder(SMAShort,SMALong)) enterShort();
}
When I click on Train button, it optimizes and saves parameters. However when I click on the Test button it does the same exact thing. And afterwards when I click on the Result I don't get any price chart with trades. Perhaps I am missing something with the new version? I have zorro 2.64.