通达信股票之友S理论维修组——零延迟指标优化版源码
DIF:=(3*C+L+H)/(4*C+L+O+H);
MID:=DIF;
DKX1:=(5*MID+4*REF(MID,1)+3*REF(MID,2)+2*REF(MID,3)+1*REF(MID,4))/15;
DKX2:=(4*MID+3*REF(MID,5)+2*REF(MID,15)+1*REF(MID,45))/10;
DKMA:(MID-DKX2)*6.18,COLORSTICK;
红柱持仓:IF((MID-DKX1)>0,DKMA,DRAWNULL),LINETHICK3,COLORRED;
绿柱持币:IF((MID-DKX1)<0,DKMA,DRAWNULL),LINETHICK3,COLORGREEN;
DRAWICON(绿柱持币<0 AND 绿柱持币