Is it possible for a macro to switch the functionality of a set of macros?

Option 1, buy
Option 2, sell

If so, could you help me start off.