A:=IF(CLOSE>REF(CLOSE, 1),88,0); B:=IF(CLOSE/REF(CLOSE, 1)>1.050 AND HIGH/CLOSE<1.010 AND A>0, 91, 0); XG:B>90;