The change was the '|1' that prevented even time periods, so that the median always was the data value in the middle. But this should normally only produce tiny differences with negligible effect on the backtest. How large was the difference that you got? Which time periods do you use for the MMI?