per=IF(PERIODNAME=="30分钟",4,IF(PERIODNAME=="60分钟",4,IF(PERIODNAME=="周线",4,IF(PERIODNAME=="月线",3,4))));
ct=IF(C>REF(C,1),1,0);
vt=IF(VOL<HHV(VOL,per),0,VOL);
rt=ct AND vt;
Lb:COUNT(rt,per*2);
V1:IF(vt/REF(vt,per)>=1 AND vt/REF(vt,per*2)>=1 ,IF(vt/REF(vt,per)>=1.3,3,2),IF(vt/REF(vt,per)>=1,1,0 ));
Vo=COUNT(vt/REF(vt,per)>=1,per*2);
m3=IF(C<MA(C,30) AND C<MA(C,60),0,1);
Lb1=REF(Lb,1);
Lbmx=HHV(Lb,per*2);
Lbmi=LLV(Lb,per*2);
XD:=IF(Lb>Lb1 AND Lb1>0 AND Lb1>Lbmi,2,IF(Lbmx>Lb1 AND Lb1>Lb AND Lb<2,0,IF(Lb==0,-1,1)));
xd1=REF(XD,1);
cti=IF(C<REF(C,1),-1,0);
vti=IF(VOL>LLV(VOL,per),0,VOL);
gt=cti AND Vt;
Lbi:COUNT(gt,per*2);
DRAWICON(XD>1 AND xd1>0,Lb,1);
DRAWICON(XD<1,Lb,2);