:="MD.MACD";VA1:=HHVBARS(MACD,BAAST(MACD<0 VA2:=OSS(BACKSET(CROSS(0,MACD),REF(VA1,1)+2),0.5);VA3:>0)+1);VA4:=CROSS(BACKSET(CROSS(MACD,0),REF(VA3,1)+2),0.5);前高:=DRAWLINE(VA2,MACD,REF(VA2,1),REF(MACD,1),1);GT:=BARSLAST(VA2);DT:=BARSLAST(VA4);条件A:=VA2 AND MACD
[REF(MACD,REF(DT,1)+1);:=条件B AND COUNT(条件A,REF(DT,1))=1;XG:CROSS(MACD>前高 AND COUNT(选股,GT)=1,0.5);
]