DIFFBL:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEABL:=EMA(DIFFBL,9),COLORFFFF00;
MACDBL:=(DIFFBL-DEABL)*2;
DBL1:=BARSLAST(REF(CROSS(DIFFBL,DEABL),1));
DBL2:=BARSLAST(REF(CROSS(DEABL,DIFFBL),1));
底背离:REF(CLOSE,DBL1+1)>CLOSE AND DIFFBL> REF(DIFFBL,DBL1+1) AND CROSS(DIFFBL,DEABL);
|