XA_1:=AMOUNT/100000000;
XA_2:=REF(AMOUNT,1)/100000000;
比值:XA_1/XA_2;
DRAWTEXT(CURRBARSCOUNT=2 OR CURRBARSCOUNT=1,vol*1.4,VARCAT(VAR2stR(XA_1,2),3777)),COLORWHITE;
量:VOL,VOLSTICK,COLORLIGRAY;
几倍:VOL/REF(VOL,1),NODRAW,COLORRED;
换手:VOL*10000/FINANCE(7),NODRAW,COLORGREEN;
量比:VOL/REF(ma(VOL,5),1),NODRAW,COLORBROWN;
全换手周期:SUMBARS(VOL,CAPITAL),NODRAW,COLORLIGREEN;
XA_3:=EMA(VOL,5);
XA_4:=EMA(VOL,60);
XA_5:=AMOUNT/VOL/100;
XA_6:=XA_5>REF(CLOSE,1) AND REF(OPEN,1)>REF(CLOSE,1) AND OPEN>REF(MAX(OPEN,CLOSE),1) AND VOL<=REF(VOL,1) AND CLOSE>OPEN;
XA_7:=VOL=HHV(VOL,21);
STICKLINE(CLOSE>OPEN AND XA_7,VOL*4/5,VOL,2,0),COLORWHITE;
STICKLINE(CLOSE>OPEN AND XA_7,VOL*4/5,VOL,0.6,0),COLORGREEN;
XA_8:=20;
XA_9:=60;
XA_10:=100;
低量20:VOL=LLV(VOL,XA_8) AND BARSCOUNT(VOL)>=XA_8,NODRAW,COLORGREEN;
低量60:VOL=LLV(VOL,XA_9) AND BARSCOUNT(VOL)>=XA_9,NODRAW,COLORBLUE;
地量:VOL=LLV(VOL,XA_10) AND BARSCOUNT(VOL)>=XA_10,NODRAW,COLORGRAY;
STICKLINE(低量20,VOL*2/3,VOL,3,0),COLORGRAY;
STICKLINE(低量20,VOL*1/3,VOL*2/3,3,0),COLORYELLOW;
STICKLINE(低量20,0,VOL*1/3,3,0),COLORFF0088;
STICKLINE(低量60,VOL*1/2,VOL,3,0),COLORGRAY;
STICKLINE(低量60,0,VOL*1/2,3,0),COLORYELLOW;
STICKLINE(地量,0,VOL,3,0),COLORGRAY;
VOLUME:VOL,VOLSTICK;
|:COUNT(CLOSE>REF(CLOSE,1),2)=2 AND COUNT(VOL<REF(VOL,1),2)=2;
XA_11:=DYNAINFO(8)>0;
VO:VOL=LLV(VOL,100) AND XA_11;
百日地量柱:XA_11 AND VO,COLORCYAN;
STICKLINE(百日地量柱,0,VOL,2,0),COLORCYAN;
DRAWTEXT(百日地量柱,VOL+3000,54),COLORCYAN;
XA_12:=VOL>REF(VOL,1)*1.8;
XA_13:=VOL<REF(LLV(VOL,13),1);
XA_14:=VOL<REF(LLV(VOL,55),1);
STICKLINE(XA_12,0,VOL,2,0),COLORYELLOW;
XA_15:=XA_12;
XA_16:=(3*CLOSE+HIGH+LOW+OPEN)/6;
XA_17:=(8*XA_16+7*REF(XA_16,1)+6*REF(XA_16,2)+5*REF(XA_16,3)+4*REF(XA_16,4)+3*REF(XA_16,5)+2*REF(XA_16,6)+REF(XA_16,8))/36;
XA_18:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>XA_17 AND CLOSE>OPEN;
XA_19:=VOL>REF(VOL,1)*0.98 AND VOL<REF(VOL,1)*1.02;
STICKLINE(XA_19,0,VOL,2,0),COLORWHITE;
XA_20:=XA_19;
XA_21:=VOL<=REF(VOL,1)*0.505;
STICKLINE(XA_21,0,VOL,2,0),COLORMAGENTA;
XA_22:=VOL/REF(VOL,1)>0.505 AND VOL/REF(VOL,1)<0.66;
STICKLINE(XA_22,0,VOL*1/3,2,0),COLORGREEN;
STICKLINE(XA_22,VOL*1/3,VOL*2/3,2,0),COLORBLacK;
STICKLINE(XA_22,VOL*2/3,VOL,2,0),COLORRED;
STICKLINE(XA_21,0,VOL*1/2,2,0),COLORGREEN;
STICKLINE(XA_21,VOL*1/2,VOL,2,0),COLORMAGENTA;
XA_23:=CLOSE/REF(CLOSE,1)<=0.96 AND VOL<HHV(VOL,30)/1.9;
STICKLINE(XA_23,0,VOL,0.8,0),COLORWHITE;
STICKLINE(XA_23,0,VOL,0.3,0),COLORFF0088;
XA_24:=(VOL+OPEN)/2;
STICKLINE(CLOSE>OPEN,XA_24,XA_24,(-1),0),COLORBLACK;
STICKLINE(CLOSE<OPEN,XA_24,XA_24,(-1),0),COLORWHITE;
低量柱:IF(CURRBARSCOUNT<=CONST(REF(LLVBARS(VOL,30),1)+1)+1,CONST(REF(VOL,REF(LLVBARS(VOL,30),1)+1)),DRAWNULL),COLORWHITE,LINETHICK7;
低量柱1:IF(CURRBARSCOUNT<=CONST(REF(LLVBARS(VOL,30),1)+1)+1,CONST(REF(VOL,REF(LLVBARS(VOL,30),1)+1)),DRAWNULL),COLORRED,LINETHICK2;
标志线21:IF(CURRBARSCOUNT<=CONST(REF(HHVBARS(VOL,21),1)+1)+1,CONST(REF(VOL,REF(HHVBARS(VOL,21),1)+1)),DRAWNULL),COLORMAGENTA,LINETHICK2;
DRAWTEXT(CURRBARSCOUNT=CONST(REF(HHVBARS(VOL,21),1))+2,VOL*1.01,STRCAT(CON2STR(CONST(CONST(REF(HHVBARS(VOL,21),1))+1),0),3780)),COLORYELLOW;
XA_25:=IF(CURRBARSCOUNT<=CONST(REF(HHVBARS(VOL,21),1)+1)+1,CONST(REF(MAX(OPEN,CLOSE),REF(HHVBARS(VOL,21),1)+1)),DRAWNULL);
DRAWTEXT(ISLASTBAR,标志线21,CON2STR(XA_25,2)),COLORYELLOW;