本指标根据macd的原理,把量加了进去,看起来更平滑,但也有其缺陷,大家可以比较。能直观看出量的变化

源码

VC:=(REF(C,4)*REF(V,4)+REF(C,3)*REF(V,3)+REF(C,2)*REF(V,2)+REF(C,1)*REF(V,1)+C*V)/(V+REF (V,1)+REF(V,2)+REF(V,3)+REF(V,4));
SQX:=(VC-MA(VC,14))*100;
DIF:MA(SQX,4),COLORWHITE;
DEA:EMA(DIF,5),COLORYELLOW;
MACD:(DIF-DEA)*2,linethick0;
STICKLINE(macd>0  and  macd>ref(macd,1),0,macd,8,0),COLORred;
STICKLINE(macd>0  and   macd<ref(macd,1),0,macd,8,1),COLORred;
STICKLINE(macd<0  and macd<ref(macd,1),0,macd,8,0),COLORgreen;
STICKLINE(macd<0  and macd>ref(macd,1),0,macd,8,1),COLORgreen;
VAR1:=HHV(DEA,53);
VAR2:=LLV(DEA,55);
VAR3:=DEA-(DIF-DEA);
DEA高点延长线:IF(DIF>VAR1 AND DEA=VAR1,MAX(LLV (VAR1,10),VAR3),VAR1),LINEDOT,ColorEA91B5,LINETHICK1;
DEA低点延长线:IF(DIF<VAR2 AND DEA=VAR2,MIN(HHV (VAR2,10),VAR3),VAR2),COLOR00FFFF,LINEDOT,LINETHICK1;


声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。