N:=30;K1:=19;K2:=-10;BU:=BAAST(CLOSE=HHV(CLOSE,N));SE:=BARSLAST(CLOSE=LLV(CLOSE,N));VAR1:=DATE<=20131010;KK1:=SE;KK2:=BU;LM1:=SE*VAR1;LM2:=BU*VAR1;OK:=KK1>KK2 AND LM1>LM2;OK1:=KK1>KK2 AND LM1
KK1 AND LM2>LM1;NOK1:=KK2>KK1 AND LM2M2,M2,M1),COLORRED;PARTLI