MMM:=CURRBARSCOUNT<37;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27);
DIEA:=EMA(DIFF,9);
AQ1:=BArslAST(REF(crOSS(DIFF,DIEA),1));
底背离:=REF(CLOSE,AQ1+1)>CLOSE AND DIFF>REF(DIFF,AQ1+1) AND CROSS(DIFF,DIEA);
底背离XG:底背离 AND MMM=1;
MMM:=CURRBARSCOUNT<37;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27);
DIEA:=EMA(DIFF,9);
AQ1:=BArslAST(REF(crOSS(DIFF,DIEA),1));
底背离:=REF(CLOSE,AQ1+1)>CLOSE AND DIFF>REF(DIFF,AQ1+1) AND CROSS(DIFF,DIEA);
底背离XG:底背离 AND MMM=1;