D_1:=MACD~ H AND H =DE_M AND DE_M
D_2:=MACD~ H AND H =L AND L DE_M;
{www.9m8.cn 九毛八公式指标网 股票软件下载网_通达信股票指标公式}
D_3:=H MACD~ AND MACD~ =L AND L DE_M;
D_4:=H MACD~ AND MACD~ DE_M AND DE_M
STICKLINE(D_1 0,H,DE_M,0,0),COLORYELLOW;
STICKLINE(D_2,H,L,0,0),COLORYELLOW;
STICKLINE(D_3,MACD~,L,0,0),COLORYELLOW;
STICKLINE(D_4,MACD~,DE_M,0,0),COLORYELLOW;
D_5:=MACD~ L AND L =DE_M AND DE_M
D_6:=MACD~ L AND H DE_M;
D_7:=L MACD~ AND MACD~ =H AND H DE_M;
D_8:=L MACD~ AND MACD~ DE_M AND DE_M
STICKLINE(MACD~ DE_M,DE_M,MACD~,0,0),COLORAA00AA;
STICKLINE(D_5,DE_M,L,0,0),COLORYELLOW;
STICKLINE(D_6,H,L,0,0),COLORYELLOW;
STICKLINE(D_7,H,MACD~,0,0),COLORYELLOW;
STICKLINE(D_8,DE_M,MACD~,0,0),COLORYELLOW;
L_00:DE_K;
L_20:JI_K/5+DE_K;
L_80:JI_K*4/5+DE_K;
L_100:JI_K+DE_K;
MAXV:=CONST(HHV(VOL,90));
MAXS:=CONST(HHV(HIGH,90));
BS:=MAXV/MAXS;
VOLUME:=VOL/BS*0.10;
ORIGIN:=CONST(LLV(LOW,0))-CONST(0.5*HHV(VOLUME,0)),;
STICKLINE(CLOSE =OPEN,ORIGIN,ORIGIN+VOLUME,0.2,0),COLORRED;
STICKLINE(CLOSE OPEN,ORIGIN,ORIGIN+VOLUME,0.2,0),COLORGREEN;