请老师把下面的底背离选股指标改成顶背离选股指标,谢谢 DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); DEA:=EMA(DIFF,9); MACD:=2*(DIFF-DEA); QZQ:=BARSLAST(REF(MACD,1)0); QM:=LLVBARS(MACD,QZQ+20); MQDZ:=IF(QM>QZQ,REF(MACD,QM),0); XG1:=MACDMQDZ AND CLOSE=LLV(CLOSE,QZQ+20) AND MQDZREF(MACD,1);
爱约股解答:
A1:=BARSLAST(REF(CROSS(MACD.DEA,MACD.DIF),1));
XG:REF(C,A1+1)<C AND REF(MACD.DIF,A1+1)>MACD.DIF AND CROSS(MACD.DEA,MACD.DIF);