出现黄柱且白线上传绿线买参考,出现绿柱且白线下破绿线卖参考。
使用时请结合其他技术指标、成交量、大盘走势等多因素进行综合判断。
MTR:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EMA(IF(HD 0 AND HD LD,HD,0),14);
DMM:=EMA(IF(LD 0 AND LD HD,LD,0),14);
PDI:DMP*100/MTR,colorwhite;
MDI:DMM*100/MTR,colorgreen;
ADX:= EMA(ABS(MDI-PDI)/(MDI+PDI)*100,6);
ADXR:=EMA(ADX,6);
STICKLINE(PDI,PDI,0,4,0),colorred;
20,DOTLINE;
40,DOTLINE;
STICKLINE(CROSS(20,PDI),PDI,0,4,0),colorgreen;
STICKLINE(CROSS(PDI,20),0,PDI,4,0),coloryellow;
上穿: CROSS(PDI,MDI),colorred,NODRAW;
下穿: CROSS(MDI,PDI),colorcyan,NODRAW;
DRAWICON(上穿,PDI,25);
DRAWICON(下穿,PDI,24);
顶: PDI 40,colorwhite,NODRAW;
底: MDI 40,colorcyan,NODRAW;
STICKLINE(PDI 40,40,PDI,4,0),colorwhite;
STICKLINE(MDI 40,0,PDI,4,0),colorcyan;