Use this:

Code:
static var i = 0;

function run()
{
    LookBack = 0;
    BarPeriod = 60;
    StartDate = 20170201;
    EndDate = 20170201;

    i++;
    if(is(EXITRUN))
        printf("Result=%.f", i);
}



The key is "LookBack = 0;", when unspecified Zorro assumes a default value and it always execute before the lookback bars before processing the rest.