以下是通达信波段宝塔 (副图指标 源码)
波段宝塔 源码
VAR1:=IF((DATE>9999999),0,1);
VAR2:=C=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)>HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND C<REF(C,1) AND C<REF(C,2);
强弱分水线:0, LINETHICK1,POINTDOT,COLOR808080,LINETHICK5;
M:=15;
开:=(((OPEN)/(MA(CLOSE,M))-1)*(1000))*(VAR1);
高:=(((HIGH)/(MA(CLOSE,M))-1)*(1000))*(VAR1);
低:=(((LOW)/(MA(CLOSE,M))-1)*(1000))*(VAR1);
收:=(((CLOSE)/(MA(CLOSE,M))-1)*(1000))*(VAR1);
B1:=REF(收,1);
B2:=REF(收,2);
B3:=REF(收,3);
B4:=REF(收,4);
CMAX:=MAX(MAX(MAX(收,B1),B2),B3);
CMIN:=MIN(MIN(MIN(收,B1),B2),B3);
白实体底买入:0,COLORFFFFFF;
STICKLINE(((B1=CMIN) AND (收>=B2) OR ((B2=CMIN) AND (B1<=B3) OR (B3=CMIN) AND (B1<=B2)) AND (B2<B4) AND (收>=B1)),B1,B2,3.1,0),COLORFFFFFF;
红色实体持股:0,COLOR0000FF;
STICKLINE(((((收=CMAX) AND ((B1>=B2) OR (B1>=B3)) OR (B1=CMAX) AND ((B2=CMIN) OR (B3=CMIN)) AND (收>=B2)) OR (B2=CMAX) AND (B3=CMIN) AND (收>=B1)) OR (B3=CMAX) AND (收>=B1) AND (收>=B2)),B1,收,2,0),COLOR0000FF;
STICKLINE(C>O,B1,B2,2,0),COLORRED;
金色实体变盘:0,COLOR0099EF;
STICKLINE((收=CMAX) AND (B1=CMIN),B2,收,3,0),COLOR0099EF;
鲜绿顶抛售:0,COLOR00FF00;
STICKLINE(((B1=CMAX) AND (收<B2) OR ((B2=CMAX) AND (B1>B3) OR(B3=CMAX) AND (B1>B2)) AND (B2>=B4) AND (收<B1)),B1,B2,3.2,0),COLOR00FF00;
绿色实体下跌:0,COLOR009900;
STICKLINE((B1=CMAX) AND (收=CMIN),B2,收,3,0),COLOR009900;
天蓝框下跌:0,COLORFFFF00;
STICKLINE(((((收=CMIN) AND ((B1<B2) OR (B1<B3)) OR (B1=CMIN) AND ((B2=CMAX) OR (B3=CMAX)) AND (收<B2)) OR (B2=CMIN) AND (B3=CMAX) AND (收<B1)) OR (B3=CMIN) AND (收<B1) AND (收<B2)),B1,收,3,1),COLORFFFF00;
灰实体庄家洗盘:0,COLOR333333;
STICKLINE(VAR2,B1,B2,4,0),COLOR333333;
蓝实体无量下跌:0,COLORBLUE;
STICKLINE(OPEN>=CLOSE ,B1,B2,2,0 ),COLORBLUE;
评论(0)