kdjmacd1:=(high+low+open+close)/(4);kdjmacd3:=(2)*(ema(llv(kdjmacd1,8),13))-kdjmacd1;乾坤线:=(3)*(kdjmacd3)-(2)*(sma(kdjmacd3,9,1));xg:乾坤线>c and 乾坤线<ref(乾坤线,1);
diff:=ema(close,6)-ema(close,10);dea:=ema(diff,5);macd:=2*(diff-dea);金叉信号1:=cross(close,ma(close,34)) and cross(ma(close,3),ma(close,8));a1:=diff<ref(diff,1) and diff<0;a2:=barslast(a1) and macd...