九毛八公式指标
请老师把下面的底背离选股指标改成顶背离选股指标,谢谢 DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); DEA:=EMA(DIFF,9); MACD:=2*(DIFF-DEA); QZQ:=BARSLAST(REF(MACD,1)<0 and macd>0); QM:=LLVBARS(MACD,QZQ+20); MQDZ:=IF(QM>QZQ,REF(MACD,QM),0); XG1:=MACD<0 and macd>MQDZ AND CLOSE=LLV(CLOSE,QZQ+20) AND MQDZ<0; XG:REF(XG1,1)=1 AND MACD>REF(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);
0>