If you have an A4Tech Bloody or X7 mouse, wherever you plug it in, macros are saved in the mouse’s memory and continue to work, including on the PS4. What settings are needed for macros on PS4 is described in the section “Advanced settings for macros“.
However, keep in mind that due to the fact that the settings for PS4 and PC are different, you will need to select the final sensitivity setting for macros yourself.