季天数:=BARSLAST(cross(MONTH=1 or MONTH=4 or MONTH=7 or MONTH=10,0.5) or barpos=1);
月天数:=BARSLAST(MONTH<>ref(MONTH,1) or barpos=1);
年天数:=1+BARSLAST(year<>ref(year,1) or barpos=1); 周天数:=1+BARSLAST(DAYS1970-ref(DAYS1970,1)
k3:=CLOSE>OPEN or CLOSE=OPEN and CLOSE>REF(CLOSE,1);
STICKLINE(k3,HIGH,LOW,0,0),colorred;
STICKLINE(k3,OPEN,CLOSE,4.5,1),colorred;
STICKLINE(NOT(k3),HIGH,LOW,0,0),color00ff00; STICKLINE(NOT(k3),CLOSE,OPEN,4.5,0),color0
x:=c-ref(ma(c,20),11);
lgl:=IF(EMA(C,5)/EMA(EMA(C,9),16)<=0.85 and c/ref(c,1)>0.905 and c/ref(c,1)<1.05 and VOL/CAPITAL*100<5,50,0);
wr1:=-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))+100*x;
wr2:=-100*(HHV(HIGH,50)-CLO
ema13:ema(c,13),Colorred,POINTDOT,linethick1;
ema17:ema(c,17),Colorgray;
ema34:ema(c,34),Color5E5E5E;
ema156:ema(c,156),Colorblue,POINTDOT,linethick1;
DRAWTEXT(C-O>=0 AND O/L>1.05 AND L<=LLV(L,30),L,'★<-绝底'),COLORMAGENT