bias6:=(C-MA(C,6))/MA(C,6)*100;
BIAS12:=(C-MA(C,12))/MA(C,12)*100;
BIAS24:=(C-MA(C,24))/MA(C,24)*100;
TJ1:=BIAS6<=-8;
TJ2:=BIAS12<=-12;
TJ3:=BIAS24<=-18;
BBT:=(TJ1 AND TJ2 AND TJ3) OR (TJ1 AND TJ2 ) OR (TJ1 AND TJ3);
BTJ5:=crOSS(BIAS6,-10);
BTJ6:=CROSS(BIAS6,-6.2);
BIASXG:=FILTER(BBT OR BTJ5 OR BTJ6,3);
BIAS:BIASXG;