止损指标 diff:=ema(c,12)-ema(c,26); dea:=ema(diff,9); s1:=sma(c,3,1); s2:=sma(s1,3,1); hl:=ma(h,20)-ma(l,20); if(diff>dea and s2>ref(s2,1),s2-hl,0),colorred,CIRCLEDOT; if(diff<dea and s2<ref(s2,1),s2+hl,0),colorgreen,CIRCLEDOT; if(diff>dea and s2<ref(s2,1),s2-hl,0),colorwhite,CIRCLEDOT; if(diff<dea and s2>ref(s2,1),s2+hl,0),colorwhite,CIRCLEDOT;