The _latest_parameter_calculation_vol parameter needs to be removed. It's a leftover of a previous implementation, it's use corrupts volatility measurement. When the measured volatility is 0, an arbitrary value of the _latest_parameter_calculation_vol is being substituted which leads to incorrect spikes in volatility that don't corresponds to the market.