1、“今天涨5%以上,”,这句是昨天涨5%以上,今天开盘为跳空高开:f:=(c-ref(c,1))/ref(c,1)*100;xg:ref(f,1)>5 and o>ref(h,1);---------------------------------2、跳空高开,一字涨停:f:=(c-ref(c,1))/ref(c,1)*100;一字涨停:o>ref(h,1) and o=h and f>=9.9; 如是不是一字涨停,而是高开后来涨停:f:=(c-ref(c,1))/ref(c,1)*100;涨停:o>ref(h,1) and o<=h and f>=9.9;仅供参考,祝:马年投资顺利! 20210311
yc_买进:=((close-ref(ma(close,6),1))/6+ma(close,6))*1.004;买进条件:=cross(close,yc_买进) and yc_买进>ref(yc_买进,1);yc_加仓:=((close-ref(ma(close,18),1))/18+ma(close,18))*1.004;加仓条件:=cross(close,yc_加仓) and yc_加仓...
diff:=ema(close,12)-ema(close,26);dea:=ema(diff,9);macd:=2*(diff-dea);sx:=barslast(cross(dea,diff))+1;jx:=barslast(cross(diff,dea))+1;t1:=if(jx=1 and diff>ref(diff,ref(jx,1)+1),1,0);t2:=if(jx=1 and...
按照这只股票编出来不难,但你定义的都是幅度,没有时间.形态分析,光分析涨跌空间不行你还要计算时间因素. 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,...
阳线:=barslast((ref(c,1)/ref(c,2)>1.07 and ref(c,1)>ref(ma(c,20),1)))<10;回调:=barslastcount(ref(v,1)<ref(v,2) and ma(c,5)>ma(c,20) and ma(c,10)>ma(c,20) and ref(c,1)>ref(ma(c,20),1))...