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.
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.