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);
XG1:crOSS(DEMARK,DMZB) AND DMZB=0;