> How can I use Zorro to find the highest and lowest of X bars in 1hr bar period?

BarPeriod = 60; // 1 hour bars

Then use HH(int X, int Offset) and LL(int X, int Offset) for the highest high and lowest low of X bars, see here: zorro-project.com/manual/en/ta.htm

> find out whether the price mostly recently created highest price level or mostly recently created the lowest price level?

if(priceHigh(0) == HH(X)) { ... } // Compare most recent high end of the bar to highest high. For low accordingly