bias1:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;
BIAS2:=(CLOSE-MA(CLOSE,10))/MA(CLOSE,10)*100;
BIAS3:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100;
BIAS4:=(CLOSE-MA(CLOSE,60))/MA(CLOSE,60)*100;
BIASA:=(BIAS1+BIAS2+BIAS3+BIAS4)/4;
BIASMA:=MA(BIASA,5),COLORCYAN;
XG1:=crOSS(BIASA ,BIASMA);
XG2:=BIASMA<=-25;
XG:XG1 AND XG2;