乖离率辨顶底 副图指标 源码 贴图介绍
乖离率辨顶底 副图指标 源码 贴图
本副图指标是建立在试探运用大家熟悉的乖离率指标变化来大概显示个股走势的顶底,试图能初步较明显的用乖离率的指标特点帮助我判断持股或持币的操盘时机。不为别的,就图简洁。(因水平有限,指标仅供学员们参考)
源码:
STICKLINE(C>0,0,-1,4,0),COLOR885566;
STICKLINE(C>0,-1,-2,4,0),COLORAA7766;
STICKLINE(C>0,-2,-3,4,0),COLORCC9966;
STICKLINE(C>0,-3,-4,4,0),COLOREE00BB;
STICKLINE(C>0,0,1,4,0),COLOR220044;
STICKLINE(C>0,1,2,4,0),COLOR440044;
STICKLINE(C>0,2,3,4,0),COLOR660044;
STICKLINE(C>0,3,4,4,0),COLOR00EE00;
BIAS1:=(C-MA(C,6))/MA(C,6)*100;
BIAS2:=(C-MA(C,12))/MA(C,12)*100;
BIAS3:=(C-MA(C,24))/MA(C,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离: MA(BIAS,3),NODRAW;
STICKLINE(乖离<-5 ,0,-1,2,0),COLORFF0000;
STICKLINE(乖离<-10,-1,-2,2,0),COLOR00FF00;
STICKLINE(乖离<-15,-2,-3,2,0),COLORFFFF00;
STICKLINE(乖离<-17,-3,-4,2,0),COLORRED;
STICKLINE(乖离>3.5,0,1,2,0),COLORFF00FF;
STICKLINE(乖离>5,1,2,2,0),COLORRED;
STICKLINE(乖离>8,2,3,2,0),COLOR00FFFF;
STICKLINE(乖离>12,3,4,2,0),COLORFFFFFF;
STICKLINE(C>0,1,1,2,0),COLOR00FFFF;
STICKLINE(C>0,2,2,2,0),COLOR00FFFF;
STICKLINE(C>0,3,3,2,0),COLOR00FFFF;
STICKLINE(C>0,-1,-1,2,0),COLORFFFFFF;
STICKLINE(C>0,-2,-2,2,0),COLORFFFFFF;
STICKLINE(C>0,-3,-3,2,0),COLORFFFFFF;
0;
4;
-4;
gd18562