How to clean spikes in Fidelity data?
Author: jheffez
Creation Date: 8/24/2019 9:58 AM
profile picture

jheffez

#1
Using Fidelity data I see many cases where there are spikes as noted in the attached screenshot. Sometimes the spikes can go down to 0 or jump to twice the real price.
Is there a way/method/extension to automatically remove the spikes without removing the bar itself (something like smoothing it so it does not skew analysis?
profile picture

Eugene

#2
You might find post #4 in thread below of interest, in particular:

Fidelity Bad Data

There's code that preprocesses your data by smoothing out the spike bars with the Median series over a lookback.
profile picture

jheffez

#3
Thanks!
profile picture

Eugene

#4
At your service.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).