OVERBOUGHT:0.7;
OVERSOLD:0.3;
DEMAX:=HIGH>REF(HIGH,1);
DEMIN:=LOW
DENUM:=MA(DEMAX,9);
DEDOM:=MA(DEMAX,9)+MA(DEMIN,9) ;
DEMARK:DENUM/DEDOM;
DD:=C=LLV(C,60);{60日最低点}
DDSJ:=BArslAST(REF(DD,1));{上一低点时间}
DDGJ:=REF(CLOSE,DDSJ+1)>CLOSE;{股价趋势}
DMZB:REF(DEMARK,DDSJ+1);
DEMARK底背离:IF(DDGJ AND DMZB,0.1,0);
DRAWICON(crOSS(OVERSOLD,DEMARK),OVERSOLD,1);{行情启动波段超短}
DRAWICON(CROSS(DEMARK,DMZB) AND DMZB<0.3 ,0.1,1);{超底专用};