BIAS1:(CLOSE-MA(CLOSE,10))/MA(CLOSE,10)*100*10; if(ref(BIAS1,1)<-100 and BIAS1>ref(BIAS1,1) and BIAS1>-100,100,0);