ZNA:=(3*CLOSE+OPEN+LOW+HIGH)/6;
生命线:=(20*ZNA+19*REF(ZNA,1)+18*REF(ZNA,2)+17*REF(ZNA,3)+16*REF(ZNA,4)+15*REF(ZNA,5)+14*REF(ZNA,6)+13*REF(ZNA,7)+12*REF(ZNA,8)+11*REF(ZNA,9)+10*REF(ZNA,10)+9*REF(ZNA,11)+8*REF(ZNA,12)+7*REF(ZNA,13)+6*REF(ZNA,14)+5*REF(ZNA,15)+4*REF(ZNA,16)+3*REF(ZNA,17)+2*REF(ZNA,18)+REF(ZNA,20))/210,NODRAW;
主力线:=MA(生命线,5),NODRAW;
volUME:VOL,VOLSTICK;
VL5:MA(VOLUME,5);
VL60:MA(VOLUME,60);
WY1001:=(2*CLOSE+HIGH+LOW)/4;
WY1002:=EMA(WY1001,4),NODRAW;
WY1003:=EMA(WY1002,4),NODRAW;
WY1004:=EMA(WY1003,4),NODRAW;
SN快:=(WY1004-REF(WY1004,1))/REF(WY1004,1)*100,NODRAW;
快:=MA(SN快,1),NODRAW;
慢:=MA(SN快,3),NODRAW;
MM1:=crOSS(快,慢) AND 生命线>主力线 AND REF(快<慢,1);
MM2:=快>慢 AND 生命线>主力线 AND REF(快>慢,1);
MM3:=CROSS(慢,快) AND 生命线>主力线 AND REF(快>慢,1);
MM4:=快<慢 AND 生命线>主力线 AND REF(快<慢,1);
STICKLINE(MM1,0,V,10,0),colorred;
STICKLINE(MM2,0,V,10,0),colormagenta;
STICKLINE(MM3,0,V,10,0),coloryellow;
STICKLINE(MM4,0,V,10,0),colorgreen;
FF1:=生命线<主力线 AND CROSS(慢,快) AND REF(快>慢,1);
FF2:=生命线<主力线 AND 快<慢 AND REF(快<慢,1);
FF3:=生命线<主力线 AND 快>慢 AND REF(快>慢,1);
FF4:=生命线<主力线 AND CROSS(快,慢) AND REF(快<慢,1);
STICKLINE(FF1,0,V,10,0),colorblue;
STICKLINE(FF2,0,V,10,0),colorblue;
STICKLINE(FF3,0,V,10,0),colorliblue;
STICKLINE(FF4,0,V,10,0),colorcyan;