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);
乖深低:=IF(乖离<=-8,-0.35,0),LINETHICK1,COLORGREEN;
乖浅低:=IF(BETWEEN(BIAS,-2,-8),-0.2,0),LINETHICK1,COLORLIGRAY;
乖买:=REF(乖浅低=-0.2,1)AND BIAS>REF(BIAS,1);
乖低金:crOSS(BIAS,乖离) AND REF(乖离< -4.5,1),COLORRED;