Mladen
I agree with your answer but I was only looking for 3 up & 3 down, just as 3ma. 2 for each of the 3 trends, 1up & 1 down. I hope that should explain it better. Sorry for not being more explicit.
Ray
PS: If I may attach a second coding problem, I'm getting a implicit warning on these three lines. I see the time code as being the problem can you show me the correction. See attached