变动了一下,不知是不是这样才可以的
{参数设置:N1:2,250,5;N2:2,250,10;N3:2,250,20;N4:2,250,60;M:2,250,5}
BIAS1:=(CLOSE-MA(CLOSE,N1))/MA(CLOSE,N1)*100;
BIAS2:=(CLOSE-MA(CLOSE,N2))/MA(CLOSE,N2)*100;
BIAS3:=(CLOSE-MA(CLOSE,N3))/MA(CLOSE,N3)*100;
BIAS4:=(CLOSE-MA(CLOSE,N4))/MA(CLOSE,N4)*100;
BIASCLOSE-(BIAS1+BIAS2+BIAS3+BIAS4)/4),LINETHICK2,COLORLIMAGENTA;
BIASMA:MA(BIAS,M),LINETHICK2,COLORCYAN;
0; |