以下是通达信黑线选股源码

XA_1:=CLOSE-REF(CLOSE,1);
 XA_2:=100*EMA(EMA(XA_1,6),6)/EMA(EMA(ABS(XA_1),6),6);
 XA_3:=CROSS(EMA(CLOSE,19),EMA(CLOSE,7));
 XA_4:=CROSS(EMA(CLOSE,7),EMA(CLOSE,19));
 XA_5:=LOW=LLV(LOW,BARSLAST(XA_3)+1);
 XA_6:=LLV(LOW,BARSLAST(XA_3)+1);
 XA_7:=HIGH=HHV(HIGH,BARSLAST(XA_4)+1);
 XA_8:=HHV(HIGH,BARSLAST(XA_4)+1);
 XA_9:=DRAWLINE(XA_5,XA_6,XA_7,XA_8,0);
 XA_10:=HIGH=HHV(HIGH,BARSLAST(XA_4)+1);
 XA_11:=HHV(HIGH,BARSLAST(XA_4)+1);
 XA_12:=LOW=LLV(LOW,BARSLAST(XA_3)+1);
 XA_13:=LLV(LOW,BARSLAST(XA_3)+1);
 XA_14:=DRAWLINE(XA_10,XA_11,XA_12,XA_13,0);
 XA_15:=LLV(XA_2,2)=LLV(XA_2,7);
 XA_16:=COUNT(XA_2<0,2);
 XA_17:=CROSS(XA_2,MA(XA_2,2));
 XA_18:=REF(XA_14,1)<REF(XA_14,2);
 XA_19:=XA_9>REF(XA_14,1);
 XA_20:=XA_15 AND XA_16 AND XA_17 AND XA_18 AND XA_19;
 XA_21:=EMA(CLOSE,12)-EMA(CLOSE,26);
 XA_22:=EMA(XA_21,9);
 XA_23:=(XA_21-XA_22)*2;
 XA_24:=HHV(HIGH,60);
 XA_25:=LLV(LOW,30);
 XA_26:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
 XA_27:=(XA_24+XA_25+XA_26)/3;
 XA_28:=EMA(XA_27,5);
 XA_29:=EMA(XA_28,5)*2;
 XA_30:=EMA(XA_29,5);
 XA_31:=XA_29*3-XA_30*2;
 XA_32:=CROSS(XA_29,XA_30);
 XA_33:=CROSS(XA_30,XA_29);
 XA_34:=DRAWICON(ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3),LOW*0.98,1)*XA_30*2/3;
 XA_35:=IF(TROUGHBARS(3,15,1)=1 AND HIGH>LOW+0.01,20,0);
 XA_36:=XA_34 AND XA_35;
 XA_37:=XA_20 OR XA_14<REF(XA_14,1) AND XA_36;
 XA_38:=0.005>WINNER(CLOSE)>0;
黑线选股:REF(XA_38,1) AND REF(XA_37,0);
 

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