以下是通达信捉妖金钻主图 金钻主图指标 源码

XA_1:=MA(CLOSE,5);
XA_2:=MA(CLOSE,36);
XA_3:=XA_2*0.99;
XA_4:=XA_2*0.97;
XA_5:=XA_3/XA_1;
XA_6:=XA_5>=1 AND XA_5<1.02;
XA_7:=CROSS(CLOSE,XA_1) AND CROSS(CLOSE,XA_3);
XA_8:=(HIGH+LOW)/2;
XA_9:=XA_3;
XA_10:=XA_6 AND XA_7 AND XA_3>XA_1 AND OPEN<XA_1;
XA_11:=FILTER(XA_10,40)*1;
DRAWTEXT(XA_11,LOW*0.99,’顶’),COLORYELLOW;
DRAWICON(XA_11,LOW*0.975,29);
DRAWTEXT_FIX(ISLASTBAR,0.5,0,0,HYBLOCK),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.55,0,0,DYBLOCK),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.6,0,0,GNBLOCK),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.5,0.03,0,FGBLOCK),COLORMAGENTA;
A3:MA(CLOSE,3),DOTLINE;
A13:MA(CLOSE,13),DOTLINE;
A21:MA(CLOSE,21),DOTLINE;
XA_12:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
XA_13:=BARSLASTCOUNT(CLOSE>REF(CLOSE,1));
XA_14:=CLOSE>REF(CLOSE,1);
XA_15:=XA_14*XA_12;
XA_16:=SUM(XA_15,XA_13) AND REFXV(CLOSE<REF(CLOSE,1),1);
XA_17:=SUM(XA_15,XA_13);
DRAWTEXT(XA_16=1 AND XA_13>=3 AND XA_17<=10,HIGH*1.01,VARCAT(VAR2STR(XA_17,1),’顶2′)),COLORMAGENTA;
DRAWTEXT(XA_16=1 AND XA_13>=3 AND XA_17>10,HIGH*1.01,VARCAT(VAR2STR(XA_17,1),’3′)),COLORYELLOW;
XA_18:=BARSLASTCOUNT(CLOSE<REF(CLOSE,1));
XA_19:=CLOSE<REF(CLOSE,1);
XA_20:=XA_19*XA_12;
XA_21:=SUM(XA_20,XA_18) AND REFXV(CLOSE>REF(CLOSE,1),1);
XA_22:=SUM(XA_20,XA_18);
DRAWTEXT(XA_21=1 AND XA_18>=3 AND XA_22<(-10),LOW*0.99,VARCAT(VAR2STR(XA_22*(-1),1),’买’)),COLORGREEN;
DRAWTEXT_FIX(1,0.915,0.93,0,’3-‘),COLORYELLOW;
DRAWNUMBER_FIX(1,0.96,0.93,0,CONST(XA_13)),COLORRED;
DRAWTEXT_FIX(1,0.98,0.93,0,4),COLORYELLOW;
DRAWTEXT_FIX(1,0.915,1,0,5),COLORGREEN;
DRAWNUMBER_FIX(1,0.96,1,0,CONST(XA_18)),COLORGREEN;
DRAWTEXT_FIX(1,0.98,1,0,4),COLORGREEN;
XA_23:=REF(CLOSE,1);
XA_24:=CLOSE/REF(CLOSE,1)>1.099 AND HIGH>LOW;
XA_25:=IF(CLOSE>=1,10000,100000);
XA_26:=1.1*XA_23-49/XA_25;
XA_27:=1.05*XA_23-49/XA_25;
XA_28:=0.9*XA_23+51/XA_25;
XA_29:=0.95*XA_23+51/XA_25;
XA_30:=NAMELIKE(6) OR NAMELIKE(7);
XA_31:=IF(XA_30,CLOSE>=XA_27,CLOSE>=XA_26);
XA_32:=IF(XA_30,CLOSE<=XA_29,CLOSE<=XA_28);
XA_33:=IF(XA_30,HIGH>=XA_27,HIGH>=XA_26);
XA_34:=IF(XA_30,LOW<=XA_29,LOW<=XA_28);
STICKLINE(XA_33,HIGH,MAX(CLOSE,OPEN),0,0),COLORMAGENTA;
STICKLINE(XA_34,LOW,MIN(CLOSE,OPEN),0,0),COLORLICYAN;
STICKLINE(XA_31,OPEN,CLOSE,1,0),COLORMAGENTA;
STICKLINE(XA_32,OPEN,CLOSE,1,0),COLORLICYAN;

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