TJ:=REFX(&CLOSE,0)>0;
VAR1:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100;
RUNO:=0;
指標(biāo):IF(tj+RUNO,EMA(EMA(VAR1,5),5)*3,0), COLORSTICK;
VARC:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2))
AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3));
VARD:=(ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2))
AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3));
零軸:0,coloryellow;
DRAWTEXT((VARC=1 AND (tj+RUNO)),(-14) AND TJ,'買'),colorred,LINETHICK2;
STICKLINE((VARC=1 AND (tj+RUNO)),(-14),0,4,0),colorred,LINETHICK2;
DRAWTEXT((VARD=1 AND (tj+RUNO)),18,'賣'),colorgreen,LINETHICK2;
STICKLINE((VARD=1 AND (tj+RUNO)),14,0,4,0),colorgreen,LINETHICK2;
VarF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR2:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR3:=VarF<REF(VAR2,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(VAR3 AND COUNT(VAR3,30)=1 AND (tj+RUNO),15,'大資金活動'),linethick1,COLORff00ff;
STICKLINE(VAR3 AND COUNT(VAR3,30)=1 AND (tj+RUNO),1,10,5,0),colorff00ff;
//
DIF:=(EMA(CLOSE,12) - EMA(CLOSE,26))*3;
DEA:=EMA(DIF,23);
FILLRGN(指標(biāo),0,DIF>DEA,RGB(105,20,80),DIF<DEA,RGB(108,110,60));
DRAWTEXT(C>REF(C,3) AND C>MA(C,20),15,'突'),coloryellow;
STICKLINE(C<MA(C,20),-2,0,10,0),colorblue;
MAVOL120:=MA(VOL,120);
STICKLINE(CROSS(VOL,MAVOL120) AND C>MA(C,20),-2,-6,8,0),colorcyan;
STICKLINE(VOL>MAVOL120 AND C>MA(C,20),-6,-10,8,0),colormagenta;