How to detect few price points above / below a trend line

 

Hi,

I'm using simple moving average of order 5 (as for example).

I'm trying to detect whether or not few consecutive closing price above / below this trend line.

Is there code or any help?

Thanks

Deb

 
searchhft_2015: any help?
Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using CODE button) and state the nature of your problem.
          No free help
          urgent help.