通达信暴涨波段指标主图加副图公式源码

N:=20;
M1:=30;
P1:=80;
P2:=100;
VAR11:=(C+H+O+L)/4;
卖出:XMA(VAR11,N)*(1+P1/1000),COLORGREEN,LINETHICK2;
买入:XMA(VAR11,M1)*(1-P2/1000),COLORMAGENTA,LINETHICK2;
幅度:100*(卖出-买入)/买入,NODRAW;
MA11:=MA(VAR11,3);
STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),3,0),COLORGREEN;
STICKLINE(卖出>MIN(C,O) AND 卖出<MAX(C,O),卖出,MAX(OPEN,CLOSE),3,0),COLORGREEN;
STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,HIGH,0,0),COLORGREEN;
STICKLINE(卖出<LOW,OPEN,CLOSE,3,0),COLORGREEN;
STICKLINE(卖出<LOW,HIGH,LOW,0,0),COLORGREEN;
STICKLINE(买入>LOW AND 买入<HIGH,买入,MIN(MIN(OPEN,CLOSE),买入),3,0),COLORMAGENTA;
STICKLINE(买入>MIN(C,O) AND 买入<MAX(C,O),买入,MIN(OPEN,CLOSE),3,0),COLORMAGENTA;
STICKLINE(买入>LOW AND 买入<HIGH,买入,LOW,0,0),COLORMAGENTA;
STICKLINE(买入>HIGH,OPEN,CLOSE,3,0),COLORMAGENTA;
STICKLINE(买入>HIGH,HIGH,LOW,0,0),COLORMAGENTA;
中轨:MA(CLOSE,20),COLOR0080FF,LINETHICK2;
反弹: EMA(EMA(EMA(HIGH,5),5),5)*0.95,LINETHICK1;
超跌: EMA(EMA(EMA(HIGH,5),5),5)*0.9,COLORBLUE,LINETHICK1;
XG:=CROSS(买入,反弹);
DRAWICON(XG,OPEN-0.6,9);
DRAWTEXT(XG,(LOW -0.6),'暴张' ),COLORRED;

(0)

相关推荐