Given a stream of stock prices and a sliding time window, write an efficient algorithm to calculate the moving average and identify volatility spikes.
Implement analyze_prices(prices, window, threshold). Return a dictionary containing moving averages rounded to two decimal places and the starting indices of windows whose maximum-minus-minimum price is greater than threshold.
def analyze_prices(prices, window, threshold):