a1:=c>ref(c,4);a2:=c(c,4);t1:=a2 and ref(a1,1);t2:=a2 and ref(t1,1);t3:=a2 and ref(t2,1);t4:=a2 and ref(t3,1);t5:=a2 and ref(t4,1);xg:a2 and ref(t5,1);
ma1:=ma(close,5);ma2:=ma(close,10);ma3:=ma(close,20);ma4:=ma(close,60);xg:count(cross(ma1,ma2),3)=1 and count(cross(ma1,ma3),3)=1 and count(cross(ma1,ma4),3)=1;