再给一指标差价乖离,飞狐源码
-
相关简介:再给一指标差价乖离,飞狐源码 重心:=IF(C(H+L+C)/3,(H*0.618+L*0.382)*0.382,(H*0.382+L*0.618)*0.382)+(O+C)/2*0.618,POINTDOT,LINETHICK3; 均价:=AMOUNT/(VOL*100); 折价:=if(INDEXC=C,(重心+2*c)/3,(重心+均价+c)/3); 差价:(折价-(HHV(H,36)+LLV(L,36))/2)/((HHV(H,36)+LLV(L,36))/2)*100,LINETHIC
-
文章来源:股海网作者:股海网发布时间:2013-08-13浏览次数:
再给一指标差价乖离,飞狐源码
重心:=IF(C>(H+L+C)/3,(H*0.618+L*0.382)*0.382,(H*0.382+L*0.618)*0.382)+(O+C)/2*0.618,POINTDOT,LINETHICK3;
均价:=AMOUNT/(VOL*100);
折价:=if(INDEXC=C,(重心+2*c)/3,(重心+均价+c)/3);
差价:(折价-(HHV(H,36)+LLV(L,36))/2)/((HHV(H,36)+LLV(L,36))/2)*100,LINETHICK,COLORWHITE;
STICKLINE(差价>REF(差价,1),差价,REF(差价,1),6,0),COLORBROWN;
STICKLINE(差价<REF(差价,1),差价,REF(差价,1),6,0),COLORAAAA00;
JC1:=Ema(Dma(差价,(sum(VOL,1)/(SUM(AMOUNT,2)/(MA(均价,2)*100)))),3);
JC2:=Ema(Dma(差价,(sum(v,2)/(SUM(AMOUNT,3)/(MA(均价,3)*100)))),3);
JC3:=Ema(Dma(差价,(sum(v,3)/(SUM(AMOUNT,4)/(MA(均价,4)*100)))),3);
JC4:=Ema(Dma(差价,(sum(v,4)/(SUM(AMOUNT,5)/(MA(均价,5)*100)))),3);
JC:(JC1+JC2+JC3+JC4)/4,COLOR00CCCC;
MA2:=EMA(JC,2);
MA3:=EMA(MA2,2);
MA4:=EMA(MA3,2);
MA5:=EMA(MA4,2);
MA6:=EMA(MA5,2);
平衡:(JC+MA2+MA3+MA4+MA5+MA6)/6,COLOR6600FF;
启动线:0,COLOR00bb00;
起爆:12,LINEDOT,COLORMAGENTA;顶线:24,LINEDOT,COLORFF0080;反弹:-12,LINEDOT,COLORCYAN;底线:-24,LINEDOT,COLORGRAY;