typ:=(high+low+close)/3;cci:=(typ-ma(typ,n))/(0.015***edev(typ,n));tj:=cross(cci,100);周期数:=barslast(ref(tj,1))+1;上次金叉:=(ref(cci,周期数)+ref(cci,周期数+1))/2;今天金叉:=(cci+ref(cci,1))/2;xg:count(tj,30)>=2 and tj and last(cci>0,周期数+1,1);你给的分太低啦,下次多出点血。 20210311