I have some datasets and I need to find spikes in them. Imagine the data looks like trading data. If the spike is big enough, I need to log it, otherwise, proceed in the analysis.
I tried with a moving average approach, but cannot detect all of them. Is there a better way?
Also, I would like to know if there is a robust approach to calculating the baseline, so I can filter it out.