{macd}dif:=ema(close,12)-ema(close,26); dea:=ema(dif,9); macd:=(dif-dea)*2; ud:=(c-ref(c,1))/ref(c,1)*100;t1:=count(c>ref(c,1),2)=2 and between(ud,1.5,6);t2:=dea>0 and dif>0;t3:=ma(c,5)>ref(ma(c,5),1)...
按照这只股票编出来不难,但你定义的都是幅度,没有时间.形态分析,光分析涨跌空间不行你还要计算时间因素. n:=60;n1:=50;m:=30;x:=hhvbars(h,n);qh:=ref(hhv(h,m),x+1);ql:=ref(llv(l,m),x+1);xg:ref(x,1)>50 and ref(llv(l,x),1)>ref((0.618*(qh-ql)+ql)*0.95,...