I'm doing this for a button and something I ended up doing was make sure that period and duration of the shake worked out so that the object would return to the original location instead of moving around slightly. (using large magnitude helped with testing).
But as far as I can tell it seems like even if you deactivate the sine in a different location when you reactivate it it'll continue where it left off meaning that it should never move more than the magnitude away from the original location so unless the exact location is important for some reason it should be fine to use any duration for the shake. Not sure if changing layouts or anything would break it.
Also apparently two 1 second waits and a single 2 second wait wait for different times or something.