CP:= IF(C>C2,IF(C>C1,4,3),IF(C>C3 AND C<C2,2,IF(C<C4,0,1)));
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)));
CP2:=IF(REF(C,2)>C22,IF(REF(C,2)>C21,4,3),IF(REF(C,2)>C23 AND REF(C,2)<C22,2,IF(REF(C,2)<C24,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)));
趋势强度: CP=3 AND CP1<=2 AND CP2<=2 AND CP3<=2 AND (LOW-MA(C,60))/MA(C,60)>0.01;
C1:=MA(LOW,19)*1.18;
C2:=MA(LOW,19)*1.08;
C3:=MA(HIGH,19)*0.9;
C4:=MA(HIGH,19)*0.8;
C11:=REF(C1,1);
C12:=REF(C2,1);
C13:=REF(C3,1);
C14:=REF(C4,1);
C21:=REF(C1,2);
C22:=REF(C2,2);
C23:=REF(C3,2);
C24:=REF(C4,2);
C31:=REF(C1,3);
C32:=REF(C2,3);
C33:=REF(C3,3);
C34:=REF(C4,3);
CP:= IF(C>C2,IF(C>C1,4,3),IF(C>C3 AND C<C2,2,IF(C<C4,0,1)));
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)));
CP2:=IF(REF(C,2)>C22,IF(REF(C,2)>C21,4,3),IF(REF(C,2)>C23 AND REF(C,2)<C22,2,IF(REF(C,2)<C24,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)));
趋势强度: CP=3 AND CP1<=2 AND CP2<=2 AND CP3<=2 AND (LOW-MA(C,60))/MA(C,60)>0.01;