title: Detecting when signal spikes started and when it ends
body: <p><img src="https://i.stack.imgur.com/j9CzM.png" alt="graph" /></p>
  <p>This is the sample of my data. As you see there is 3 spikes and after the spikes data lasts above normal for different periods and levels.</p>
  <p>I tried solve this with a basic for loop but could not manage it. I don't have to find every spike of the graph,I just have to figure out for example when is the spike starting at point 100 and when it drops like just before point 120 automatically.</p>