No, the price difference from Friday 5pm to Sunday 5pm ET is calculated like this:

Code:
if(dow() == SUNDAY && lhour(ET) == 5) { 
  int FridayBar = timeOffset(ET,SUNDAY-FRIDAY,5,0);
  var PriceChange = priceClose(0) - priceClose(FridayBar);
  ...
}