How to make a macron to be at the top

For a non-standard composite like dz macron you will have to use another method.

See the method used in the Home Edition for completing composites.

The MS Keyboard Layout Creator can be used to create custom keyboards. I use the _ key (shift -) as a dead key for macron. With this method I can easily type any character with macron.

ā ē ī ō ū ḡ Ā .. Ḡ