公式如下:jc:if(sum(if(macd>0 and cross(macd.dif,macd.dea),1,0),0)-hhv(if(if(cross(macd.dea,0),1,0),sum(if(macd>0 and cross(macd.dif,macd.dea),1,0),0),0),0)=2 and sum(if(macd>0 and cross(macd.dif,...
dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);macd:=(dif-dea)*2;天数:=barslast(ref(cross(dea,dif) and dif>0,1));macd背离:=cross(dea,dif) and dif<ref(dif,天数+1);xg:cross(kdj.k,kdj.j) and dif>0 a...