Is there a simple example for how to setup entry, profit target, and stop as mentioned in the title?

Say for example, with "SPY," enter buy limit order at the 'open' of the first bar of the day and when order is filled, submit profit target 0.50 above the entry and stop 0.50 below the entry. If either gets filled close the other (OCO).

Author