黄金成交量
注意看强势股跟量的关系
VVOL:=IF(CURRBARSCOUNT=1 AND PERIODNAME=5,V*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIODNAME=5,VVOL,0,-1,-1),COLOR00C0C0;
量:V,VOLSTICK;
倍量:(V/REF(V,1)>=1.8 AND COUNT(C>O,1)) OR (L>REF(H,1) AND COUNT(O>C,1) AND V/REF(V,1)>=1.8),NODRAW,coloryellow;
低量:V<=REF(LLV(V,20),1),NODRAW,colormagenta;
地量:V<=REF(LLV(V,100),1),NODRAW,colorgreen;
平量:ABS(V-HHV(REF(V,1),5))/HHV(REF(V,1),5)<=0.03 OR ABS(V-REF(V,1))/REF(V,1)<=0.03,NODRAW,colorwhite;
倍缩:V<=REF(V,1)*0.5,NODRAW,colorred;
梯量:COUNT(V>REF(V,1),3)=3 AND COUNT(C>O,3)=3,NODRAW,colorlimagenta;
缩量涨:COUNT(C>REF(C,1),2)=2 AND COUNT(V<REF(V,1),2)=2,NODRAW,colorblue;
DRAWTEXT(倍量,V*1.09,'倍'),coloryellow;
STICKLINE(倍量,0,V,1.5,0),coloryellow;
STICKLINE(低量,0,V,1,0),colormagenta;
STICKLINE(地量,0,V,1,0),colorgreen;
STICKLINE(平量,0,V,1,0),colorwhite;
STICKLINE(倍缩,0,V,1,0),colorred;
STICKLINE(梯量,0,V,1,0),colorlimagenta;
STICKLINE(缩量涨,0,V,1,0),colorblue;
HJZ:=(3*C+H+L+O)/6;
HJZ2:=(8*HJZ+7*REF(HJZ,1)+6*REF(HJZ,2)+5*REF(HJZ,3)+4*REF(HJZ,4)+3*REF(HJZ,5)+2*REF(HJZ,6)+REF(HJZ,8))/36;
HJZ3:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>HJZ2 AND C>O;
黄金柱:FILTER(HJZ3,5),STICK,colorred,LINETHICK1;
STICKLINE(黄金柱,0,V,0.5,0),colorred;
DRAWTEXT(黄金柱,V*1.23,'黄'),colorred;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
成交:=VOL,POINTDOT;
主动买盘:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),colorred,POINTDOT,NODRAW;
主动卖盘:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLOR00FF00,POINTDOT;
STICKLINE(主动买盘>0,0,主动买盘,2,0),colorred,NODRAW;
STICKLINE(主动卖盘<0,0,主动卖盘,2.4,0),colorgreen;
DRAWTEXT(VOL=HHV(VOL,0),HHV(VOL,30)*0.918,'天量'),colorred;
MA5:MA(V,5),colorred;
MA35:MA(V,35),colormagenta;
MA120:MA(V,120),coloryellow,LINETHICK2;