It selected AMZN and EGGS for me, Rashid. Turns out it rejected EBAY because it's underage. Can pick up EBAY by testing for daysloaded [see boom dog's #7937]. ------------------ //input = "t.lst"; //used AMZN, EGGS and EBAY for the test issuetype common; issuetype common; output = "myrange.lst"; float maxpr, minpr, mychng; integer start, end; daysrequired = 5; start := -130; end := 0; if daysloaded < 130 then start:= 1 -1*daysloaded; endif; mychng := 2.50; maxpr:=max(end,start,cl); minpr:=min(end,start,cl); if maxpr > mychng*minpr then println symbol,",",maxpr/minpr:6:2,",",daysloaded; endif; ------ => AMZN , 5.16,135 EGGS , 6.41,135 EBAY , 7.52,48 |