It’s slightly more complex than what you asked for, with the ability to cast on an enemy’s target. If you don’t want that feature simply remove the [@targettarget,help,nodead] portion of the macro.
Change @player to @focus in [mod:alt,@player] to make alt cast on your focus instead.