MA5:=MA(CLOSE,5); MA10:=MA(CLOSE,10); MA20:=MA(CLOSE,20); MA60:=MA(CLOSE,60); MA120:=MA(CLOSE,120); A1:=REF(MA60,1)>REF(MA120,1) AND MIN(REF(MA5,1),MIN(REF(MA10,1),REF(MA20,1)))>REF(MA60,1) AND REF(MA5,1)<REF(MA10,1) OR REF(MA5,1)<REF(MA20,1); A2:=MA60>MA120 AND MIN(MA5,MIN(MA10,MA20))>MA60 AND MA5>MAX(MA10,MA20); A3:=CLOSE>OPEN AND CLOSE>MA5; XG: A1 AND A2 AND A3 ;