cross(ma(c,26),ma(c,100))and"cci.cci">100 and cross("macd.dif","macd.dea")and"macd.dif">ref("macd.dif",1)and"macd.dea">ref("macd.dea",1)and c>ma(c,5); 20210311
boll:=ma(close,n);upper:=boll+2*std(close,n);lower:=boll-2*std(close,n);cross(ma(c,5),ma(c,10)) and upper<ref(upper,1) and lower>ref(lower,1) and ref(upper,1)<ref(upper,2) and ref(lower,1)>...
最好依据公式:diff:=ema(close,12)-ema(close,26);dea:=ema(diff,9);a0:=cross(diff,dea);a:=a0 and diff<0;ft:=barslast(a);b:=count(a0,ft);第二个金叉:diff>0 and dea>0 and a0 and b<2;编写周日同时二次金叉的公式。