Var1D:=EMA(CLOSE,2)-EMA(CLOSE,89);
Var1E:=EMA(Var1D,30);
Var1F:=2*(Var1D-Var1E)*10;
Var20:=POW(Var1F,3)*0.1+POW(Var1F,2);
Var25:=IF(YEAR<2108 AND Var1F>0.015,Var20,0)/45/4;
JJ :=(C*2+H+L)/4;
SKk :( EMA(JJ,13) - EMA(JJ,21))*180,colorgray,linethick0;
SDd : EMA(SKk,2),colorgray,linethick0;
多方: (SKk-SDd)*0.000000001,colorblack,linethick0;
空方: -1*(SKk-SDd)*0.000000001,colorblack,linethick0;
rc:=DYNAINFO(3);
rc,COLOR0099DD;
MAV:=(2*C+H+L)/4;
SK:(SLOPE(EMA(MAV,2),7)*15+MAV)*0.8*10-ma(c,9)*8,coloryellow;
SD:EMA(SK,2),colormagenta;
SJ:2.8*SK-1.8*SD,colorgreen;
s2:=sma(c,3,1);
s6:=sma(c,5,1);
dk:=2*(s2-s6)*75;
STICKLINE(sk>sd and dk<rc or dk=rc,rc,rc+dk,5,0),COLORred;
STICKLINE(dk>0 and sk>sd ,rc,rc+dk,5,0),COLOR6633CC;
STICKLINE(dk>0 and sk<sd ,rc,rc+dk,5,0),COLORFFAA66;
STICKLINE(dk>0 and 多方<空方,rc,rc+dk,5,0),COLORgreen;
STICKLINE(cross(多方,空方),rc,rc+dk,5,0),COLORyellow;
STICKLINE(cross(空方,多方),rc,rc+dk,5,0),COLORgreen;
STICKLINE(dk<0 and 多方<空方 and sk<sd,rc,rc+dk,2,0),COLORgray;
POLYLINE(v>0,SK),COLORyellow;
POLYLINE(v>0,Sd),colormagenta;
POLYLINE(v>0,Sj),colorgreen;