习作-均线粘合60天的选股公式(参数可调)-大智慧2、飞狐、通达信、通用源码介绍
习作-均线粘合60天的选股公式(参数可调)-大智慧2、飞狐、通达信、通用源码
大智慧2:
input:n(60,1,1000,1);
mx:=max(ma(c,5), ma(c,10),ma(c,20),ma(c,30),ma(c,60));
mi:=min(ma(c,5), ma(c,10),ma(c,20),ma(c,30),ma(c,60));
bf:=mx/mi<1.09;
均线粘合:(count(bf,n)=n)*10;
-----------------------
通用源码:
{输入参数n:最小为1,最大为1000,缺省为60}
MX1:=MAX(MA(C,5), MA(C,10));
MX2:=MAX(MX1, MA(C,20));
MX3:=MAX(MX2, MA(C,30));
MX:=MAX(MX3, MA(C,60));
MI1:=MIN(MA(C,5), MA(C,10));
MI2:=MIN(MI1, MA(C,20));
MI3:=MIN(MI2, MA(C,30));
MI:=MIN(MI3, MA(C,60));
BF:=MX/MI<1.09;
均线粘合:(COUNT(BF,N)=N)*10;
gd13229