It occurred to me that a section of commonly used Snippets of Code could be useful for anybody building Trading Systems or their own Indiors.

How do you Start a 24 EMA calculating at Midnight on a 1 Hour Chart and not on the 24th Bar no matter what time it is?

As usual, I would prefer that the discussion of any of the posted Snips will be carried out on the existing discussion threads or a new one.