aa:VALUEWHEN(todaybar=1,time),nodraw;
xx:SUMBARS(time<OPENTIME(2),1)-1,nodraw;
zz:sumbars(time<opentime(4),1)-1,nodraw;
yy:TODAYBAR,nodraw;
if aa>OPENTIME(2) then BEGIN
bb:=yy,nodraw;
end
else BEGIN
bb:=xx,nodraw;
end
cc:=bb;//日盘K线数目
dd:=zz;//午盘K线数目
ee:=yy;//夜盘K线数目
早盘振幅:(HHV(H,cc)-LLV(L,cc))/REF(C,yy)*100,nodraw;
午盘振幅:(HHV(H,dd)-LLV(L,dd))/REF(C,yy)*100,nodraw;
夜盘振幅:(HHV(H,ee)-LLV(L,ee))/REF(C,yy)*100,nodraw;
fs:=valuewhen((time>opentime(2) and time<opentime(4)),早盘振幅);
fs:=valuewhen((time>opentime(4) and time<opentime(1)),午盘振幅);
fs:=valuewhen((time>opentime(1) and time<opentime(2)),夜盘振幅);
分时段振幅:fs;
请帮忙修改