L1:=6;L2:=12;L3:=24;
bias1 : (CLOSE-MA(CLOSE,L1))/MA(CLOSE,L1)*100;
BIAS2 : (CLOSE-MA(CLOSE,L2))/MA(CLOSE,L2)*100;
BIAS3 : (CLOSE-MA(CLOSE,L3))/MA(CLOSE,L3)*100;
DRAWTEXT(crOSS( BIAS1,BIAS2), BIAS2,'★金'), COLORYELLOW ;
DRAWTEXT(CROSS( BIAS2,BIAS1), BIAS1,'★死'),COLORBLUE ;