Var1:=(CLOSE*2+HIGH+LOW)/4;
s:=EMA(Var1,13)-EMA(Var1,21);
D:=EMA(s,2);
差: 2*(s-D)*3.8*10;
参考:EMA(差,2);
X:0;
DRAWTEXT(差>REF(差,1) AND REF(差,1)<REF(差,2),REF(差,1),'买'),colorred;
DRAWTEXT(差>REF(差,1) AND REF(差,1)<REF(差,2)AND 差<参考 ,REF(差,1),'观望破位跟进'),coloryellow;
DRAWTEXT(差<REF(差,1) AND REF(差,1)>REF(差,2)AND 差<参考 ,REF(差,1),'卖'),colorblue;
STICKLINE(差>REF(差,1) AND REF(差,1)<REF(差,2),0,REF(差,1),4,0),colorred;
STICKLINE(差<REF(差,1) AND REF(差,1)>REF(差,2),0,REF(差,1),4,0),colorblue;