AA:=COUNT(C<=REF(LLV(L,10),1),5)=1;
BB:=COUNT(C>=REF(HHV(L,10),1),5)=1;
ROC:100*(CLOSE-REF(CLOSE,12))/REF(CLOSE,12);
MAROC:MA(ROC,6);
A1:=BARSLAST(REF(CROSS(ROC,MAROC),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND ROC>REF(ROC,A1+1) AND CROSS(ROC,MAROC);
DRAWTEXT(底背离 AND AA,ROC+0.02,’ 底背’),COLORFF00FF;