Sorry for the intrusion.
I have some doubts about that macro.
I used it but I prefer the one I'm using.
Speed rating infact can change a lot during a fight and a complete rotation.
There is Rapid Fire and Improved AotH, so that macro doesn't work properly in these situations.
Considering all the possibilities, an hunter then should have 4 macros with the suggested one: normal speed, rapid fire, aoth proc, rapid fire + aoth proc.
Then, let's consider Troll hunters.
Racial ability can improve your speed from 10% to 30%.
I don't know if there are just 3 steps 10% max health, 20% medium, 30% low.
If we have just these 3, you should moltiply 4 macros x 3.
If the speed from Berserk scales for every number then you should moltiply the macros x 21.
If we consider also the decimals...
Then we have other things like trinkets, Bloodlust and so on.
This means that this macro to work perfectly should be moltiplied for an insane number of possibilities.
According to me then the best macro is:
/castsequence reset=3 Steady Shot, Auto Shot.
With this one you have to spam it, doing manually kill command.
You can add arcane shot manually and multishot too (if you are MM, if not MS is wasted mana for poor dmg even with T4).
Doing this you should avoid to cancel the autoshot that is going to start. This part is the tricky one, like in the other macro: dmg can change with your reflexes but is still high.
With this macro you have no problems with the speed that your character has at the moment he's shoting.