通达信TD组合公式 源码

HJ_1:=IF(CLOSE>OPEN,HIGH-CLOSE,HIGH-OPEN);
HJ_2:=IF(CLOSE>OPEN,OPEN-LOW,CLOSE-LOW);
HJ_3:=MA(HJ_1,60)*1.5;
HJ_4:=MA(HJ_2,60)*1.5;
HJ_5:=IF((CLOSE-REF(CLOSE,1))*100/REF(CLOSE,1)>=10-0.01*100/REF(CLOSE,1),1,0);
HJ_6:=IF((REF(CLOSE,1)-CLOSE)*100/REF(CLOSE,1)>=10-0.01*100/REF(CLOSE,1),1,0);
STICKLINE(HJ_5,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(HJ_6,OPEN,CLOSE,2,0),COLORBLUE;
HJ_7:=CLOSE>REF(CLOSE,4);
HJ_8:=BARSLASTCOUNT(HJ_7);
HJ_9:=HJ_8=9;{}
HJ_10:=ISLASTBAR AND BETWEEN(HJ_8,1,8);
HJ_11:=(BACKSET(HJ_9>0,9) OR BACKSET(HJ_10>0,HJ_8))*HJ_8;
DRAWNUMBER(HJ_11>0,HIGH+HJ_3*2,HJ_11),COLORMAGENTA;
DRAWNUMBER(HJ_8=9 AND HIGH>REF(HIGH,2),HIGH+HJ_3*2,9),COLORGREEN;
DRAWNUMBER(HJ_8=18,HIGH+HJ_3*2,18),COLORYELLOW;
HJ_12:=CLOSE<REF(CLOSE,4);
HJ_13:=BARSLASTCOUNT(HJ_12);
HJ_14:=HJ_13=9;
HJ_15:=ISLASTBAR AND BETWEEN(HJ_13,1,8);
HJ_16:=(BACKSET(HJ_14>0,9) OR BACKSET(HJ_15>0,HJ_13))*HJ_13;
DRAWNUMBER(HJ_16>0,LOW-HJ_4*2,HJ_16),COLORMAGENTA;
DRAWNUMBER(HJ_13=9 AND LOW<REF(LOW,2),LOW-HJ_4*2,9),COLORGREEN;
DRAWNUMBER(HJ_13=18,LOW-HJ_4*2,18),COLORYELLOW;
HJ_17:=BARSLAST(HJ_8=9);
HJ_18:=COUNT(HJ_12,HJ_17)<=0;
HJ_19:=COUNT(HJ_7,HJ_17)=0;
HJ_20:=COUNT(CLOSE>REF(HIGH,2) AND HJ_18,HJ_17);
DRAWNUMBER(HJ_20=3 AND REF(HJ_20,1)=2,HIGH+HJ_3*2,12),COLOR0080FF;
HJ_21:=IF(HJ_20=4 AND REF(HJ_20,1)=3 AND HIGH>REF(CLOSE,HJ_17+1),2,IF(HJ_20=4 AND REF(HJ_20,1)=3,1,0));
DRAWNUMBER(HJ_21=2,HIGH+HJ_3*2,13),COLORGREEN;
DRAWNUMBER(HJ_21=1,HIGH+HJ_3*2,0),COLORGREEN;
HJ_22:=BARSLAST(HJ_13=9);
HJ_23:=COUNT(HJ_7,HJ_22)<=0;
HJ_24:=COUNT(HJ_12,HJ_22)<=0;
HJ_25:=COUNT(CLOSE<REF(LOW,2) AND HJ_23,HJ_22);
DRAWNUMBER(HJ_25=3 AND REF(HJ_25,1)=2,LOW-HJ_4*2,12),COLOR0080FF;
HJ_26:=IF(HJ_25=4 AND REF(HJ_25,1)=3 AND LOW<REF(CLOSE,HJ_22+1),2,IF(HJ_25=4 AND REF(HJ_25,1)=3,1,0));
DRAWNUMBER(HJ_26=2,LOW-HJ_4*2,13),COLORRED;
DRAWNUMBER(HJ_26=1,LOW-HJ_4*2,0),COLORRED;
HJ_27:=BARSLAST(HJ_26=2);{}
HJ_28:=COUNT(CLOSE>REF(CLOSE,4),HJ_27);
HJ_29:=REF(HJ_28,1)=0 AND HJ_28=1;
HJ_30:=COUNT(CLOSE>REF(HIGH,2),HJ_27);
HJ_31:=REF(HJ_30,1)=0 AND HJ_30=1 AND BARSCOUNT(CLOSE)>9 AND HJ_27<HJ_22;
HJ_32:=BARSLAST(HJ_31);
HJ_33:=IF(HJ_31,HJ_22+9,DRAWNULL);
HJ_34:=LLVBARS(LOW,HJ_33);
HJ_35:=REF(LOW,HJ_34)-(MAX(REF(HIGH,HJ_34),REF(HIGH,HJ_34+1))-REF(LOW,HJ_34));
HJ_36:=REF(LOW,HJ_34)-(REF(CLOSE,HJ_34)-REF(LOW,HJ_34));
STICKLINE(HJ_31,LOW,HJ_36,0.5,(-1)),COLORGREEN;
STICKLINE(HJ_32>0 AND HJ_32<20,REF(HJ_36,HJ_32),REF(HJ_36,HJ_32),1,0),COLORGREEN;
DRAWNUMBER(HJ_31,HJ_36,HJ_36),COLORGREEN;
HJ_37:=COUNT(HJ_13=18,3)>0;
HJ_38:=IF(HJ_8=9 AND (HIGH<REF(HHV(HIGH,12),1) OR CLOSE<OPEN),1,0);
HJ_39:=IF(HJ_21=2 OR HJ_21=1 AND (HIGH<REF(HHV(HIGH,HJ_22+13),1) OR CLOSE<OPEN),1,0);
DRAWICON(HJ_39=1,HIGH+HJ_3*4,8);
DRAWICON(HJ_38=1,HIGH+HJ_3*4,8);
DRAWICON(HJ_8=18,HIGH+HJ_3*4,8);
DRAWICON(HJ_31,LOW-HJ_4*2,7);
HJ_40:=0;{}
HJ_41:=IF(HJ_40=0,LOW,CLOSE);
HJ_42:=IF(HJ_8=9 AND HIGH=HHV(HIGH,9) AND CLOSE>OPEN,1,0);
HJ_43:=BARSLAST(HJ_42=1);
HJ_44:=REF(HJ_41,HJ_43)-(REF(HIGH,HJ_43)-REF(CLOSE,HJ_43));
STICKLINE(HJ_42=1,HJ_41,HJ_41-(HIGH-CLOSE),0.5,(-1)),COLORRED;
STICKLINE(HJ_43>0 AND HJ_43<20,REF(HJ_44,HJ_43),REF(HJ_44,HJ_43),1,0),COLORRED;
DRAWNUMBER(HJ_42=1,HJ_44,HJ_44),COLORRED;
HJ_45:=IF(HJ_40=1,CLOSE<REF(LOW,2) AND LOW<REF(LOW,1) AND CLOSE<REF(CLOSE,1),CLOSE<REF(LOW,2) AND LOW<REF(LOW,1));
HJ_46:=IF(HJ_13=9,BARSLAST(HJ_13=1),DRAWNULL);
HJ_47:=COUNT(HJ_45,HJ_46+5);
HJ_48:=IF(HJ_13=9,HJ_47,DRAWNULL);
HJ_49:=COUNT(HJ_45 AND HJ_23,HJ_22);
HJ_50:=REF(HJ_48,HJ_22)+HJ_49;
HJ_51:=REF(HJ_50,1)=12 AND HJ_50=13;
HJ_52:=BARSLAST(HJ_51);
HJ_53:=COUNT(CLOSE>REF(HIGH,2) AND HJ_52<HJ_22 AND HJ_22<HJ_22+9,HJ_52);
HJ_54:=REF(HJ_53,1)=0 AND HJ_53=1 AND BARSCOUNT(CLOSE)>9;
DRAWICON(HJ_51,LOW-HJ_4*4,25);
DRAWICON(HJ_54,LOW-HJ_4*4,26);
HJ_55:=CLOSE>REF(HIGH,2) AND HIGH>REF(HIGH,1);
HJ_56:=IF(HJ_8=9,BARSLAST(HJ_8=1),DRAWNULL);
HJ_57:=COUNT(HJ_55,HJ_56+5);
HJ_58:=IF(HJ_8=9,HJ_57,DRAWNULL);
HJ_59:=COUNT(HJ_55 AND HJ_18,HJ_17);
HJ_60:=REF(HJ_58,HJ_17)+HJ_59;
HJ_61:=REF(HJ_60,1)=12 AND HJ_60=13;
HJ_62:=BARSLAST(HJ_61);
DRAWICON(HJ_61,HIGH+HJ_3*6,27);
HJ_63:=BARSLAST(HJ_39=1);
HJ_64:=IF(HJ_39=1,REF(HIGH,HHVBARS(HIGH,HJ_17)),DRAWNULL);
STICKLINE(HJ_39=1,HIGH,HJ_64,0.5,(-1)),COLORLIGRAY;
STICKLINE(HJ_63>0 AND HJ_63<30,REF(HJ_64,HJ_63),REF(HJ_64,HJ_63),1,(-1)),COLORLIGRAY;
HJ_65:=BARSLAST(HJ_38=1);
HJ_66:=IF(HJ_38=1,REF(HIGH,HHVBARS(HIGH,13)),DRAWNULL);
STICKLINE(HJ_38=1,HIGH,HJ_66,0.5,(-1)),COLORGREEN;
STICKLINE(HJ_65>0 AND HJ_65<30,REF(HJ_66,HJ_65),REF(HJ_66,HJ_65),1,(-1)),COLORGREEN;
HJ_67:=BARSLAST(HJ_8=18);
HJ_68:=IF(HJ_8=18,REF(HIGH,HHVBARS(HIGH,21)),DRAWNULL);
STICKLINE(HJ_8=18,HIGH,HJ_68,0.5,(-1)),COLORYELLOW;
STICKLINE(HJ_67>0 AND HJ_67<30,REF(HJ_68,HJ_67),REF(HJ_68,HJ_67),1,(-1)),COLORYELLOW;
HJ_69:=IF(HJ_61,REF(HIGH,HHVBARS(HIGH,13)),DRAWNULL);
STICKLINE(HJ_61,HIGH,HJ_69,0.5,(-1)),COLORWHITE;
STICKLINE(HJ_62>0 AND HJ_62<30,REF(HJ_69,HJ_62),REF(HJ_69,HJ_62),1,(-1)),COLORWHITE;
{-----------------------------------}

 



未来函数检测结果如下:
该公式包含未来函数:BACKSET
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网仅为互联网文章,所有指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。指标公式网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图