提前MACD(源码 主图/副图 通达信)
-
相关简介:提前MACD(源码 主图/副图 通达信) {提前MACD} DIF:=(EMA(C,3)-EMA(L,30))/EMA(L,30)*600; DEA:=EMA(DIF,7); BC:=2*(DIF-DEA); DQS:=3*DEA-2*DIF; 信号:DIF,COLORWHITE; 平滑:DEA,COLORYELLOW; 倍差:BC,COLORLIMAGENTA,NODRAW; 趋势:DQS,COLORCYAN,NODRAW; BC1:=MA(BC,2); BC2:=IF(WINNER(C*0.
-
文章来源:股海网作者:股海网发布时间:2020-02-01浏览次数:
提前MACD(源码 主图/副图 通达信)
{MACD主图}
ZIF:=EMA(C,12)-EMA(C,26);
ZEA:=EMA(ZIF,9);
ZBC:=2*(ZIF-ZEA);
ZJS:=1.25*ZIF-0.25*ZEA;
ZXH:=(ZJS*13*27-27*11*EMA(C,12)+13*25*EMA(C,26))/28,COLORWHITE;
ZPH:=(ZIF*13*27-27*11*EMA(C,12)+13*25*EMA(C,26))/28,COLORYELLOW;
ZQS:=(ZEA*13*27-27*11*EMA(C,12)+13*25*EMA(C,26))/28,COLORCYAN;
ZNX:=(ZXH+ZQS)/2,COLORMAGENTA;
信号:ZXH,COLORFFFFFF,LINETHICK1;
平滑:ZPH,COLOR00FFFF,LINETHICK1;
牛熊:ZNX,COLORFF00FF,LINETHICK1;
趋势:ZQS,COLORFFFF00,LINETHICK1;
DRAWKLINE(H,O,L,C);
|