exp1:=ema(close,12);exp2:=ema(close,50);aa1:=cross(exp1,exp2);xg3:=count(aa1,30);xg2:=count(aa1,20);xg1:=count(aa1,10);xg:(xg3=0 and ref(xg3,1)>0)or(xg2=0 and ref(xg2,1)>0)or(xg1=0 and ref(xg1,1)>0);
你要的公式没办法分辨!要自己分辨macd底背离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)...
dif:ema(close,12)-ema(close,26);dea:ema(dif,9);macd:(dif-dea)*2,colorstick;drawicon(dif>0 and cross(dif,dea),0,1);零轴上金叉次数:if(dif>0,sum(cross(dif,dea),if(dif>0,barslast(cross(dif,0))+1,0)),0),...