**Looks for pullback from 52 week high that is more than 10%. The high & low must be between 1 & 3 months apart. Triggers on a cross of close & 10% up from the low*********** ------------------------------------------------------------- ind1:=MACD(); cond1:=H=HHV(H,255); t1:=Trough(1,C,15); Cond2:=t1<>Ref(t1,-1); TheHigh:=HHV(H,255); TimeSinceHi:=BarsSince(cond1); TheLow:=ValueWhen(1,cond2,C); TimeSinceLo:=BarsSince(cond2); HLDiff:=TheLow20 and DownPeriod<60; init:=Cum(IsDefined(Cond1+Cond2))=1; bin:=ValueWhen(1,Cond2-Cond1<>0 OR init, Cond2); first:=bin AND (Alert(bin=0,2) OR init) and mycriteria; cond3:=cross(c,TheLow*1.1); 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