N1:=20;N2:=22;N3:=24;N4:=30;N5:=50;N6:=60;N7:=65;N8:=72;K:=8;IF (k<=0)RETURN 0;MA$1:MA(CLOSE, N1);IF (k<=1)RETURN 0;MA$2:MA(CLOSE, N2);IF (k<=2)RETURN 0;MA$3:MA(CLOSE, N3);IF (k<=3)RETURN 0;MA$4:MA(CLOSE, N4);IF (k<=4)RETURN 0;MA$5:MA(CLOSE, N5);IF (k<=5)RETURN 0;MA$6:MA(CLOSE, N6);IF (k<=6)RETURN 0;MA$7:MA(CLOSE, N7);IF (k<=7)RETURN 0;MA$8:MA(CLOSE, N8);