均換手率:MA(VOL/CAPITAL*100,5),COLORFFFFFF,NODRAW;
虛擬成交量:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*210/FROMOPEN,DRAWNULL),NODRAW; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,虛擬成交量,0,2,-1),COLOR00C0C0; 總量:VOL,NODRAW; TJ1:=H=L AND C>REF(C,1) OR C>REF(C,5) OR C>REF(C,9) OR C>REF(C,17); TJ2:=H=L AND C<REF(C,1) OR C<REF(C,5) OR C<REF(C,9) OR C<REF(C,17); EE:=IF(TJ1,0.0001,IF(TJ2,-0.0001,0)){對付一字漲停,并求極限}; JGL_DTC:=(C-OPEN+EE)/(2*(H-L)+ABS(C-O)+3*0.0001); 主買:VOL*(1+JGL_DTC)/2,COLORRED,NODRAW{主動買}; 主賣:VOL*(1-JGL_DTC)/2,COLORFFFF80,NODRAW{主動賣}; MAVOL1:MA(V,5)COLORWHITE; MAVOL2:MA(V,55)COLORYELLOW; MAVOL3:MA(V,135)COLORGREEN; DG1:=(CROSS(MAVOL1,MAVOL2));DG2:=(CROSS(MAVOL1,MAVOL3)); DRAWICON(DG1,VOL*1.05,1); DRAWICON(DG2,VOL*1.1,13); STICKLINE(C>=REF(C,1) AND MAVOL1<MAVOL3 AND V<MAVOL1,VOL,0,7,0),COLOR333333; STICKLINE(C<REF(C,1) AND MAVOL1<MAVOL3 AND V<MAVOL1,VOL,0,7,0),COLOR333333; STICKLINE(IF(BARSCOUNT(C)=1,C<O,C<REF(C,1)),0,VOL,2,0),COLOR880000; STICKLINE(IF(BARSCOUNT(C)=1,C<O,C<REF(C,1)),0,VOL,1,0),COLORBB0000; STICKLINE(IF(BARSCOUNT(C)=1,C<O,C<REF(C,1)),0,VOL,0.5,0),COLORDD0000; STICKLINE(IF(BARSCOUNT(C)=1,C<O,C<REF(C,1)),0,VOL,0.25,0)COLORFF0000; STICKLINE(IF(BARSCOUNT(C)=1,C>=O,C>=REF(C,1)),0,VOL,2,0),COLOR008800; STICKLINE(IF(BARSCOUNT(C)=1,C>=O,C>=REF(C,1)),0,VOL,1,0),COLOR00AA00; STICKLINE(IF(BARSCOUNT(C)=1,C>=O,C>=REF(C,1)),0,VOL,0.5,0),COLOR00DD00; STICKLINE(IF(BARSCOUNT(C)=1,C>=O,C>=REF(C,1)),0,VOL,0.25,0),COLOR00FF00; STICKLINE(主買>0,0,主買,2,0),COLOR000088; STICKLINE(主買>0,0,主買,1,0),COLOR0000AA; STICKLINE(主買>0,0,主買,0.5,0),COLOR0000DD; STICKLINE(主買>0,0,主買,0.25,0),COLOR0000FF; IF(VOL/MA(VOL,60)*100>100,VOL,VOL/0),STICK,COLORWHITE; 量增價平轉(zhuǎn)陽:=VOL>REF(V,1) AND ABS(C-REF(C,1))/REF(C,1)<=0.005; 量增價升買入:=VOL>REF(V,1) AND C>REF(C,1); 量平價升續(xù)買:=ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.05 AND C>REF(C,1); 量減價升持有:=VOL<REF(V,1) AND C>REF(C,1); 量減價平警戒:=VOL<REF(V,1) AND ABS(C-REF(C,1))/REF(C,1)<=0.005; 量減價跌賣出:=VOL<REF(V,1) AND C<REF(C,1); 量平價跌續(xù)賣:=ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.05 AND C<REF(C,1); 量增價跌棄賣:=VOL>REF(V,1) AND C<REF(C,1); 量梯級遞增上:=VOL>REF(V,1) AND REF(V,1)>REF(VOL,2); 量梯級遞減下:=VOL<REF(V,1) AND REF(V,1)<REF(VOL,2); ZGD:=HHV(V,80)*1; ZGD2:=CONST(ZGD); 情況1:=CONST(IF(量增價平轉(zhuǎn)陽,1,0)); 情況2:=CONST(IF(量增價升買入,1,0)); 情況3:=CONST(IF(量平價升續(xù)買,1,0)); 情況4:=CONST(IF(量減價升持有,1,0)); 情況5:=CONST(IF(量減價平警戒,1,0)); 情況6:=CONST(IF(量減價跌賣出,1,0)); 情況7:=CONST(IF(量平價跌續(xù)賣,1,0)); 情況8:=CONST(IF(量增價跌棄賣,1,0)); 情況9:=CONST(IF(量梯級遞增上,1,0)); 情況10:=CONST(IF(量梯級遞減下,1,0)); DRAWTEXT(情況1=1 AND CURRBARSCOUNT=60,ZGD2-(ZGD2*0.1),'量增價平'),COLORMAGENTA; DRAWTEXT(情況2=1 AND CURRBARSCOUNT=60,ZGD2-(ZGD2*0.4),'量增價升'),COLORMAGENTA; DRAWTEXT(情況3=1 AND CURRBARSCOUNT=60,ZGD2-(ZGD2*0.2),'量平價升'),COLORMAGENTA; DRAWTEXT(情況4=1 AND CURRBARSCOUNT=70,ZGD2-(ZGD2*0.3),'量減價升'),COLORMAGENTA; DRAWTEXT(情況5=1 AND CURRBARSCOUNT=70,ZGD2-(ZGD2*0.1),'量減價平'),COLORMAGENTA; DRAWTEXT(情況6=1 AND CURRBARSCOUNT=70,ZGD2-(ZGD2*0.3),'量減價跌'),COLORMAGENTA; DRAWTEXT(情況7=1 AND CURRBARSCOUNT=60,ZGD2-(ZGD2*0.2),'量平價跌'),COLORMAGENTA; DRAWTEXT(情況8=1 AND CURRBARSCOUNT=60,ZGD2-(ZGD2*0.4),'量增價跌'),COLORMAGENTA; DRAWTEXT(情況9=1 AND CURRBARSCOUNT=60,ZGD2-(ZGD2*0.5),'量梯遞增'),COLORMAGENTA; DRAWTEXT(情況10=1 AND CURRBARSCOUNT=70,ZGD2-(ZGD2*0.5),'量梯遞減'),COLORMAGENTA; ; |
|