设为首页加入收藏

微信关注
官方微信号:71712643
加关注获取每日精选资讯
股票入门欢迎您加入
广告服务联系我们网站地图

大智慧指标横盘选股

2011-11-19 11:16:59 股票入门 http://rumen.southmoney.com

input:D(1060101,0,1999999,1),D1(1060131,0,1999999,1),N(2,0,20,0.01),N1(2,0,20,0.01),T(0);
DRAWGBKlast(1,strip(rgb(90,90,90),rgb(0,0,0),0));
varD:=date>=D;
varD1:=date<=D1;
dd:=varD and varD1;
DDD:=if(dd,count(if(dd,C,0),0),0);
ee:=if(dd,hhv(close,DDD),0);
cc:=if(dd,llv(close,DDD),0);
ZZ:=(O+C*2+H+L)/5;
ff:=if(dd and ref(ee,1)=0,ZZ,0);
screendays:=barssince(dispstatus=1)+1;
datacount:=if(DDD>screendays,DDD-1,screendays-1);
aa:=0;
for i=0 to datacount do begin
aa:=aa+ref(ff,i);
end
gg:=aa;
hhh:=if(ee=gg,ee/100,(ee-gg));
iii:=if(cc=gg,cc/100,(gg-cc));
hh:=hhh*100/gg;
ii:=iii*100/gg;
temp:=if(hh<=N and ii<=N1 and DD,10,0);
if T>0 then begin
temp2:=count(screendays and temp>0,0);
end;
横盘区间:temp,precis0,colorccffff,linethick2;
区间天数:temp2,precis0,colorffcceb,linethick0;

股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。