飞狐玄黄未完副图指标
源码
TR := SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);
HD := HIGH-REF(HIGH,1);
LD := REF(LOW,1)-LOW;
DMP:= SUM(IF(HD>0 AND HD>LD,HD,0),14);
DMM:= SUM(IF(LD>0 AND LD>HD,LD,0),14);
PDI:=DMP*100/TR;
MDI:=DMM*100/TR;
gg1:=pdi-mdi;
gg:=ma(gg1,34);
空头量:if(cross(10,gg),0,gg), linethick2;
多头量:if(cross(gg,-30) or cross(gg,-17) ,0,gg), linethick2;
多头衰竭:7,CROSSDOT,colorred;
空头衰竭:-20,CROSSDOT,colorgreen ;