AAA:=CLOSE>OPEN;
BBB:=AAA&&CLOSE>ma(CLOSE,5)&&CLOSE>MA(CLOSE,10)&&CLOSE>MA(CLOSE,20);
CCC:BBB&&OPEN<MA(CLOSE,10)&&OPEN<MA(CLOSE,20);
AAA:=CLOSE>OPEN;
BBB:=AAA&&CLOSE>ma(CLOSE,5)&&CLOSE>MA(CLOSE,10)&&CLOSE>MA(CLOSE,20);
CCC:BBB&&OPEN<MA(CLOSE,10)&&OPEN<MA(CLOSE,20);