m5:=MA(c,5);m10:=ma(c,10);m20:=ma(c,20);m30:=ma(c,30);a1:=o<m5 and o<m10 and o<m20 and o<m30;a2:=c>m5 and c>m10 and c>m20 and c>m30;c>o and c>ref(c,1) and a1 and a2;