diff:=ema(close,12)-ema(close,26);dea:=ema(diff,9);macd:=2*(diff-dea);sx:=barslast(cross(dea,diff))+1;jx:=barslast(cross(diff,dea))+1;t1:=if(jx=1 and diff>ref(diff,ref(jx,1)+1),1,0);t2:=if(jx=1 and...
基本按您开的条件编写,希望是您需要的,公式中您所说的粘合程度您可以更改数值来调整。不过,条件虽然您是想象来了,但公式实际意义似乎不是太大,也许您是另有用途而.........公式如下:ma10:=ma(c,10);ma30:=ma(c,30);ma60:=ma(c,60);条件1:if(cross(ma60,ma30) and between(ma10/ma60,1.002,1) and ma30...