以下是通达信牛劲十足+选股指标源码附图

指标源码:
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
 ZM:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT;
 ZM1:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLOR00FF00,POINTDOT;
 MMB:=(SUM(ZM,30)+SUM(ZM1,30))/10,COLORYELLOW;
 SG:=MMB>0 AND REF(MMB,1)<MMB;
上攻周期:COUNT(SG,5),LINESTICK,COLORWHITE;
 JSC:=上攻周期<1;
 DBQD:=FILTER(COUNT(JSC,5)>3 AND NOT(JSC),10);
 DRAWICON(DBQD,2,1);
 DRAWBAND(上攻周期,RGB(255,120,120),3,RGB(0,0,0));
 DRAWBAND(JSC,RGB(0,0,255),0.5,RGB(0,0,0));
 STICKLINE(COUNT(上攻周期>3,5)>=3 AND SG,0,上攻周期,1.5,0),COLORRED;
 XG: COUNT(COUNT(上攻周期>3,5)>=3 AND SG,20)>4;

 

选股公式:
M:=3;
 VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
 ZM:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
 ZM1:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2));
 MMB:=(SUM(ZM,30)+SUM(ZM1,30))/10;
 SG:=MMB>0 AND REF(MMB,1)<MMB;
上攻周期:=COUNT(SG,5);
 JSC:=上攻周期<1;
选股:COUNT(COUNT(上攻周期>3,5)>=3 AND sg,20)>m;
 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。