C1:=(HIGH+LOW+CLOSE)/3;
C2:=(C1-MA(C1,20))*1000/(15*AVEDEV(C1,20));
C3:=EMA(EMA(EMA(C2,3),3),3);
一指残:IF(C3<-100 AND crOSS(C2,-100),10,0),COLOR0000FF;
二指残:IF(C3>100 AND CROSS(100,C2),40,50),COLOR00FF00;
三指残:IF(C2>C3 AND CROSS(C2,100),35,25),COLOR00FFFF;
DRAWTEXT(一指残>0,12,'买入'),COLOR0000FF;
DRAWTEXT(二指残<50,38,'卖出'),COLOR00FF00;
DRAWTEXT(三指残>25,37,'加码'),COLOR00FFFF;