【资料名称】:通达信无敌BOLL指标 主图 源码 附图介绍【资料描述】:
通达信无敌BOLL指标 主图 源码 附图
N:=10;
M:=3;
XA_1:=CLOSE=HHV(CLOSE,4) AND REF(CLOSE,1)=LLV(CLOSE,4);
XA_2:=CLOSE=LLV(CLOSE,4) AND (REF(CLOSE,1)<REF(CLOSE,2) OR REF(CLOSE,1)<REF(CLOSE,3)) OR REF(CLOSE,1)=LLV(CLOSE,4) AND CLOSE<REF(CLOSE,2) OR REF(CLOSE,2)=LLV(CLOSE,4) AND REF(CLOSE,1)=HHV(CLOSE,4) AND CLOSE<REF(CLOSE,1) OR REF(CLOSE,3)=LLV(CLOSE,4) AND CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
XA_3:=REF(CLOSE,1)=LLV(CLOSE,4) AND CLOSE>=REF(CLOSE,2) OR REF(CLOSE,2)=LLV(CLOSE,4) AND REF(CLOSE,1)<=REF(CLOSE,3) AND REF(CLOSE,2)<REF(CLOSE,4) AND CLOSE>=REF(CLOSE,1);
XA_4:=(3*CLOSE+LOW+OPEN+HIGH)/6;
XA_5:=(20*XA_4+19*REF(XA_4,1)+18*REF(XA_4,2)+17*REF(XA_4,3)+16*REF(XA_4,4)+15*REF(XA_4,5)+14*REF(XA_4,6)+13*REF(XA_4,7)+12*REF(XA_4,8)+11*REF(XA_4,9)+10*REF(XA_4,10)+9*REF(XA_4,11)+8*REF(XA_4,12)+7*REF(XA_4,13)+6*REF(XA_4,14)+5*REF(XA_4,15)+4*REF(XA_4,16)+3*REF(XA_4,17)+2*REF(XA_4,18)+REF(XA_4,20))/210;
XA_6:=CLOSE-REF(CLOSE,1);
XA_7:=100*EMA(EMA(XA_6,6),6)/EMA(EMA(ABS(XA_6),6),6);
XA_8:=EMA(XA_5,13);
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,3,0),COLORRED;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,0.5,0),COLORCC66FF;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,3,0),COLORFF9900;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.5,0),COLORFFCC00;
STICKLINE(XA_1,CLOSE,(OPEN+CLOSE)/2,3,0),COLORFF11FF;
STICKLINE(XA_1,CLOSE,(OPEN+CLOSE)/2,0.5,0),COLORFFDDFF;
STICKLINE(XA_2,CLOSE,(OPEN+CLOSE)/2,3,0),COLOR999999;
STICKLINE(XA_2,CLOSE,(OPEN+CLOSE)/2,0.5,0),COLORFFBBFF;
STICKLINE(XA_3,OPEN,(OPEN+CLOSE)/2,3,0),COLOR00BB00;
STICKLINE(XA_3,OPEN,(OPEN+CLOSE)/2,0.5,0),COLORGREEN;
XA_9:=LLV(HIGH,240);
XA_10:=100*(CLOSE-XA_3)/XA_3;
XA_11:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;
XA_12:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;
XA_13:=0;
XA_14:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
XA_15:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;
XA_16:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
XA_17:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
XA_18:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
XA_19:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
XA_20:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
XA_21:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
XA_22:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
XA_23:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
XA_24:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
XA_25:=EMA(CLOSE,2)-EMA(CLOSE,150);
XA_26:=CLOSE;
BBIBOLL:(MA(XA_26,3)+MA(XA_26,6)+MA(XA_26,12)+MA(XA_26,24))/4;
UPR:BBIBOLL+M*STD(BBIBOLL,N);
DWN:BBIBOLL-M*STD(BBIBOLL,N);
XA_27:=CLOSE=HHV(CLOSE,13);
XA_28:=BARSLAST(FILTER(CROSS(0.8,XA_27),2))+1;
高点:REF(CLOSE,XA_28),POINTDOT,COLORMAGENTA;
突破:CROSS(CLOSE,REF(高点,1)),NODRAW,COLORYELLOW;
STICKLINE(XA_28<=6,高点,高点,3,0),COLORMAGENTA;
DRAWTEXT(突破,LOW,162),COLORYELLOW;
XA_29:=CLOSE=LLV(CLOSE,13);
XA_30:=BARSLAST(FILTER(CROSS(0.8,XA_29),2))+1;
低点:REF(CLOSE,XA_30),POINTDOT,COLORGREEN;
STICKLINE(XA_30<=6,低点,低点,3,0),COLORGREEN;
XA_31:=REF(CLOSE,1);
XA_32:=SMA(MAX(CLOSE-XA_31,0),3,1)/SMA(ABS(CLOSE-XA_31),3,1)*100;
XA_33:=EMA(CLOSE,3);
XA_34:=EMA(CLOSE,21);
DRAWTEXT(CROSS(XA_33,XA_34),LOW*0.99,163),COLORRED;
DRAWRECTREL(0,480,205,589,RGB(10,1,30));
XA_35:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,0),FROMOPEN);
XA_36:=-SUM(IF(CLOSE<REF(CLOSE,1),VOL,0),FROMOPEN);
XA_37:=XA_35+XA_36;
DRAWBAND(XA_37,RGB(150,0,150),0,RGB(0,100,0)),NODRAW;
资金流量:XA_37,NODRAW;
资金比:XA_37/SUM(VOL,FROMOPEN)*100,NODRAW;
XA_38:=IF(资金比>=0,(资金比+100)/2,100-ABS((资金比-100)/2));
XA_39:=(HSCOL*0.5+REF(HSCOL,1)*0.33+REF(HSCOL,2)*0.17)*SUM(CLOSE,FROMOPEN)/FROMOPEN;
XA_40:=SUM(IF(CLOSE>REF(CLOSE,1),XA_39*VOL,0),FROMOPEN);
XA_41:=-SUM(IF(CLOSE<REF(CLOSE,1),XA_39*VOL,0),FROMOPEN);
攻击流量:XA_40+XA_41,NODRAW;
NOTEXT攻击线:攻击流量,NODRAW;
攻击比:攻击流量/SUM(VOL,FROMOPEN)*100,NODRAW,COLORRED;
XA_42:=IF(攻击比>=0,攻击比+50,100-ABS(攻击比-50));
DRAWRECTREL(20,570,180,540,RGB(0,75,200));
DRAWRECTREL(20,570,30,540,RGB(0,250,50));
DRAWRECTREL(20,570,15+CONST(XA_38*150/100),540,RGB(200,50,0));
DRAWTEXT_FIX(1,0,0.5,0,STRCAT(STRCAT(165,CON2STR(XA_38,2)),166)),COLORYELLOW;
DRAWTEXT_FIX(1,5,0.9,0,EXTERNSTR(0,5)),COLORRED;
DRAWTEXT_FIX(1,0,0.2,0,EXTERNSTR(0,5)),COLORRED;
XA_43:=SMA(MAX(CLOSE-REF(CLOSE,1),0),3,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),3,1)*100;
DRAWTEXT(CROSS(88,XA_43) AND MA(CLOSE,3)>EMA(CLOSE,3),HIGH+0.3,168),COLORGREEN;
DRAWTEXT(REF(CLOSE,BARSLAST(REF(CROSS(MACD.DIF,MACD.DEA),1))+1)>CLOSE AND REF(MACD.DIF,BARSLAST(REF(CROSS(MACD.DIF,MACD.DEA),1))+1)<MACD.DIF AND CROSS(MACD.DIF,MACD.DEA)>0,LOW-0.02,169),COLORRED;
DRAWTEXT(REF(CLOSE,BARSLAST(REF(CROSS(KDJ.K,KDJ.D),1))+1)>CLOSE AND REF(KDJ.K,BARSLAST(REF(CROSS(KDJ.K,KDJ.D),1))+1)<KDJ.K AND CROSS(KDJ.K,KDJ.D),LOW-0.1,170),COLORBLUE;
DRAWTEXT(REF(CLOSE,BARSLAST(REF(CROSS(RSI.RSI1,RSI.RSI2),1))+1)>CLOSE AND REF(RSI.RSI1,BARSLAST(REF(CROSS(RSI.RSI1,RSI.RSI2),1))+1)<RSI.RSI1 AND CROSS(RSI.RSI1,RSI.RSI2)>0,LOW-0.18,171);
DRAWTEXT(REF(CLOSE,BARSLAST(REF(CROSS(MACD.DEA,MACD.DIF),1))+1)<CLOSE AND REF(MACD.DIF,BARSLAST(REF(CROSS(MACD.DEA,MACD.DIF),1))+1)>MACD.DIF AND CROSS(MACD.DEA,MACD.DIF)>0,HIGH+0.16,172),COLORGREEN;
DRAWTEXT(REF(CLOSE,BARSLAST(REF(CROSS(KDJ.D,KDJ.K),1))+1)<CLOSE AND REF(KDJ.K,BARSLAST(REF(CROSS(KDJ.D,KDJ.K),1))+1)>KDJ.K AND CROSS(KDJ.D,KDJ.K)>0,HIGH+0.08,173);
gd45078
【下载地址隐藏】: 点:回复可见地址