Just saw your point about doing the calculation at the end of the backtest.
The problem with this is, again, markets moving into the backtest halfway through.,
If you're using a fixed IDM then it will be too high in earlier periods with fewer markets. So if you calculate the IDM based on...