以下是通达信微分BIAS公式
通达信微分BIAS公式
源码
BIAS1:=(C-MA(C,12))/MA(C,12)*100;
BIAS2:=(C-MA(C,14))/MA(C,14)*100;
BIAS3:=(C-MA(C,24))/MA(C,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
DRAWBAND(BIAS,255,0,RGB(34,139,34));
电:=SUM(BIAS1+BIAS2+BIAS3,1);
乖离:MA(电,2),NODRAW;
STICKLINE(乖离<-6 AND 乖离>=-12,4,0,3,0),COLORWHITE;
STICKLINE(乖离<-12 AND 乖离>=-20,5,1,3,0),COLOR0099FF;