白糖
当日盘时求上一交易时段(即夜盘)最高点
当夜盘时求上一交易时段(即日盘)最高点
考虑放假因素
在金字塔时区下:
nn1:=barslast(time=closetime(1));
nn2:=barslast(time=closetime(0));
h1:valuewhen(time>opentime(2) and time<=closetime(0),ref(hhv(h,todaybar),nn1));
h2:valuewhen(time>opentime(1) and time<=closetime(1),ref(hhv(h,nn1),nn2))