t2:=BARSLAST(HD) BARSLAST(LD) AND NOT(LD);
波峰:IF(t1,A,A),POINTDOT,coloryellow;
STICKLINE(t1,A,A,4,0),coloryellow;
波谷:IF(t2,B,B),POINTDOT,colorffc8ff;
STICKLINE(t2,B,B,4,0),colorffc8ff;
工作线14:ema(c,14);
二号线25:ema(c,25),colorred;
分水岭55:ema(c,55),color00ff00;
九号线99:eMA(CLOSE,99),linethick2,color008fff;
m120:ma(c,120),colorwhite,linethick2;
DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19));
DEA:=EMA(DIFF,9);
MACD:=0.90*(DIFF-DEA);
tj:=(diff =dea);
tj1:=(diff
stickline(tj,h,l,0.5,0),COLORyellow;
stickline(tj,o,c,4,0),COLORyellow;
stickline(tj1 and tj and c o,h,l,0.5,0),colorf00ff0;
stickline(tj1 and tj and c o,o,c,4,0),colorf00ff0;
stickline(tj1 and tj and c o,h,l,0.5,0),colorff9933;
stickline(tj1 and tj and c o,o,c,4,0),colorff9933;
stickline(diff dea,h,l,0.5,0),colorgreen;
stickline(diff dea,o,c,4,0),colorgreen;
Var1:=(CLOSE*2+HIGH+LOW)/4;
SK:= EMA(Var1,13)-EMA(Var1,73);
SD:= EMA(SK,2);
drawtext((cross(sk,sd) and sk -0.04 and (c-ref(c,1))/ref(c,1) =0.03) or (cross(sk,sd) and sk =-0.14 )
or (cross(sk,sd) and sk =0.05 and (v/ma(v,5) 2 or c/ref(c,1) 0.035)) ,l*0.99,'短线'),colorRED;
stickline((cross(sk,sd) and sk -0.04 and (c-ref(c,1))/ref(c,1) =0.03) or (cross(sk,sd) and sk =-0.14 )
or (cross(sk,sd) and sk =0.05 and (v/ma(v,5) 2 or c/ref(c,1) 0.035)),h,l,0.5,0),colorred;
stickline((cross(sk,sd) and sk -0.04 and (c-ref(c,1))/ref(c,1) =0.03) or (cross(sk,sd) and sk =-0.14 )
or (cross(sk,sd) and sk =0.05 and (v/ma(v,5) 2 or c/ref(c,1) 0.035)),o,c,10,1),linethick3,colorred;
Var4:=(LOW+HIGH+CLOSE+open)/4;
CB:=MA(Var4,5);
A2:=HHV(CB,60);
B11:=LLV(CB,20);