A:=MAX(MA(C,60),MA(C,120));
E:=MAX(MA(C,45),MA(C,90));
J:=MAX(MA(C,30),MA(C,60));
A1:=DATE <= 13181231;
生命線:(MA(C,25)) * A1,LINETHICK2,COLORMAGENTA;
牛線1:(MA(C,40)) * A1,COLORCYAN;
FL:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1));
FS:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);
趨勢:IF(MA(CLOSE,17)<FS,FS,MA(CLOSE,17)),COLORWHITE,LINETHICK2;
年線:=EMA(C,250);
LA:=趨勢-(EMA(C,3)-趨勢);
反線:EMA((年線-(EMA(C,3)-年線)),5),LINETHICK2,COLORBLUE;
IF(趨勢=FS,趨勢,趨勢),COLORWHITE,LINETHICK3;
追漲:EMA(COST(81),10),COLORRED,LINETHICK2;
牛熊線:EMA(COST(27),120),DOTLINE;
做空68: HHV((HIGH+LOW+OPEN+2*CLOSE)/5*2-L,5),COLORRED,DOTLINE;
平衡點: LLV((HIGH+LOW+OPEN+2*CLOSE)/5,3),COLORGRAY,DOTLINE;
XG:=CROSS(做空68,牛熊線);
DRAWTEXT(XG,L*0.99,'主'),COLOR00FF00;
DRAWTEXT(XG,L*0.96,'升'),COLOR00FF00;
DRAWTEXT(XG,L*0.93,'浪'),COLOR00FF00;
M2:=EMA(C,2);
M18:=EMA(C,18);
買:=IF(CROSS(M18,M2),5,0* 10000),COLORFF00FF,LINETHICK2;
RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;
VARB2:=(RSVV/2+22)*1;
Q:=EMA(VOL,13);
Y:=EMA(AMOUNT,13);
S:=((Y /Q) / 100);
X:=(((CLOSE -S) / S) * 100);
F:=((X < (0)) AND ZXNH);
XQ:=F AND RSVV<VARB2-2;
收陰買:=買 AND XQ ,STICK,COLORYELLOW,LINETHICK3;
DRAWTEXT(收陰買,L*0.950,'收'),COLORYELLOW;
DRAWTEXT(收陰買,L*0.920,'陰'),COLORYELLOW;
DRAWTEXT(收陰買,L*0.890,'買'),COLORYELLOW;