First SAR shift down after first SAR shift up after new 52 week high cond1:=H=HHV(H,255); Cond2:=SAR(.02,.2)>C; cond3:=C>SAR(.02,.2); init:=Cum(IsDefined(Cond1+Cond2))=1; bin:=ValueWhen(1,Cond2-Cond1<>0 OR init, Cond2); first:=bin AND (Alert(bin=0,2) OR init); init1:=Cum(IsDefined(first+cond3))=1; bin1:=ValueWhen(1,cond3-first<>0 OR init1, cond3); second:=bin1 AND (Alert(bin1=0,2) OR init1); second