I've been writing basic scripts in Zorro for about a week now, but can't manage to do the following:

Creating a var for the previous week High & Low.
I tried using the HH and LL indicators, but I get an error related to them if I test the script. I hope that someone can post an example script in order to return the previous week high and low, whether using the HH&LL indicator or not.

Creating a var for the previous Day High & Low in a smaller than Daily time frame.
When using a BarPeriod = 1440. I can get yesterdays high and low by writing the following:

var daily_high = priceHigh(1);
var daily_low = priceLow(1);

but if I use a smaller BarPeriod, how is it done?

Once again, I tried using the HH & LL indicator but with no luck.
I've managed to get partial success with using the dayHigh and dayLow function, but the Sunday bar causes Monday to return a value of zero.

Any suggestions would be appreciated.

Thank you.
PiptheRipper