飞狐重新整合量方差+CCI+WR,副图,源码
本指标是对前期所发做多做空指标的优化,一是加入了量标准差,就是彩带和标准差线及强弱线,二是对WR的参数进行了优化。用法说明,量方差中的白线基本要求是要在强弱线上运行,在绿彩带上方运行较好,在红彩带上方运行更好;第二要看CCI与WR的关系这是波段操作的好依据,CCI上穿WR是较好的买点,此外在参照CCI与WR的数值。
均价:=(2*C+(C+H+L+O)/4+O)/4;
R:=(2*L+3*均价)/5;R1:=(2*H+3*均价)/5;
kX:=(R+R1)/2;
ZJ1:=AMOUNT/VOL/100;
ZJ3:=SUM(AMOUNT,35)/ZJ1/100;
ZJ4:=DMA(KX,VOL/ZJ3);
ZJ:=100*(KX-ZJ4)/ZJ4;
上轨:(MA(ZJ,20)+STDP(ZJ,20)),COLORYELLOW;
下轨:(MA(ZJ,20)-STDP(ZJ,20)),COLORGREEN;
强轨:(MA(ZJ,20)+1.7*STDP(ZJ,20)),COLORRED;
弱轨:(MA(ZJ,20)-1.7*STDP(ZJ,20)),COLORCYAN;
FILLRGN(KX,上轨,下轨),COLORBLUE;
FILLRGN(KX,上轨,强轨),COLORBROWN;
FILLRGN(KX,弱轨,下轨),COLORAAAA00;
标准线:ZJ,COLORWHITE,LINETHICK2;
强弱线:(上轨+下轨)/2,LINEDASHDOT,COLORYELLOW;
CCI:(R-MA(R,84))/(0.015*AVEDEV(R,84))/20,COLORYELLOW,LINETHICK2;
做多:(3*SMA(CCI,2,1)+2*SMA(SMA(CCI,2,1),2,1))/5,COLORMAGENTA,LINETHICK;
PARTLINE(CCI<做多,CCI),COLORFFCCAA,LINETHICK2;
WR1:(100*(HHV(R1,42)-KX)/(HHV(R1,42)-LLV(R,42)))/20*5-10,COLORMAGENTA,LINETHICK2;
做空:(3*SMA(WR1,2,1)+2*SMA(SMA(WR1,2,1),2,1))/5,COLOR00bb00,LINETHICK;
PARTLINE(WR1>做空,wr1),COLOR00bb00,LINETHICK2;
0,COLORYELLOW;5,COLOR6600FF,LINEDOT;