A1:=MA(C,30);
A2:=MA(C,60);
A3:=MA(C,90);
A4:=MA(C,120);
A5:=MA(C,250);
N1:=BARSLAST(CROSS(A1,A2));
N2:=BARSLAST(CROSS(A1,A3));
N3:=BARSLAST(CROSS(A1,A4));
N4:=BARSLAST(CROSS(A1,A5));
HM:=MAX6(A1,A2,A3,A4,A5,0);
LM:=MIN6(A1,A2,A3,A4,A5,99999);
HM1:=MAX6(A2,A3,A4,0,0.1,0.01);
LM1:=MIN6(A2,A3,A4,99999,88888,77777);
B1:=100*(HM-LM)/REF(LM,1);
B2:=100*(A1-HM1)/REF(HM1,1);
B3:=100*(LM1-A5)/REF(A5,1);
T1:=CROSS(A1,A5) AND B2/B3>0.5 AND B2/B3<10;
T2:=MAX6(N1,N2,N3,N4,0,1);
T1 OR T2; |