分享

通达信的红三兵选股公式

 游龙mg 2013-11-07
通达信条件选股
{红三兵选股等于强势股选股}
MID:=MA(CLOSE,26),colorwhite;
Uu:=MID + 2*STDDEV(CLOSE,26),coloryellow;
Ll:=MID - 2*STDDEV(CLOSE,26),colorff00ff;
v1:=STICKLINE(MID>=REF(MID,1),MID,REF(MID,1),5,1),
colorYELLOW,LINETHICK2;
v2:=STICKLINE(MID<REF(MID,1),MID,REF(MID,1),5,1),colorRED,
LINETHICK2;
K:=REF(CLOSE,2)>REF(OPEN,2) AND
REF(CLOSE,1)>REF(OPEN,1) AND
CLOSE>OPEN AND REF(CLOSE,1)>REF(CLOSE,2) AND
CLOSE>REF(CLOSE,1) and v>ref(v,1) and ref(v,1)>ref(v,2)
and (close-open)<0.05*ref(open,1) and (ref(close,1)-ref(open,1))<0.05*ref(open,2)
and (ref(close,2)-ref(open,2))<0.05*ref(open,3);
红三兵:=if(K,1,0),colorred;
vab:=uu>ref(uu,1) and mid>ref(mid,1) and c>ref(c,1) and c>uu;
xg1:if(vab and 红三兵,1,0);
 
 
 
 
选股 
 
K:REF(CLOSE,2)>REF(OPEN,2) AND
REF(CLOSE,1)>REF(OPEN,1) AND
CLOSE>OPEN AND REF(CLOSE,1)>REF(CLOSE,2) AND
CLOSE>REF(CLOSE,1) and v>ref(v,1) and ref(v,1)>ref(v,2)
and (close-open)<0.05*ref(open,1) and (ref(close,1)-ref(open,1))<0.05*ref(open,2)
and (ref(close,2)-ref(open,2))<0.05*ref(open,3);

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约