Quote:
BarPeriod = 60; // one-hour-bars
static var WeeklyHigh = 0, WeeklyLow = 0;
if(day(0) != day(5)) { // midnight of day 5 -> week has ended?
WeeklyHigh = HH(120); //(24 hours *5 days)
WeeklyLow = LL(120); //(24 hours *5 days)
}


Because there is no week() function is this how we would find the weekly high & low?

Also say if we wanted to get the high and low of a bar during the current day say for example you wanted the high and low of the opening candle of London is this how we would do it?
Quote:

BarPeriod = 60; // One hour bars.
static var LondonOpenLow = 0, LondonOpenHigh = 0;
if(hour(1) == timeOffset(UTC,0,7,0)) //Check to see if last hour was LondonOpen.
LondonOpenLow = priceLow(1); //Get low from last bar?
LondonOpenHigh = priceHigh(1); //Get high from last bar?


OR
Quote:

BarPeriod = 60; // One hour bars.
static var LondonOpenLow = 0, LondonOpenHigh = 0;
if(hour(1) == timeOffset(UTC,0,7,0)) //Check to see if last hour was LondonOpen.
LondonOpenLow = LL(1); //Get LL from 1 bar ago?
LondonOpenHigh = HH(1); //Get HH from 1 bar ago?