飞狐量价MACD指标公式

[复制链接]
查看95 | 回复0 | 2021-8-21 12:40:14 | 显示全部楼层 |阅读模式

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;

202108211159.jpg

202108211159.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则