p1:=90;a:=p1+(100-p1)/2;b:=(100-p1)/2;cc:=cost(a);dd:=cost(b);scr:=(cc-dd)/(cc+dd)*100/2;asr:=(winner(c*1.1)-winner(c*0.9))/winner(hhv(h,0))*100;buy:scr<10 and asr>90;因为带有winner是未来函数,指标会发生飘移,请慎用。 20210311
diff1:=ema(close,12) - ema(close,26);dea1:=ema(diff1,9);macd1:=2*(diff1-dea1);a1:=barslast(ref(cross(diff1,dea1),1));ref(close,a1+1)>close and diff1>ref(diff1,a1+1) and cross(diff1,dea1) and llv...