飞狐玄黄成本Ⅰ/玄黄成本Ⅱ副图指标
-
相关简介:飞狐玄黄成本Ⅰ/玄黄成本Ⅱ副图指标 源码 {玄黄成本Ⅰ} Var2:=AMOUNT/VOL/100; Var3:=SUMBARS(VOL,CAPITAL*1.618); Var4:=IF(Var3100,1.033,IF(Var3=100 AND Var333,1.039,1.05)); 短期: MA(Var2,10); 长期: EMA(Var2,34)*Var4; 趋势: DMA(长期,VOL/CAPITAL); {玄黄成本Ⅱ} 周期:=sumbars(vol,capital); 总额:=s
-
文章来源:股海网作者:股海网发布时间:2016-04-01浏览次数:
飞狐玄黄成本Ⅰ/玄黄成本Ⅱ副图指标
源码
{玄黄成本Ⅰ}
Var2:=AMOUNT/VOL/100;
Var3:=SUMBARS(VOL,CAPITAL*1.618);
Var4:=IF(Var3>100,1.033,IF(Var3<=100 AND Var3>33,1.039,1.05));
短期: MA(Var2,10);
长期: EMA(Var2,34)*Var4;
趋势: DMA(长期,VOL/CAPITAL);
{玄黄成本Ⅱ}
周期:=sumbars(vol,capital);
总额:=sum(amount,周期);
cb:=总额/100/capital;
平滑成本:=ma(cb,60);
cbgl:=(平滑成本-ma(c,5))/平滑成本;
玄黄成本乖离:cbgl,COLORSTICK;
中期底:0.4,POINTDOT;
短期顶:-0.2,POINTDOT;
中期顶:-0.4,POINTDOT;
短期底:0.2,POINTDOT;
DRAWICON(CROSS(玄黄成本乖离,中期底),中期底,1);
DRAWICON(CROSS(短期顶,玄黄成本乖离),短期顶,2);
DRAWICON(CROSS(玄黄成本乖离,短期底),短期底,1);
DRAWICON(CROSS(中期顶,玄黄成本乖离),中期顶,2);