n1:=todaybar;
dm:=4-INTPART(LOG(C));
jj:=ROUNDS(IF(sum(vol,n1)=0,C,sum(C*vol,n1)/sum(vol,n1)),2+dm),colorred;
drawsl(time=closetime(0) and date=CURRENTDATE ,jj,0,todaybar,1),COLORYELLOW;
应该是还没收盘,所以没有能够画线
n1:=todaybar;
dm:=4-INTPART(LOG(C));
jj:=ROUNDS(IF(sum(vol,n1)=0,C,sum(C*vol,n1)/sum(vol,n1)),2+dm),colorred;
drawsl(islastbar and date=CURRENTDATE ,jj,0,todaybar,1),COLORYELLOW;