Thanks for the fast reply, but my doubts remain.

I wrote a script like this for just to print out last up or down fractal:

function run()
{
BarPeriod = 5;

printf("\nUP = %.5f - DW = %.5f", FractalHigh(series(price())+2,5), FractalLow(series(price())+2,5));
}

but it is not working.

What is the correct way in zorro to get the last up or down fractal?