XA_1:=BARSLAST(MACD.MACD>0);
XA_2:=FILTERX(LOW=LLV(LOW,XA_1),XA_1);
XA_3:=BARSLAST(XA_2);
XA_4:=BARSLAST(REF(XA_2,1))+XA_3;
底背:XA_3=0 AND LOW<REF(LOW,XA_4+1) AND MACD.MACD>REF(MACD.MACD,XA_4+1) AND MACD.MACD<0,NODRAW;
DRAWICON(底背,MACD.MACD,42);
XA_5:=BARSLAST(MACD.MACD<0);
XA_6:=FILTERX(HIGH=HHV(HIGH,XA_5),XA_5);
XA_7:=BARSLAST(XA_6);
XA_8:=BARSLAST(REF(XA_6,1))+XA_7;
顶背:XA_7=0 AND HIGH>REF(HIGH,XA_8+1) AND MACD.MACD<REF(MACD.MACD,XA_8+1) AND MACD.MACD>0,NODRAW;
DRAWICON(顶背,MACD.MACD,43);