{dkzc多空之差}
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;0, ;
持股持币区:PDI-MDI;
IF(持股持币区<0,持股持币区,0),COLORGREEN, LINETHICK2;
IF(持股持币区>0,持股持币区,0),COLORff00ff, LINETHICK2;
stickline(持股持币区>0 and 持股持币区>ref(持股持币区,1),持股持币区,0,3,
0),colorff00ff;
{用法:
1.持股持币区>0,持股!
2.持股持币区<0,持币!
3.红柱做多;}