适时进出 百万主图 通达信指标 源码 贴图
适时进出 百万主图 通达信指标 源码 贴图
显示九转:=1;
显示上榜标志:=1;
XA_1:=AMOUNT/VOL/100;
XA_2:=REF(CLOSE,1)/CLOSE>1.04;
STICKLINE(XA_2,OPEN,CLOSE,1,0),COLORWHITE;
XA_3:=OPEN>CLOSE AND XA_1>REF(CLOSE,1);
STICKLINE(XA_3,OPEN,CLOSE,1,0),COLORRED;
XA_4:=LOW>REF(HIGH,1) AND NOT(HIGH=LOW);
XA_5:=BARSLAST(XA_4);
DRAWLINE(XA_5=0,LOW,XA_5=1,REF(LOW,1),1),DOTLINE,COLORBROWN,LINETHICK2;
XA_6:=REF(LOW,1)>HIGH;
XA_7:=BARSLAST(XA_6);
DRAWLINE(XA_7=0,HIGH,XA_7=1,REF(HIGH,1),1),DOTLINE,COLORMAGENTA,LINETHICK2;
XA_8:=CLOSE>REF(CLOSE,4);
XA_9:=BARSLASTCOUNT(XA_8);
XA_10:=XA_9=9;
XA_11:=ISLASTBAR AND BETWEEN(XA_9,1,8);
XA_12:=(BACKSET(XA_10>0,9) OR BACKSET(XA_11>0,XA_9))*XA_9;
DRAWTEXT(XA_12>0 AND 显示九转=1,HIGH*1.005,VAR2STR(XA_12,0)),COLORMAGENTA;
DRAWTEXT(XA_9=9 AND 显示九转=1,HIGH*1.005,1),COLORGREEN;
XA_13:=CLOSE<REF(CLOSE,4);
XA_14:=BARSLASTCOUNT(XA_13);
XA_15:=XA_14=9;
XA_16:=ISLASTBAR AND BETWEEN(XA_14,1,8);
XA_17:=(BACKSET(XA_15>0,9) OR BACKSET(XA_16>0,XA_14))*XA_14;
DRAWTEXT(XA_17>0 AND 显示九转=1,LOW*0.995,VAR2STR(XA_17,0)),COLORMAGENTA;
DRAWTEXT(XA_14=9 AND 显示九转=1,LOW*0.995,1),COLORGREEN;
XA_18:=MIN(LOW,REF(CLOSE,1));
XA_19:=MAX(HIGH,REF(CLOSE,1));
XA_20:=IF(XA_12,HIGH+(XA_19-XA_18),0);
XA_21:=IF(XA_17,LOW+(XA_19-XA_18),0);
XA_22:=BARSLAST(XA_20);
当前压力:DRAWLINE(XA_22=0,HIGH,XA_22=1,REF(HIGH,1),1),COLORBLUE,LINETHICK2;
XA_23:=BARSLAST(XA_21);
当前支撑:DRAWLINE(XA_23=0,LOW,XA_23=1,REF(LOW,1),1),COLORRED,LINETHICK2;
AB:DRAWLINE(HIGH>=HHV(HIGH,20),HIGH,LOW<=LLV(LOW,5),HHV(HIGH,5),1),DOTLINE,COLORWHITE;
XA_24:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
XA_25:=NAMELIKE(2) OR NAMELIKE(3) OR NAMELIKE(4) AND XA_24>=4.945;
XA_26:=NAMELIKE(2) OR NAMELIKE(3) OR NAMELIKE(4) AND XA_24<=(-4.945);
涨停价:IF(XA_25,REF(CLOSE,1)*1.05,REF(CLOSE,1)*1.1),NODRAW,COLORRED;
跌停价:IF(XA_26,REF(CLOSE,1)*0.95,REF(CLOSE,1)*0.9),NODRAW,COLORGREEN;
XA_27:=NAMELIKE(2)=1 OR NAMELIKE(3)=1 OR NAMELIKE(5)=1 OR NAMELIKE(6)=1 OR NAMELIKE(7)=1;
XA_28:=CLOSE/REF(CLOSE,1)>1.095 OR (CLOSE/REF(CLOSE,1)>1.0495 AND XA_27);
XA_29:=REF(CLOSE,1)/CLOSE>1.0995 AND REF(CLOSE,1)/CLOSE<1.1 OR (REF(CLOSE,1)/CLOSE>1.0495 AND XA_27);
STICKLINE(XA_28,CLOSE,OPEN,3,0),COLORMAGENTA;
STICKLINE(XA_29,CLOSE,OPEN,3,0),COLORGREEN;
DRAWICON(HIGH=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE!=HIGH,LOW*0.965,15);