{定义成交量}
TOTAL:=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);
VVOL:IF((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VOL*TOTAL/CTIME,DRAWNULL),NODRAW;
STICKLINE((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VVOL,0,-1,-1),COLOR00C0C0;
成交量:VOL,VOLSTICK,COLORWHITE;
倍量_柱内上黄色:0,COLORYELLOW,NODRAW;
小倍阳_柱内上浅红色:1,COLORLIRED,NODRAW;
平量_柱内下白色:0,COLORWHITE,NODRAW;
当日均价:=AMOUNT/VOL/100;
低量:=100;
H_L:=0.1*CONST(HHV(VOL,240));
地量:=VOL=LLV(VOL,低量) AND BARSCOUNT(V)>=低量,COLORGRAY,NODRAW;
V100:= V<=LLV(V,100)*1.2 AND V>0 AND BARSCOUNT(V)>=100;
百日地量群:=COUNT(V100,5)>=3;
DRAWTEXT(FILTER(百日地量群,4),V+2*H_L,'地'),COLORWHITE;
{定义倍量和小倍阳柱}
倍量阳:=当日均价>REF(CLOSE,1) AND VOL/REF(VOL,1)>=1.8;
小倍阳:=当日均价>REF(CLOSE,1) AND VOL/REF(VOL,1)>=1.8 AND VOL/REF(VOL,1)<=2.618;
STICKLINE(倍量阳,0.666*VOL,0.99*VOL,1.25,0),COLORYELLOW;
STICKLINE(倍量阳,0.5*VOL,0.5*VOL,1.25,0),COLORYELLOW;
STICKLINE(小倍阳,0.666*VOL,0.99*VOL,1.25,0),COLORLIRED;
STICKLINE(小倍阳,0.5*VOL,0.5*VOL,1.25,0),COLORLIRED;
{定义平量柱}
平量柱:=VOL/REF(VOL,1)>0.9525 AND VOL/REF(VOL,1)<1.0425;
STICKLINE(平量柱,0,0.5*VOL,0.85,0),COLORWHITE;
{定义量柱3121}
缩量31:=VOL/REF(VOL,1)<=0.75 AND VOL/REF(VOL,1)>0.55;
缩量21:=VOL/REF(VOL,1)<=0.55;
DRAWTEXT(缩量31,1.55*VOL,'3'),COLORLIBLUE;
DRAWTEXT(缩量21,1.55*VOL,'2'),COLORYELLOW; |