飞狐一品波段副图指标
rn
源码
rn
Var1:=(CLOSE*2+HIGH+LOW)/4;{当日股价中线}
rnSK:EMA(Var1,13)-EMA(Var1,73);{13日均线-73日均线,求差}
rnSD:EMA(SK,2);{SK的2日均线}
rndx1:=cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)*100>=3;
rn{sk与sd低位金叉,当日涨幅大于+3%}
rndx2:=cross(sk,sd) and sk<=-0.14;{sk与sd超跌低位金叉}
rndx3:=cross(sk,sd) and sk<=0.05 and (v/ma(v,5)>2 or (c-ref(c,1))/ref(c,1)
rn*100>=3.5);
rn{sk与sd中位金叉,并且放量上涨。(当日量大于5日均量2倍,或者涨幅大于+3.5%)}
rn短线:(dx1 or dx2 or dx3)*0.5,color00ff00;
rn{满足条件dx1dx2dx3之一,设定为短线买入条件。}
rn买入:(cross(sk,sd) and barslast(cross(sd,sk))>=8)*0.2,colorwhite;
rn加码:(cross(sk,sd) and barslast(cross(sd,sk))<8)*0.3,coloryellow;
rn{以下设置副图显示方式}
rndrawtext(短线>0 ,0.8,’短线’),color00ff00;
rndrawtext(买入>0 ,0.5,’买入’),colorwhite;
rndrawtext(加码>0 ,0.5,’加码’),coloryellow;
rn

© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END




















暂无评论内容