TOTAL:=IF(PERIOD=0,1,IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1))))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME<0.5,TOTAL,MTIME);
XNV:IF((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VOL*(TOTAL+3)/(CTIME+3),DRAWNULL),NODRAW,COLOR00C0C0;
T:=FROMOPEN;
测量2:=IF(FROMOPEN AND DYNAINFO(8)>1,XNV,VOL);
流通股本:=IF(FINANCE(3)==0,CAPITAL,IF(TOTALBARSCOUNT<=300,FINANCE(7)/100,FINANCE(46)/100));
换手率:IF((SETCODE==0||SETCODE==1),100*测量2,测量2)/流通股本,NODRAW;
MV5:MA(换手率,5),COLOR00FFFF;
MV60:MA(换手率,60),COLOR0000FF,LINETHICK2;
STICKLINE(换手率>0,0,换手率,2,1),COLORFF0000;
STICKLINE(换手率>3 AND 换手率<8,0,换手率,2,1),COLOR00FFFF;
STICKLINE(换手率>8,0,换手率,2,1),COLOR0000FF;
SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,15)/HHV(C,15))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,15)/HHV(C,15))*100)*(测量2/VOL);
能量:=SAT;{分析家}
{主力成本价咯:MA(IF(SAT<=42,C,REF(C,BARSLAST(SAT<=42))),24);}
压力:=HHV((AMOUNT/C)/HHV(AMOUNT,15)/HHV(C,15)*100*C,15);
STICKLINE(C>0 AND ISLASTBAR,换手率*0.5,换手率*0.97,2,0),COLORFFFFFF;
STICKLINE(SAT<=5 AND ISLASTBAR,换手率*0.5,换手率*0.97,2,0),COLORFFFFFF;
STICKLINE(SAT> 5 AND SAT<=20 AND ISLASTBAR,换手率*0.5,换手率*0.97,2,0),COLORCCFF88;
STICKLINE(SAT>20 AND SAT<=40 AND ISLASTBAR,换手率*0.5,换手率*0.97,2,0),COLORFF00FF;
STICKLINE(SAT>40 AND ISLASTBAR,换手率*0.5,换手率*0.97,2,0),COLOR0000FF;
{下面崔先生加}
STICKLINE(SAT>=98,换手率*0.5,换手率*0.97,2,0),COLOR0000FF;
DRAWTEXT(SAT>=98,换手率*1.1,'★大'),COLOR00FFFF;
STICKLINE(SAT<=42,换手率*0.5,换手率*0.97,2,0),COLORFFFFFF;
STICKLINE(SAT> 50 AND SAT<100,换手率*0.5,换手率*0.97,2,0),COLOR00FF00;
地量:=测量2<REF(测量2,1)*0.5;
STICKLINE(地量,换手率*0.5,换手率*0.97,2,0),COLORFFFFFF;