XG:C O AND C REF(MAX(C,O),1) AND MA(C,30) REF(MA(C,30),1) AND MA(C,20) REF(MA(C,20),1)AND MA(C,10) REF(MA(C,10),1) ;