I currently have a a data set of torque values. I made a scatterplot with upper/lower limits and the average to help visually see how my data fits. Upper limit is 12.2 and lower limit is 9.5. Separately, I want to flag and then alert via email when I have three points in a row that our outside of these limits. I know how to flag every value that falls outside the limits, but not strictly three in a row. Any help on how I would go about doing this?

Thanks!!