C2:=MA(LOW,19)*1.08;
C4:=MA(HIGH,19)*0.8;
C12:=REF(C2,1);
C14:=REF(C4,1);
C22:=REF(C2,2);
C24:=REF(C4,2);
C32:=REF(C2,3);
C34:=REF(C4,3);
CP1:=IF(REF(C,1)>C12,IF(REF(C,1)>C11,4,3),IF(REF(C,1)>C13 AND REF(C,1)<C12,2,IF(REF(C,1)<C14,0,1)));
CP3:=IF(REF(C,3)>C32,IF(REF(C,3)>C31,4,3),IF(REF(C,3)>C33 AND REF(C,3)<C32,2,IF(REF(C,3)<C34,0,1)));