typ:=(high+low+close)/3;cci:=(typ-ma(typ,14))/(0.015***edev(typ,14));ref(cci<-100,1) and cci>=-100;选股周期用60分,别用日线,通达信公式,通常提示分钟数据不全。这时要先把a股所有股票的1分钟和5分钟数据配合相应起止日期下载完,选股才能正确。
am1:=ma(c,5);am2:=ma(c,10);x:=if(am1>am2,barslast(cross(am1,am2))+1,-1);t1:=count(c>am2,x)=x;xg:t1=0 and ref(t1,1)=1 and am1>am2 and(am1-am2)/ref(hhv(am1-am2,x),1)>0.5;