The crucial step is, once you finish collecting the ham and iron from the watchtower, CLOSE the game IMMEDIATELY.
I’ve been doing this for a long time. Works for me in any level, diamond, platinum and of course lower levels too. So I can sleep with rest knowing my ham and iron won’t be reducing at all though I might not online for a very long hours.
Here’s some proof:-
Hope this helps.