The data points are so close together that it increases and decreases with every data point and creates thousands of negligible changes. I need to single out the big changes. I am trying to use a method that will detect if a value at 'n' is greater than the previous 50 values and next 50 values. I do not want to write it out fully. i.e
if data(n) > data(n+1) && data(n+2) && ...
I would like to consolidate that into a more efficient line of code.