Var1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
Var2:=EMA(EMA(EMA(Var1,4),4),4);
SJ: (Var2-REF(Var2,1))/REF(Var2,1)*100, COLORSTICK;
SD: MA(SJ,2);
SK: MA(SJ,1);
Var3:=CROSS(SK,SD) AND SK<0;
Var4:=CROSS(SK,0);
Var5:=CROSS(SK,SD) AND SK>0;
买一: Var3, STICK,colorff00ff,linethick2;
买二: Var4 OR Var5, STICK,colorred,linethick2;
Var6:=CROSS(SD,SK);
卖出: Var6, STICK,coloryellow,linethick2;
强弱分界: 0;
DRAWTEXT(CROSS(SJ,SD),SJ,'始');
DRAWTEXT(CROSS(SD,SJ),SD,'终');