MA5:=MA(C,5);MA10:=MA(C,10);MA30:=MA(C,30);MA60:=MA(C,60);MA120:=MA(C,120);VAR1:=MA120>MA60 AND MA60>MA30;VAR2:=MA30>MA60 AND MA60>MA120;VAR3:=MAX(MA30,MAX(MA60,MA120));VAR4:=MIN(MA30,MIN(MA60,MA120));VAR5:=IF(MA30<>VAR3 AND MA30<>VAR4,MA30,IF(MA60<>VAR3 AND MA60<>VAR4,MA60,MA120));VAR6:=(VAR3-VAR4)/VAR4*100;VAR7:=(VAR5-VAR4)/VAR4*100;VAR8:=MA(REF(HHV(C,30),1),2);VAR9:=MA(REF(LLV(C,30),1),2);VAR10:=(VAR8-MAX(C,O))/MAX(C,O)*100;VAR11:=(MIN(C,O)-VAR9)/VAR9*100;VAR12:=BARSLASTCOUNT(VAR9