ma65:=ma(c,65);ma250:=ma(c,250);bb:count(cross(ma(c,65),ma(c,250)),250);xg:=ma250>ref(ma65,1);cross(ma250,ma65) and xg and bb;cross(ma250,ma65) and xg and bb;这句错误,不知道你想表达的意思。bb大于0的情况下,那么cross(ma250...
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...