同花顺改编PDI副图指标 源码
指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2017-11-01 11:58:00
公式简介:
出现黄柱且白线上传绿线买参考,出现绿柱且白线下破绿线卖参考。
使用时请结合其他技术指标、成交量、大盘走势等多因素进行综合判断。
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;
[url=http://www.goodgupiao.com/gupiaogongshi/47354.html][B]同花顺改编PDI副图指标 源码[/B][/url]