您现在的位置是:首页 > 股票股票

通信达公式编写 通达信主图划线突破指标

2021-06-20 22:58:47来源:股票学院原创作者:李子果z栏目:股票


3月30日讯

筹码95:COST(95);

筹码85:COST(85);

DRAWBAND(筹码95,RGB(110,139,61),筹码85,RGB(110,139,61));

DRAWKLINE(HIGH,OPEN,LOW,CLOSE);

VAR7:=VOL>=REF(VOL,1)*1.9 AND CLOSE>REF(CLOSE,1) AND CLOSE>OPEN AND MA(CLOSE,10)>REF(MA(CLOSE,10),1);

VAR8:=CONST(HHVBARS(VOL,30));

VAR9:=IF(CURRBARSCOUNT<=30+7,CONST(IF(VAR8=0,CLOSE,REF(CLOSE,VAR8))),DRAWNULL);

遇阻:IF(CURRBARSCOUNT=VAR8+1,VAR9,DRAWNULL),CROSSDOT;

AB:DRAWLINE(HIGH>=HHV(HIGH,20),HIGH,LOW<=LLV(LOW,5),HHV(HIGH,5),1),DOTLINE,COLORWHITE;

VAR10:=IF(REF(HIGH,1)=REF(HHV(HIGH,2),1),1,0);

VAR11:=IF(VAR10=1,REF(HIGH,1),REF(HIGH,2));

VAR12:=IF(REF(LOW,1)=REF(LLV(LOW,2),1),1,0);

VAR13:=IF(VAR12=1,REF(LOW,1),REF(LOW,2));

VAR14:=(VAR11+VAR13)/2;

VAR15:=IF(CLOSE<VAR14,VAR14,DRAWNULL);

VAR16:=CURRBARSCOUNT<=1;

VAR17:=CURRBARSCOUNT<=1;

VAR18:=IF(VAR16,VAR11,DRAWNULL);

VAR19:=IF(VAR16,VAR14,DRAWNULL);

VAR20:=IF(VAR16,VAR13,DRAWNULL);

上线2:IF(VAR17,VAR11,DRAWNULL);

中线2:IF(VAR17,VAR19,DRAWNULL);

下线2:IF(VAR17,VAR13,DRAWNULL);

STICKLINE(VAR17,上线2,上线2,20,(-1)),COLORLIBLUE;

STICKLINE(VAR17,中线2,中线2,20,(-1)),COLORYELLOW;

STICKLINE(VAR17,下线2,下线2,20,(-1)),COLORWHITE;

DRAWTEXT(VAR16,上线2,28),COLORLIBLUE;

DRAWTEXT(VAR16,中线2,29),COLORMAGENTA;

DRAWTEXT(VAR16,下线2,30),COLORWHITE;

VAR21:=AMOUNT/VOL/100;

VAR22:=OPEN>CLOSE AND VAR21>REF(CLOSE,1);

STICKLINE(VAR22,OPEN,CLOSE,1,0),COLORRED;

VAR23:=REF(CLOSE,1)/CLOSE>1.04;

STICKLINE(VAR23,OPEN,CLOSE,1,0),COLORWHITE;

VAR24:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;

VAR25:=NAMELIKE(2) OR NAMELIKE(3) OR NAMELIKE(4) AND VAR24>=4.945;

VAR26:=NAMELIKE(2) OR NAMELIKE(3) OR NAMELIKE(4) AND VAR24<=(-4.945);

涨停价:IF(VAR25,REF(CLOSE,1)*1.05,REF(CLOSE,1)*1.1),NODRAW,COLORRED;

跌停价:IF(VAR26,REF(CLOSE,1)*0.95,REF(CLOSE,1)*0.9),NODRAW,COLORGREEN;

VAR27:=NAMELIKE(2)=1 OR NAMELIKE(3)=1 OR NAMELIKE(5)=1 OR NAMELIKE(6)=1 OR NAMELIKE(7)=1;

VAR28:=CLOSE/REF(CLOSE,1)>1.097 OR (CLOSE/REF(CLOSE,1)>1.0495 AND VAR27) AND DYNAINFO(59)=0;

VAR29:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;

STICKLINE(VAR29<(-9.9),OPEN,CLOSE,3,0),COLORGREEN;

STICKLINE(VAR28,CLOSE,OPEN,3,0),COLORMAGENTA;

DRAWICON(HIGH=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE!=HIGH,LOW*0.965,15);

VAR30:="999999$OPEN";

VAR31:="999999$CLOSE";

VAR32:="999999$HIGH";

VAR33:="999999$LOW";

VAR34:=(REF(VAR31,1)-VAR31)/REF(VAR31,1)>0.00001;

DRAWTEXT(VAR28 AND VAR34 AND NOT(HIGH=LOW),HIGH*1.025,27),COLORWHITE;

VAR35:=HHV(VOL,21);

VAR36:=BARSLAST(VAR35=VOL);

高量:DRAWLINE(VAR36=0,MAX(CLOSE,OPEN),VAR36=1,MAX(REF(CLOSE,1),REF(OPEN,1)),1),COLORWHITE,LINETHICK2;

VAR37:=CONST(HHV(REF(HIGH,1),240));

