飞狐均线乖离双周期显示,副图,源码
-
相关简介:飞狐均线乖离双周期显示,副图,源码 为了使均线乖离在一个图显示二个周期的乖离情况,便于短长结合分析,而做此指标,当参数N为1时,显示的短周期乖离,调整参数N为2或0时,则显示的长周期均线乖离.而均线的长短则由自己决定. 这里的均线选择仅供参考. 均价:=(C+if(H=C,C,H)+if(L=C,C,L)+O)/4; AAA:=(WMA(均价,2.5)+WMA(均价,5)+wMA(均价,10)+WMA(均价,20))/4; lxx:=(REF(AAa,2)+REF(AAa,1)+REF(AAa,
-
文章来源:股海网作者:股海网发布时间:2012-10-16浏览次数:
飞狐均线乖离双周期显示,副图,源码
为了使均线乖离在一个图显示二个周期的乖离情况,便于短长结合分析,而做此指标,当参数N为1时,显示的短周期乖离,调整参数N为2或0时,则显示的长周期均线乖离.而均线的长短则由自己决定.
这里的均线选择仅供参考.
均价:=(C+if(H=C,C,H)+if(L=C,C,L)+O)/4;
AAA:=(WMA(均价,2.5)+WMA(均价,5)+wMA(均价,10)+WMA(均价,20))/4;
lxx:=(REF(AAa,2)+REF(AAa,1)+REF(AAa,0))/3,COLORYELLOW;
AA:=(WMA(均价,5)+WMA(均价,10)+WMA(均价,20)+WMA(均价,30)+WMA(均价,60)+WMA(均价,120))/6;
轴心线:=(REF(AA,10)+REF(AA,5)+REF(AA,0))/3,COLORYELLOW,PRECISION2;
lx:=IF(n=1,lxx,轴心线);
go:=O-lx;
gh:=h-lx;
gl:=l-lx;
gc:=c-lx;
GK:(go+gh+gl+gc)/4,COLORWHITE;
mGK:wMA(GK,3),COLORYELLOW;
mGK3:wMA(MGK,3),COLORMAGENTA;
信号:IF(CROSS(MA(GK,2),0),MA(C,2),0),LINETHICK;
STICKLINE(GC>=GO,GL,GH,0.1,0),COLORRED;
STICKLINE(GC>GO,GO,GC,6,0),COLORRED;
STICKLINE(GC>GO,GO,GC,2,0),COLORCC66FF;
STICKLINE(GC<GO,GO,GC,6,0),COLORAAAA00;
STICKLINE(GC<GO,GO,GC,2,0),COLORFFCCAA;
STICKLINE(GC<GO,GL,GH,0.1,0),COLORCYAN;
变线:0,COLORWHITE;