aa:cross(ma(close,5),ma(close,20));//表示5日均线与20日均线交金**b:cross(ma(close,10),ma(close,20));//表示10日均线与20日均线交金叉选股:aa and bb;或者直接选股:cross(ma(close,5),ma(close,20)) and cross(ma(close,10),ma(close,20));
zc_1:=if(l<dyna**(7),0,if(h>dyna**(7),dyna**(7)-(dyna**(7)-h+0.02)/(h-l+0.02),0));zc_2:=dma(zc_1,v/capital)*100;出货:=if(zc_2>0 and zc_2>ref(zc_2,1),zc_2/20,0);varq1:=ref((low+open+close+hig...
condtion_a:=cross(ma(c,5),ma(c,10));condtion_b:=barslast(condtion_a)>0;condtion_c:=count(ccondtion:condtion_b and condtion_c and not(cross(ma(c,10),ma(c,5)));
您的描述可理解为:最20日振幅大10%,目前股价中,正向20靠拢。把这样的股票选出来。公式如下(我又细化了一下):ar1:=(hhv(h,20)-llv(l,20))*100/llv(l,20)>10;ar02:=(c,5)<((c,5),1);ar2:=count(ar02,5)=5;ar3:=count(l/(c,20)<1.002 and h>ma(c,20),3)&...
楼主没有把意图说的很清楚 我的理解是 收盘价联系n日均在五日均线上,且五日均线向上趋势 注意参数n可以自行设定,一般可以设为3或4或5或者其他数字。a1:=c>ma(c,5);a2:=count(a1,n)=n and n;a3:=ma(c,5)>ref(ma(c,5),1);xg:a2 and a3;如果要要求连续3日收红盘 还 a1:=c>ma(c,5);a2:=count(...
次日不是未来的事吗?未来函数不好玩,如果是前几天的话......ref(close,2)/ref(close,3)>1.099 and ref(high,1)/ref(close,2)>1.05 and close1.099; 我知道你想干什么了,你想去抄暴涨后暴跌的底,捡个小反弹是吧?哈哈,小心死的惨~