Brooke, I answered this earlier, but apparently didn't post the preview.
re "if low(i)>=.85*max(i,i - 250,hi) then [would look] for the 251-day high 1 day ago, the 252-day high 2 days ago, etc," it looks for the 250 day high as of that day, as his scan specified " Low within 15% of 52 week high every day for 3 months", which he did by ----------------- Low(-60) > Max(-60,-320,Hi) * .85 . . Low(0) > Max(0,-260,Hi) * .85 ---------------- This is the exact same thing he did for the MA tests; only looks different because of the different syntax for MovAvg( EndDay , Length , Item ) vs. Max( StartDay , EndDay , Item )
Since 52 weeks is 260 days <g>, please replace the one 250 I missed in my last post by 260.
Bob |