VAR38:=CONST(LLV(REF(LOW,1),240));

VAR39:=VAR37-VAR38;

VAR40:=LOW-VAR39*0.03;

VAR41:=HIGH+VAR39*0.03;

VAR42:=CLOSE>500;

VAR43:=MAX(CLOSE,OPEN);

VAR44:=MIN(CLOSE,OPEN);

VAR45:=0;

VAR46:=1;

VAR47:=IF(VAR42,HIGH,VAR43);

VAR48:=IF(VAR42,LOW,VAR44);

VAR49:=IF(CLOSE>OPEN,IF(VAR46=0,LOW,VAR48),IF(VAR46=0,HIGH,VAR47));

VAR50:=2/1000;

VAR51:=CURRBARSCOUNT;

VAR52:=400;

VAR53:=VAR51<=VAR52;

VAR54:=LOW;

VAR55:=IF(VAR45=0,VAR54,REF(VAR45,VAR45));

基准价:IF(VAR53,CONST(VAR55),DRAWNULL),DOTLINE,COLORWHITE;

VAR56:=BETWEEN(CLOSE-AMOUNT/VOL/100,0.01,(-0.01)) AND NOT(HIGH=LOW) AND TOTALBARSCOUNT>10 AND VOL<REF(VOL,1)*0.7;

STICKLINE(VAR56,OPEN,CLOSE,1,0),COLORBLUE;

DRAWTEXT(VAR56,LOW*0.99,94),COLORBLUE;

VAR57:=OPEN>REF(CLOSE,1) AND VOL<REF(VOL,1) AND CLOSE<REF(CLOSE,1);

STICKLINE(VAR57,OPEN,CLOSE,1,0),COLORBROWN;

{DRAWTEXT(VAR57,HIGH*1.01,95),COLORBROWN;}

VAR58:=OPEN<REF(CLOSE,1) AND VOL<REF(VOL,1)*0.7 AND CLOSE>OPEN AND CLOSE<REF(CLOSE,1) AND REF(CLOSE,1)<REF(CLOSE,2) AND REF(OPEN,1)>REF(CLOSE,1);

STICKLINE(VAR58,OPEN,CLOSE,1,0),COLORCYAN;

DRAWTEXT(VAR58,LOW*0.99,96),COLORCYAN;

VAR59:=OPEN>REF(CLOSE,1) AND CLOSE>OPEN AND REF(CLOSE,1)>REF(CLOSE,2) AND VOL<REF(VOL,1);

STICKLINE(VAR59,OPEN,CLOSE,1,0),COLORRED;

DRAWTEXT(VAR59,HIGH*1.01,23),COLORRED;

VAR60:=REF(CLOSE,2)>REF(CLOSE,1) AND REF(OPEN,1)>REF(CLOSE,1) AND REF(CLOSE,3)>REF(CLOSE,2) AND REF(OPEN,2)>REF(CLOSE,2) AND CLOSE>OPEN AND CLOSE>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1) AND CLOSE>REF(OPEN,1) AND (VOL<REF(VOL,1) OR VOL<REF(VOL,2));

STICKLINE(VAR60,OPEN,CLOSE,1,0),COLORGREEN;

DRAWTEXT(VAR60,HIGH*1.01,97),COLORGREEN;

VAR61:=REF(VAR28,1) AND VOL=HHV(VOL,80) AND LOW>REF(HIGH,1) AND CLOSE>OPEN AND CLOSE/REF(CLOSE,1)>1.03 AND NOT(VAR28) AND CLOSE>AMOUNT/VOL/100;

STICKLINE(VAR61,OPEN,CLOSE,1,0),COLORWHITE;

DRAWTEXT(VAR61,HIGH*1.01,98),COLORWHITE;

VAR62:=DOWNNDAY(CLOSE,2) AND COUNT(OPEN>CLOSE,2)=2 AND REF(CLOSE,1)>=OPEN;

VAR63:=REF(VAR62,1) AND OPEN>REF(CLOSE,1) AND CLOSE>REF(CLOSE,1) AND VOL>REF(VOL,1)*1.9 AND CLOSE>REF(OPEN,2) AND DYNAINFO(4)>0;

VAR64:=DOWNNDAY(CLOSE,3) AND COUNT(OPEN>CLOSE,3)>=2;

VAR65:=REF(VAR64,1) AND OPEN>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2) AND VOL>REF(VOL,1)*1.9 AND CLOSE>REF(OPEN,3) AND DYNAINFO(4)>0;

STICKLINE(VAR63 OR VAR65,OPEN,CLOSE,3,0),COLORRED;

DRAWTEXT(VAR63 OR VAR65,HIGH*1.02,99),COLORRED;

VAR66:=IF(WEEKDAY=1 AND OPEN>REF(CLOSE,1) AND CLOSE>OPEN AND CLOSE/REF(CLOSE,1)>1.03 AND TOTALBARSCOUNT>20,1,0);

STICKLINE(VAR66,OPEN,CLOSE,3,0),COLORLIRED;

STICKLINE(VAR66,HIGH,LOW,0,0),COLORLIRED;

DRAWTEXT(VAR66,LOW*0.98,100),COLORLIRED;