以下是通达信 超级大黑马源码(无源码的请下载附件导入)
2;
50;
HJ_1:=6;
5;
100;
HJ_2:=80;
HJ_3:=REF(CLOSE,1);
HJ_4:=SMA(MAX(CLOSE-HJ_3,0),18,1)/SMA(ABS(CLOSE-HJ_3),13,1)*100;
HJ_5:=SMA(MAX(CLOSE-HJ_3,0),24,1)/SMA(ABS(CLOSE-HJ_3),20,1)*100;
HJ_6:=BARSLAST(HJ_5<48)<=3 AND CROSS(HJ_4,HJ_5);
HJ_7:=(CLOSE-MA(CLOSE,48))/MA(CLOSE,20)*100<(-12.5);
HJ_8:=LLV(LOW,5);
HJ_9:=HHV(HIGH,10);
HJ_10:=EMA((CLOSE-HJ_8)/(HJ_9-HJ_8)*100,4);
HJ_11:=EMA(0.667*REF(HJ_10,1)+0.333*HJ_10,2);
HJ_12:=1011131;
HJ_13:=IF(DATE<=HJ_12,HJ_7,0) OR IF(DATE<=HJ_12,HJ_2,0);
HJ_14:=REF(CLOSE,1);
HJ_15:=SMA(MAX(CLOSE-HJ_14,0),7,1)/SMA(ABS(CLOSE-HJ_14),7,1)*100;
HJ_16:=SMA(MAX(CLOSE-HJ_14,0),13,1)/SMA(ABS(CLOSE-HJ_14),13,1)*100;
HJ_17:=BARSLAST(HJ_16<43)<=3 AND CROSS(HJ_15,HJ_16);
HJ_18:=(CLOSE-MA(CLOSE,43))/MA(CLOSE,20)*100<(-12.5);
HJ_19:=LLV(LOW,5);
HJ_20:=HHV(HIGH,10);
HJ_21:=EMA((CLOSE-HJ_19)/(HJ_20-HJ_19)*100,4);
HJ_22:=EMA(0.667*REF(HJ_21,1)+0.333*HJ_21,2);
HJ_23:=1011131;
HJ_24:=IF(DATE<=HJ_23,HJ_18,0) OR IF(DATE<=HJ_23,HJ_2,0);
HJ_25:=0-(-1)*HJ_17 AND HJ_18 AND CROSS(HJ_21,HJ_22) AND HJ_21<=25;
HJ_26:=REF(CLOSE,1);
HJ_27:=SMA(MAX(CLOSE-HJ_26,0),7,1)/SMA(ABS(CLOSE-HJ_26),7,1)*100;
HJ_28:=SMA(MAX(CLOSE-HJ_26,0),13,1)/SMA(ABS(CLOSE-HJ_26),13,1)*100;
HJ_29:=BARSLAST(HJ_28<33)<=3 AND CROSS(HJ_27,HJ_28);
HJ_30:=(CLOSE-MA(CLOSE,33))/MA(CLOSE,20)*100<(-12.5);
HJ_31:=LLV(LOW,5);
HJ_32:=HHV(HIGH,10);
HJ_33:=EMA((CLOSE-HJ_31)/(HJ_32-HJ_31)*100,4);
HJ_34:=EMA(0.667*REF(HJ_33,1)+0.333*HJ_33,2);
HJ_35:=1011131;
HJ_36:=IF(DATE<=HJ_35,HJ_30,0) OR IF(DATE<=HJ_35,HJ_2,0);
大黑马:0-(-1)*HJ_29 AND HJ_30 AND CROSS(HJ_33,HJ_34) AND HJ_33<=25,COLOR80FF00;
STICKLINE(大黑马,0,3,3,0),COLOR80FF00;
STICKLINE(大黑马,0,3,1.5,0),COLOR80FF00;
STICKLINE(大黑马,0,3,0.8,0),COLOR80FF00;
STICKLINE(大黑马,0,3,0.1,0),COLOR80FF00;
HJ_37:=REF(CLOSE,1);
HJ_38:=SMA(MAX(CLOSE-HJ_37,0),7,1)/SMA(ABS(CLOSE-HJ_37),7,1)*100;
HJ_39:=SMA(MAX(CLOSE-HJ_37,0),13,1)/SMA(ABS(CLOSE-HJ_37),13,1)*100;
HJ_40:=BARSLAST(HJ_39<23)<=3 AND CROSS(HJ_38,HJ_39);
HJ_41:=(CLOSE-MA(CLOSE,23))/MA(CLOSE,20)*100<(-12.5);
HJ_42:=LLV(LOW,5);
HJ_43:=HHV(HIGH,10);
HJ_44:=EMA((CLOSE-HJ_42)/(HJ_43-HJ_42)*100,4);
HJ_45:=EMA(0.667*REF(HJ_44,1)+0.333*HJ_44,2);
HJ_46:=1011131;
HJ_47:=IF(DATE<=HJ_46,HJ_41,0) OR IF(DATE<=HJ_46,HJ_2,0);
超级大黑马:0-(-1)*HJ_40 AND HJ_41 AND CROSS(HJ_44,HJ_45) AND HJ_44<=25,COLORRED;
STICKLINE(超级大黑马,0,3,3,0),COLORRED;
{-----------------------------------} |